poolTokenToUnderlying()
Function poolTokenToUnderlying()
NetworkSettings.sol
This function is located in the BancorNetworkInfo contract
This function returns the number of underlying tokens a pool token is worth.
Function Arguments
Name | Type | Description |
---|---|---|
pool | Token | Input the contract address of a token. For example for the LINK token: 0x514910771AF9Ca656af840dff83E8264EcF986CA |
poolTokenAmount | uint256 | The number of bnTokens for which to check the underlying amount. |
Return Variables
This function returns the number of underlying tokens a given amount of pool tokens are worth.
Variable Type | Returns |
---|---|
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. |
Last updated