Withdraw

User transfers supplyTokens and receives the vault supply assets in return

withdraw(uint256 amount, address to)

  • amount - amount the user wants to withdraw

  • to - address to which the funds should be sent

The user can withdraw up a loan-to-value ratio of the specified supplyThreshold.

Withdraw fee

There is a withdrawal fee applied for the users depositing and withdrawing within a short period of time. The fee is charged in the supply asset and is distributed among the other users.

The reason for having such a fee is that when one deposits, the vault will do a rebalance to borrow more and deposit it into the farm provider for generating more yield. This can incur fees and slippage. With the time the fee is covered by the yield rewards. But without enough time, this is a cost to the vault.

The fee is currently configured to be 1% for withdraws within 50,400 blocks (~7 days).

Last updated

Was this helpful?