Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.03 KB

Actions not executed atomically might lead to inconsistent state.md

File metadata and controls

26 lines (22 loc) · 1.03 KB

The setAssetPricer, setLockingPeriod, and setDisputePeriod functions of the Oracle contract execute actions that are always expected to be performed atomically.

Failing to do so can lead to inconsistent states in the system.

Recommendation:

Consider implementing an additional function that calls the setAssetPricer, setLockingPeriod, and setDisputePeriod functions, so that these actions can be executed atomically in a single transaction.


Slide Screenshot

198.jpg


Slide Text

  • OpenZeppelin Opyn Gamma Finding L08
  • Timing
  • Non-Atomic Functions
  • Inconsistent State
  • Combine Functions
  • Same Tx -> Atomic Effects

References


Tags