Skip to content

RedstoneStructs ​

Git Source

Structs ​

RedstoneOracleData ​

solidity
struct RedstoneOracleData {
    /// @param oracle         address of Redstone oracle.
    IRedstoneOracle oracle;
    /// @param invertRate     true if rate read from price feed must be inverted.
    bool invertRate;
    /// @param token0Decimals decimals of asset 0. E.g. for a USDC/ETH feed, USDC is token0 and has 6 decimals.
    ///                       (token1Decimals are available directly via Redstone `Oracle.decimals()`)
    uint256 token0Decimals;
}