Pool
Inherits: IPool, ERC20Permit
See the documentation in {IPool}.
State Variables
configurator
_asset
_underlyingDecimals
Functions
constructor
depositWithPermit
Deposits assets into the pool with the permit signature
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Returns
Name | Type | Description |
---|---|---|
|
| The corresponding amount of shares minted |
mintWithPermit
Mints shares from the pool with the permit signature
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Returns
Name | Type | Description |
---|---|---|
|
| The corresponding amount of assets deposited |
removeShares
Remove shares from the pool
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of shares to remove |
|
| The owner of the shares |
Returns
Name | Type | Description |
---|---|---|
|
| The amount of shares returned |
requestRedeem
Request the redemption of shares from the pool
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of shares to redeem |
|
| The owner of the shares |
balanceOfAssets
Returns of the balance of the account
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the account |
Returns
Name | Type | Description |
---|---|---|
|
| assets_ The amount of assets |
convertToExitAssets
Returns the amount of assets that can be withdrawn for the amount of shares
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of shares |
Returns
Name | Type | Description |
---|---|---|
|
| The amount of assets |
convertToExitShares
Returns the amount of shares that will be burned to withdraw the amount of assets
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of assets to withdraw |
Returns
Name | Type | Description |
---|---|---|
|
| The amount of shares |
unrealizedLosses
Returns the unrealized losses of the pool
Returns
Name | Type | Description |
---|---|---|
|
| The unrealized losses |
deposit
See {IERC4626-deposit}.
mint
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
See {IERC4626-withdraw}.
redeem
See {IERC4626-redeem}.
maxDeposit
See {IERC4626-maxDeposit}.
maxMint
See {IERC4626-maxMint}.
maxWithdraw
See {IERC4626-maxWithdraw}.
maxRedeem
See {IERC4626-maxRedeem}.
previewWithdraw
See {IERC4626-previewWithdraw}.
previewRedeem
See {IERC4626-previewRedeem}.
convertToShares
See {IERC4626-convertToShares}.
convertToAssets
See {IERC4626-convertToAssets}.
previewDeposit
See {IERC4626-previewDeposit}.
previewMint
See {IERC4626-previewMint}.
decimals
Decimals are computed by adding the decimal offset on top of the underlying asset's decimals. This "original" value is cached during construction of the vault contract. If this read operation fails (e.g., the asset has not been created yet), a default of 18 is used to represent the underlying asset's decimals.
asset
See {IERC4626-asset}.
totalAssets
See {IERC4626-totalAssets}.
_deposit
Deposit/mint common workflow.
_withdraw
Withdraw/redeem common workflow.
_decimalsOffset
_convertToShares
_convertToExitShares
_convertToAssets
_convertToExitAssets
Last updated