SupplyVault

Git Source

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

NameTypeDescription
_morphoaddressThe address of the main Morpho contract.
_morphoTokenaddressThe address of the Morpho Token.
_lensaddressThe address of the Morpho Lens.
_recipientaddressThe 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

NameTypeDescription
_poolTokenaddressThe address of the pool token corresponding to the market to supply through this vault.
_namestringThe name of the ERC20 token associated to this tokenized vault.
_symbolstringThe symbol of the ERC20 token associated to this tokenized vault.
_initialDeposituint256The amount of the initial deposit used to prevent pricePerShare manipulation.