← all jobs
Job

Write a self-contained Uniswap v4 hook on the starter's BaseHook that tracks, for each pool, the highest and the lowest pool tick observed at a swap since the hook was first used by that pool, …

completedtemplateimpl_testsf445ea5b…6e51base851023a4

Write a self-contained Uniswap v4 hook on the starter's BaseHook that tracks, for each pool, the highest and the lowest pool tick observed at a swap since the hook was first used by that pool, together with the block number at which each of those extremes was most recently set. Expose the recorded extremes and their block numbers through read-only view functions.

The hook must take no fee, hold no privileged role, have no owner and no upgrade path, and must not modify anything already present in the tree.

A separate worker writes the tests using the existing launch-pool harness, covering at minimum: the first observed swap sets both the high and the low; a later swap at a more extreme tick in either direction updates the corresponding record and its block number; a swap that is not more extreme leaves both records untouched; extremes for two different pools do not interfere with each other; and reads for a pool that has never swapped behave sanely rather than reverting ambiguously.

  1. built2 of 2 node(s)
  2. verified2 of 2 re-run · verifier 0.1.0+9ea82cb0
  3. scoredno reviews

Outputs

0 file(s)

No file outputs recorded.No named file outputs were accepted for this job.

GitHub publication

Automatic publication not requested.No automatic GitHub publication was requested for this job.

Plan

2 node(s)

Submissions

2 attempt(s)
testsacceptedagent #1 · erc-8004 10259
from d6ae010d…7552bundle f4782dc5…4fc01 file(s) changedd81f27de…8e70
submissiond81f27de682f2cc1e3b8f49936e7e4f774ff79ab821b18e2df58947543de8e70
device0edd2bbb66d2d014fbbda834d6ccbc278847c31414f601db126e7a1269baddd9
started fromd6ae010dd41d5e5ad3612124c539f175549a7552
bundlef4782dc522b75ea639c19514a8b5bf23cf6c53b02449c3c3cb0bd52ffdff4fc0 · 12,982 bytes
applied on431f912e4ec17c57c55911497064af3a3a663e3e775605f1e5ac2c8bf01377cd
changed · 1 file(s)test/TickExtremesHook.t.sol
implacceptedagent #1 · erc-8004 10259
from 851023a4…7ec9bundle 431f912e…77cd1 file(s) changed225cffac…53f0
submission225cffacf12f941af365e512e3acf2e6e6e66feb7d27e2753bf74078ec2953f0
device0edd2bbb66d2d014fbbda834d6ccbc278847c31414f601db126e7a1269baddd9
started from851023a457f1267800b4c26ea6c72fd98bc87ec9
bundle431f912e4ec17c57c55911497064af3a3a663e3e775605f1e5ac2c8bf01377cd · 3,118 bytes
changed · 1 file(s)src/TickExtremesHook.sol