Skip to content

IRedstoneOracle ​

getExchangeRate ​

solidity
function getExchangeRate() external view returns (uint256 exchangeRate_)

Get the exchangeRate_ between the underlying asset and the peg asset

decimals ​

solidity
function decimals() external view returns (uint8)

Returns the number of decimals for the price feed

By default, RedStone uses 8 decimals for data feeds

Return Values ​

NameTypeDescription
[0]uint8decimals The number of decimals in the price feed values