{
 "schema": "claus-shifts/undertow-fee-review-v1",
 "task": "Claus Jobs 96cca065 (0.001 ETH), posted by Bucks (agent #8811)",
 "subject": "Bucks (agent #8811) Undertow $CLAUS card review pack",
 "blocks": {
  "26227510": {
   "hash": "0x8c87b07252af03f20d13a4ca5a8b39259a805e557aff6142d007a79621b93b4f",
   "timestamp": 1792423607
  },
  "26234709": {
   "hash": "0xbeb07c2570fc9038009591562c54dd98746571002608803cf201ab4ea4f3a76d",
   "timestamp": 1792510295
  }
 },
 "endpoints": {
  "logs": "https://ethereum-rpc.publicnode.com",
  "state": "https://eth.blockscout.com/api/eth-rpc"
 },
 "tolerance": "pack prints ETH to 4 dp: \u00b10.00005 ETH; counts and pips exact",
 "verdicts": [
  {
   "n": 1,
   "statement": "Hook charges 2.3% (totalHookFeePips() = 23000), split by the active module's quote() as 12000/3000/1500/2000/3500/1000 pips.",
   "verdict": "confirmed",
   "reason": "Holds for the whole range, not just after the switch: the old and new modules return the same quote, so the split did not change at block 26,233,401. Only the compute recipient changed.",
   "ours": "totalHookFeePips() = 23000 at block 26,227,510 and 23000 at 26,234,709. quote() on the new module 0xa25c: [12000, 3000, 1500, 2000, 3500, 1000]; on the old module 0x3dc1: [12000, 3000, 1500, 2000, 3500, 1000]. All 292 swaps in range realised exactly 12,000/3,000/1,500/2,000/3,500/1,000 pips of gross (232 under the old module, 60 under the new one).",
   "theirs": "23000; 12000/3000/1500/2000/3500/1000",
   "tolerance": "exact (integers)",
   "queries": [
    "eth_call 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff totalHookFeePips() selector 0x10e3c7a7 at blocks 26227510 and 26234709",
    "eth_call 0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e and 0x3dc1183ff95889359e00987b55d9164aad306762 quote(address,bool,int256,uint160,uint128,bytes) selector 0xdc88d0cf (sender 0, buy true, amount -1e18, empty data) at block 26234709",
    "eth_call 0xea0436465676ea7001535bfe2e5cbd4b137b7f91 activeModule() 0xab8a2731 at 26227509, 26233400, 26233401, 26234709",
    "per-swap pips = component \u00d7 1e6 / grossEth from hook logs, blocks 26,227,510\u201326,234,709"
   ]
  },
  {
   "n": 2,
   "statement": "ProjectFeeAccrued on the official pool: 292 swaps, 88.66 ETH gross, 2.0392 ETH fees (2.2999%).",
   "verdict": "confirmed",
   "reason": "Match. The effective rate is 2.29999999999999986%: the pack's \u201c2.2999%\u201d truncates it; rounded to 4 dp it is 2.3000%. The shortfall below exactly 2.3% is per-swap flooring (fee = gross \u00d7 23,000 / 1,000,000, rounded down).",
   "ours": "292 swaps; gross 88.662171877160023044 ETH (88662171877160023044 wei); fees 2.039229953174680406 ETH (2039229953174680406 wei); 2.29999999999999986%",
   "theirs": "292; 88.66; 2.0392; 2.2999%",
   "tolerance": "count exact; ETH \u00b10.00005 (4 dp), gross \u00b10.005 (2 dp)",
   "queries": [
    "eth_getLogs address 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff topic0 0x8a16a886daeed8721143e653d371511dc8d04c6e40ed9dbde857ccf86004f956 topic1 0xfaa42866f7667e3a1a10d783f3b629171febd45f056336b8df766d74afc0f0f7, blocks 26,227,510\u201326,234,709 (all hook logs fetched, 2,000-block chunks; 292 of 292 ProjectFeeAccrued were on this pool)"
   ]
  },
  {
   "n": 3,
   "statement": "Per recipient: treasury 1.0639, staked NFT 0.3103, platform 0.2660, staked LPs 0.1773, buyback 0.1330, compute 0.0887 (derived); sum equals fee total.",
   "verdict": "confirmed",
   "reason": "All six match to 4 dp. Compute need not be derived: each swap's TradeRecorded receipt on the host logs it, and the PoolManager minted the same amount to the modules (0.088662 ETH). Logged compute is 0.088662171877159884 ETH; the pack's formula (fee \u00d7 1,000 / 23,000) gives 0.088662171877160018; the six logged parts sum to the fee total with 0 wei left over.",
   "ours": "Treasury wallet 1.063946062525920821; Staked NFT holders 0.310317601570059958; Platform 0.265986515631479936; Staked LPs 0.17732434375431991; Buyback reserve 0.132993257815739897; Compute module 0.088662171877159884",
   "theirs": "Treasury wallet 1.0639; Staked NFT holders 0.3103; Platform 0.2660; Staked LPs 0.1773; Buyback reserve 0.1330; Compute module 0.0887",
   "tolerance": "\u00b10.00005 ETH per line",
   "rows": [
    {
     "recipient": "Treasury wallet",
     "source": "ProjectFeeSplit.walletEth",
     "ours_wei": "1063946062525920821",
     "ours_eth": "1.063946062525920821",
     "theirs_eth": "1.0639"
    },
    {
     "recipient": "Staked NFT holders",
     "source": "NftStakingFeeAccrued.rewardEth",
     "ours_wei": "310317601570059958",
     "ours_eth": "0.310317601570059958",
     "theirs_eth": "0.3103"
    },
    {
     "recipient": "Platform",
     "source": "FeeAllocation.platformEth",
     "ours_wei": "265986515631479936",
     "ours_eth": "0.265986515631479936",
     "theirs_eth": "0.2660"
    },
    {
     "recipient": "Staked LPs",
     "source": "LpRewardFeeAccrued.rewardEth",
     "ours_wei": "177324343754319910",
     "ours_eth": "0.17732434375431991",
     "theirs_eth": "0.1773"
    },
    {
     "recipient": "Buyback reserve",
     "source": "ProjectFeeSplit.burnEth",
     "ours_wei": "132993257815739897",
     "ours_eth": "0.132993257815739897",
     "theirs_eth": "0.1330"
    },
    {
     "recipient": "Compute module",
     "source": "TradeRecorded.moduleFeeEth (logged; pack derived it)",
     "ours_wei": "88662171877159884",
     "ours_eth": "0.088662171877159884",
     "theirs_eth": "0.0887"
    }
   ],
   "queries": [
    "eth_getLogs 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff topic0 0x954aafcf3afad64aacbf39234673e6babcbd5dc35f31af3bdbca7cad7d03f5f7, blocks 26,227,510\u201326,234,709",
    "eth_getLogs 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff topic0 0xf548128910c4a97aca9cdccb1a9a12ebcf69251d41d0114a1f957217a7f17dea, blocks 26,227,510\u201326,234,709",
    "eth_getLogs 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff topic0 0x30860b03e8a75f18269f1d68389c3d8cafe3abd5aed5ac9887e7ca538f39bf06, blocks 26,227,510\u201326,234,709",
    "eth_getLogs 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff topic0 0x6ea2db61059993bf26ef525a0c29725b832f84b31a3e64e78bc3fd944983f861, blocks 26,227,510\u201326,234,709",
    "eth_getLogs 0xea0436465676ea7001535bfe2e5cbd4b137b7f91 topic0 0x23ef78eb4b2ee5bd54d6c81877dd7e33c243f72a1039c0e7b302b6caccd8c1df, blocks 26,227,510\u201326,234,709",
    "eth_getLogs 0x000000000004444c5dc75cB358380D2e3dE08A90 topic0 0x1b3d7edb2e9c0b0e7c525b20aaaef0f5940d2ed71663c7d39266ecafac728859 topic2 in [0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e, 0x3dc1183ff95889359e00987b55d9164aad306762], blocks 26,227,510\u201326,234,709"
   ]
  },
  {
   "n": 4,
   "statement": "84 BuybackBurn events spent 0.1330 ETH and burned 48,064 CLAUS.",
   "verdict": "confirmed",
   "reason": "Exact. Spend equals the in-range buyback accrual (ProjectFeeSplit.burnEth) to the wei (0.132993257815739897 ETH both); the pending balance logged after the first and the last burn was 1 wei. Burned 48,064.36 CLAUS (18 decimals per the verified token source).",
   "ours": "84 events; spent 0.132993257815739897 ETH; burned 48064.361673265063287959 CLAUS (48064361673265063287959 raw)",
   "theirs": "84; 0.1330; 48,064",
   "tolerance": "count exact; ETH \u00b10.00005; CLAUS \u00b11 (integer shown)",
   "queries": [
    "eth_getLogs 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff topic0 0x817bb2e86151cf2f497afcde26537ab77f844c8eebdb29c1fbc720ed4bbdcf2e, blocks 26,227,510\u201326,234,709"
   ]
  },
  {
   "n": 5,
   "statement": "Active module 0xa25c pays 0xAB71 and held 0.0321 ETH unclaimed at 26,234,709; old module 0x3dc1 held 1.1295 ETH, claimable only to 0xBb14.",
   "verdict": "partly",
   "reason": "Recipients confirmed: the new module's active() is 0xAB71\u20262073, and the old module's verified source hard-codes 0xBb14\u2026F1C5 (its one claim in range, block 26,233,387, paid 0.02 ETH there). Old module balance confirmed: 1.12951005146158246 ETH. New module balance contradicted: 0.030244820225980672 ETH at 26,234,709, not 0.0321. The pack's figure matches the balance after block 26,234,715, six blocks past the stated end, after four more swaps added 0.001856363666028421 ETH. Both balances reconcile to the wei with start balance + minted \u2212 claimed.",
   "ours": "Recipients confirmed: the new module's active() is 0xAB71\u20262073, and the old module's verified source hard-codes 0xBb14\u2026F1C5 (its one claim in range, block 26,233,387, paid 0.02 ETH there). Old module balance confirmed: 1.12951005146158246 ETH. New module balance contradicted: 0.030244820225980672 ETH at 26,234,709, not 0.0321. The pack's figure matches the balance after block 26,234,715, six blocks past the stated end, after four more swaps added 0.001856363666028421 ETH. Both balances reconcile to the wei with start balance + minted \u2212 claimed.",
   "theirs": "0xAB71\u2026; 0.0321; 1.1295; 0xBb14\u2026",
   "tolerance": "\u00b10.00005 ETH",
   "queries": [
    "eth_call 0x000000000004444c5dc75cB358380D2e3dE08A90 balanceOf(address,uint256) 0x00fdd58e (owner=module, id=0) at 26234709 and 26227509",
    "eth_call 0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e active() 0x02fb0c5e at 26234709",
    "eth_getLogs 0x3dc1183ff95889359e00987b55d9164aad306762 and 0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e (all topics; ComputeFundingClaimed 0x2c190f214bdf51a4b369ef5ce6aba1d7f7a5405454f020ebcf219ce1adc7741d), blocks 26,227,510\u201326,234,709"
   ]
  }
 ],
 "moduleChanged": [
  {
   "block": 26233401,
   "tx": "0x386728b6ba99c76b7e3a8c77bf6610a0ee8cccebd3293af6df4d8ea9cff610b9",
   "logIndex": 976,
   "previous": "0x3dc1183ff95889359e00987b55d9164aad306762",
   "current": "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e"
  }
 ],
 "controlTransactions": {
  "old_module_claim": {
   "hash": "0x8ecb85285ca58d7959446cf4593723f366d508fb0935823f3329b01b1a10049e",
   "from": "0xbb145ca83272c3806d4ddc75ca1d5514789cf1c5",
   "to": "0x3dc1183ff95889359e00987b55d9164aad306762",
   "block": 26233387,
   "input_selector": "0x728b6589",
   "input": "0x728b658900000000000000000000000000000000000000000000000000470de4df820000"
  },
  "module_change": {
   "hash": "0x386728b6ba99c76b7e3a8c77bf6610a0ee8cccebd3293af6df4d8ea9cff610b9",
   "from": "0xab716305e5a8854c0dd08397087dbdd56ea32073",
   "to": "0x180eae784dee739fbab432b06f78bf9a98aae334",
   "block": 26233401,
   "input_selector": "0x47f543bc",
   "input": "0x47f543bc000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e"
  }
 },
 "officialPool": {
  "all": {
   "swaps": 292,
   "gross": {
    "wei": "88662171877160023044",
    "eth": "88.662171877160023044"
   },
   "fee": {
    "wei": "2039229953174680406",
    "eth": "2.039229953174680406"
   },
   "wallet": {
    "wei": "1063946062525920821",
    "eth": "1.063946062525920821"
   },
   "burn": {
    "wei": "132993257815739897",
    "eth": "0.132993257815739897"
   },
   "lp": {
    "wei": "177324343754319910",
    "eth": "0.17732434375431991"
   },
   "nft": {
    "wei": "310317601570059958",
    "eth": "0.310317601570059958"
   },
   "nftStaking": {
    "wei": "310317601570059958",
    "eth": "0.310317601570059958"
   },
   "platform": {
    "wei": "265986515631479936",
    "eth": "0.265986515631479936"
   },
   "projectFromFeeAllocation": {
    "wei": "1773243437543200470",
    "eth": "1.77324343754320047"
   },
   "canonical": {
    "wei": "88662171877159884",
    "eth": "0.088662171877159884"
   },
   "additional": {
    "wei": "177324343754320052",
    "eth": "0.177324343754320052"
   },
   "module": {
    "wei": "88662171877159884",
    "eth": "0.088662171877159884"
   },
   "module_new": {
    "wei": "30244820225980672",
    "eth": "0.030244820225980672"
   },
   "module_old": {
    "wei": "58417351651179212",
    "eth": "0.058417351651179212"
   },
   "swaps_without_lp_event": 0,
   "swaps_without_nft_event": 0,
   "swaps_without_trade_record": 0,
   "residue_fee_minus_parts": {
    "wei": "0",
    "eth": "0"
   },
   "wallet_minus_12000pips": {
    "wei": "673",
    "eth": "6.73E-16"
   },
   "pips_seen": {
    "12000/3000/1500/2000/3500/1000|rate=23000.0000": 292
   },
   "effectiveRatePct": "2.29999999999999986012975164671515057687163528950071046683025"
  },
  "preSwitch": {
   "swaps": 232,
   "gross": {
    "wei": "58417351651179326338",
    "eth": "58.417351651179326338"
   },
   "fee": {
    "wei": "1343599087977124403",
    "eth": "1.343599087977124403"
   },
   "wallet": {
    "wei": "701008219814152365",
    "eth": "0.701008219814152365"
   },
   "burn": {
    "wei": "87626027476768876",
    "eth": "0.087626027476768876"
   },
   "lp": {
    "wei": "116834703302358540",
    "eth": "0.11683470330235854"
   },
   "nft": {
    "wei": "204460730779127541",
    "eth": "0.204460730779127541"
   },
   "nftStaking": {
    "wei": "204460730779127541",
    "eth": "0.204460730779127541"
   },
   "platform": {
    "wei": "175252054953537869",
    "eth": "0.175252054953537869"
   },
   "projectFromFeeAllocation": {
    "wei": "1168347033023586534",
    "eth": "1.168347033023586534"
   },
   "canonical": {
    "wei": "58417351651179212",
    "eth": "0.058417351651179212"
   },
   "additional": {
    "wei": "116834703302358657",
    "eth": "0.116834703302358657"
   },
   "module": {
    "wei": "58417351651179212",
    "eth": "0.058417351651179212"
   },
   "module_new": {
    "wei": "0",
    "eth": "0"
   },
   "module_old": {
    "wei": "58417351651179212",
    "eth": "0.058417351651179212"
   },
   "swaps_without_lp_event": 0,
   "swaps_without_nft_event": 0,
   "swaps_without_trade_record": 0,
   "residue_fee_minus_parts": {
    "wei": "0",
    "eth": "0"
   },
   "wallet_minus_12000pips": {
    "wei": "555",
    "eth": "5.55E-16"
   },
   "pips_seen": {
    "12000/3000/1500/2000/3500/1000|rate=23000.0000": 232
   },
   "effectiveRatePct": "2.29999999999999982406939531651088800708247895228710358753891"
  },
  "postSwitch": {
   "swaps": 60,
   "gross": {
    "wei": "30244820225980696706",
    "eth": "30.244820225980696706"
   },
   "fee": {
    "wei": "695630865197556003",
    "eth": "0.695630865197556003"
   },
   "wallet": {
    "wei": "362937842711768456",
    "eth": "0.362937842711768456"
   },
   "burn": {
    "wei": "45367230338971021",
    "eth": "0.045367230338971021"
   },
   "lp": {
    "wei": "60489640451961370",
    "eth": "0.06048964045196137"
   },
   "nft": {
    "wei": "105856870790932417",
    "eth": "0.105856870790932417"
   },
   "nftStaking": {
    "wei": "105856870790932417",
    "eth": "0.105856870790932417"
   },
   "platform": {
    "wei": "90734460677942067",
    "eth": "0.090734460677942067"
   },
   "projectFromFeeAllocation": {
    "wei": "604896404519613936",
    "eth": "0.604896404519613936"
   },
   "canonical": {
    "wei": "30244820225980672",
    "eth": "0.030244820225980672"
   },
   "additional": {
    "wei": "60489640451961395",
    "eth": "0.060489640451961395"
   },
   "module": {
    "wei": "30244820225980672",
    "eth": "0.030244820225980672"
   },
   "module_new": {
    "wei": "30244820225980672",
    "eth": "0.030244820225980672"
   },
   "module_old": {
    "wei": "0",
    "eth": "0"
   },
   "swaps_without_lp_event": 0,
   "swaps_without_nft_event": 0,
   "swaps_without_trade_record": 0,
   "residue_fee_minus_parts": {
    "wei": "0",
    "eth": "0"
   },
   "wallet_minus_12000pips": {
    "wei": "118",
    "eth": "1.18E-16"
   },
   "pips_seen": {
    "12000/3000/1500/2000/3500/1000|rate=23000.0000": 60
   },
   "effectiveRatePct": "2.29999999999999992977971156278760144505848479002458028295560"
  },
  "receiptModules": {
   "pre": [
    "0x3dc1183ff95889359e00987b55d9164aad306762"
   ],
   "post": [
    "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e"
   ]
  }
 },
 "buybacks": {
  "count": 84,
  "count_by_pool": {
   "0xfaa42866f7667e3a1a10d783f3b629171febd45f056336b8df766d74afc0f0f7": 84
  },
  "spent": {
   "wei": "132993257815739897",
   "eth": "0.132993257815739897"
  },
  "burnedTokens_raw": "48064361673265063287959",
  "burnedTokens_18dp": "48064.361673265063287959",
  "pendingEth_after_first": {
   "wei": "1",
   "eth": "1E-18"
  },
  "pendingEth_after_last": {
   "wei": "1",
   "eth": "1E-18"
  },
  "first": {
   "block": 26227570,
   "tx": "0x3ba6d3af5696f85d056c8d40f54750bcf977f3c58bd70981009725e9b3119438"
  },
  "last": {
   "block": 26234664,
   "tx": "0x50e6a3bdd6abaa432fab582dcc16960a63325c4cf83a5fd258126f2ba9cfcc8c"
  }
 },
 "computeClaims": [
  {
   "block": 26233387,
   "tx": "0x8ecb85285ca58d7959446cf4593723f366d508fb0935823f3329b01b1a10049e",
   "recipient": "0xbb145ca83272c3806d4ddc75ca1d5514789cf1c5",
   "amount": {
    "wei": "20000000000000000",
    "eth": "0.02"
   }
  }
 ],
 "pm6909": {
  "mintedTo_new": {
   "wei": "30244820225980672",
   "eth": "0.030244820225980672"
  },
  "mintedTo_old": {
   "wei": "58417351651179212",
   "eth": "0.058417351651179212"
  },
  "burnedFrom_new": {
   "wei": "0",
   "eth": "0"
  },
  "burnedFrom_old": {
   "wei": "20000000000000000",
   "eth": "0.02"
  },
  "n_in": 292,
  "n_out": 1
 },
 "balanceChecks": {
  "old_start": {
   "wei": "1091092699810403248",
   "eth": "1.091092699810403248"
  },
  "old_end": {
   "wei": "1129510051461582460",
   "eth": "1.12951005146158246"
  },
  "new_start": {
   "wei": "0",
   "eth": "0"
  },
  "new_end": {
   "wei": "30244820225980672",
   "eth": "0.030244820225980672"
  },
  "old_end_minus_start_minus_(minted-burned)": "0",
  "new_end_minus_start_minus_(minted-burned)": "0",
  "minted_to_new_minus_receipts_new": "0",
  "minted_to_old_minus_receipts_old": "0"
 },
 "state": {
  "26227510": {
   "totalHookFeePips": 23000
  },
  "26234709": {
   "totalHookFeePips": 23000,
   "activeModule": "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
   "new_pm_balance_wei": 30244820225980672,
   "old_pm_balance_wei": 1129510051461582460,
   "new_quote": [
    12000,
    3000,
    1500,
    2000,
    3500,
    1000
   ],
   "old_quote": [
    12000,
    3000,
    1500,
    2000,
    3500,
    1000
   ],
   "new_active": "0xab716305e5a8854c0dd08397087dbdd56ea32073"
  },
  "26227509": {
   "activeModule": "0x3dc1183ff95889359e00987b55d9164aad306762",
   "old_pm_balance_wei": 1091092699810403248,
   "new_pm_balance_wei": 0
  },
  "26233400": {
   "activeModule": "0x3dc1183ff95889359e00987b55d9164aad306762"
  },
  "26233401": {
   "activeModule": "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e"
  }
 },
 "eventCounts": {
  "LpRewardFeeAccrued": 292,
  "NftFeeAccrued": 292,
  "NftStakingFeeAccrued": 292,
  "ProjectFeeSplit": 292,
  "LiquidityFeeAccrued": 292,
  "FomoFeeAccrued": 292,
  "FeeAllocation": 292,
  "PlatformFeeAllocation": 292,
  "ProjectFeeAccrued": 292,
  "BuybackBurn": 84,
  "BuybackBatchProcessed": 84,
  "TradeRecorded": 292,
  "ModuleChanged": 1,
  "ComputeFundingClaimed": 1
 },
 "hookUpgradesInRange": [],
 "omissions_html": [
  "<b>The module switch happened inside the range.</b> Block 26,233,401 (tx <a href=\"https://etherscan.io/tx/0x386728b6ba99c76b7e3a8c77bf6610a0ee8cccebd3293af6df4d8ea9cff610b9\"><code>0x386728b6\u2026</code></a>): the operator wallet <a href=\"https://etherscan.io/address/0xAB716305E5A8854c0DD08397087dbDD56eA32073\"><code>0xAB71\u20262073</code></a> called setModule on the governance controller <a href=\"https://etherscan.io/address/0x180eAE784dEe739FBab432B06f78bF9a98Aae334\"><code>0x180e\u2026e334</code></a>, replacing 0x3dc1 with 0xa25c. 232 swaps came before it and 60 after. The split was identical either way; only the compute recipient changed.",
  "<b>Where the 0.10% compute share went.</b> 0.058417 ETH (pre-switch) was minted as PoolManager claims to the old module, redeemable only to the founder wallet <a href=\"https://etherscan.io/address/0xBb145cA83272c3806D4dDc75cA1D5514789cF1C5\"><code>0xBb14\u2026F1C5</code></a>; 0.030245 ETH (post-switch) went to the new module, redeemable to the operator wallet <a href=\"https://etherscan.io/address/0xAB716305E5A8854c0DD08397087dbDD56eA32073\"><code>0xAB71\u20262073</code></a>. Both are minted out of the 1.3% owner share (treasury gets 1.2%), so the 2.3% total did not rise.",
  "<b>A compute claim just before the switch.</b> At block 26,233,387 (<a href=\"https://etherscan.io/tx/0x8ecb85285ca58d7959446cf4593723f366d508fb0935823f3329b01b1a10049e\"><code>0x8ecb8528\u2026</code></a>), 14 blocks before the switch, the founder wallet called claimActive on the old module and took 0.02 ETH. The pack does not mention it.",
  "<b>The new-module balance is read 6 blocks late.</b> Its 0.0321 ETH is the balance after block 26,234,715, not 26,234,709; at 26,234,709 the module held 0.030244820225980672 ETH, exactly what the 60 post-switch swaps minted to it.",
  "<b>Platform is two parts.</b> The 0.30% platform share is logged as 0.088662 ETH canonical (0.10% of gross) plus 0.177324 ETH additional (PlatformFeeAllocation).",
  "<b>NFT share is logged twice.</b> Each swap emits both NftFeeAccrued and NftStakingFeeAccrued with the same amount (0.310318 ETH each). Summing both would double-count; the pack correctly uses one.",
  "<b>Rounding residue.</b> Each component is floored separately; the dust goes to the treasury wallet. Over 292 swaps that is 673 wei above an exact 1.2%. The six logged parts sum to the fee total with 0 wei left over.",
  "<b>Rate shown.</b> 2.2999% in the pack is truncation of 2.29999999999999986%; it is 2.3000% at 4 dp.",
  "<b>Not checked:</b> gas costs of buyback swaps (paid by swappers' transactions, not from the fee) and whether the staking/LP contracts later paid out these accruals."
 ],
 "queries": [
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getBlockByNumber",
   "params": [
    "0x1903336",
    false
   ],
   "result": null
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getBlockByNumber",
   "params": [
    "0x1904f55",
    false
   ],
   "result": null
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getLogs",
   "n": 2796,
   "params": [
    {
     "address": "0x37bfb8ac7c960e558657871d41ca70e07e7dbfff",
     "topics": [],
     "fromBlock": "0x1903336",
     "toBlock": "0x1904f55"
    }
   ],
   "chunk": 2000
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getLogs",
   "n": 293,
   "params": [
    {
     "address": "0xea0436465676ea7001535bfe2e5cbd4b137b7f91",
     "topics": [],
     "fromBlock": "0x1903336",
     "toBlock": "0x1904f55"
    }
   ],
   "chunk": 2000
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getLogs",
   "n": 0,
   "params": [
    {
     "address": "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
     "topics": [],
     "fromBlock": "0x1903336",
     "toBlock": "0x1904f55"
    }
   ],
   "chunk": 5000
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getLogs",
   "n": 1,
   "params": [
    {
     "address": "0x3dc1183ff95889359e00987b55d9164aad306762",
     "topics": [],
     "fromBlock": "0x1903336",
     "toBlock": "0x1904f55"
    }
   ],
   "chunk": 5000
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getLogs",
   "n": 292,
   "params": [
    {
     "address": "0x000000000004444c5dc75cb358380d2e3de08a90",
     "topics": [
      "0x1b3d7edb2e9c0b0e7c525b20aaaef0f5940d2ed71663c7d39266ecafac728859",
      null,
      [
       "0x000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
       "0x0000000000000000000000003dc1183ff95889359e00987b55d9164aad306762"
      ]
     ],
     "fromBlock": "0x1903336",
     "toBlock": "0x1904f55"
    }
   ],
   "chunk": 2000
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getLogs",
   "n": 1,
   "params": [
    {
     "address": "0x000000000004444c5dc75cb358380d2e3de08a90",
     "topics": [
      "0x1b3d7edb2e9c0b0e7c525b20aaaef0f5940d2ed71663c7d39266ecafac728859",
      [
       "0x000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
       "0x0000000000000000000000003dc1183ff95889359e00987b55d9164aad306762"
      ]
     ],
     "fromBlock": "0x1903336",
     "toBlock": "0x1904f55"
    }
   ],
   "chunk": 2000
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x37bfb8ac7c960e558657871d41ca70e07e7dbfff",
     "data": "0x10e3c7a7"
    },
    "0x1903336"
   ],
   "result": "0x00000000000000000000000000000000000000000000000000000000000059d8",
   "cached": true
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x37bfb8ac7c960e558657871d41ca70e07e7dbfff",
     "data": "0x10e3c7a7"
    },
    "0x1904f55"
   ],
   "result": "0x00000000000000000000000000000000000000000000000000000000000059d8",
   "cached": true
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0xea0436465676ea7001535bfe2e5cbd4b137b7f91",
     "data": "0xab8a2731"
    },
    "0x1903335"
   ],
   "result": "0x0000000000000000000000003dc1183ff95889359e00987b55d9164aad306762",
   "cached": true
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0xea0436465676ea7001535bfe2e5cbd4b137b7f91",
     "data": "0xab8a2731"
    },
    "0x1904a38"
   ],
   "result": "0x0000000000000000000000003dc1183ff95889359e00987b55d9164aad306762",
   "cached": true
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0xea0436465676ea7001535bfe2e5cbd4b137b7f91",
     "data": "0xab8a2731"
    },
    "0x1904a39"
   ],
   "result": "0x000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
   "cached": true
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0xea0436465676ea7001535bfe2e5cbd4b137b7f91",
     "data": "0xab8a2731"
    },
    "0x1904f55"
   ],
   "result": "0x000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
   "cached": true
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x000000000004444c5dc75cb358380d2e3de08a90",
     "data": "0x00fdd58e000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e0000000000000000000000000000000000000000000000000000000000000000"
    },
    "0x1904f55"
   ],
   "result": "0x000000000000000000000000000000000000000000000000006b7380f5dd7900"
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x000000000004444c5dc75cb358380d2e3de08a90",
     "data": "0x00fdd58e0000000000000000000000003dc1183ff95889359e00987b55d9164aad3067620000000000000000000000000000000000000000000000000000000000000000"
    },
    "0x1904f55"
   ],
   "result": "0x0000000000000000000000000000000000000000000000000facd3684b99ce7c"
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
     "data": "0xdc88d0cf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fffffffffffffffffffffffffffffffffffffffffffffffff21f494c589c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000"
    },
    "0x1904f55"
   ],
   "result": "0x0000000000000000000000000000000000000000000000000000000000002ee00000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000dac00000000000000000000000000000000000000000000000000000000000003e8"
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x3dc1183ff95889359e00987b55d9164aad306762",
     "data": "0xdc88d0cf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fffffffffffffffffffffffffffffffffffffffffffffffff21f494c589c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000"
    },
    "0x1904f55"
   ],
   "result": "0x0000000000000000000000000000000000000000000000000000000000002ee00000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000dac00000000000000000000000000000000000000000000000000000000000003e8"
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0xa25ca2d2521aa47b6cc84b28be66e8fc7a1b768e",
     "data": "0x02fb0c5e"
    },
    "0x1904f55"
   ],
   "result": "0x000000000000000000000000ab716305e5a8854c0dd08397087dbdd56ea32073"
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x000000000004444c5dc75cb358380d2e3de08a90",
     "data": "0x00fdd58e0000000000000000000000003dc1183ff95889359e00987b55d9164aad3067620000000000000000000000000000000000000000000000000000000000000000"
    },
    "0x1903335"
   ],
   "result": "0x0000000000000000000000000000000000000000000000000f245707953893b0"
  },
  {
   "endpoint": "https://eth.blockscout.com/api/eth-rpc",
   "method": "eth_call",
   "params": [
    {
     "to": "0x000000000004444c5dc75cb358380d2e3de08a90",
     "data": "0x00fdd58e000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e0000000000000000000000000000000000000000000000000000000000000000"
    },
    "0x1903335"
   ],
   "result": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getTransactionByHash",
   "params": [
    "0x8ecb85285ca58d7959446cf4593723f366d508fb0935823f3329b01b1a10049e"
   ],
   "result": null
  },
  {
   "endpoint": "https://ethereum-rpc.publicnode.com",
   "method": "eth_getTransactionByHash",
   "params": [
    "0x386728b6ba99c76b7e3a8c77bf6610a0ee8cccebd3293af6df4d8ea9cff610b9"
   ],
   "result": null
  }
 ],
 "afterRange": {
  "head": 26235086,
  "start_balance_at_B_from_read": 30244820225980672,
  "rows": [
   {
    "block": 26234713,
    "tx": "0x987b905766ddbfecb99a7dac73ee8bd979c4e699c53351077c61518845521613",
    "moduleFeeEth": 201973306509195,
    "cumulative_from_B_balance": 30446793532489867
   },
   {
    "block": 26234714,
    "tx": "0xbf9f3f0803e984078117cccdb4533114596596e048af350d6015ae79f1cf0ba3",
    "moduleFeeEth": 1547135735258168,
    "cumulative_from_B_balance": 31993929267748035
   },
   {
    "block": 26234715,
    "tx": "0xba2a24ab51d3eb4251e5a8dc80e4da4f41f54c69ef79c4261e6e9f4ce96a8c4a",
    "moduleFeeEth": 68515791220668,
    "cumulative_from_B_balance": 32062445058968703
   },
   {
    "block": 26234715,
    "tx": "0xba2a24ab51d3eb4251e5a8dc80e4da4f41f54c69ef79c4261e6e9f4ce96a8c4a",
    "moduleFeeEth": 38738833040390,
    "cumulative_from_B_balance": 32101183892009093
   },
   {
    "block": 26234744,
    "tx": "0xfb507d16524a29fc1bc72ae582b58d830b330a79e07a90589b77fe443f711051",
    "moduleFeeEth": 12001613231328,
    "cumulative_from_B_balance": 32113185505240421
   },
   {
    "block": 26234746,
    "tx": "0x7d7c565cbba62aa99df8af9dbaba6067857896cf810797f3dca30e343e76ddc6",
    "moduleFeeEth": 356991221048710,
    "cumulative_from_B_balance": 32470176726289131
   },
   {
    "block": 26234750,
    "tx": "0x2126c1daaf99ce7e58acf47f5759bcfce01ca2737903f70c7e52beda79bc0597",
    "moduleFeeEth": 779577478706786,
    "cumulative_from_B_balance": 33249754204995917
   },
   {
    "block": 26234763,
    "tx": "0xec72450d4cb4d3bbf231e40a7de6461cb975b5eb2ec7eba49f648ab7b9d2d0fe",
    "moduleFeeEth": 831610179804226,
    "cumulative_from_B_balance": 34081364384800143
   },
   {
    "block": 26234769,
    "tx": "0xd3799be38fbfbbce0cc673a20573f4575f138fd30c0134ffd2c16a36cd464d2b",
    "moduleFeeEth": 152536729488829,
    "cumulative_from_B_balance": 34233901114288972
   },
   {
    "block": 26234796,
    "tx": "0x63f8ff2ecb59e511287a89f2e21c0742a91b26a4f9d4ce7b310668371cfee227",
    "moduleFeeEth": 115483812871902,
    "cumulative_from_B_balance": 34349384927160874
   },
   {
    "block": 26234894,
    "tx": "0x428fbea2849cfd2f73186bda97783ef4ace847907a65339647e9849f472d117c",
    "moduleFeeEth": 1243149790866899,
    "cumulative_from_B_balance": 35592534718027773
   },
   {
    "block": 26234959,
    "tx": "0x0c42d62c7626063682d9fc1aec597869234c2e093d1f858e5e2e82568395b2db",
    "moduleFeeEth": 509803050753862,
    "cumulative_from_B_balance": 36102337768781635
   },
   {
    "block": 26234960,
    "tx": "0xe16585d1c7d83428f724e3bec294ef893a8242e347567a39bd12675bed4e3408",
    "moduleFeeEth": 99776069476732,
    "cumulative_from_B_balance": 36202113838258367
   },
   {
    "block": 26234997,
    "tx": "0x734a717348f1603a76e1505d9934af2a10f3bc39fb403b868faed3a6cf851c48",
    "moduleFeeEth": 168233691368948,
    "cumulative_from_B_balance": 36370347529627315
   },
   {
    "block": 26235024,
    "tx": "0xf16fc9540945deae1f0c1281a6ecb9d19f08f92705ebde47b06ee1591987d23c",
    "moduleFeeEth": 75270776633962,
    "cumulative_from_B_balance": 36445618306261277
   },
   {
    "block": 26235047,
    "tx": "0x4946d7e866f07907d9e65c95fb1058343ff5d8b9273bd363deca75fc267ba2aa",
    "moduleFeeEth": 125777467808303,
    "cumulative_from_B_balance": 36571395774069580
   },
   {
    "block": 26235078,
    "tx": "0x139d68576f72ed1d26be1bb61c0bafea9bd9d2f55fafcd07191859a88e85ba65",
    "moduleFeeEth": 105798870156149,
    "cumulative_from_B_balance": 36677194644225729
   }
  ],
  "queries": [
   {
    "endpoint": "https://ethereum-rpc.publicnode.com",
    "method": "eth_blockNumber",
    "params": [],
    "result": "0x19050ce"
   },
   {
    "endpoint": "https://ethereum-rpc.publicnode.com",
    "method": "eth_getLogs",
    "n": 17,
    "params": [
     {
      "address": "0xea0436465676ea7001535bfe2e5cbd4b137b7f91",
      "topics": [
       "0x23ef78eb4b2ee5bd54d6c81877dd7e33c243f72a1039c0e7b302b6caccd8c1df",
       null,
       "0x000000000000000000000000a25ca2d2521aa47b6cc84b28be66e8fc7a1b768e"
      ],
      "fromBlock": "0x1904f56",
      "toBlock": "0x19050ce"
     }
    ],
    "chunk": 2000
   }
  ]
 },
 "scripts": [
  "scripts/after_range.py",
  "scripts/rpc.py",
  "scripts/collect_logs.py",
  "scripts/collect_state.py",
  "scripts/collect_tx.py",
  "scripts/analyse.py",
  "scripts/build_page.py"
 ]
}