Initiating the Withdrawal
Initiating the withdrawal requires depositing your pool tokens into the pending withdrawal contract, starting the cooldown period.
The process consists of 3 steps:
1. Determine the number of pool tokens to withdraw
This step will explain how to calculate the number of bnTokens you need to withdraw to receive a specific number of tokens.
Visit the
BancorNetworkInfoon etherscanExecute the
underlyingToPoolTokenfunction (this is a Read function)

Input variable
pool
Token
The address of the underlying token
amount
uint256
The amount of underlying token you would like to withdraw (in WEI format)
Output response
poolTokenAmount
uint256
The amount of bnToken representing the underlying token amount
Save the value as this represent the input amount needed to use in the next steps
2. Approve
In order for the contract to interact with the tokens in your wallet and perform the transaction, an Approve must be set first for the contract.
Execute the
Approvefunction (this is a Write function)

spender
The contract address of the BancorNetwork found here
value
The amount you would like to approve (it can be identical or more than the amount you wish to withdraw, BUT NOT LESS) in WEI format as explained here
The number of tokens you approve represents the bnToken you would like to liquidate
Click
Writeto sign theApprovein your wallet
3. Initiate the withdrawal (begin cooldown)
This step will explain how to call the initiate cooldown function
Visit
BancorNetworkcontract on etherscanExecute the
initWithdrawalfunction (this is a Write function)

Input variable
poolToken
Token
The bnToken address (found here)
This will initiate the cooldown process and allow to complete the withdrawal
Last updated
