Assessment reports>Origami Finance>Threat Model>latestPrice

Function: latestPrice(OrigamiMath.Rounding roundingMode)

Gets the latest price (rounded in ideal correction and scaled to 1e18).

Inputs

  • roundingMode

    • Control: Full.

    • Constraints: None.

    • Impact: The direction to round.

Branches and code coverage

Intended branches

  • Direction to round is correctly followed.

  • Exchange rate is scaled to 1e18.

Negative behavior

  • Verifies floor and ceiling requirements.

Zellic © 2025Back to top ↑