Deposit
The deposit function allows a user to transfer the supply asset of the vault and receive supplyTokens in exchange.
deposit(uint256 amount, address onBehalfOf)
amount - the amount the user wants to deposit. The user must approve this amount prior to deposit.
onBehalfOf - the address onBehalfOf who this deposit is made, typically the user themselves
Upon receiving a deposit the vault will deploy this collateral into the active lending provider to be used as collateral.
Last updated
Was this helpful?