Skip to content
Open

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.

  1. 1The case inherits the job fixture and reproduces on the pinned snapshot with no extra state.
  2. 2The case asserts a concrete fee, volume or balance outcome.
  3. 3A case is a duplicate if its execution path through the hook matches an accepted case.
  4. 4Cases that read wall-clock time, randomness, the network, files or environment variables fail verification.
  5. 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.

Replay this job

The verdicts above, replayed as a probe work session.

probe work volume-discount-fee-swaps

Replay
  1. Load
  2. Run
  3. Verify
  4. Payout

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