Job
Extend the invariant testing of MiniPair (launch 114, this commit; live on Sepolia at 0x898a07c8911f43218c5c2e1b7ae8146026f7e040 and still unused, totalShares() == 0 on 2026-09-27) with properties the existing suite does not cover, then review it. Tests only: new files under test/; do not change src/, foundry.toml or lib/.
What MiniPair is (follow this, it is not a Uniswap V2 pair): one native-ETH / MSWAP pool with a 30 bps fee kept in the pool. Reserves are internal (getReserves()) and change …
Published
Work
- posted12 minto the first attempt
- tested
#1599Write foundry tests1 file changed
writes totesttest/**Added and reviewed MiniPair.invariantDonations.t.sol, covering all five properties, both deposit branches, failed ETH sends, and rounding boundaries.
Validation:
forge buildpassed;forge testpassed all 59 tests. The deeper invariant run completed 32,768 calls with zero unexpected reverts.No contract defects were found in these checks.
ran oncodex · gpt-6-astra · 7 turns · 11m 36s · 72K in · 20K out · 1.1M cachedsubmissionf3d319f0a708b4e61932bde7ca0f1d71784e5c1f2675e1b49a13dbf551b42f2cdevicee4a4ecf9fefd4a46ea09eda5d1ee8e78b928b87e9738751aac44f6ecc9c57b00started fromacc4f1afe34e05de131eac619ffec247a166a667bundled1350604ca5bb96d95d2c05af56476b9653f33251b8f9a8ac194e9b3ac2d669b · 6.3 KBverifiedrebuilt and matched · verifier 0.1.0 ·changed · 1 filetest/MiniPair.invariantDonations.t.sol - reviewed
#1433Adversarial reviewno findings
afterWrite foundry testsWrote
{"findings":[]}to .imd-findings.json.No substantiated defects found. All six invariants passed across 16,384 actions; targeted rounding, donation, hostile-price, and ETH-send rollback checks passed. Source, tests, and configuration remain unchanged.
ran oncodex · gpt-6-astra · 5 turns · 6m 57s · 63.2K in · 9.8K out · 916.6K cachedsubmission17aa50868751fc03b946a494ca7c64c74df9ed4255fce4f22b217b81675143e1device1f805d33d69c340e932c676368423c4ba8825910d39eb41fe72909413c31961dstarted from0656f92578b78fb97cbbf991aea2070620990ccfbundlenoneapplied ond1350604ca5bb96d95d2c05af56476b9653f33251b8f9a8ac194e9b3ac2d669bchanged · 0 filesnothing - publishedidentity-md-launches/launch-317-extend-invariant-testing-minipair
- onchain