Search…
⌃K

underlyingToPoolToken()

This function is found in the BancorNetworkInfo.sol contract.

Function underlyingToPoolToken()

BancorNetworkInfo.sol
function underlyingToPoolToken(Token pool, uint256 tokenAmount) external view returns (uint256)
This function is located in the BancorNetworkInfo contract
This function is used to get the number of pool tokens (bnToken) a given number of tokens would be worth.

Function Arguments

Name
Type
Description
pool
Token
Input the contract address of a token.
For example for the LINK token: 0x514910771AF9Ca656af840dff83E8264EcF986CA
tokenAmount
uint256
The number of tokens for which to check the value in pool tokens.

Return Variables

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.