Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.01 KB

Incorrect event emission.md

File metadata and controls

26 lines (22 loc) · 1.01 KB

The UniswapWindowUpdate event of the UniswapAnchoredView contract is currently being emitted in the pokeWindowValues function using incorrect values.

In particular, as it is being emitted before relevant state changes are applied to the oldObservation and newObservation variables, the data logged by the event will be outdated.

Recommendation:

Consider emitting the UniswapWindowUpdate event after changes are applied so that all logged data is up-to-date.


Slide Screenshot

096.jpg


Slide Text

  • OpenZeppelin Audit Compound Finding M04
  • Auditing & Logging
  • Medium Severity
  • Event Emite
  • Stale Data
  • State Update -> Emit Event

References


Tags