Comment on page
underlyingToPoolToken()
This function is found in the BancorNetworkInfo.sol contract.
BancorNetworkInfo.sol
function underlyingToPoolToken(Token pool, uint256 tokenAmount) external view returns (uint256)
This function is used to get the number of pool tokens (bnToken) a given number of tokens would be worth.
Name | Type | Description |
---|---|---|
pool | Token | Input the contract address of a token. |
tokenAmount | uint256 | The number of tokens for which to check the value in pool tokens. |
Type | Description |
---|---|
Number | The number of pool tokens a given number of tokens are worth.
For example, the response will indicate the value of the input amount in bnLINK tokens. |
Last modified 1yr ago