Assert that the TWAP price doesn’t deviate more than X% from the pre-state TWAP price
ph.forkPreState()
/ ph.forkPostState()
: Compare post-transaction price against pre-transaction TWAPgetStateChangesUint()
: Track all price changes during transaction executionregisterStorageChangeTrigger()
: Trigger when price storage slot changesNote: Full examples with tests available in the Phylax Assertion Examples Repository.