-
Notifications
You must be signed in to change notification settings - Fork 7
DDMetaMorpho
A direct deposit module that manages a morpho vault
contract IMetaMorpho vaultfunction initialize(address _hub, address _zai, address _vault) externalfunction deposit(uint256 wad) externalIf the external pool requires a different amount to be passed in, the conversion should occur here as the Hub passes ZAI amounts. msg.sender must be the hub.
| Name | Type | Description |
|---|---|---|
| wad | uint256 |
function withdraw(uint256 wad) externalIf the external pool requires a different amount to be passed in the conversion should occur here as the Hub passes ZAI amounts. msg.sender must be the hub.
| Name | Type | Description |
|---|---|---|
| wad | uint256 |
function preDebtChange() externalSome external pools require actions before debt changes
function postDebtChange() externalSome external pools require actions after debt changes
function assetBalance() external view returns (uint256)Balance of assets this pool "owns".
This could be greater than the amount the pool can withdraw due to lack of liquidity.
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | uint256 number of assets in ZAI |
function maxDeposit() external view returns (uint256)Maximum number of assets the pool could deposit at present.
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | uint256 number of assets in ZAI |
function maxWithdraw() external view returns (uint256)Maximum number of assets the pool could withdraw at present.
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | uint256 number of assets in ZAI |
function redeemable() external view returns (address)returns address of redeemable tokens (if any)