Withdraw
Yearn Action Plugin - Withdraw
Description
Withdraws the calling account's tokens from this Vault, redeeming amount _shares
for an appropriate amount of tokens. See note on setWithdrawalQueue
for further details of withdrawal ordering and behavior.
Method
deposit(uint256, address)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| yVault address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
maxShares |
| How many shares to try and redeem for tokens |
recipient |
| The address to issue the shares in this Vault to |
maxLoss |
| The maximum acceptable loss to sustain on withdrawal |
Returned Values
No values get returned
Example
Example with initParams
Example without initParams
Learn more
Learn more about Yearn yVault withdraw method here
Last updated