# Merge 05 — imdUSD v2 day 1 goal audit Commit audited: `ff1c192b3798542997f600091f2dc73ff05e4c40` (all 10 items report this commit). Source: https://github.com/imdusd/imdusd-v2-audit Merged from the item results in `.imd/reads/artifacts/item-*`. This merge ran no new tests: everything below is copied or condensed from those results. Missing items: **none** (all 10 present and non-empty). ## Items | item | verdict | findings | forge / compiler (as the item reports it) | |---|---|---|---| | stock-calendar | findings | 2 | forge Version: 1.9.0 (--use solar, solc 0.8.38) | | morpho-lender | holds | 0 | forge 1.9.0 (Commit SHA 6056c5845d34205a83cf7108042adb137325c9df); --use solar unavailable (solar not installed, no network write to ~/.svm for it in this sandbox); solc 0.8.38 as pinned by foundry.toml was not pre-installed either, so it was downloaded from solidity's GitHub release to a local writable path and used via --use ./.solcbin/solc-0.8.38 (no change to foundry.toml). All runs below used this solc 0.8.38. | | stock-liquidator | findings | 1 | forge Version: 1.8.3 (cae51ad458f6abb64852b7709eb784352429825d); older than 1.9, so no --use solar: compiled with solc 0.8.38 (installed), only test/sl/SLGoal.t.sol via --match-path | | gov-propose-apply | findings | 1 | forge 1.8.5 (older than the brief's 1.9; no --use solar). solc 0.8.38 is not installed (only 0.8.26), so every test RAN on a copy of the audited files at ff1c192 with only `pragma solidity 0.8.38` rewritten to 0.8.26 (via_ir, optimizer 200, cancun, as foundry.toml), in a scratch project compiling only the files under test: src/GovernedByKind.sol, Parameters*.sol, house/Parameters*.sol, hub/MinterHub.sol (+ImdUSD.sol, TransientReentrancyGuard.sol, IMinterHub.sol). External contracts (Ledger, join, feeds, token, vault) are minimal mocks. | | gov-timelock-pending | findings | 2 | forge Version: 1.9.0 (6056c5845d34205a83cf7108042adb137325c9df); every run: forge test --use solar (Solar 0.8.38) --match-path 'test/scratch/*' | | gov-instant-acts | findings | 2 | forge 1.9.0 (6056c58), compiled with solar 0.3.0-dev (0.8.38) via --use /path/to/solar (the bare word 'solar' is read as a solc version by this forge); only test/scratch/* compiled | | gov-live-positions | findings | 7 | 1.10.1 (7c15a1d), --use solar; installed forge was 1.8.3 | | token-authorizations | findings | 1 | forge 1.9.0 (6056c58); `--use solar` unsupported by this build; tests compiled with solc 0.8.28 on a pragma-relaxed copy (0.8.38 not installed) | | x-supply-identity | holds | 0 | forge 1.8.3 (pre-1.9); tests compiled with solc 0.8.30 on a pragma-only port because 0.8.38 is not installed here; --use solar not available in 1.8.3 | | x-deployer-oneshot | holds | 0 | 1.9.0 (--use solar) | Toolchain caveat: gov-propose-apply (solc 0.8.26), token-authorizations (solc 0.8.28) and x-supply-identity (solc 0.8.30) ran their tests on copies where only the `pragma solidity 0.8.38` line was changed. stock-liquidator used forge 1.8.3 with solc 0.8.38, and morpho-lender used solc 0.8.38 without solar. gov-live-positions downloaded forge 1.10.1. The other items used forge 1.9.0 with solar. Each finding below was RAN by its item, so none is marked "unverified". ## Merged verdict: **findings** (0 high, 2 medium, 9 low, 5 info) ### Ranking at deploy config Findings are ordered by severity, then by item order. The "reachable" column quotes each item. | # | id (item) | sev | reachable at deploy | title | |---|---|---|---|---| | 1 | SL-1 (stock-liquidator) | medium | true | Under F7 (two consecutive wrong rounds price any level) the backstop, following its own keeper rule, pays the float far above market; README bounds the F7 loss … | | 2 | GLP-1 (gov-live-positions) | medium | yes: needs one rule-abiding SET_RISK by the Safe (48 h) on a two-leg type; genesis skew is… | A SET_RISK that raises skew, applied by anyone, makes healthy open positions liquidatable in the applying block: skew is read live, makes no risk version and ge… | | 3 | F1 (stock-calendar) | low | no: needs a SET_OFFSETS (Safe, 48 h) whose fromDay is a Tue-Fri at a 5 h -> 4 h step. Mone… | openTime double-counts the overlap when the offset table steps 5 h -> 4 h between two adjacent trading days: openTime(a,b) > b - a | | 4 | GPA-1 (gov-propose-apply) | low | Only on a house deployed without ImdDepth (cfg.depth.enabled false; script/house/DeployCon… | House SET_DEPTH (kind 16) accepts any uint256 at propose; its _apply overflows in depthRule() (depthK x depthIMD) on a house without ImdDepth: accepted at propo… | | 5 | GIA-1 (gov-instant-acts) | low | yes: every type with a live feed. Mitigation available to the Safe: lowerLine(ilk, 0) stil… | Parameters.lowerCap (core and house) reverts OutOfBounds whenever the live low price is above 100x the cap the Safe asks: a Chainlink spike blocks the instant c… | | 6 | GIA-2 (gov-instant-acts) | low | only in the deploy window between the first genesis setter and seal(). The wirer is a one-… | Before seal, the deployer key (wirer) re-opens the Safe's instant lowers with the genesis setters: setGenesisCap (including 0 = no ceiling) and setGenesisExotic… | | 7 | GLP-2 (gov-live-positions) | low | yes on any type with a yieldRate, after one rule-abiding SET_RISK; bounded by 25% of the u… | A yieldFee raise is retroactive on unharvested yield and can make a healthy position liquidatable in the applying block | | 8 | GLP-3 (gov-live-positions) | low | (a) yes after a rule-abiding SET_RISK; (b) only once a target buffer is set (no setGenesis… | The liquidator's only guard (minSeized) binds neither what it receives nor what it pays: a matured cut/chip or SET_TARGET change applied in front passes the gua… | | 9 | GLP-4 (gov-live-positions) | low | yes on 4663 after the first APPROVE proposal; loss bounded by the proposed cap and the len… | MorphoLender APPROVE has no order-independent stop: applied by a stranger in front of the Safe's cancel, the market is listed for life and the allocator can len… | | 10 | GLP-5 (gov-live-positions) | low | needs a wrong offset entry first (a Safe mistake inside its rules) and an apply that slips… | MarketCalendar2 SET_OFFSETS: the same matured proposal gives a different table depending on the UTC day it is applied; an entry it was written to replace become… | | 11 | GLP-6 (gov-live-positions) | low | no: the staged house sets maxLull 0 (script/house/deploy/StageTypes.sol:71) and stages no … | House SET_MAX_LULL lowered: a marked NHI position loses the grace it was given at the mark, in the applying block | | 12 | F2 (stock-calendar) | info | yes, by design. Effect fail-closed: StockOracle.price treats it as Stale (:214) and sync r… | Sheet P3 does not describe the code: openTime returns type(uint256).max for a span over MAX_SPAN (14 days), which exceeds b - a | | 13 | GTP-1 (gov-timelock-pending) | info | true | ImdBridge BATCH: every item is validated against the state before the batch, then the items are applied one by one, so a BATCH that passes propose and the apply… | | 14 | GTP-2 (gov-timelock-pending) | info | true | C3 does not describe the code: a tighten failing a multi-path SET_DELAY is not the only liveness loss of the one-slot contracts. pause(eid) and closeDay(day) dr… | | 15 | GLP-7 (gov-live-positions) | info | yes after a SET_RISK raising rateFloor | Core rateFloor raise does not reach open positions: they keep borrowing new debt below the floor (the core has no `lift`, the house has) | | 16 | TA-1 (token-authorizations) | info | true | A per-id PermitOperator signature is not bound to the transfer epoch: a pre-sale signature revives when the position comes back, unlike an approveOperator grant | ### Deduplication notes - No two items found the same root cause, so nothing was merged. - Related but distinct pairs: - **GIA-2** (genesis setters re-open an instant lower before seal) and **GPA-1(c)** (setGenesisDepthRule accepts an unbounded depth) both involve the deployer's genesis setters, but the defects differ. - **GLP-5** (SET_OFFSETS result depends on the apply day) and **F1/stock-calendar** (openTime double-counts at a 5h→4h offset step) both involve MarketCalendar2 offsets, but the defects differ. - **GLP-4** (MorphoLender APPROVE has no order-independent stop) does not conflict with morpho-lender's "holds". morpho-lender's P4 covers only which markets APPROVE admits, and gov-timelock-pending lists "MorphoLender APPROVE fuzz" as NOT RUN. - **Disagreement:** x-deployer-oneshot C3 = holds: "setGenesisDepthRule (src/house/Parameters.sol:93-103) bounds k<=MAX_DEPTH_K, otherChop<=1e18, otherLines<=uint128.max". gov-propose-apply GPA-1(c) shows that the `depth` argument is *not* bounded, and its test panics risk(depthIlk). Both statements are consistent on k, chop and lines. The unbounded `depth` is GPA-1's finding, so for the depth field this merge counts the claim as refuted. ## Findings ### 1. [medium] SL-1 — Under F7 (two consecutive wrong rounds price any level) the backstop, following its own keeper rule, pays the float far above market; README bounds the F7 loss only at the lender's market cap and row, the float's loss is outside that bound - **Item:** stock-liquidator - **Property:** P1 Our backstop never spends the float above market - **Claim:** C3 - **Files:** `src/morpho/StockLiquidator.sol:18`, `src/morpho/StockLiquidator.sol:20`, `src/morpho/StockLiquidator.sol:86`, `src/stocks/StockOracle.sol:55`, `README.md:814`, `README.md:835` - **Sequence:** 1) Chainlink prints two consecutive wrong-high rounds within JUMP of each other (F7: 'two consecutive rounds within JUMP of each other price ANY level from MIN_ANSWER to MAX_ANSWER'); oracle prices P_w = 3 x market. 2) A… - **Expected:** The float never pays above market (P1, StockLiquidator.sol:21 'so the float never pays above market'); at worst bounded as README:814 states for F7 (lender bad debt bounded by the market's cap and the lender's hub row). - **Actual:** The float paid 18637500000000000002331 for collateral worth 7000000000000000000000 at market: a loss of ~11,637 imdUSD of float, in addition to the lender's F7 bad debt. The maxRepaid/seizedAssets cap (StockLiquidator.so… - **Reachable at deploy:** true - **Fix:** Bound the backstop's price by a second source on-chain: liquidate takes a maxPrice that the contract checks against an independent reference (e.g. a second feed or a stored reference with a deviation band) and refuses wh… - **Test ran:** true - **Result:** forge 1.8.3 (cae51ad, no --use solar in this version), solc 0.8.38 via_ir, `forge test --match-path test/sl/SLGoal.t.sol --offline -vv` on the repo's LenderBase rig (real ImdUSD, MinterHub, MorphoLender, StockLiquidator; MockMorpho with Morpho Blue's liquidation math; MockStockOracle as the latest a… - **Test source:** 12138 chars, kept verbatim in the item result (findings[].test.source of item-stock-liquidator). It is omitted here because of the 64 KB limit. ### 2. [medium] GLP-1 — A SET_RISK that raises skew, applied by anyone, makes healthy open positions liquidatable in the applying block: skew is read live, makes no risk version and gets no RISK_GRACE (core and house) - **Item:** gov-live-positions - **Property:** P1; the Parameters guarantee quoted in src/ParametersBase.sol:213-214 ('any other change binds RISK_GRACE later, so open positions are never made liquidatable by a governance change without a week to repair') - **Claim:** C1 - **Files:** `src/Pricer.sol:66`, `src/Pricer.sol:67-71`, `src/ParametersRules.sol:153-154`, `src/ParametersBase.sol:213`, `src/house/Pricer.sol:103`, `script/DeployConfig.sol:786` - **Sequence:** Two-leg type (median != spot; day 1: wstETH, median = market leg, spot = rate leg), skew 5%. 1) Safe proposes SET_RISK(ilk) with only skew raised (any value up to MAX_SKEW 25%; rule-abiding, mat and chop unchanged so Par… - **Expected:** A governed change never makes an open position liquidatable in the block it lands; a harsher liquidation rule binds open positions only after RISK_GRACE (7 days), as mat and chop do. - **Actual:** Position at 148% (mat 140%), median unchanged at 2000, spot 1700: liquidate reverts before the apply; after applyPending in the same block it repays 13,516.65 and seizes 8.746 ETH (penalty 1,351.66 USD). riskVersion unch… - **Reachable at deploy:** yes: needs one rule-abiding SET_RISK by the Safe (48 h) on a two-leg type; genesis skew is 0.05e18 (script/DeployConfig.sol:336) and MAX_SKEW is 0.25e18 - **Fix:** Treat a skew RAISE as a harsher liquidation rule: keep skew in LiqRisk (versioned with mat/chop, bindAt = now + RISK_GRACE for a raise, at once for a lower) and let liquidation health read the position's bound skew; or l… - **Test ran:** forge test --use solar --match-path test/scratch/GovLiveCore.t.sol -vv (forge 1.10.1, commit ff1c192) - **Result:** [FAIL: P1: a governed change made an open position liquidatable in the applying block; counterexample: args=[0, 0]] testFuzz_F1_skewRaise_noGrace(uint64,uint256) (runs: 0) | [FAIL: P1: liquidated in the block of the apply, median unchanged, no grace: 8746065953219343658 != 0] test_F1_skewRaise_apply… - **Test source:** 4755 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 3. [low] F1 — openTime double-counts the overlap when the offset table steps 5 h -> 4 h between two adjacent trading days: openTime(a,b) > b - a - **Item:** stock-calendar - **Property:** P3 - **Claim:** P3 openTime never exceeds b - a - **Files:** `src/stocks/MarketCalendar2.sol:136`, `src/stocks/MarketCalendar2.sol:142-151`, `src/stocks/MarketCalendar2.sol:266-275`, `src/stocks/MarketCalendar2.sol:96-98` - **Sequence:** Winter (computed 5 h). Safe proposes SET_OFFSETS [(Tue 2026-12-08 << 32) | 14400] (any fromDay is accepted, a mid-week one included); 48 h later a stranger applies it. Monday's window (5 h) is [Tue 01:00 UTC - 24h, Tue 0… - **Expected:** openTime(a,b) <= b - a (each second counted once) - **Actual:** 7200 > 3600 - **Reachable at deploy:** no: needs a SET_OFFSETS (Safe, 48 h) whose fromDay is a Tue-Fri at a 5 h -> 4 h step. Money effect bounded: StockOracle.price Stale check (:214) fails closed 1 h sooner; StockOracle.sync STEP_SETTLE (:253) advances baseMultiplier up to 1 h of open time early per step boundary. No price moves. - **Fix:** In _validate(SET_OFFSETS) refuse an entry whose fromDay is not a Saturday/Sunday/Monday-after-weekend boundary (require (fromDay+4)%7 in {0,1,6}, i.e. the step falls inside a weekend), or in openTime clip each day's wind… - **Test ran:** forge 1.9.0 --use solar, test/scratch/Cal.t.sol (StockOracleBase), --fuzz-runs 5000 - **Result:** [FAIL: openTime(a, b) <= b - a: 7200 > 3600] test_P3_offsetStepDoubleCounts() (gas: 296625) - **Test source:** 1632 chars, kept verbatim in the item result (findings[].test.source of item-stock-calendar). It is omitted here because of the 64 KB limit. ### 4. [low] GPA-1 — House SET_DEPTH (kind 16) accepts any uint256 at propose; its _apply overflows in depthRule() (depthK x depthIMD) on a house without ImdDepth: accepted at propose, Panic 0x11 at apply (alone and in a BATCH). The same unbounded value is accepted from the deployer at genesis and makes risk(depthIlk) / depthLine() panic. - **Item:** gov-propose-apply - **Property:** P3 (no arithmetic over payload fields in any _apply overflows for a value _validate accepts); P1 (a payload passing propose applies, alone and in a BATCH) - **Claim:** C1 (find another propose-accepted / apply-dead payload beyond the 2 RETIRE_SLEEVE_TOKEN rows and house SET_OTHER_IMD) - **Files:** `src/house/ParametersRules.sol:65`, `src/house/ParametersRules.sol:66`, `src/house/ParametersRules.sol:314`, `src/house/ParametersRules.sol:317`, `src/house/ParametersRules.sol:319`, `src/house/ParametersBase.sol:461`, `src/house/ParametersBase.sol:467`, `src/house/ParametersBase.sol:480`, `src/house/ParametersBase.sol:488`, `src/house/Parameters.sol:93`, `src/house/Parameters.sol:99`, `src/house/Parameters.sol:323`, `src/house/Ledger.sol:290`, `src/house/earn/LoopVault.sol:341`, `src/house/Parameters.sol:406` - **Sequence:** (a) House Parameters with depthIlk set and no ImdDepth (StageHouse/StageGenesis run _stageDepth only when cfg.depth.enabled; then depthIMD() returns the posted depthCap). Safe proposes SET_DEPTH(depth) with depth > type(… - **Expected:** Every SET_DEPTH value _validate accepts applies (or is refused at propose); setGenesisDepthRule refuses a depth that makes depthRule()/depthLine() overflow. - **Actual:** testFuzz_setDepthAppliesForEveryAcceptedValue fails with panic 0x11 (counterexample depth=8.387e61, batch=true); test_setDepthMaxPassesProposeDiesAtApply, test_depthK0ThenHugeDepthBlocksKRaise, test_genesisDepthUnbounded… - **Reachable at deploy:** Only on a house deployed without ImdDepth (cfg.depth.enabled false; script/house/DeployConfig.sol:1340 copies it from the chain config). With ImdDepth, depthIMD() = min(measured, depthCap) and no overflow occurs. Needs a Safe proposal of an absurd value (>1e59) or the deployer before seal; no funds move; the governor repairs (b)/(c) instantly with postLowerDepth. Severity low (governance liveness / temporary DoS of the depth type's borrow and LoopVault paths in (c)). - **Fix:** Bound depth at propose and at genesis like otherLines: in ParametersRules SET_DEPTH and setGenesisDepthRule refuse depth > type(uint128).max (depthK <= 1e18 then cannot overflow). Generally: make checkBatch / a single-pr… - **Test ran:** forge 1.8.5, solc 0.8.26 on pragma-rewritten copy of ff1c192 (see forge field): forge test --match-path t/House.t.sol (fuzz runs 512) - **Result:** [FAIL: panic: arithmetic underflow or overflow (0x11); counterexample: args=[83874635335900888156104634742579942706925873704699623142277783 [8.387e61], true]] testFuzz_setDepthAppliesForEveryAcceptedValue(uint256,bool); [PASS] test_setDepthMaxPassesProposeDiesAtApply (gas: 311437); [PASS] test_depth… - **Test source:** 5040 chars, kept verbatim in the item result (findings[].test.source of item-gov-propose-apply). It is omitted here because of the 64 KB limit. ### 5. [low] GIA-1 — Parameters.lowerCap (core and house) reverts OutOfBounds whenever the live low price is above 100x the cap the Safe asks: a Chainlink spike blocks the instant cap at the true price, and the pending SET_CAP raise it would have dropped survives and can be applied by anyone - **Item:** gov-instant-acts - **Property:** P1 (lands at once in any state; no outsider's action makes it revert) and P2 (drops its kind's pending loosening) - **Claim:** C1 (instant act under oracle spike), C4 - **Files:** `src/Parameters.sol:137`, `src/Parameters.sol:139`, `src/Parameters.sol:140`, `src/house/Parameters.sol:195`, `src/house/Parameters.sol:197`, `src/ParametersBase.sol:312`, `src/ParametersBase.sol:316` - **Sequence:** 1) The Safe has a cap of 3,000 on ETH and a pending SET_CAP(ETH, 3,500). 2) The ETH median feed (in the threat model: a Chainlink spike) prints more than 100x the true 2,000. _liveLow returns the median: it falls back to… - **Expected:** lowerCap(ETH, x) lands at min(cap, x) and drops the pending SET_CAP of ETH in any oracle state. A cap is a ceiling, so a low cap is always the safe direction. - **Actual:** It reverts for every x < liveLow/100. At a k-fold spike (k > 100) the Safe can only cap at liveLow/100 = (k/100) x the true price or more. The pending raise is not dropped. The fuzz test with spike factors 101..1e6 shows… - **Reachable at deploy:** yes: every type with a live feed. Mitigation available to the Safe: lowerLine(ilk, 0) still lands (it reads no price) and stops new draws, so the loss is bounded to a cap the Safe cannot set, not to unbounded minting. Hence low. - **Fix:** Run _cancelPending(SET_CAP, ilk) first, and make the unit-error guard independent of the live price, e.g. refuse only cap_ == 0 or compare against a stored reference (the cap or the price at the last SET_CAP/genesis), or… - **Test ran:** forge 1.9.0 + solar 0.3.0-dev (Solidity 0.8.38), forge test --use --match-path test/scratch/ --fuzz-runs 256, local (no fork); file InstantActs.t.sol + InstantActs2.t.sol - **Result:** [PASS] ScratchParamsSpike.testFuzz_lowerCapRevertsUnderASpike(uint256) (runs: 256) shows the revert and the surviving raise for every spike factor 101..1e6. [FAIL: OutOfBounds(); counterexample: args=[340282366920938463463374607431768211455]] ScratchParamsSpikeProperty.testFuzz_P1_lowerCapLandsInAny… - **Test source:** 2440 chars, kept verbatim in the item result (findings[].test.source of item-gov-instant-acts). It is omitted here because of the 64 KB limit. ### 6. [low] GIA-2 — Before seal, the deployer key (wirer) re-opens the Safe's instant lowers with the genesis setters: setGenesisCap (including 0 = no ceiling) and setGenesisExoticMargin overwrite a lowerCap / lowerExoticMargin at once, without a 48 h proposal - **Item:** gov-instant-acts - **Property:** P2 (nothing re-opens what an instant act closed except a new 48 h proposal), against 'the deployer until sealed' - **Claim:** C4 - **Files:** `src/Parameters.sol:85`, `src/Parameters.sol:94`, `src/Parameters.sol:137`, `src/Parameters.sol:165`, `src/house/Parameters.sol:125`, `src/house/Parameters.sol:82`, `src/house/Parameters.sol:93`, `script/deploy/StageGenesis.sol:79` - **Sequence:** Stages 1-3 add the genesis types and caps. The Parameters governor is the Safe, and its instant acts are live before seal. The Safe calls lowerCap(ETH, x) and lowerExoticMargin(m). In the same block, or in any block befo… - **Expected:** The Safe's lower stands until a 48 h proposal raises it, or the genesis setters cannot raise a value the Safe lowered. - **Actual:** The cap is removed (cap 0 = none) and the margin is raised to its maximum after the Safe lowered them, with no proposal. The house setters setGenesisCap, setGenesisDepthRule and setGenesisChainLine have the same pattern … - **Reachable at deploy:** only in the deploy window between the first genesis setter and seal(). The wirer is a one-shot key in the threat model ('the deployer until sealed'). - **Fix:** Have every genesis setter only lower what an instant act already lowered: take min with the current value once the governor has acted, or keep a per-field flag set by the instant act. Or refuse instant acts before seal, … - **Test ran:** forge 1.9.0 + solar 0.3.0-dev (Solidity 0.8.38), forge test --use --match-path test/scratch/ --fuzz-runs 256, local (no fork); file InstantActs3.t.sol - **Result:** [FAIL: cap re-opened: 115792089237316195423570985008687907853269984665640564039457584007913129639935 > 999980000944728738879523; counterexample: args=[944728738879522, 1157...9932]] ScratchDeployerUndo.testFuzz_P2_wirerUndoesInstantLowersBeforeSeal(uint256,uint256) (runs: 0) - **Test source:** 1332 chars, kept verbatim in the item result (findings[].test.source of item-gov-instant-acts). It is omitted here because of the 64 KB limit. ### 7. [low] GLP-2 — A yieldFee raise is retroactive on unharvested yield and can make a healthy position liquidatable in the applying block - **Item:** gov-live-positions - **Property:** P1; same RISK_GRACE guarantee (src/ParametersBase.sol:213) - **Claim:** C1 - **Files:** `src/LedgerBase.sol:394`, `src/LedgerBase.sol:446`, `src/ParametersRules.sol:154` - **Sequence:** Yield type, yieldFee 0, a position with unharvested yield (share rate above its yieldMark). Safe's SET_RISK raises yieldFee (<= 25%); it matures. Health is judged on the state after the pending harvest, at the fee in for… - **Expected:** Yield earned before the apply is charged the fee in force when it was earned (the apply harvests / snapshots first), and no apply flips an open position to liquidatable. - **Actual:** Fuzz over the collateral price: first counterexample at price 92.946 (position opened at 100, rate +20% unharvested): healthy before applyPending, unhealthy after, same block, same feeds. - **Reachable at deploy:** yes on any type with a yieldRate, after one rule-abiding SET_RISK; bounded by 25% of the unharvested yield (anyone can harvest a position before the apply, which removes it) - **Fix:** Version yieldFee with the liquidation risk (a raise binds after RISK_GRACE), or stamp the fee per position at each harvest so a new fee applies only to yield after the first harvest that follows the apply. - **Test ran:** forge test --use solar --match-path test/scratch/GovLiveCore.t.sol -vv (forge 1.10.1, commit ff1c192) - **Result:** [FAIL: P1: yieldFee raise made an open position liquidatable in the applying block; counterexample: args=[1032139217719657317987458100644941049]] testFuzz_F3_yieldFee_retroactive(uint256) (runs: 0) Logs: Bound result 92946172531936154760 - **Test source:** 740 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 8. [low] GLP-3 — The liquidator's only guard (minSeized) binds neither what it receives nor what it pays: a matured cut/chip or SET_TARGET change applied in front passes the guard - **Item:** gov-live-positions - **Property:** P1 (applied in front of any liquidator act); README.md:1180 states the guard only for a price update - **Claim:** C1 - **Files:** `src/Liquidator.sol:150`, `src/LedgerSettlement.sol:156-157`, `src/LedgerSettlement.sol:136`, `src/ParametersRules.sol:154`, `src/ParametersRules.sol:179` - **Sequence:** (a) SET_RISK raising cut (cut + chip <= 1e18) matures. A keeper quotes liquidate(id) and sends liquidate(id, minSeized = quoted seized). A stranger (or the block builder) puts applyPending(1) in front: seized is unchange… - **Expected:** A liquidation executes as quoted or reverts: the caller can bound its payout and its repay; the borrower's liquidation size does not change inside the block of the liquidation. - **Actual:** (a) quoted payout 8.0869 ETH, actual 7.9328 ETH at cut 0.5 -> 0.70, guard passed (fuzz over cut 0.55-0.9 fails on run 0). (b) quoted repay 4,239.46 / seized 3.355, actual repay 10,012.33 / seized 7.923. - **Reachable at deploy:** (a) yes after a rule-abiding SET_RISK; (b) only once a target buffer is set (no setGenesisTarget call in script/: day-1 buffers are 0, so it needs a SET_TARGET first) - **Fix:** liquidate/bite(id, minSeized, minPayout, maxRepay) checked against what the Ledger returns (seized - toTreasury - toMarker and repaid); version cut/chip/targetBuffer with mat/chop if the borrower side should also keep th… - **Test ran:** forge test --use solar --match-path test/scratch/GovLiveCore.t.sol -vv (forge 1.10.1, commit ff1c192) - **Result:** [FAIL: P1: guard passed, payer received less than quoted: 7932847181233593788 < 8086883049208250935; counterexample: args=[481304084]] testFuzz_F2_cutRaise_guardPasses(uint64) (runs: 0) | [FAIL: P1: the liquidation the keeper quoted is not the one he paid; the borrower pays chop on all debt: 1001233… - **Test source:** 2279 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 9. [low] GLP-4 — MorphoLender APPROVE has no order-independent stop: applied by a stranger in front of the Safe's cancel, the market is listed for life and the allocator can lend into it at once - **Item:** gov-live-positions - **Property:** P1 (applied in front of any Safe act); the class fixed elsewhere by 'the lower always lands' (GovernedByKind.sol:74-76 comment) - **Claim:** C1 - **Files:** `src/morpho/MorphoLender.sol:318-319`, `src/morpho/MorphoLender.sol:241-248`, `src/morpho/MorphoLender.sol:336`, `src/GovernedByKind.sol:83-85` - **Sequence:** APPROVE(market, cap) is pending and matured; the Safe learns the market must not go live (wrong oracle, wrong LLTV) and sends cancel(APPROVE). A stranger (or the allocator, an adversary in the threat model) applies first… - **Expected:** One Safe transaction leaves a withdrawn market unlendable whichever side of a stranger's applyPending it lands on. - **Actual:** strangerFirst = true: marketCount 4 after the Safe's cancel; allocator's supply(3, 100,000e18) succeeds. strangerFirst = false: lowerCap(3, 0) reverts. - **Reachable at deploy:** yes on 4663 after the first APPROVE proposal; loss bounded by the proposed cap and the lender's hub row - **Fix:** An instant `refuse(Id id)` (onlyGovernor) that never reverts: _clear(APPROVE) if the pending payload names id, else if indexOf[id] != 0 set that row's cap to 0 (and clear its RAISE_CAP); or make lowerCap take the market … - **Test ran:** forge test --use solar --match-path test/scratch/GovLiveLender.t.sol -vv - **Result:** [PASS] testFuzz_H2_lowerWins(uint128,uint128,bool,uint128) (runs: 256) | [FAIL: next call did not revert as expected] test_F5_allocatorLendsIntoCancelledMarket() | [FAIL: P1: the market the Safe cancelled is listed for life: 4 != 3; counterexample: args=[true]] test_F5_approve_noOrderIndependentStop… - **Test source:** 1770 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 10. [low] GLP-5 — MarketCalendar2 SET_OFFSETS: the same matured proposal gives a different table depending on the UTC day it is applied; an entry it was written to replace becomes permanent at its fromDay - **Item:** gov-live-positions - **Property:** P1 (applied by anyone at any moment) - **Claim:** C1 - **Files:** `src/stocks/MarketCalendar2.sol:288-290`, `src/stocks/MarketCalendar2.sol:298-301`, `src/stocks/MarketCalendar2.sol:268` - **Sequence:** The table holds a wrong future entry (T+5: 5 h, a week before DST really ends). The Safe proposes the correction at once (the new future part: [T+12: computed rule]); it matures on day T+4 14:00 UTC. Applied before T+5 0… - **Expected:** A proposal applies to the same result at any moment of its 14-day window, or reverts when the state it was validated against is gone. - **Actual:** offsetOf(T+7) = 14400 when applied at the ETA, 18000 when applied later (first fuzz counterexample), and session(Mon 2026-10-26 16:30 New York) = REGULAR. - **Reachable at deploy:** needs a wrong offset entry first (a Safe mistake inside its rules) and an apply that slips past the entry's fromDay - **Fix:** Bind the payload to the table it replaces: carry the expected kept count (or the hash of the kept entries) in SET_OFFSETS and revert at apply if `_kept(today)` differs; the Safe then re-proposes knowingly. - **Test ran:** forge test --use solar --match-path test/scratch/GovLiveCal.t.sol -vv - **Result:** [FAIL: P1: the same proposal, applied later, leaves the wrong offset in force for good: 18000 != 14400; counterexample: args=[115792089237316195423570985008687907853269984665640564039457584007913129639933]] testFuzz_F6_offsetsApplyDate(uint256) (runs: 0) Logs: session kind at 16:30 New York, after t… - **Test source:** 2114 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 11. [low] GLP-6 — House SET_MAX_LULL lowered: a marked NHI position loses the grace it was given at the mark, in the applying block - **Item:** gov-live-positions - **Property:** P1 - **Claim:** C1 - **Files:** `src/house/Liquidator.sol:143-144`, `src/house/Liquidator.sol:119`, `src/house/Pricer.sol:94`, `src/house/ParametersRules.sol:305` - **Sequence:** NHI-linked type, maxLull 6 h. A position is barked: graces[id].end = now + 6 h and bite reverts InGrace. A matured SET_MAX_LULL(0) is applied by the keeper, who bites in the same block: `until = min(graces[id].end, m.at … - **Expected:** A grace given at the mark runs to the end stored with the mark; a lower maxLull applies to later marks. - **Actual:** bite reverts InGrace before the apply and succeeds after it in the same block, 6 h early: repaid 20,024.66, seized 8,009.87 sIMD (chop 20%). - **Reachable at deploy:** no: the staged house sets maxLull 0 (script/house/deploy/StageTypes.sol:71) and stages no NHI type; it needs SET_MAX_LULL up and an ADD_ILK with an nhi feed first - **Fix:** `until = graces[id].end` for a mark made before the change (store the lull in force at the mark; a lower maxLull never shortens a running grace). - **Test ran:** forge test --use solar --match-path test/house/scratch/GovLiveHouse.t.sol -vv - **Result:** [FAIL: P1: a governed change made an open house position liquidatable in the applying block; counterexample: args=[0, 0]] testFuzz_F1h_skewRaise_noGrace(uint64,uint256) (runs: 0) | [FAIL: P1: bitten in the block of the apply, 6 h before the grace given at the mark ends: 8009865115406267592419 != 0] … - **Test source:** 4137 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 12. [info] F2 — Sheet P3 does not describe the code: openTime returns type(uint256).max for a span over MAX_SPAN (14 days), which exceeds b - a - **Item:** stock-calendar - **Property:** P3 - **Claim:** P3 openTime never exceeds b - a - **Files:** `src/stocks/MarketCalendar2.sol:54-55`, `src/stocks/MarketCalendar2.sol:138` - **Sequence:** openTime(a, a + 14 days + 1) for any a. - **Expected:** <= 1209601 per the sheet - **Actual:** type(uint256).max (documented at :54 'a longer one reads as type(uint256).max') - **Reachable at deploy:** yes, by design. Effect fail-closed: StockOracle.price treats it as Stale (:214) and sync rolls the step base (:253) only after >14 days wall time, which is >= STEP_SETTLE open time anyway unless a >14-day closure. No money effect found; the property text should read 'never exceeds b - a, or is max when b - a > MAX_SPAN'. - **Fix:** Amend P3 (or cap at b - a instead of max; callers compare against MAX_AGE/STEP_SETTLE which are below 14 days, so returning b - a would be equivalent for them). - **Test ran:** forge 1.9.0 --use solar, test/scratch/Cal.t.sol (StockOracleBase), --fuzz-runs 5000 - **Result:** [FAIL: openTime(a, b) <= b - a: 115792089237316195423570985008687907853269984665640564039457584007913129639935 > 1209601] test_P3_maxSpanCliff() (gas: 10486) - **Test source:** 1004 chars, kept verbatim in the item result (findings[].test.source of item-stock-calendar). It is omitted here because of the 64 KB limit. ### 13. [info] GTP-1 — ImdBridge BATCH: every item is validated against the state before the batch, then the items are applied one by one, so a BATCH that passes propose and the apply-time re-validation can revert in _apply - **Item:** gov-timelock-pending - **Property:** P1 (a payload passing propose applies, alone and in a BATCH) - **Claim:** C1 - **Files:** `src/bridge/ImdBridge.sol:899`, `src/bridge/ImdBridge.sol:916`, `src/bridge/ImdBridge.sol:981`, `src/bridge/ImdBridge.sol:1130`, `src/bridge/ImdBridge.sol:1173` - **Sequence:** Safe pause(HOME); propose BATCH[ENDPOINT_SKIP(HOME,s,1), ENDPOINT_SKIP(HOME,s,1)]. _validate checks each item with _check(items[i], items) against the endpoint's state before the batch, so nonce 1 == inboundNonce+1 passe… - **Expected:** A BATCH that passes _validate at propose and again at apply applies. Otherwise _validate should refuse it: the items should be checked in sequence, or duplicate endpoint acts refused as SET_PATH/library duplicates are (I… - **Actual:** applyPending() reverts LZ_InvalidNonce(1) in the second item. No money moves. The endpoint clean-up for a paused path is delayed by at least one more 48 h proposal, and the path stays paused that long (it holds honest in… - **Reachable at deploy:** true - **Fix:** In ImdBridge._validate, refuse two items of kind ENDPOINT_SKIP/NILIFY/BURN with the same (eid, sender, nonce), as is already done for SET_PATH and library pins. Alternatively, validate a BATCH by simulating its items in … - **Test ran:** true - **Result:** [FAIL: LZ_InvalidNonce(1)] test_C1_batchPassesProposeFailsAtApply() (gas: 635066); trace: MockLzEndpoint.skip <- ImdBridge.applyPending. [PASS] test_C1_control_singleSkipApplies() (gas: 299726). MockLzEndpoint.skip has the EndpointV2 rule n == inboundNonce+1. - **Test source:** 851 chars, kept verbatim in the item result (findings[].test.source of item-gov-timelock-pending). It is omitted here because of the 64 KB limit. ### 14. [info] GTP-2 — C3 does not describe the code: a tighten failing a multi-path SET_DELAY is not the only liveness loss of the one-slot contracts. pause(eid) and closeDay(day) drop a whole multi-item proposal, including items for other paths and days - **Item:** gov-timelock-pending - **Property:** P2 / C3 - **Claim:** C3 - **Files:** `src/bridge/ImdBridge.sol:694`, `src/bridge/ImdBridge.sol:751`, `src/stocks/MarketCalendar2.sol:233`, `src/stocks/MarketCalendar2.sol:242` - **Sequence:** (a) The bridge has BATCH[SET_FEE(30184,5), UNPAUSE(HOME)] pending. The Safe calls pause(HOME), and _drop(UNPAUSE, HOME) cancels the whole BATCH, so path 30184's change is lost. voidPayload(h) and cancelClaim(eid) drop a … - **Expected:** Per C3, only a tighten fails a queued multi-path change. README:1104 covers only that case: '- One pending proposal slot is shared by every path (a `tighten` fails a multi-path `SET_DELAY` BATCH).' - **Actual:** applyPending reverts NothingPending: the other path's fee and the other day's status are never applied. This is liveness only. The drops are the intended conservative side, and they are documented in code comments, not i… - **Reachable at deploy:** true - **Fix:** Document these routes in the README known issues, or drop only the matching item. The latter is not possible with one slot, so the doc fix is enough. - **Test ran:** true - **Result:** [FAIL: NothingPending()] test_C3_closeDayDropsOtherDays() (gas: 1852307); [FAIL: NothingPending()] test_C3_pauseDropsOtherPathsChange() (gas: 534374) - **Test source:** 1853 chars, kept verbatim in the item result (findings[].test.source of item-gov-timelock-pending). It is omitted here because of the 64 KB limit. ### 15. [info] GLP-7 — Core rateFloor raise does not reach open positions: they keep borrowing new debt below the floor (the core has no `lift`, the house has) - **Item:** gov-live-positions - **Property:** P1 (rateFloor: 'lowest borrower-set annual rate', src/ParametersBase.sol:62) - **Claim:** C1 - **Files:** `src/Ledger.sol:238-239`, `src/house/LedgerSettlement.sol:57` - **Sequence:** Position opened at 1% under floor 1%. SET_RISK raises rateFloor to 20%. A newcomer at 1% is refused (RateOutOfRange); the old position draws 400,000 more at 1%: the floor is checked only `if (!hadDebt)`. Sub-floor positi… - **Expected:** No new debt is issued below the floor in force (or a permissionless lift as in the house). - **Actual:** adjust(+400,000e18) at 1% succeeds under a 20% floor. - **Reachable at deploy:** yes after a SET_RISK raising rateFloor - **Fix:** In `_adjust`, when dDebt > 0 and the position's rate is below the floor, move it to the floor (the house's `lift` rule), or port `lift` to the core. - **Test ran:** forge test --use solar --match-path test/scratch/GovLiveCore.t.sol -vv (forge 1.10.1, commit ff1c192) - **Result:** [FAIL: next call did not revert as expected] test_F4_rateFloor_topUpBelowFloor() - **Test source:** 800 chars, kept verbatim in the item result (findings[].test.source of item-gov-live-positions). It is omitted here because of the 64 KB limit. ### 16. [info] TA-1 — A per-id PermitOperator signature is not bound to the transfer epoch: a pre-sale signature revives when the position comes back, unlike an approveOperator grant - **Item:** token-authorizations - **Property:** P3 / C6 - **Claim:** C6: 'A transfer of the NFT ends every per-id grant (epochOf): show a grant or a signature from an earlier owner that still acts after a transfer'. NatSpec src/PositionNFT.sol:27: 'a grant never comes back when a position returns to an earlier owner'. - **Files:** `src/PositionNFT.sol:52`, `src/PositionNFT.sol:168-174`, `src/PositionNFT.sol:213-221`, `src/PositionNFT.sol:236-243`, `src/PositionNFT.sol:145-158`, `src/house/PositionNFT.sol:52 (byte-identical file)` - **Sequence:** 1) alice owns id X and signs PermitOperator(X, op, WITHDRAW_ANY, nonce n, long deadline), not yet submitted; she also grants it with approveOperator. 2) alice sells X to bob (epochOf[X]++). Both are dead while bob owns X… - **Expected:** Per-id grants, given directly or by signature, end at a transfer and do not come back when the position returns (src/PositionNFT.sol:27). - **Actual:** The direct grant lapses, but the signed grant and BorrowFor do not: they bind (owner, id, nonce, deadline) only, so they work again whenever the signer owns the id again and nonces[owner] is still n. The signature is sti… - **Reachable at deploy:** true - **Fix:** For id != 0, add epochOf[id] to the PermitOperator and BorrowFor structs (e.g. 'uint256 epoch' read at verify time), or document that signatures outlive a sale and must be cancelled with bumpNonce before selling. - **Test ran:** forge 1.9.0 has no `--use solar` (answers: `solc` "solar" does not exist) and solc 0.8.38 is not installed; ran with the installed solc 0.8.28 (via_ir, cancun) on a local copy where only `pragma solidity 0.8.38` was relaxed to ^0.8.24. No source line changed. - **Result:** [FAIL: pre-sale per-id PermitOperator revived after a transfer: 32 != 0] test_core() (gas: 2657841) [FAIL: pre-sale per-id PermitOperator revived after a transfer: 32 != 0] test_house() (gas: 2657914) Suite result: FAILED. 0 passed; 2 failed. The full-system version (TokenAuth.t.sol test_C6_permitOp… - **Test source:** 2039 chars, kept verbatim in the item result (findings[].test.source of item-token-authorizations). It is omitted here because of the 64 KB limit. ## Claims (per item; refuted beats holds) | item | claim | result | evidence | |---|---|---|---| | stock-calendar | C1 | holds | Known (README.md:824 '- **Calendar**: seeded to 2028, then fails open.', describes current code: dayStatus default OPEN, _trades :… | | stock-calendar | C2 | holds | closeDay :230-232 refuses when block.timestamp >= day*1d + offsetOf(day) + 9h30 or day > UTC today + 3. test_C2_closeDayEdge PASS … | | stock-calendar | C3 | holds | Known as written (README.md:824-827: 'a closed day unprices every stock market at once, so repeated `closeDay` before each open ho… | | stock-calendar | C4 | holds | [data] RAN offline (no RPC needed): NYSE holidays derived from rule (New Year not observed on a Saturday, MLK, Presidents, Good Fr… | | stock-calendar | C5 | holds | Invariant covering every route that writes dayStatus (constructor _set :84-85, closeDay :249, _apply SET_DAYS :285) or _offsets (_… | | morpho-lender | C1 | holds | Only 3 functions write r.principal: supply() (+=amount, L1), _exit() (-=t, called from withdraw/pull), _report() (-=loss, called f… | | morpho-lender | C2 | holds | Morpho Blue's own liquidate/accrueInterest/settle route are permissionless by design (not lender code); MorphoLender.settle(index)… | | morpho-lender | C3 | holds | Wrote and ran 2 new tests (test/scratch/MorphoLenderGoal.t.sol, MorphoLenderSettleDoubleCountTest): test_C3_repeatedSettleSameBloc… | | morpho-lender | C4 | holds | StockLiquidator.sol:91-97: liquidate() measures gasleft() before try lender.settle(n-1); on a catch it reverts SettleGasShort only… | | morpho-lender | C5 | holds | MAX_MARKETS = 24 (MorphoLender.sol:66); _check's APPROVE branch reverts BadConfig if _rows.length >= MAX_MARKETS (MorphoLender.sol… | | morpho-lender | C6 | holds | Every value _check's STOCK_ORACLES branch reads (o.VERSION(), o.token(), o.loanToken(), o.morpho(), o.governor(), o.calendar(), o.… | | morpho-lender | C7 | holds | script/DeployConfig.sol:828 'lenderCap stays 0: the blue-chip lender gets no hub row on day 1 (file H3 is refused)' for BaseConfig… | | morpho-lender | C8 | holds | supply/withdraw are `onlyOps` (msg.sender==allocator // msg.sender==governor, MorphoLender.sol:143-146,151,166); supply's only imd… | | stock-liquidator | C1 | holds | testFuzz_C1_frontRunCannotRaisePerUnit (256 runs): a stranger's front-run liquidation of 0..100e18 (1 wei included) before the bac… | | stock-liquidator | C2 | holds | grep -rni checkpoint src script: only src/feeds/RateFeed.sol and src/house/dex/* (unrelated). liquidate's only post-Morpho call is… | | stock-liquidator | C3 | refuted | F1 (one wrong LOW round): price = min(a0,a1) <= latest answer, float pays price/LIF below market: no float loss (gain). F7 (wrong … | | stock-liquidator | C4 | holds | script/DeployConfig.sol:875 OPERATOR = address(uint160(uint256(keccak256("imdusd.placeholder.robinhood.stocks-keeper-liquidation-k… | | stock-liquidator | C5 | holds | As stated (README:835). test_C5_thiefManufacturesALiquidatablePosition: the thief needs no victim: borrows at the LLTV on our mark… | | stock-liquidator | C6 | holds | ONE invariant (invariant_floatOnlyLeavesByMorphoPullOrRecover, 128 runs x 64 depth, 8192 calls, handler: borrowMax, movePrice +-20… | | gov-propose-apply | C1 | refuted | Another short row exists: house SET_DEPTH (GPA-1), accepted at propose, Panic 0x11 at apply, alone and in a BATCH. Fuzzed and hold… | | gov-propose-apply | C2 | refuted | Same kind twice in a BATCH is NOT refused: _kindsOf only ORs bits (ParametersBase.sol:265, house :365) and _validate has no duplic… | | gov-propose-apply | C3 | holds | forge inspect storageLayout: core Parameters and ParametersRules both 22 entries, identical (label, slot, offset, type) hash 75c11… | | gov-propose-apply | C4 | holds | One invariant per GovernedByKind contract (Parameters core/house, MinterHub): for every payload p and state S, propose(p) succeeds… | | gov-timelock-pending | C1 | refuted | Fuzzed propose->apply (256 runs each, apply by a stranger at a random time in [eta, eta+14d]) over every kind of FixedLoans (SET_L… | | gov-timelock-pending | C2 | holds | Each instant act only tightens what it changes, and drops the pending proposal that would loosen it: FixedLoans lowerLendPrice/low… | | gov-timelock-pending | C3 | refuted | The one-slot contracts are ImdBridge.sol:177, MarketCalendar2.sol:34, Treasury.sol:46 and house/Treasury.sol:56 (also house/feeds/… | | gov-timelock-pending | C4 | holds | A cancel and a stranger's apply in the same block, in both orders, on FixedLoans (testFuzz_P3_expiryAndCancel) and ImdBridge/Gover… | | gov-timelock-pending | C5 | refuted | No setGenesis* function exists in any family-2 file (GovernedByKind, Governed, StableModule, FixedLoans, ImdBridge, MorphoLender, … | | gov-instant-acts | C1 | refuted | Instant acts in src/ and the state they read. MinterHub: lowerCap:359 (rows[i].cap, slot SET_CAP/i), lowerTotalCap:368, lowerExoti… | | gov-instant-acts | C2 | refuted | Wording: MorphoLender has no cancelForce. cancelForce is src/stocks/StockOracle.sol:280. MorphoLender's instant acts are lowerCap:… | | gov-instant-acts | C3 | holds | StableModule: lowerCaps clears SET_CAPS/i (:383); lowerYield (:397) and abandonVault (:420) clear SET_YIELD/i; close, reportLoss a… | | gov-instant-acts | C4 | refuted | ONE invariant for every route. For each instant act A that tightens field F[key], after A in any state: (a) A reverts only on only… | | gov-live-positions | C1 | refuted | P1 does not hold. The next sites after the ones the sheet lists as fixed, each with a failing test run at ff1c192: GLP-1 skew rais… | | gov-live-positions | C2 | holds | Core: testFuzz_C2_differentFieldCommutes [PASS, 256 runs]: a matured SET_CAP / SET_UNBACKED_BRAKE / SET_CHAIN_LINE / SET_TARGET / … | | gov-live-positions | C3 | refuted | No contract here has one invariant that covers every kind. Parameters (core, house): the only general rule is RISK_GRACE and it co… | | token-authorizations | C1 | holds | testFuzz_C1_receiveOnlyPayee_timeBounds_chain (256 runs) PASS: an ERC-1271 wallet's ReceiveWithAuthorization reverts Unauthorized … | | token-authorizations | C2 | holds | testFuzz_C2_oneNonceSpace (256 runs, EOA and ERC-1271 from) PASS. Whichever of transfer / receive / cancel runs first, every other… | | token-authorizations | C3 | holds | Permit.t.sol testFuzz_C3_permit (256 chain ids) and test_C3_permitRefusesErc1271 PASS. Replaying a used nonce reverts, and a signa… | | token-authorizations | C4 | holds | Only three minters can call ImdUSD.burn(from) (test_C4_nonMinterCannotBurn, fuzzed caller, PASS). Every call site in src/: Ledger.… | | token-authorizations | C5 | holds | test_C5_frontrunOnlyChangesGasPayer PASS: a relayer submitting with another to or value gets InvalidSignature, and only the signed… | | token-authorizations | C6 | refuted | Mostly holds. testFuzz_P3_rightsExact (256 runs, random mask, action, to and scope) PASS: per-id grants read 0 after transfer and … | | token-authorizations | C7 | holds | testFuzz_C7_openForExact (256 runs, random collateral, debt and submitter) PASS: the submitter pays exactly dCollateral, the signe… | | x-supply-identity | C1 | holds | grep of _mint/.mint( in src/ (non-vendored). imdUSD mint sites: ImdUSD.sol:144 (mint, gated by isMinter = ledger/hub/bridge, ImdUS… | | x-supply-identity | C2 | holds | RAN locally: forge 1.8.3 (older than 1.9: no --use solar; solc 0.8.38 not installed). Ran on a scratch copy of the commit with ONL… | | x-supply-identity | C3 | holds | Code: coverFromReserve/_coverFromReserve (MinterHub.sol:619-648) moves bad->covered by p and burns p from the hub's own balance: s… | | x-supply-identity | C4 | refuted | The hub's counters move by exactly the token amount of each hub mint/burn/restore (MinterHub.sol:174-179,187-191,224-232); no divi… | | x-deployer-oneshot | C1 | holds | Spent after the plan, fuzzed (test_core_spent, 256 runs, PASS): core Treasury.wire/wireNotes (src/Treasury.sol:83-99), Join.wire (… | | x-deployer-oneshot | C2 | holds | Core plan (script/deploy/DeployBase.sol:200-213, StageGenesis.sol:61-72). test_hookFrontRun (fuzz 256 runs, PASS): a stranger depl… | | x-deployer-oneshot | C3 | holds | setGenesisDepthRule (src/house/Parameters.sol:93-103) bounds k<=MAX_DEPTH_K, otherChop<=1e18, otherLines<=uint128.max, the same as… | | x-deployer-oneshot | C4 | refuted | True for script/deploy/* (core: only reads are chain/code checks of config addresses, vm.getNonce, and initialized() after the pla… | ## Properties that hold (with what was tried) - **stock-calendar — P1:** test_P1_seedMatchesNyse over all 767 days 2026-11-26..2028-12-31 against rule-derived NYSE holidays/early closes and IANA offsets … - **stock-calendar — P2:** test_C2_closeDayEdge (EDT/EST second edges); testFuzz_P2_closeDay 5000 runs (time, day offset -1..+5, pending SET_DAYS status 0-2,… - **stock-calendar — P3:** testFuzz_P3_openTimeComputed 5000 runs (computed DST, 2026-2030, spans <= 14 d): <= b - a, monotone in b, additive. Fails only wit… - **morpho-lender — P1 principal_m <= cap_m after every supply; sum principal == hub outstanding; assets() counts claims only:** existing test_L1_capBoundsEverySupply, testFuzz_L1_principalNeverAboveCap (256 fuzz runs incl. a mid-sequence lowered cap), test_L… - **morpho-lender — P2 anyone pulls principal over the cap; allocator/Safe withdraws to 0 as far as idle; no exit mints or reads the oracle:** existing test_L3_pullByAnyone_inEveryHubAndOracleState (hub row frozen, hub caps 0, oracle unpriced, lender cap 0 -> stranger's pu… - **morpho-lender — P3 every entry settles first; interest pays bad then covered before the reserve share; settle pays principal before interest:** existing test_L4_reserveCoveredLoss_restoredByInterest_coveredBackToZero (covered_s drained to 0 by harvested interest before any … - **morpho-lender — P4 APPROVE admits only a conforming market/oracle:** existing test_L2_approveRefusesEveryBadMarket (7 distinct bad-market shapes: uncreated, no dead legs, wrong loan token incl. a lyi… - **stock-liquidator — P1 (relative to the oracle's latest answer): maxRepaid/seizedAssets caps the price; SharesMode refused; seize = min(seizedAssets, collateral) with proportional allowance:** invariant (8192 calls, interleaved stranger front-runs, price moves, warps, thief maxRepaid up to 1e30), testFuzz_C1 (256 runs), S… - **stock-liquidator — P2 allowance exact and reset; float leaves only by Morpho's pull in liquidate and the Safe's recover:** invariant asserts allowance 0 and exact float accounting after every call. Writers of the float other than these: ImdUSD.burn by a… - **stock-liquidator — P3 only the immutable operator; liquidate only on an approved market (NotOurMarket); take only an approved market's collateral, never imdUSD:** testFuzz_C4 (any caller), invariant take of imdUSD and stocks (imdUSD never moves). Approved rows are never removed (MorphoLender.… - **stock-liquidator — SettleGasShort (same-transaction report):** code reasoning: settle gets 63/64 of g; an OOG in settle or in a call inside it returns about g x 127/4096 < g/32, so a starved se… - **gov-propose-apply — P1 (decode at apply) for core Parameters, MinterHub, Treasury, house Treasury:** Core: abi.decode tuples identical in _validate and _apply for every live kind (ParametersRules.sol _validate :35, _apply :148); fu… - **gov-propose-apply — P2 retired kinds refused at propose, alone and in a BATCH:** Core: testFuzz_retiredKindsRefused, every kind byte outside {1,2,4,5,8,11,17,19,21,22,26,27,28} (covers 3,6,7,9,10,12-16,18,20,23-… - **gov-propose-apply — P3 no overflow in _apply for accepted values (core Parameters, MinterHub, Treasuries):** Core: SET_CHAIN_LINE uint128 cast after <= MAX_CHAIN_LINE; SET_RISK _bindAt/_pushVersion uint64 casts of bounded mat/chop/timestam… - **gov-timelock-pending — P1 (GovernedByKind contracts: StableModule, FixedLoans, MorphoLender; MarketCalendar2; bridge non-batch kinds):** Fuzz propose->apply per kind, as in C1: testFuzz_C1_everyKindApplies, testFuzz_C1_stableKinds, testFuzz_lenderRaceAndApply, testFu… - **gov-timelock-pending — P2 (loosening waits 48 h and is re-validated at apply; tightening lands in its own tx, no looser than named or stood, drops the pending loosening):** Same-block races with a matured loosening applied by a stranger in front of, or after, the Safe's instant act, with random values … - **gov-timelock-pending — P3 (expiry 14 d past ETA; no apply after expiry or cancel):** testFuzz_P3_expiryAndCancel (FixedLoans/GovernedByKind) and testFuzz_P3_bridgeExpiryCancel (Governed): dt fuzzed over 0..40 d. The… - **gov-instant-acts — P1 (hub, stable module, lender, fixed loans, calendar, oracle, bridge):** Fuzz over subsets of matured proposals applied by a stranger in front in the same block, delay 48h..48h+14d, any act arguments (ui… - **gov-instant-acts — P2 (kind's pending loosening dropped; nothing re-opens except a new 48h proposal):** After each act, every slot a stranger applies fails (NothingPending or re-validation). Hub ADD_SPOKE and SET_RESERVE_RULE are not … - **gov-instant-acts — P3 (bounded gas):** Loops reached by an instant act: hub _coverFromReserve <= MAX_SPOKES 16 rows (stable reportLoss/abandonVault); closeDay <= MAX_DAY… - **gov-live-positions — P1, core SET_RISK (mat, chop, dust, rateFloor, redeemFloor, redeemDivisor, line):** testFuzz_H1_versionedGrace, 256 runs PASS: any rule-abiding values applied by a stranger; the open position is healthy at apply an… - **gov-live-positions — P1 / C2, core SET_CAP, SET_UNBACKED_BRAKE, SET_CHAIN_LINE, SET_TARGET, SET_EXOTIC_MARGIN, SET_RISK of another type vs the instant lowers:** testFuzz_C2_differentFieldCommutes, 256 runs PASS (both orders, alone and in a BATCH). - **gov-live-positions — P1, MorphoLender RAISE_CAP and SET_ALLOCATOR:** testFuzz_H2_lowerWins, 256 runs PASS (same file as GLP-4): either order around lowerCap / revokeAllocator, cap below live supply, … - **gov-live-positions — P1, MarketCalendar2 SET_DAYS and SET_OFFSETS vs live pricing:** testFuzz_H3_applyNeverMovesToday, 256 runs PASS (same file as GLP-5): for any status / offset, any apply moment in the 14 days and… - **gov-live-positions — P1, arithmetic of the readers under any rule-abiding value:** Read, not fuzzed beyond H1: liquidation sizing guards t <= 1e18 + chop (src/LedgerBase.sol:492-501); line and chainLine are only c… - **token-authorizations — P1:** C1-C5 tests above (fuzzed nonces, values, payers, orderings of transfer/receive/cancel, both overloads, EOA and ERC-1271, chainids… - **token-authorizations — P2:** testFuzz_P2_flash (256 runs) with a borrower that nests a second loan: a + b > flashCap reverts. After the loan, totalSupply, the … - **token-authorizations — P3:** testFuzz_P3_rightsExact: an operator's adjust succeeds iff the expanded mask covers _rightsFor; a refusal changes no state. Transf… - **x-supply-identity — P1:** Exact equality, after accrue, over: HubInvariants (128x64 calls incl. hostile spoke reentry from flash callbacks), BridgeInvariant… - **x-supply-identity — P2:** Scratch fuzz asserts, around every flash loan (random size up to maxFlashLoan), totalSupply, totalUsed, totalCovered and totalBad … - **x-supply-identity — P3:** Complete grep of mint call sites (C1); isMinter gate ImdUSD.sol:136-139 with three fixed minters (wire once, setBridge once via ti… - **x-deployer-oneshot — P1 deployer has no power after deployment:** fuzzed callers after the full core wire/seal sequence for Treasury, Join, Backstop, PricerOracle (revert on every wire/addIlk/disa… - **x-deployer-oneshot — P2 every stage is a pure plan:** core stages script/deploy/*: addresses are createAddress(deployer,nonce+k), the hook/pool steps go through _callAllowingDone so a … - **x-deployer-oneshot — P3 one-shot setters bounded as their governed kind:** see C3: every Parameters.setGenesis* against its kind in ParametersRules; Backstop.addIlk genesis args are the same function as th… ## NOT RUN / not checked - **stock-calendar:** No [fork] claim in this sheet; no RPC used. C4 compared against NYSE rules + IANA tz, not the nyse.com PDF. - **morpho-lender:** [fork] test/fork/MorphoLender.fork.t.sol (checks MorphoMath's accounting against live Morpho Blue) -- NOT RUN: no RPC endpoint was… - **morpho-lender:** A dedicated gas-griefing test for StockLiquidator's SettleGasShort threshold (forcing gasleft() under g/32 exactly at the lender.s… - **stock-liquidator:** No [fork] or [data] claim in this sheet: NOT RUN (no fork). Real Morpho Blue not used: MockMorpho (test/utils/MockMorpho.sol) with… - **stock-liquidator:** forge 1.9 / --use solar unavailable (forge 1.8.3). - **gov-propose-apply:** No [fork]/[data] claims in this sheet: none RAN, none needed. - **gov-propose-apply:** forge 1.9 / --use solar / solc 0.8.38 runs NOT RUN (not installed); all tests ran on a pragma-0.8.26 copy (see forge). - **gov-propose-apply:** Ledger/LedgerSettlement layout and repo test/unit/AuditD1Layout.t.sol NOT RUN (reasoned from inheritance). - **gov-propose-apply:** Backstop, FeeNotes, SeatJoin, ImdDepth, ImdUSD.setBridge apply-side checks reasoned from code, not run against the real contracts … - **gov-propose-apply:** Earlier submissions (api.imd.fun) NOT fetched; ids 5937da4b-..., d9aa6add-... from the sheet not checked. - **gov-timelock-pending:** [fork]/[data]: none in this sheet; no RPC used - **gov-timelock-pending:** duplicate ENDPOINT_NILIFY/BURN items in a BATCH (reasoned, same mechanism as GTP-1) - **gov-timelock-pending:** StableModule ADD_LEG/SET_YIELD/REOPEN fuzzed apply (read only; REOPEN race run) - **gov-timelock-pending:** MorphoLender APPROVE fuzz (covered only by LenderBase setUp applying it) - **gov-timelock-pending:** src/Parameters.sol setGenesis* bounds (family 1) - **gov-timelock-pending:** Treasury.sol governance kinds (named as one-slot only) - **gov-instant-acts:** [fork]/[data]: none in this sheet; no fork tests RAN (no RPC used). - **gov-instant-acts:** house Allocator instant acts and house MarketCalendar.closeDay (outside the sheet's FILES): read, not tested. - **gov-instant-acts:** Bridge instant acts: reviewed from the code only; earlier submissions (dc9419af..., 439d66ba...) cover hold/DROP/UNCANCEL/UNPAUSE … - **gov-instant-acts:** house setGenesisDepthRule/ChainLine vs lowerDepthK/postLowerDepth (GIA-2 extension): read, not tested. - **gov-live-positions:** No [fork] / [data] claim in this sheet; nothing was run on a fork or against an RPC. - **gov-live-positions:** The machine's forge was 1.8.3 (no solar, no solc 0.8.38): forge 1.10.1 was downloaded into .cache and every test above ran with it… - **gov-live-positions:** Stateful invariant campaigns were not written; the tests are fuzz and sequence tests. - **gov-live-positions:** Not tested, read only: SET_SAVINGS_SHARE (step-bounded; interest since lastAccrual is split at the share in force at the next accr… - **gov-live-positions:** Earlier submissions (api.imd.fun/jobs//submissions) were not fetched: the sheet names no job id. - **gov-live-positions:** Test sources are pasted with indentation reduced to one space per level; the four passing holds tests (H1, C2, H2, H3) are describ… - **token-authorizations:** No [fork]/[data] claims in this sheet; no fork run (NOT RUN). - **token-authorizations:** solc 0.8.38 / solar: NOT RUN (unavailable); results come from solc 0.8.28 on the same sources. - **token-authorizations:** House Ledger end-to-end operator/openFor fuzz: NOT RUN (code read; NFT-level test_house ran). - **token-authorizations:** Full-system scratch suite TokenAuth.t.sol (10 tests: 9 PASS, plus an earlier draft of the permit test that failed on a harness cha… - **x-supply-identity:** Fetching earlier findings from https://api.imd.fun/jobs//submissions: NOT RUN (time); this result reports no finding so nothin… - **x-supply-identity:** No [fork]/[data] claim in this sheet; no RPC used. - **x-supply-identity:** Real StableModule / FixedLoans / MorphoLender / house Ledger were not wired into the scratch P1 fuzz (mock TestSpoke rows stand in… - **x-supply-identity:** test/invariant/Invariants.t.sol invariant_supplyEquation not run (compile time). - **x-deployer-oneshot:** [fork] Deploy.t.sol / Robinhood.t.sol / Mainnet.t.sol rehearsals: NOT RUN (no RPC) - **x-deployer-oneshot:** house PegHook CREATE2 front-run at the house variant: NOT RUN - **x-deployer-oneshot:** full Deploy script end to end with the stage ordering fuzzed: NOT RUN; only the contracts' own one-shot guards and the hook were t… ## Missing - None. All 10 item results were present and parsed. - No item fetched earlier submissions from api.imd.fun. Several items say so explicitly, and this merge did not fetch them either. - No [fork] claim was RAN against an RPC in any item. - stock-calendar C4 [data] RAN offline against rule-derived NYSE and IANA data, not against the nyse.com PDF.