withdraw()
Withdrawing funds
Last updated
Withdrawing funds
Last updated
It is highly recommended to call the function isPoolStable() to check if the withdrawal can currently be processed before calling withdraw().
Every pending withdrawal has a unique ID. To get a list of pending withdrawals for an address, see withdrawalRequestIds().
withdraw()
is a function that burns the pool tokens and sends the underlying asset to the beneficiary wallet address.
Name | Type | Description |
---|---|---|
Withdrawing the BNT token requires vBNT tokens in your wallet equal to the number of pool tokens being withdrawn.
vBNT must be approved in order to successfully complete this process
This function returns the number of tokens received from the withdrawal.
Variable Type | Description |
---|---|
id
uint256
The id of the pending withdrawal that was initiated by the initWithdrawal
transaction
uint256
The number of tokens withdrawn.