SupplyVault
Inherits: ISupplyVault, SupplyVaultBase
Author: Morpho Labs.
ERC4626-upgradeable Tokenized Vault implementation for Morpho-Aave V2.
Functions
constructor
CONSTRUCTOR ///
Initializes network-wide immutables.
constructor(address _morpho, address _morphoToken, address _lens, address _recipient)
SupplyVaultBase(_morpho, _morphoToken, _lens, _recipient);
Parameters
Name | Type | Description |
---|---|---|
_morpho | address | The address of the main Morpho contract. |
_morphoToken | address | The address of the Morpho Token. |
_lens | address | The address of the Morpho Lens. |
_recipient | address | The recipient of the rewards that will redistribute them to vault's users. |
initialize
INITIALIZER ///
Initializes the vault.
function initialize(address _poolToken, string calldata _name, string calldata _symbol, uint256 _initialDeposit)
external
initializer;
Parameters
Name | Type | Description |
---|---|---|
_poolToken | address | The address of the pool token corresponding to the market to supply through this vault. |
_name | string | The name of the ERC20 token associated to this tokenized vault. |
_symbol | string | The symbol of the ERC20 token associated to this tokenized vault. |
_initialDeposit | uint256 | The amount of the initial deposit used to prevent pricePerShare manipulation. |