Assessment reports>Benqi Oracle>Threat Model>isPriceStale

Function: isPriceStale(uint256 timestamp, uint256 stalenessThreshold)

This function checks if a price is stale based on time stamp.

Inputs

  • timestamp

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A time stamp to check if the price is stale.

  • stalenessThreshold

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A staleness threshold to check if the price is stale.

Branches and code coverage

Intended branches

  • Check if the price is stale.

Zellic © 2025Back to top ↑