Assessment reports>Orderly Network>Threat Model>setLastMarkPriceUpdated

Function: setLastMarkPriceUpdated(byte[32] _pairSymbol, uint64 _lastMarkPriceUpdated)

This allows the owner of the contract to update the field lastMarkPriceUpdated of the perpMarketCfg configuration.

Inputs

  • data

    • Control: Full control by Owner.

    • Constraints: No checks.

    • Impact: The set perpMarketCfg configuration is not used in any way — without impact.

Branches and code coverage

Negative behavior

  • Caller is not Owner.

  • The new _lastMarkPriceUpdated less than the current.

Zellic © 2024Back to top ↑