withdraw()
Withdrawing funds
It is highly recommended to call the function isPoolStable() to check if the withdrawal can currently be processed before calling withdraw().
Function withdraw()
function withdraw(uint256 id) external whenNotPaused nonReentrant returns (uint256)
withdraw()
is a function that burns the pool tokens and sends the underlying asset to the beneficiary wallet address.
Function Arguments
Name
Type
Description
id
uint256
The id of the pending withdrawal that was initiated by the initWithdrawal
transaction
Return Variables
This function returns the number of tokens received from the withdrawal.
Variable Type
Description
uint256
The number of tokens withdrawn.
Last updated