Conversation
7 sections covering the full protocol: Section 1 — Surplus Capture (7 rules): - surplus split conservation - user/filler share boundedness - protocol share non-negative - no capture on fair execution - disadvantaged field consistency - preview never reverts Section 2 — Pause Safety (3 rules): - swap reverts when paused - fill reverts when paused - cancel not blocked by pause Section 3 — Access Control (7 rules): - only owner can pause/unpause/setTreasury/setFeeRefundToggle - only pending owner can accept ownership - parametric: owner changes only via acceptOwnership - parametric: pause changes only via pause/unpause Section 4 — Reward Uniqueness (2 rules): - swapper reward is one-time - filler reward is one-time Section 5 — Fill Correctness (2 rules): - fill reduces balancesOut - fill minimum threshold enforced Section 6 — Cancel Correctness (2 rules): - cancel clears order state - only swapper cancels before expiry Section 7 — Invariants (2 invariants): - paused is boolean - owner is non-zero after init Uses ghost variables with Sstore hooks, Sload constraints, parametric rules, preserved blocks, mathint, definitions, biconditional assertions, and @withrevert patterns.
- conf file for certoraRun with via_ir, optimistic_loop, basic rule_sanity - includes AsyncSwap, IntentAuth, AsyncRouter, CurrencySettler in verification scene - run with: certoraRun --conf certora/AsyncSwapPricing.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.