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.

supplyToken A supply token is issued to represent each supply asset the user is owed. This is an interest bearing token and its value can go up over time, in line with interest received on our lender deposits. Each supply token represents one supply asset (e.g. WETH) token.

Last updated