withdrawalAmounts()
This function is in the BancorNetworkInfo.sol contract.
Last updated
This function is in the BancorNetworkInfo.sol contract.
Last updated
This function returns details about a potential withdrawal, including the number of tokens that would be received, and the number of BNT tokens the user would receive in an instance in which impermanent loss is being covered in part by BNT tokens.
pool
Token
The contract address of a token. For example, Link: 0x514910771AF9Ca656af840dff83E8264EcF986CA
poolTokenAmount
uint256
The number of pool tokens for which to check the results of a withdrawal.
This function returns the results of the potential withdrawal.
list
The return values include the number of expected tokens, the amount returned in the original token, and the amount returned in BNT.
Example response: