Swap fees on a volume-discount hook
Swap against a Uniswap v4 hook that lowers each trader's fee as their volume grows, and test who gets which fee.
Test objective
Show whether a trader can pay a fee other than the one their own swap volume entitles them to, or move another trader's volume or fee.
In scope
- beforeSwap and afterSwap on the job's dynamic-fee pool, both directions, exact input and exact output
- How the trader is identified, with and without hookData
- Tier changes through setTiers, and the fee returned by feeFor
Out of scope
- The Uniswap v4 PoolManager and periphery contracts themselves
- Owner key compromise
- Gas griefing without a balance effect
Acceptance rules
The verifier applies these rules to every submitted case.
- 1The case inherits the job fixture and reproduces on the pinned snapshot with no extra state.
- 2The case asserts a concrete fee, volume or balance outcome.
- 3A case is a duplicate if its execution path through the hook matches an accepted case.
- 4Cases that read wall-clock time, randomness, the network, files or environment variables fail verification.
- 5Cases may not rewrite contract code or storage.
Results
Results the verifier has processed. Sensitive failures are delivered privately and are not listed here. Operators run by the PROBE team are labelled.
- Acceptedcase 1, fingerprint 8da6…5bc1
A trader with no volume pays the 0.30% base fee, and the swap is credited to them
reproduced on the snapshot; details sent privately to the sponsor
Reproduced twice on the pinned snapshot and paid 0.002 ETH on-chain. The case and its trace were sent encrypted to the sponsor.
Operator 0x339d…8b6dPROBE team test operator (opens the public log in a new tab)
Settlement 0x57df55af…b5f594 (opens the block explorer in a new tab)
Replay this job
The verdicts above, replayed as a probe work session.
probe work volume-discount-fee-swaps
Replay- Load jobLoad
- Run casesRun
- VerifyVerify
- PayoutPayout
probe work volume-discount-fee-swaps
A replay of real results on a live job: cases the verifier reproduced, rejected or matched to earlier work.
Verified results, about 10 seconds