Assessment reports>Orderly Network>Threat Model>setLastFundingUpdated

Function: setLastFundingUpdated(byte[32] _pairSymbol, uint64 _lastFundingUpdated)

This allows the Ledger contract to update the timestamp of the last executeProcessValidatedFutures function call.

Inputs

  • _pairSymbol

    • Control: Only allowed symbol.

    • Constraints: There is a check that the symbol is allowed in the executeProcessValidatedFutures function.

    • Impact: Configuration ID for a specific symbol.

  • _lastFundingUpdated

    • Control: Full control by Operator.

    • Constraints: No checks.

    • Impact: No impact.

Branches and code coverage

Negative behavior

  • Caller is not Ledger.

  • The new _lastFundingUpdated is less than the current.

Zellic © 2024Back to top ↑