# Merge 01 — imdUSD v2 day 1 goal audit: 10 items combined Commit audited by every item: `ff1c192b3798542997f600091f2dc73ff05e4c40` (all 10 item results state this commit). Source of everything below: the 10 item results under `.imd/reads/artifacts/` (item-). Nothing added beyond them; long texts are truncated where marked, the item result holds the full text. ## Items | item | verdict | findings | forge (as reported) | |---|---|---|---| | hub-reserve-low-water | findings | 2 | forge Version: 1.9.0 (6056c584), --use solar; via_ir per foundry.toml | | hub-rows-frozen-loss | holds | 0 | forge 1.9.0 (6056c584). `--use solar` is refused by this build (`solc […truncated, full text in item result] | | brake-fee-base | findings | 2 | forge 1.9.0, --use solar (Solar 0.8.38); scratch tests only (--match-p […truncated, full text in item result] | | brake-exotic-margin | findings | 1 | forge 1.9.0 (--use solar; forge test --match-path test/scratch/BrakeEx […truncated, full text in item result] | | core-redeemer | findings | 1 | forge 1.9.0 (--use solar, solc 0.8.38) | | core-ledger-positions | findings | 1 | forge Version: 1.9.0 (6056c5845d), run with --use solar (Solar 0.8.38) […truncated, full text in item result] | | core-yield-harvest | findings | 2 | forge Version: 1.9.0 (--use solar, Solar 0.8.38) | | core-liquidation | holds | 0 | forge Version: 1.8.3 (older than 1.9: --use solar unavailable; compile […truncated, full text in item result] | | core-backstop-sleeve | findings | 2 | forge 1.8.3 (no --use solar; solc 0.8.38 not installed). Tests ran wit […truncated, full text in item result] | | core-pricer-feeds | findings | 1 | forge 1.9.0 (6056c58). solc 0.8.38 NOT installed, so --use solar could […truncated, full text in item result] | **missing:** none — all 10 named item results were present, parsed as JSON and carried the audited commit. ## Summary (ranked by severity at deploy config) No high or medium findings. 7 low, 5 info. Every finding below has a Foundry test the item reports as RAN; no finding is unverified. No root cause was found by two items (no duplicates merged); related-but-distinct pairs are noted. | # | sev | item / id | title | reachable at deploy | |---|---|---|---|---| | 1 | low | brake-exotic-margin / brake-exotic-margin-F1 | Core borrow mints its own upfront fee (and in-cooldown premium) to the Treasury BEFORE _checkBrake, so the fee counts as Treasury cover of core bad debt and a braked syst […truncated, full text in item result] | yes once C1 opens core lines and any core bad debt stands (no governance action needed; the savings split only shrinks the Treasury share) | | 2 | low | brake-fee-base / BFB-1 | Third gas-only round trip: the Morpho allocator's withdraw (hub.burn) then supply (hub.mint) lowers feeBase by the amount for 1-2 h; README:620 names only the Migrator an […truncated, full text in item result] | true | | 3 | low | core-ledger-positions / CLP-1 | An operator holding SET_RATE alone keeps a charged change's top-up premium alive indefinitely: a same-rate setRate inside the cooldown keeps premiumRate and restarts the […truncated, full text in item result] | true | | 4 | low | core-yield-harvest / F1 | Base wstETH yield leg: a wrong Chainlink rate answer (negative read as uint256, or any spike) is read as the capped ceiling, and a stranger's harvest takes principal up t […truncated, full text in item result] | true | | 5 | low | core-backstop-sleeve / CBS-1 | Treasury's timelocked payout spends the bad-debt cover and the notes' face: no guard, applied by anyone at a moment of their choosing | yes: from the first imdUSD payout proposal after Treasury.wire; not a new Safe power but a stranger-chosen moment (14-day window) that bypas […truncated, full text in item result] | | 6 | low | core-pricer-feeds / F1 | ProductFeed.latestValue panics (arithmetic overflow) on two legs that ChainlinkFeed reads as valid prices; isStale() stays false, so the revert reaches consumers with no […truncated, full text in item result] | yes in code (WBTC type on Ethereum, Base WSTETH median); requires an absurd Chainlink answer | | 7 | low | hub-reserve-low-water / F1 | reserveLow falls by GROSS outflow: a spoke's reportLoss->restore round trip leaves the reserve unchanged but lowers the mark by x each time, so one unfrozen spoke zeroes […truncated, full text in item result] | Needs a spoke whose code can reportLoss and restore at will (a hostile spoke, in the threat model). Shipped spokes do not loop it for a stra […truncated, full text in item result] | | 8 | info | hub-reserve-low-water / F2 | C2 / README:608-609 wording: a spoke's own mint parked before the propose lifts the exotic CEILING by room x reserveMultiple (3x at the deploy config), not 'bounded by th […truncated, full text in item result] | Yes with a spoke that has room (reserveMultiple 3, script/DeployConfig.sol:218); hostile spoke + Safe propose. | | 9 | info | brake-fee-base / BFB-2 | A record of 0 reads as none not only at launch: whenever the supply at a minting/burning tx start is 0 again, a fresh mint counts in feeBase at once | true | | 10 | info | core-redeemer / core-redeemer-F1 | An issuer pause of the collateral token makes redeem revert with the token's error, not NothingRedeemed/NotRedeemable, so P3's closed list of reverts does not hold | true | | 11 | info | core-yield-harvest / F2 | Whether anyone harvests first changes a redemption's outcome: a position whose pending yield pays all its debt stays first in the redemption list and uses up one of maxPo […truncated, full text in item result] | true | | 12 | info | core-backstop-sleeve / CBS-2 | Dust rule reads a stale lastHigh: a re-priced holding whose feed dies counts as 0 and a converting bucket takes part of it | yes (any sleeve holding) | Related, not merged: brake-exotic-margin-F1 (fee minted before `_checkBrake`) and BFB-1 (allocator round trip lowers `feeBase`) both weaken the core brake but have different root causes and fixes. core-pricer-feeds F1 and core-yield-harvest F1 both concern unchecked Chainlink answers but in different feeds (ProductFeed overflow vs RateFeed int256→uint256 decode). ## Findings ### 1. [low] brake-exotic-margin-F1 — Core borrow mints its own upfront fee (and in-cooldown premium) to the Treasury BEFORE _checkBrake, so the fee counts as Treasury cover of core bad debt and a braked system lends - **found by:** brake-exotic-margin - **property:** P1 - **claim:** P1: new core debt reverts while max(0, core bad debt - Treasury imdUSD) + max(0, hub.unbacked() - min(m, hub.exoticUnbacked())) > unbackedBrake x feeBase(). Ledger._adjust calls _mintInterest(ilk, fee) (Treasury share minted to the Treasury, LedgerBase.sol:296-299) at Ledger.sol: […truncated, full text in item result] - **sequence:** 1) Core bad debt stands so that the brake reading exceeds unbackedBrake x feeBase() by `over` (any liquidation shortfall; the test writes totalBadDebt = Treasury imdUSD + allowed + over). 2) A small borrow (fee < over) reverts Braked. 3) Any stranger opens/tops up a position whose upfront fee x (1 - savings share) > over (here 120,000 imdUSD at 5%: fee ~115 imdUSD): the fee is minted to the Treasury first, the reading falls under `allowed`, the borrow passes. Fuzzed over `over` in (small fee, big fee): 500/500 runs […truncated, full text in item result] - **expected:** Braked(u, allowed): the brake is judged on the state before the borrow (as setRate does), so no new core debt while the pre-borrow reading exceeds the limit. - **actual:** The borrow succeeds: Ledger.open returns, new debt 120,000 + fee minted while the pre-transaction reading was over the brake by up to the borrow's own fee share. The cover is imdUSD backed only by the same new debt; the bypass scales with the borrow (about 0.096% of the amount at a 5% average rate, 7-day RATE_COOLDOWN) and is bounded by the type's line and the borrower's collateral. - **reachableAtDeploy:** yes once C1 opens core lines and any core bad debt stands (no governance action needed; the savings split only shrinks the Treasury share) - **fix:** In Ledger._adjust call _checkBrake() before the fee/premium _mintInterest calls (e.g. at the top of the dDebt > 0 branch), or read the Treasury balance before the mints and pass it in, as LedgerSettlement.setRate already orders it. - **files:** src/Ledger.sol:229, src/Ledger.sol:234, src/Ledger.sol:261, src/Ledger.sol:271, src/LedgerBase.sol:296, src/LedgerBase.sol:326, src/LedgerSettlement.sol:243 - **test ran:** yes: forge test --use solar --match-path test/scratch/BrakeExotic.t.sol --fuzz-runs 500 - **test result:** [FAIL: P1: new core debt while braked; counterexample: args=[57600]] testFuzz_F1_feeMintedBeforeBrakeLiftsIt(uint256) (runs: 0); [PASS] test_F1_control_excessPastFeeBrakes() (an excess larger than the fee still brakes the same borrow); with the assertion inverted the same test passed 500/500 runs.
test source ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {stdStorage, StdStorage} from "forge-std/Test.sol"; import {HubBase} from "../utils/HubBase.sol"; import {LedgerBase} from "../../src/Le […truncated, full text in item result] ```
### 2. [low] BFB-1 — Third gas-only round trip: the Morpho allocator's withdraw (hub.burn) then supply (hub.mint) lowers feeBase by the amount for 1-2 h; README:620 names only the Migrator and the bridge - **found by:** brake-fee-base - **property:** P1/P3 cost bound of C2 (fee-free round trips bounded as README:620-631 states) - **claim:** C2, C3 - **sequence:** Chain 4663. Lender row 0 has principal P (100k) supplied >2 buckets ago. tx1 (allocator hot key): lender.withdraw(0,x) -> _exit -> hub.burn(x). tx2 (same or next block): lender.supply(0,x) -> hub.mint(x). Supply returns to its old value, the allocator pays nothing (no fee on either leg; Morpho interest for one block only), but _noteStart recorded tx2's start supply S-x, so feeBase() = S-x for the rest of the bucket and the next; repeatable every bucket to hold it down indefinitely, bounded by Σ row principal and ea […truncated, full text in item result] - **expected:** README:626 (quoted: 'repay is free) or the stable module's exit and mint fees, and GAS ONLY through two fee-free routes: the Migrator (`toV1` then') lists the only gas-only routes: Migrator (<= outstanding) and a feeBps-0 bridge path. Any other round trip costs an upfront fee or […truncated, full text in item result] - **actual:** feeBase falls from 750,003e18 to 651,003e18 after a 99,000e18 allocator round trip with the allocator's balance and the row's principal unchanged: the core brake (allowed = unbackedBrake x feeBase) trips on a ~13% smaller base and every redemption's fee ramp / base-rate rise divides by the smaller figure (redeemers pay more) for 1-2 h, at gas cost, by an actor the threat model lists (the Morpho allocator) and not covered by README:620. - **reachableAtDeploy:** true - **fix:** Either state the lender as a third gas-only route in README:620 with its bound (Σ lender caps x idle), or make lender supply/withdraw not cheap to cycle: e.g. refuse a supply on a row in the same FEE_BASE_WINDOW bucket as its last withdraw (and vice versa), or have the hub count […truncated, full text in item result] - **files:** src/morpho/MorphoLender.sol:151, src/morpho/MorphoLender.sol:158, src/morpho/MorphoLender.sol:166, src/morpho/MorphoLender.sol:415, src/ImdUSD.sol:255, src/ImdUSD.sol:216, src/LedgerBase.sol:348, src/Redeemer.sol:141, README.md:626 - **test ran:** forge test --use solar --match-path test/scratch/LenderRoundTrip.t.sol (uses the repo's test/utils/LenderBase.sol: real ImdUSD + MinterHub + MorphoLender + Morpho) - **test result:** [FAIL: C2: feeBase lowered by a fee-free allocator round trip: 651003000000000000000000 != 750003000000000000000000; counterexample: x = 99000e18] (also failed for every other x tried, e.g. 1673.0e18 -> 748328990849846855406646 != 750003000000000000000000)
test source ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {LenderBase} from "../utils/LenderBase.sol"; /// C2 (a cheaper grief): the Morpho allocator's withdraw (hub.burn) then supply (hub.mint […truncated, full text in item result] ```
### 3. [low] CLP-1 — An operator holding SET_RATE alone keeps a charged change's top-up premium alive indefinitely: a same-rate setRate inside the cooldown keeps premiumRate and restarts the clock, so the owner's borrows weeks later still pay RATE_COOLDOWN at the pre-change rate - **found by:** core-ledger-positions - **property:** P4 (premium only inside a charged change's cooldown); C5 (SET_RATE alone can never add debt) - **claim:** C5 / README:1249 worse than written - **sequence:** 1) owner opens 10,000 at 30%; 2) +1 day owner setRate 2% (charged at 30%, premiumRate = 30%); 3) owner grants op SET_RATE only (mask 4); 4) every 6 days op calls setRate(id, 2%) (newRate == oldRate: allowed for an operator, no premium, line 253 skipped, line 254 skipped because inCooldown, line 255 restarts lastRateChange); 5) day 19 (the charged change's cooldown ended on day 8) owner borrows 10,000. - **expected:** P4: the premium is owed only inside the charged change's cooldown; after day 8 a top-up pays the upfront fee only. README:1249 says an operator's change restarts the cooldown and 'the owner's next change then pays the premium'. - **actual:** The top-up pays 57.534246575342465754 imdUSD extra (7 days at 30% on 10,000), minted as interest. As long as the operator repeats the same-rate call within each 7 days, every owner borrow pays the premium at the ORIGINAL pre-change rate (up to MAX_RATE: 1.92% of each borrow), not only the owner's next rate change. RateManager itself cannot do this (it skips r == p.rate, src/managers/RateManager.sol:202), so it is a raw operator grant (any manager contract or key given SET_RATE). - **reachableAtDeploy:** true - **fix:** In LedgerSettlement.setRate, return early (no state change) when newRate == oldRate, or only restart lastRateChange on an actual change; at least do not let a non-owner's same-rate call extend a premium window (e.g. require msg.sender == owner when newRate == oldRate && inCooldow […truncated, full text in item result] - **files:** src/LedgerSettlement.sol:232, src/LedgerSettlement.sol:253, src/LedgerSettlement.sol:254, src/LedgerSettlement.sol:255, src/Ledger.sol:256, src/Ledger.sol:257 - **test ran:** forge 1.9.0 --use solar --match-path test/scratch/CoreLedgerPositions.t.sol --fuzz-runs 2000 - **test result:** [FAIL: P4: premium only inside the charged change's cooldown: 57534246575342465754 != 0] test_operatorSameRateExtendsTopUpPremium() (gas: 1868364). Same run: [PASS] testFuzz_C2_touchLoopsNoGain (runs: 2000), [PASS] testFuzz_P1_randomSequence (runs: 2000), [PASS] testFuzz_P3_premiumExactAndOwnerOnly […truncated, full text in item result]
test source ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {Modules} from "test/utils/Modules.sol"; import {Test} from "forge-std/Test.sol"; import {IERC20} from "@openzeppelin/contracts/token/ER […truncated, full text in item result] ```
### 4. [low] F1 — Base wstETH yield leg: a wrong Chainlink rate answer (negative read as uint256, or any spike) is read as the capped ceiling, and a stranger's harvest takes principal up to all the headroom accrued since the last poke - **found by:** core-yield-harvest - **property:** P1 (a harvest takes only shares that are yield since the mark); C3 (every leg takes a fall in full) - **claim:** C3, C2 - **sequence:** Base config: WSTETH yieldRate = spot = RateFeed(CL_WSTETH_RATE, latestAnswer(), cap 0.1%/day) x ETH/USD, median = market leg (DeployConfig.sol:793,802). (1) Alice opens 10 wstETH / 10,000 debt; mark = R0 = 1.25. (2) Nobody pokes for 30 days; the real rate rises 0.3% (about 3.65%/yr). (3) The rate proxy answers -1 (liveRate decodes int256 as uint256 = 2^256-1, RateFeed.sol:63) or any value above the real rate. rate() = min(live, ceiling) = the ceiling R0 x 1.03 (RateFeed.sol:73-76), not 0 and not a fall. (4) The med […truncated, full text in item result] - **expected:** taken <= C x (real - mark)/real = 0.0299 wstETH (only yield since the mark; a negative answer reads as dead/unpriced like a reverting source) - **actual:** taken = 0.2913 wstETH (9.7x the real yield): 0.2614 wstETH of principal moved to the Treasury, credited at (1 - yieldFee) of its market value. The borrower loses yieldFee x that principal (0.026 wstETH per 10 wstETH at 30 days unpoked; up to the 5% skew-agree range or more past it, since the market leg keeps it priced) if they exit before the real rate reaches the inflated mark; if they stay, their real yield is withheld until it does. The fuzz over 1-40 unpoked days and any negative or spiking answer fails on ever […truncated, full text in item result] - **reachableAtDeploy:** true - **fix:** For a Chainlink rate source decode int256 and return ok=false on answer <= 0 (and read latestRoundData with a max age); for the harvest on Base use min(RateFeed.rate(), market-implied rate) or skip the harvest unless q.agree; do not let poke() raise highRate from a reading the ma […truncated, full text in item result] - **files:** src/feeds/RateFeed.sol:63, src/feeds/RateFeed.sol:73, src/feeds/RateFeed.sol:75, src/feeds/RateFeed.sol:89, script/DeployConfig.sol:793, script/DeployConfig.sol:802, src/LedgerBase.sol:386, src/LedgerBase.sol:394, src/Ledger.sol:157 - **test ran:** forge test --use solar --match-path test/scratch/YieldHarvest.t.sol (forge 1.9.0, Solar 0.8.38; file placed at test/scratch/ of the audit repo at ff1c192) --fuzz-runs 1000 -vv - **test result:** [FAIL: P1/C3: a negative answer harvests principal: 291262135920520312 > 29910269192422732] test_C3_negativeAnswerReadsAsCeiling() (logs: taken 291262135920520312, realYield 29910269192422731) [FAIL: P1: harvest took only yield since the mark: 224828934504947306 > 22947221390801158; counterexample: […truncated, full text in item result]
test source ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {Modules} from "test/utils/Modules.sol"; import {Test} from "forge-std/Test.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC […truncated, full text in item result] ```
### 5. [low] CBS-1 — Treasury's timelocked payout spends the bad-debt cover and the notes' face: no guard, applied by anyone at a moment of their choosing - **found by:** core-backstop-sleeve - **property:** P2 / C5 (cover keeps first call on the Treasury's imdUSD; notes' face is kept) - **claim:** C5 (one invariant over every route that spends Treasury imdUSD) and the Treasury NatSpec 'nothing here is earmarked for notes, so bad-debt cover keeps first call on the balance' (Treasury.sol:44-45) - **sequence:** 1) Safe proposes the routine payout (imdUSD, to, X) with no bad debt booked. 2) 48h pass (the proposal stays applicable 14 days). 3) A liquidation books core bad debt (its in-tx cover found too little, or the builder orders the apply in front of it in the same block). 4) Any account calls Treasury.applyPending(): _apply sends X imdUSD (Treasury.sol:192) though totalBadDebt != 0 and though it leaves the balance below FeeNotes.outstanding(). retireReserve and payNote both revert BadDebtOutstanding in the same state; […truncated, full text in item result] - **expected:** applyPending of an imdUSD payout reverts while ledger.totalBadDebt() != 0 (and keeps outstanding notes' face), like retireReserve (:120-123) and payNote (:172) - **actual:** payout succeeds: [FAIL: next call did not revert as expected; counterexample: args=[315673, 658232834895533319519108640]] — the whole imdUSD balance left with bad debt booked and all of it owed as notes' face - **reachableAtDeploy:** yes: from the first imdUSD payout proposal after Treasury.wire; not a new Safe power but a stranger-chosen moment (14-day window) that bypasses the guards the other two routes enforce; the Safe can only cancel ahead of it - **fix:** In Treasury._apply, when asset == address(token): revert BadDebtOutstanding if ledger.totalBadDebt() != 0, and cap/revert so the balance after stays >= INoteBook(notes).outstanding(). Better: route retireReserve, payNote and the imdUSD payout through one internal _spend(amount, i […truncated, full text in item result] - **files:** src/Treasury.sol:187, src/Treasury.sol:192, src/Treasury.sol:119, src/Treasury.sol:170, src/Governed.sol:69, src/Governed.sol:14 - **merge note:** Ran on forge 1.8.3 with pragma-0.8.30 copies and mocks (not the real Ledger/Liquidator); failure follows from the cited Treasury._apply code, kept as verified-with-mocks. - **test ran:** forge test --match-path test/TreasurySpend.t.sol (forge 1.8.3, solc 0.8.30 copy; 512 fuzz runs) - **test result:** testFuzz_C5_payoutSpendsCoverWhileBadDebtBooked: FAIL: next call did not revert as expected; counterexample args=[315673, 658232834895533319519108640]. Same suite: testFuzz_P2_retireReserveBound PASS (512 runs), testFuzz_C2_strangerCannotRetire PASS (512 runs).
test source ```solidity contract TreasurySpendTest is Test { Tok usd; LedgerT ledger; Notes notes; Treasury t; address gov = address(0x5AFE); address stranger = address(0xBAD); function setUp() p […truncated, full text in item result] ```
### 6. [low] F1 — ProductFeed.latestValue panics (arithmetic overflow) on two legs that ChainlinkFeed reads as valid prices; isStale() stays false, so the revert reaches consumers with no try/catch - **found by:** core-pricer-feeds - **property:** P1 / C2 / C3: a leg either prices or reads unpriced (0); ChainlinkFeed's own doc says the sanity cap exists so that an absurd answer 'reads as zero (unpriced) instead of panicking' - **claim:** C2/C3 - **sequence:** WBTC type (Ethereum): median = ProductFeed(BTC/USD cl 8 dec, WBTC/BTC cl 18-dec value). BTC/USD answers 1e26 (= the 1e18-USD sanity cap, passes) and WBTC/BTC answers 1e32 (cap 1e36, passes). Each ChainlinkFeed returns a fresh nonzero value (1e46 and 1e32); va*vb = 1e78 > 2^256 so ProductFeed.latestValue reverts with Panic(0x11). Same shape for Base WSTETH median (market x ETH/USD) only at far larger answers. - **expected:** (0,0) unpriced like every other garbage case, or the ChainlinkFeed cap sized so that products cannot overflow - **actual:** ProductFeed.latestValue reverts while isStale() returns false. Pricer.quote reverts. LedgerBase._quote, PricerOracle and Liquidator:198 catch it (unpriced, fails closed), but Redeemer:114, Ledger:476 and Liquidator:228 call pricer.quote without try, so those acts revert instead of reading unpriced. Repay/deposit use _quote (try/catch) and are not blocked. Needs a Chainlink answer around 1e31+ on a ratio feed, i.e. garbage that a broken aggregator must produce; impact is a revert on a path that is already refused fo […truncated, full text in item result] - **reachableAtDeploy:** yes in code (WBTC type on Ethereum, Base WSTETH median); requires an absurd Chainlink answer - **fix:** in ProductFeed use Math.mulDiv(va,vb,1e18) in a try, or return (0,0) when va > type(uint256).max / vb; or lower MAX_PER_TOKEN so that two legs cannot overflow - **files:** src/feeds/ProductFeed.sol:28, src/feeds/ChainlinkFeed.sol:55, src/Redeemer.sol:114, src/Ledger.sol:476, src/Liquidator.sol:228, src/LedgerSettlement.sol:73, src/LedgerSettlement.sol:118 - **merge note:** The test is written as an expected-panic test and PASSES (panic observed, isStale()==false); i.e. the defect reproduced. Built with solc 0.8.28 copies (solar unavailable). Needs an absurd Chainlink answer (passes the sanity caps). - **test ran:** yes, scratch project, forge 1.9.0, solc 0.8.28 - **test result:** [PASS] test_productOverflowPanics() (vb>0, vr>0, p.latestValue() reverts, p.isStale()==false)
test source ```solidity contract Agg { uint8 public decimals = 8; int256 public ans; uint256 public at; uint256 public cap; bool public rev; bytes public raw; function set(int256 a, uint256 t) external { ans = a; […truncated, full text in item result] ```
### 7. [low] F1 — reserveLow falls by GROSS outflow: a spoke's reportLoss->restore round trip leaves the reserve unchanged but lowers the mark by x each time, so one unfrozen spoke zeroes it in one transaction and locks RELEASE_RESERVE / SET_EXOTIC_CAP at no cost - **found by:** hub-reserve-low-water - **property:** P1 (judged at apply on the LOWEST reserve since it was proposed) - **claim:** C1 (the mark is stale-LOW, not the lowest reserve); README:607-611 'a matured apply may revert after a cover (re-propose)' is worse than written: re-proposing does not help because the spoke repeats the free round trip in every window - **sequence:** Reserve R=100k (paid). Row 0 (non-exotic, unfrozen) has outstanding x. Safe proposes RELEASE_RESERVE(amt <= R-x) -> reserveLow=R. In one tx the spoke loops k=(R-amt)/x+1 times: reportLoss(x) [reserve burns x, _fell(x)], restore(x) [covered x minted back into the reserve: inflow, never counted]. End state: reserve R, totalCovered 0, used_0 x (nothing changed) but reserveLow = R-k*x < amt. After 48 h anyone's applyPending(0x03) reverts BadConfig; same for SET_EXOTIC_CAP. Repeat before every re-propose. - **expected:** The reserve never stood below R-x >= amt since the propose, so RELEASE_RESERVE(amt) applies (control test with no round trips applies). - **actual:** applyPending(0x03) reverts BadConfig(): reserveLow = R - k*x while reserve() = R. The reserve-to-Treasury release and every exotic-cap raise are blocked for as long as the spoke keeps doing it (gas only); the Safe's only cure is freeze(row) (restore then mints nothing back, MinterHub.sol:224), after which each report burns real reserve bounded by outstanding. - **reachableAtDeploy:** Needs a spoke whose code can reportLoss and restore at will (a hostile spoke, in the threat model). Shipped spokes do not loop it for a stranger: StableModule.reportLoss is onlyGovernor (src/peg/StableModule.sol:406), poke reports only a real shortfall and restores only owned val […truncated, full text in item result] - **fix:** Net the round trip: keep coverSince (sum of _coverFromReserve burns since the first reserve-kind propose, reset in _proposed, per row) and in restore, while a reserve kind is pending, raise reserveLow by min(fc, coverSince_s) and lower coverSince_s by it, so a report->restore tha […truncated, full text in item result] - **files:** src/hub/MinterHub.sol:197, src/hub/MinterHub.sol:213, src/hub/MinterHub.sol:232, src/hub/MinterHub.sol:422, src/hub/MinterHub.sol:645, src/hub/MinterHub.sol:653 - **merge note:** Needs a hostile spoke (in threat model); shipped spokes do not loop reportLoss/restore. - **test ran:** forge test --use solar --match-path test/scratch/HubLowWater.t.sol (fuzz 256 runs, cache cleared, FOUNDRY_FUZZ_SEED=7) - **test result:** [FAIL: BadConfig(); counterexample: args=[11574074074074 [1.157e13], 700000000000000000 [7e17]]] testFuzz_P1_roundTripsZeroTheMark(uint256,uint256); [PASS] testFuzz_P1_roundTrip_control(uint256,uint256) (runs: 256); [PASS] test_P1_freezeEndsFreeRoundTrips()
test source ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {Test} from "forge-std/Test.sol"; import {ImdUSD} from "../../src/ImdUSD.sol"; import {MinterHub} from "../../src/hub/MinterHub.sol"; c […truncated, full text in item result] ```
### 8. [info] F2 — C2 / README:608-609 wording: a spoke's own mint parked before the propose lifts the exotic CEILING by room x reserveMultiple (3x at the deploy config), not 'bounded by the spoke's room' - **found by:** hub-reserve-low-water - **property:** P1 - **claim:** C2 - **sequence:** Spoke (room x) mints x to itself, payReserve(x); Safe proposes SET_EXOTIC_CAP(floor+(R+x)*3); apply after 48 h; spoke reportLoss(x) burns its park (covered_s x stays on its row). - **expected:** README:608-609: 'A spoke's OWN mint ... still lifts the exotic ceiling, bounded by the spoke's room' -> lift <= x. - **actual:** exoticCap - (floor + reserve*3) = 3x (599997e18 > 199999e18 in the counterexample). In reserve units the lift is <= room (testFuzz_C2_parkedBeforeProposeBoundedByRoom passes); the exotic cap rises by reserveMultiple times that. Needs the Safe to propose the raise on the visible parked reserve. - **reachableAtDeploy:** Yes with a spoke that has room (reserveMultiple 3, script/DeployConfig.sol:218); hostile spoke + Safe propose. - **fix:** State the bound as room x reserveMultiple in the exotic cap (README:607 and the C2 wording), or count only paidIn/repayReserve (not a spoke's park) toward the ceiling. - **files:** src/hub/MinterHub.sol:445, src/hub/MinterHub.sol:670, script/DeployConfig.sol:218, README.md:608 - **test ran:** same run as F1 - **test result:** [FAIL: exotic ceiling lifted past the spoke's room: 599997000034722222222225 > 199999000011574074074075; counterexample: args=[11574074074074 [1.157e13]]] testFuzz_C2_ceilingLiftAtMostRoom(uint256); [PASS] testFuzz_C2_parkedBeforeProposeBoundedByRoom(uint256) (runs: 256)
test source ```solidity // in test/scratch/HubLowWater.t.sol (LwBase / LwSpoke as in finding F1's source) function testFuzz_C2_ceilingLiftAtMostRoom(uint256 x) public { x = bound(x, 1e18, ROOM); plain.min […truncated, full text in item result] ```
### 9. [info] BFB-2 — A record of 0 reads as none not only at launch: whenever the supply at a minting/burning tx start is 0 again, a fresh mint counts in feeBase at once - **found by:** brake-fee-base - **property:** P1 Down (outside the record-0 window, supply minted in the current bucket never counts before it stood across a bucket boundary) - **claim:** C4 - **sequence:** Spoke chain (Base / 4663) long after launch, supply S held by bridgers/borrowers. tx1: the last units leave (bridge send / repay) -> supply 0. tx2 same bucket: a mint of M (bridge claim, hub spoke, borrow). _noteStart records low 0, feeBase() reads m == 0 as 'no record' and returns circulating() = M. - **expected:** README:630 limits it to 'for the first 1-2 h of each chain's launch (Base and Robinhood Chain: from the first bridge claim)'; P1: M must not count before it stood across a bucket edge (figure 0 -> brake allowed 0, fee at cap). - **actual:** feeBase() = 1,000,000e18 in the same bucket as the mint, 5 h after launch. - **reachableAtDeploy:** true - **fix:** Store at+1 in the record (0 stays 'no record', a true 0 low is kept) or add a 'recorded' bit; or document that the window reopens whenever the chain's supply returns to 0. - **files:** src/ImdUSD.sol:225, src/ImdUSD.sol:255, README.md:629-631 - **test ran:** forge test --use solar --match-path test/scratch/FeeBaseModel.t.sol - **test result:** [FAIL: P1: 1,000,000 minted this bucket counts at once: 1000000000000000000000000 != 0] test_C4_zeroRecordRecursAfterLaunch() (gas: 273293)
test source ```solidity see BFB-3-model below: test_C4_zeroRecordRecursAfterLaunch in FeeBaseModel.t.sol (same file as the holds fuzz) ```
### 10. [info] core-redeemer-F1 — An issuer pause of the collateral token makes redeem revert with the token's error, not NothingRedeemed/NotRedeemable, so P3's closed list of reverts does not hold - **found by:** core-redeemer - **property:** P3 - **claim:** P3: for a caller whose maxFee and minCollateralOut fit it reverts otherwise only when no visited position can pay (NothingRedeemed) or the type is not redeemable (NotRedeemable) - **sequence:** 1) A borrower opens a healthy position on a redeemable, priced type. 2) The collateral's issuer pauses transfers (the threat model lists issuers that pause). 3) A holder calls redeem(ilk, amt, maxFee=1e18, maxPositions=10, minOut=0). - **expected:** Under P3 as written, the redemption either fills or reverts with NothingRedeemed or NotRedeemable. - **actual:** redeemPosition sends the redeemer's collateral with a plain Join(c.join).exit(to, collateralOut) (LedgerSettlement.sol:97). Only the Treasury's share is wrapped in try/catch (_toTreasury). The token's revert ('paused') unwinds the whole redemption. Test result: [FAIL: P3: other revert] at the first fuzz input. No money is lost: positions, fee and base rate are unchanged. But the type's peg floor is closed for as long as the pause lasts, and the property's list of reverts is incomplete. A redeemer the issuer blockli […truncated, full text in item result] - **reachableAtDeploy:** true - **fix:** Either state the issuer-pause or blocklist revert in P3 and the README known issues, or make the payout non-blocking: try the exit, and on failure skip the position (taken = 0) so that NothingRedeemed is the revert. - **files:** src/LedgerSettlement.sol:97, src/Redeemer.sol:123, src/Redeemer.sol:128 - **test ran:** true - **test result:** forge test --use solar --match-path test/scratch/RedeemPause.t.sol: [FAIL: P3: other revert; counterexample: args=[210994037]] testFuzz_issuerPauseRevertsRedemption(uint256) (runs: 0). Suite result: FAILED. 0 passed; 1 failed
test source ```solidity // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {System} from "../utils/System.sol"; import {MockERC20, MockFeed} […truncated, full text in item result] ```
### 11. [info] F2 — Whether anyone harvests first changes a redemption's outcome: a position whose pending yield pays all its debt stays first in the redemption list and uses up one of maxPositions, so the redemption fills less or reverts NothingRedeemed - **found by:** core-yield-harvest - **property:** P3 (redemption acts on the harvested state, so whether anyone harvests first changes no outcome) - **claim:** P3 - **sequence:** A opens 4,000 / 1,000 debt at 1% (first in the list), B 4,000 / 3,000 at 5%. The share rate rises to 1.5: A's pending yield (1,200 credit) pays all of A's debt. Branch 1: anyone harvests A first (Ledger.harvest relists A out), then redeem(R, 500, maxFee, maxPositions=1) fills 500 from B. Branch 2 (same state, no harvest in front): the Redeemer visits A, redeemPosition's own harvest pays A to zero, skip, taken 0, loop ends at maxPositions; NothingRedeemed. - **expected:** same redemption in both branches - **actual:** branch 1 redeems 500e18, branch 2 reverts (0 redeemed). No funds lost: the redeemer's transaction reverts or fills less; with a larger maxPositions the fill is the same. Severity info. - **reachableAtDeploy:** true - **fix:** In Redeemer.redeem, do not count positions that redeemPosition skipped because its harvest left no debt against maxPositions (or keep visiting while taken == 0 and debt == 0), or document P3 as holding for the amounts only. - **files:** src/Redeemer.sol:121, src/Redeemer.sol:123, src/LedgerSettlement.sol:74, src/LedgerSettlement.sol:76, src/Ledger.sol:171 - **test ran:** forge test --use solar --match-path test/scratch/YieldHarvest.t.sol (forge 1.9.0, Solar 0.8.38; file placed at test/scratch/ of the audit repo at ff1c192) - **test result:** [FAIL: P3: whether anyone harvests first changes no outcome: 0 != 500000000000000000000] test_P3_harvestInFrontChangesRedemption() (gas: 1753292)
test source ```solidity // harness: setUp/_add/_ids/_adj of F1's file (ilk R: plain rate source YRate, median = spot = YFeed 1e18, yieldFee 10%, dust 100) /// A's yield pays its whole debt; B keeps debt. A redemption vis […truncated, full text in item result] ```
### 12. [info] CBS-2 — Dust rule reads a stale lastHigh: a re-priced holding whose feed dies counts as 0 and a converting bucket takes part of it - **found by:** core-backstop-sleeve - **property:** P1 (no conversion moves nav in its own favour) - **claim:** Backstop NatSpec: 'a holding worth under DUST_VALUE at its last good high price counts as 0' (Backstop.sol:24); lastHigh is refreshed only in closeBid (:493) and in _convert after a bucket has matured (:575-580), so it can be arbitrarily old when the feed dies - **sequence:** Holder H 1000 converted; a bid buys 9 WETH-like at 1 (lastHigh=1, 9 < 10 dust). Token re-prices to 3 (27 held) while no bucket matures; A deposits 1000; feed stalls (ok=false, high=0); A's bucket converts at nav that counts the 27 as 0; A exits in kind. - **expected:** A leaves with <= 1000 of value at market - **actual:** A leaves with 999.99 imdUSD + 4.52 tokens = 1013.56 at price 3 (13.56 taken from H). Bound: about DUST_VALUE x (price now / lastHigh) x the converter's share; small for blue tokens. - **reachableAtDeploy:** yes (any sleeve holding) - **fix:** Refresh lastHigh on every good read reached by a conversion step (e.g. in _clearRetired's loop or before _convert's early return), or apply the dust rule only to a lastHigh younger than a bound. - **files:** src/backstop/Backstop.sol:301, src/backstop/Backstop.sol:575, src/backstop/Backstop.sol:493 - **merge note:** Ran on forge 1.8.3 with pragma-0.8.30 copies and mocks (not the real Ledger/Liquidator); failure follows from the cited Treasury._apply code, kept as verified-with-mocks. - **test ran:** forge test --match-test test_dustRuleStaleLastHigh -vv (forge 1.8.3, solc 0.8.30 copy) - **test result:** FAIL: converter took value from the holders: 1013561024610748367652 > 1000000000000000000000; logs: A weth out 4520341536916122551, A usd out 999999999999999999999
test source ```solidity /// Liquidator stand-in: open, the Ledger's burn + join.exit, close — in ONE call like Liquidator.standingBid (isolate=true). contract Liq { function bid(Backstop s, Tok usd, Tok c, bytes32 ilk, u […truncated, full text in item result] ```
## Claims (per item; refuted beats holds) | item | claim | result | evidence | |---|---|---|---| | hub-reserve-low-water | C1 | **holds** | Writers of reserveLow: _proposed MinterHub.sol:432 (only when pendingKinds & RESERVE_KINDS == 1< 3% (proposed, 48h, applied by a stranger), a 1% pos […truncated, full text in item result] | | core-ledger-positions | C5 | **refuted** | setRate itself holds (NotOwner at LedgerSettlement.sol:235, testFuzz_P3_premiumExactAndOwnerOnly 2000 runs), a […truncated, full text in item result] | | core-ledger-positions | C6 | **holds** | delegatecall sites in src: src/Ledger.sol:401, src/Parameters.sol:336,358, src/house/Ledger.sol:494, src/house […truncated, full text in item result] | | core-ledger-positions | C7 | **holds** | test_P2_exitUnderEveryStop: with Parameters.lowerCap at 100 (market 2000) a plain withdrawal is refused (Unhea […truncated, full text in item result] | | core-ledger-positions | C8 | **holds** | Non-owner changes: addFor/repayFor (authorized=true, Ledger.sol:133-146: only dCollateral>0 / dDebt<0), Ledger […truncated, full text in item result] | | core-yield-harvest | C1 | **holds** | grep of src/ and script/ at ff1c192: core yieldMark written only at LedgerBase.sol:390,395 (_harvest) and :459 […truncated, full text in item result] | | core-yield-harvest | C2 | **holds** | For ERC-4626/stEthPerToken legs: testFuzz_C2_P1_donationsAndTimings (1000 runs, 12 random steps of warp 0-5 da […truncated, full text in item result] | | core-yield-harvest | C3 | **refuted** | F1: on the Base leg a negative answer is read as 2^256-1 and rate() returns the ceiling (no fall, still priced […truncated, full text in item result] | | core-yield-harvest | C4 | **holds** | Pricer.sol:66-71: low = min(median, spot) only while they agree within skew (5% in DeployConfig), else low = m […truncated, full text in item result] | | core-yield-harvest | C5 | **holds** | _harvest sets the mark when debt == 0 before the priced check (LedgerBase.sol:389-391), and every borrow runs […truncated, full text in item result] | | core-yield-harvest | C6 | **refuted** | test/invariant/Invariants.t.sol harvest handler (lines 259-275) only counts ok_harvest/ok_harvestCredit; the o […truncated, full text in item result] | | core-liquidation | C1 | **holds** | Not refuted for any realistic token/feed/sleeve; bound derived and tested. src/Liquidator.sol:137-146 checks g […truncated, full text in item result] | | core-liquidation | C2 | **holds** | Bounded. Backstop.deposit (Backstop.sol:331-343) and realize (383-385) run _convert before pushing today's buc […truncated, full text in item result] | | core-liquidation | C3 | **holds** | Same sweep as C1 (RAN, PASS, 3963/3963 sleeve). A self-call that fails reverts whole (try in Liquidator.sol:13 […truncated, full text in item result] | | core-liquidation | C4 | **refuted** | A builder/sequencer cannot seize earlier by delaying the grace-ending poke: while no poke has ended a silence […truncated, full text in item result] | | core-liquidation | C5 | **holds** | cbBTC modelled by the repo's FreezableStable. Treasury blocklisted, marker blocklisted, sleeve blocklisted in […truncated, full text in item result] | | core-liquidation | C6 | **holds** | CoreLiqStarveTest (RAN, PASS): reference run at full gas gives the Treasury's cut and the marker's chip; then […truncated, full text in item result] | | core-liquidation | C7 | **holds** | ONE invariant, checked site by site: for every catch-and-continue site S on a liquidation route, EITHER (a) it […truncated, full text in item result] | | core-backstop-sleeve | C1 | **holds** | Direct oracle reads in src/backstop/Backstop.sol: retire priceOf :239; nav priceOf :298; closeBid priceOf :491 […truncated, full text in item result] | | core-backstop-sleeve | C2 | **holds** | retireReserve is onlyGovernor (Treasury.sol:119; testFuzz_C2_strangerCannotRetire PASS 512 runs) and burns exa […truncated, full text in item result] | | core-backstop-sleeve | C3 | **holds** | testFuzz_C3_timedDepositGetsOnlyItsShare PASS (512 runs): A deposits so its bucket matures exactly at the bid […truncated, full text in item result] | | core-backstop-sleeve | C4 | **holds** | test_C4_blocklistOnlyThatLeg PASS: with the token blocklisting the sleeve the bid reverts whole (Liquidator.bi […truncated, full text in item result] | | core-backstop-sleeve | C5 | **refuted** | Invariant: while ledger.totalBadDebt() != 0, Treasury imdUSD leaves only through Ledger.cover; otherwise any n […truncated, full text in item result] | | core-pricer-feeds | C1 | **holds** | All Ethereum feeds in script/DeployConfig.sol:179-185 read on chain (RPC the task names for chain 1, block 265 […truncated, full text in item result] | | core-pricer-feeds | C2 | **holds** | testFuzz_chainlink (2000 runs, any answer, updatedAt incl. 0/future, decimals change): value!=0 implies answer […truncated, full text in item result] | | core-pricer-feeds | C3 | **holds** | testFuzz_product (2000 runs): either leg 0 -> (0,0); time = older leg's; isStale true if either leg stale. Pri […truncated, full text in item result] | | core-pricer-feeds | C4 | **holds** | [fork] PARTLY RUN: Ethereum block 26553727 (task's chain-1 RPC) all 7 proxies decimals 8, descriptions match c […truncated, full text in item result] | | core-pricer-feeds | C5 | **holds** | Base spot leg = RateFeed(latestAnswer) x ETH/USD (DeployConfig.sol:790-795). A negative answer decodes to a hu […truncated, full text in item result] | | core-pricer-feeds | sheet-accuracy | **holds** | Every function the sheet names exists: Pricer.quote/_depegged, ChainlinkFeed.latestValue, RateFeed, ProductFee […truncated, full text in item result] | Refuted: brake-exotic-margin P1-doc (README:21 vs feeBase divisor, documentation only), brake-fee-base C2 and C4, core-backstop-sleeve C5, core-ledger-positions C5, core-liquidation C4 (refuted in the direction of the claim's premise: a builder cannot seize earlier, no finding), core-yield-harvest C3 and C6 (C6: repo invariant campaign does not assert P1), hub-reserve-low-water C2. Disagreements between items: none — no claim was judged by two items. ## Properties that hold (with what was tried) - **hub-reserve-low-water — P1 (safety direction: no reserve kind applies on imdUSD parked after its propose, in any order):** Invariant above: 1500 runs x 100 calls, proposals of 0x01/0x03 in either order, second kind proposed while the first pen […truncated, full text in item result] - **hub-reserve-low-water — P2 (reserve rises only by payReserve, repayReserve, restore mint-back <= covered_s never on a frozen row, or a transfer in; reserve + totalCovered rises only by […truncated, full text in item result]:** Invariant flags 1 (any reserve rise checked against the call's route and its covered_s bound, frozen restore allowed 0) […truncated, full text in item result] - **hub-rows-frozen-loss — P1 Every hub mint leaves used_s <= cap_s, sum used <= totalCap, sum exotic used <= exoticCap; only a mint by s raises used_s.:** mint checks all three on the hub's own counters (src/hub/MinterHub.sol:167-175). Writers of outstanding/bad/covered (min […truncated, full text in item result] - **hub-rows-frozen-loss — P2 A spoke can always burn up to outstanding_s of its own balance (any cap, freeze, loss, mark, proposal).:** burn (src/hub/MinterHub.sol:185-193) reads only outstanding. _less cannot underflow because totalUsed and exoticUsed equ […truncated, full text in item result] - **hub-rows-frozen-loss — P3 A row whose loss is owed (bad, covered or a mark) cannot be unfrozen by any apply; once cleared, a matured UNFREEZE lands.:** UNFREEZE is the only writer of frozen=false (src/hub/MinterHub.sol:536), and it is re-checked at apply (src/hub/MinterHu […truncated, full text in item result] - **hub-rows-frozen-loss — P4 The reserve burns against bad, non-exotic rows first; spoke s leaves at most used_s unbacked whatever its code does.:** _coverFromReserve src/hub/MinterHub.sol:619-647. Handler: after every report or coverFromReserve that raised an exotic r […truncated, full text in item result] - **hub-rows-frozen-loss — Callers and readers of the row state (src/ and script/):** Writers: only MinterHub. Spoke callers: StableModule (_settle src/peg/StableModule.sol:831-838 and poke :321-326 restore […truncated, full text in item result] - **brake-fee-base — P1 Down:** Model fuzz above (3000 runs): minted supply never raised feeBase above the model's minimum of standing supplies over pre […truncated, full text in item result] - **brake-fee-base — P2 Up:** Model fuzz kinds burnMint / mintBurn / flash(burn+re-mint inside the loan) in one tx: feeBase and circulating unchanged […truncated, full text in item result] - **brake-fee-base — P3 Liveness:** testFuzz_P3_brakeExactAndRepayDepositLive (1000 runs, real Ledger + hub, exotic loss 0-100k reported via the house spoke […truncated, full text in item result] - **brake-exotic-margin — P1:** Holds for the hub term and for the charged setRate path (check before mint). FAILS in Ledger._adjust: see F1. Accrued in […truncated, full text in item result] - **brake-exotic-margin — P2:** testFuzz_P2_C2_sequences: 500 runs x 24 acts (both spoke kinds mint/report/payReserve/burn, Safe markLoss on either row, […truncated, full text in item result] - **brake-exotic-margin — P3:** Margin fuzzed over the whole rule range via the 48 h SET_EXOTIC_MARGIN applied by a stranger with losses and positions l […truncated, full text in item result] - **core-redeemer — P1:** Walk model (both walk tests): out*payout <= redeemed, out = Σ floor(floor(taken/payout)*(1-fee)), positions taken strict […truncated, full text in item result] - **core-redeemer — P2:** testFuzz_feeBaseNotDiluted (1000 runs): borrow 1e18..50M in one transaction, then feeFor and redeem from 0 to 3599 s lat […truncated, full text in item result] - **core-redeemer — P3:** testFuzz_pulseGrace (1000 runs; silences 0-3 h, with or without a poke in between): redeem reverts SequencerGrace exactl […truncated, full text in item result] - **core-redeemer — P4:** Walk model with random prices (80-120%), dust 100e18, yield harvests and partial liquidations: every touched position en […truncated, full text in item result] - **core-ledger-positions — P1:** testFuzz_P1_randomSequence, 2000 runs x 30 steps over 3 positions/2 owners: open, partial repay, full repay + full withd […truncated, full text in item result] - **core-ledger-positions — P2:** test_P2_exitUnderEveryStop: cap far below market, line lowered to 0 (frozen), median stale (unpriced): full repay (dDebt […truncated, full text in item result] - **core-ledger-positions — P3:** testFuzz_P3_premiumExactAndOwnerOnly 2000 runs (debt 100..50k, both rates 1%..100%, dt 0..7d-1): premium == ceil(debt*ol […truncated, full text in item result] - **core-ledger-positions — P4:** Upfront fee on every dDebt>0 (Ledger.sol:228-237), premium on top-ups inside a charged change's cooldown (Ledger.sol:256 […truncated, full text in item result] - **core-ledger-positions — P5:** AuditD1Layout PASS; forge inspect storageLayout of Ledger and LedgerSettlement identical; both inherit only LedgerBase a […truncated, full text in item result] - **core-yield-harvest — P1:** Holds for ERC-4626 and stEthPerToken legs: C2 fuzz (per-harvest yield-only bound, credit == reserveBacked rise == debt c […truncated, full text in item result] - **core-yield-harvest — P2:** C5 fuzz (unpriced skip, repay to zero, debt-free rise, front-run harvest, reborrow); mark never falls (C2 fuzz); deposit […truncated, full text in item result] - **core-yield-harvest — P3:** Liquidation and health view: _liqView/_afterHarvest mirror _harvest's skips (LedgerBase.sol:435-449) and liquidatePositi […truncated, full text in item result] - **core-yield-harvest — P4:** testFuzz_P4_reserveBackedFallsOnlyByOwnBurn (256 runs, any caller/amount): retire burns only the caller's imdUSD, reserv […truncated, full text in item result] - **core-liquidation — P1 Anyone liquidates an unhealthy core position in one call while priced; no token, call depth or gas choice forces the caller path while the sleeve can pay:** C1/C3 sweep (3963 gas limits, 211-gas steps, sleeve holding collateral, room needing a matured bucket: 0 caller-path suc […truncated, full text in item result] - **core-liquidation — P2 The standing bid settles whole or leaves no trace; a healthy position is never seized:** Settles whole: any revert inside standingBid (Liquidator.sol:158-170) undoes openBid/liquidatePosition/closeBid; closeBi […truncated, full text in item result] - **core-liquidation — P3 Pulse: only a poke ending a gap > gap opens a grace; nothing ends a grace early; a quiet chain errs toward borrowers:** CoreLiqPulseTest.testFuzz_pulseModel (1000 runs): random gap 1min..1h, grace 1s..6h, 10 steps with dt in [0,3*gap+2] (sa […truncated, full text in item result] - **core-liquidation — P4 No liquidation waits on the Treasury's standing with the collateral's issuer: a refused cut or marker fallback is held as owedToTreasury, never a revert:** testFuzz_owedHolds (1000 runs, all freeze combinations, gas 150k..8M, both paths) and CoreLiqStarveTest sweeps. Writers […truncated, full text in item result] - **core-backstop-sleeve — P1:** invariant_P1_noActionMovesPpsInItsFavour PASS (64 runs x 60 calls, 3 actors: deposit/cancel/realize/requestWithdraw/with […truncated, full text in item result] - **core-backstop-sleeve — P2:** testFuzz_P2_retireReserveBound (512 runs) and Ledger.retire's cap (Ledger.sol:365); writers of reserveBacked: LedgerBase […truncated, full text in item result] - **core-backstop-sleeve — P3:** testFuzz_P3_unpricedFailsClosed (512 runs, any low/high with ok=false): nav ok=false, buckets wait, a bid reverts BadPri […truncated, full text in item result] - **core-backstop-sleeve — P4:** testFuzz_P3_P4_bidBelowLowReverts: a refused close leaves tracked and coll unchanged; the whole open/settle/close runs a […truncated, full text in item result] - **core-pricer-feeds — P1 (fresh Chainlink or unpriced):** testFuzz_chainlink; testFuzz_pricer with stale/zero median and spot (priced=false, low=payout=0, borrowable=false). Writ […truncated, full text in item result] - **core-pricer-feeds — P2 (RateFeed cap):** testFuzz_rate: random live-rate paths (including falls and returns), gaps up to 30 days, pokes at random points by any c […truncated, full text in item result] - **core-pricer-feeds — P3 (side by side):** testFuzz_pricer: borrow <= low <= min(median,spot) when legs agree; borrowable implies agree and low <= spot and high >= […truncated, full text in item result] ## Not run - hub-reserve-low-water: No [fork]/[data] claims in this sheet: NOT RUN (no RPC used). - hub-reserve-low-water: Bridge forged inbound to the hub under compromised DVNs (C3 tail): reasoned from ImdBridge.sol:590/611, no test. - hub-reserve-low-water: Deployer powers: MinterHub has no owner, wirer or seal (MinterHub.sol:24); ImdUSD.wire is the deployer's one-shot (ImdUSD.sol:101), not exercised here. - hub-rows-frozen-loss: The sheet has no [fork] or [data] claims, so no RPC was used: NOT RUN. - hub-rows-frozen-loss: solc 0.8.38 is not installed and `--use solar` is refused by forge 1.9.0. Tests were compiled with solar 0.3.1 given by path; the verifier's solc 0.8.38 build was not reproduced here. - brake-fee-base: [fork]/[data]: none in this sheet; NOT RUN - brake-fee-base: Bridge round trip re-run (relied on repo test AuditW7JudgeBridgeFeeBase.t.sol, not executed here) - brake-fee-base: Stable-module round-trip cost at governed fee values (feeMin / mintFeeMax = 0) - brake-fee-base: Liquidation and redemption under the brake were checked by code reading, not by a test - brake-exotic-margin: No [fork]/[data] claim in this sheet; no fork test was RUN (NOT RUN: no RPC used). - brake-exotic-margin: Real FixedLoans/MorphoLender/house spokes were not wired into the sequence fuzz (TestSpoke stand-ins from test/utils/HubBase.sol); their fee-to-reserve route was reasoned from code. - core-redeemer: C1 [data]: the Chainlink round replay (Ethereum block 26552986) was not re-run; the figures are the sheet's/README's - core-redeemer: Fork tests: none needed for this item; all tests are local (test/utils/System.sol rig) - core-ledger-positions: No [fork]/[data] claims in this sheet: NOT RUN (none needed). - core-ledger-positions: Liquidation and yield-type (harvest) routes were read, not fuzzed. - core-ledger-positions: Brake via a real hub loss: read only. - core-yield-harvest: [fork]/[data]: no fork claims in this sheet; no RPC read. NOT RUN: the Invariants.t.sol campaign counts (343-408 harvests per 8 seeds) quoted in C6; RateManager (reads Position without yieldMark) not exercised. - core-liquidation: No [fork]/[data] claims in this sheet; no fork test run (no RPC used). - core-liquidation: Pulse integration on a Base/4663 deploy script config not run; Pulse tested directly and through System with a Pulse override (Liquidator._poke is chain-independent). - core-liquidation: 10-token sleeve and heavy proxied-feed gas sweeps not built; C1's bound for them is from the EIP-150 reasoning above. - core-liquidation: Redemption with Treasury blocklisted not re-run (repo test AuditS12TreasuryOwed covers it). - core-liquidation: Integration helper shared by the tests: // SPDX-License-Identifier: MIT pragma solidity 0.8.38; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {System} from "../utils/System.sol"; import {MockERC20, MockFeed} from "../utils/Mocks.sol"; import {FreezableStable} from "../utils/StableKit.sol"; import {Backstop} from "../../src/backstop/Backstop.sol"; import {ILedgerCov […truncated, full text in item result] - core-backstop-sleeve: forge 1.9 --use solar with solc 0.8.38: NOT RUN (forge 1.8.3 installed, no solar; solc 0.8.38 not installed). Tests ran on pragma-0.8.30 copies with mocks as stated in 'forge'. - core-backstop-sleeve: Full-system tests with the real Ledger/LedgerSettlement/Liquidator/PricerOracle: NOT RUN (mocks used). - core-backstop-sleeve: No [fork]/[data] claims in this sheet: none run. - core-pricer-feeds: [fork] 4663 feeds (CL_ETH_USD 0x78F3.., CL_USDG_USD 0x61B7..) and the stocks feeds: not read - core-pricer-feeds: [fork] rate and product leg reads at head; round-history gap check; min/max clamp reads - core-pricer-feeds: solc 0.8.38 build and --use solar: not available (copy-compiled with 0.8.28, pragma only change) - core-pricer-feeds: src/house/Pricer.sol and src/house/LedgerBase.sol (the IMD house copy) not tested; outside the sheet's file list - core-pricer-feeds: PricerOracle seal / setIlk ordering read but not fuzzed (setIlk is deployer-only until seal, then Parameters-only, new tokens only) Toolchain caveats from the items: core-backstop-sleeve and core-liquidation ran forge 1.8.3 (no `--use solar`); core-pricer-feeds and hub-rows-frozen-loss could not use solc 0.8.38/`--use solar` as specified and compiled copies with another compiler. [fork]: only core-pricer-feeds C1/C4 RAN (Ethereum block 26553727, task's chain-1 RPC; partly); all other [fork]/[data] reads NOT RUN, including core-redeemer C1 [data] round replay (Ethereum block 26552986).