Internal conversion function (from shares to assets) with support for rounding direction.
maxMint
function maxMint(address) public view returns (uint256)
See {IERC4626-maxMint}.
maxDeposit
function maxDeposit(address owner) public view returns (uint256)
maxRedeem
function maxRedeem(address owner) public view returns (uint256)
See {IERC4626-maxRedeem}.
maxWithdraw
function maxWithdraw(address owner) public view returns (uint256)
See {IERC4626-maxWithdraw}.
deposit
function deposit(uint256 assets, address receiver) public returns (uint256)
See {IERC4626-deposit}.
mint
function mint(uint256 shares, address receiver) public returns (uint256)
_See {IERC4626-mint}.
As opposed to {deposit}, minting is allowed even if the vault is in a state where the price of a share is zero. In this case, the shares will be minted without requiring any assets to be deposited._
withdraw
function withdraw(uint256 assets, address receiver, address owner) public returns (uint256)
See {IERC4626-withdraw}.
redeem
function redeem(uint256 shares, address receiver, address owner) public returns (uint256)
See {IERC4626-redeem}.
makeWithdrawRequest
function makeWithdrawRequest(uint256 shares, address owner) external
cancelWithdrawRequest
function cancelWithdrawRequest(uint256 shares, address owner, uint256 unlockEpoch) external
depositWithDiscountAndLock
function depositWithDiscountAndLock(uint256 assets, uint256 lockDuration, address receiver) external returns (uint256)
mintWithDiscountAndLock
function mintWithDiscountAndLock(uint256 shares, uint256 lockDuration, address receiver) external returns (uint256)
unlockDeposit
function unlockDeposit(uint256 depositId, address receiver) external
distributeReward
function distributeReward(uint256 assets) external
sendAssets
function sendAssets(uint256 assets, address receiver) external
receiveAssets
function receiveAssets(uint256 assets, address user) external
deplete
function deplete(uint256 assets) external
refill
function refill(uint256 assets) external
updateAccPnlPerTokenUsed
function updateAccPnlPerTokenUsed(uint256 prevPositiveOpenPnl, uint256 newPositiveOpenPnl) external returns (uint256)
getLockedDeposit
function getLockedDeposit(uint256 depositId) external view returns (struct IGToken.LockedDeposit)
tvl
function tvl() public view returns (uint256)
availableAssets
function availableAssets() public view returns (uint256)
marketCap
function marketCap() public view returns (uint256)