Calculates the value of a given token amount in relation to an oracle price data
The value of the token based on the oracle, scaled by PRICE_PRECISION
PRICE_PRECISION
The amount of tokens to calculate the value for (from getTokenAmount)
getTokenAmount
The number of decimal places of the token.
The oracle price data (typically a token/USD oracle).
Generated using TypeDoc
Calculates the value of a given token amount in relation to an oracle price data
Returns
The value of the token based on the oracle, scaled by
PRICE_PRECISION