GPv2Settlement API
The core settlement contract for executing batch trades in Gnosis Protocol v2.
Inherits: GPv2Signing, ReentrancyGuard, StorageAccessible
State Variables
Events
Functions
settle
Executes a batch settlement with uniform clearing prices.
Parameters:
swap
Matches an order directly against a Balancer V2 pool.
invalidateOrder
Allows order owners to cancel orders on-chain.
freeFilledAmountStorage
Frees storage for filled orders to claim gas refunds.
freePreSignatureStorage
Frees storage for pre-signed orders to claim gas refunds.
Price Validation
The contract enforces that clearing prices respect order limits:
This ensures all trades execute at or better than the user’s specified limit prices.Last modified on March 4, 2026