poolTokenToUnderlying()
Last updated
Last updated
This function is located in the BancorNetworkInfo contract
This function returns the number of underlying tokens a pool token is worth.
pool
Token
Input the contract address of a token.
For example for the token: 0x514910771AF9Ca656af840dff83E8264EcF986CA
poolTokenAmount
uint256
The number of bnTokens for which to check the underlying amount.
This function returns the number of underlying tokens a given amount of pool tokens are worth.
Number
The number of tokens a given pool token is worth. For example, the response will indicate the value of the input amount in LINK tokens.