isReadyForWithdrawal()

This function is in both PendingWithdrawals.sol and BancorNetworkInfo.sol.

Function isReadyForWithdrawal()

PendingWithdrawals.sol
function isReadyForWithdrawal(uint256 id) external view returns (bool)

This function indicates if a specific withdrawal has finished its cooldown period and is ready to be withdrawn.

This function can be called from either the PendingWithdrawals.sol or BancorNetworkInfo.sol contract.

Function Arguments

NameTypeDescription

id

uint256

This is the id of a pending withdrawal.

Return Variables

This function returns a boolean indicating if a specific withdrawal is ready to be withdrawn.

Variable TypeReturns

boolean

True: The pending withdrawal is ready to be withdrawn. False: The pending withdrawal has not yet completed its cooldown period.

Last updated