Price Provider
Methods
changeActive
Parameters
token
address
undefined
active
bool
undefined
getEvaluation
Parameters
token
address
undefined
tokenAmount
uint256
undefined
Returns
evaluation
uint256
undefined
getEvaluationSigned
return the evaluation in $ of tokenAmount
with signed price
Parameters
token
address
the address of token to get evaluation in $
tokenAmount
uint256
the amount of token to get evaluation. Amount is scaled by 10 in power token decimals
priceMantissa
uint256
the price multiplied by priceDecimals. The dimension of priceMantissa should be $/token
validTo
uint256
the timestamp in seconds, when price is gonna be not valid.
signature
bytes
the ECDSA sign on eliptic curve secp256k1.
Returns
evaluation
uint256
undefined
getPrice
Parameters
token
address
undefined
Returns
priceMantissa
uint256
undefined
priceDecimals
uint8
undefined
getPriceDecimals
Returns
priceDecimals
uint8
undefined
getPriceSigned
Parameters
token
address
undefined
priceMantissa
uint256
undefined
validTo
uint256
undefined
signature
bytes
undefined
Returns
_priceMantissa
uint256
undefined
_priceDecimals
uint8
undefined
isActive
Parameters
token
address
undefined
Returns
_0
bool
undefined
isListed
Parameters
token
address
undefined
Returns
_0
bool
undefined
Last updated