IBank

Git Source

Inherits: IERC4626, IGold

Functions

depositAndSendToMilitary

function depositAndSendToMilitary(uint256 assets_) external;

invest

function invest(uint256 amount_) external;

withdrawInvestment

function withdrawInvestment(uint256 amount_) external;

setInvestmentStrategy

function setInvestmentStrategy(IInvestmentStrategy strategy_) external;

previewRewards

function previewRewards() external view returns (uint256);

getInvestment

function getInvestment() external view returns (uint256);

Events

Invest

event Invest(uint256 amount_);

WithdrawInvestment

event WithdrawInvestment(uint256 amount_);

Errors

NotGovernanceError

error NotGovernanceError(address sender_);