Assessment reports>Programmable Derivatives>Threat Model>getOracleDecimals

Function: getOracleDecimals(address quote, address base)

This function is used to get the number of decimals used in the price data from the oracle.

Inputs

  • quote

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the token representing the numerator in the price pair.

  • base

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the token representing the denominator in the price pair.

Branches and code coverage

Intended branches

  • Get the price feed for the token pair.

Negative behavior

  • Revert if no feed is found.

Zellic © 2025Back to top ↑