{
  "sources": [
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/audit/goal/morpho-lender.md",
      "quote": "P2 Anyone pulls principal over the cap; the allocator / Safe withdraws to 0 as far as Morpho's idle, in any state; no exit calls hub.mint or reads the oracle."
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/audit/goal/morpho-lender.md",
      "quote": "C7 On Base the lender has no market and no hub row (BaseConfig lenderCap 0; the hub row file is refused): show any path that supplies to Morpho or mints."
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/src/morpho/MorphoLender.sol",
      "quote": "function supply(uint256 index, uint256 amount) external onlyOps nonReentrant {\n        if (amount == 0) revert ZeroAmount();\n        Row storage r = _row(index);\n        _settle(index, r, 0);\n        uint256 p = uint256(r.principal) + amount;\n        if (p > r.cap) revert OverCap(); // L1"
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/src/morpho/MorphoLender.sol",
      "quote": "uint256 public constant MAX_MARKETS = 24;"
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/src/morpho/MorphoLender.sol",
      "quote": "if (atPropose) {\n                if (\n                    morpho.position(id, DEAD).supplyShares < MIN_DEAD_SHARES || m.totalBorrowAssets < MIN_DEAD_BORROW\n                ) revert BadMarket();\n            }"
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/src/morpho/MorphoLender.sol",
      "quote": "/// @dev At apply the dead deposit and dead borrow are not re-read: anyone may repay the dead borrow on its behalf, so a\n    /// re-check would let a stranger block a matured approval. They were checked at propose."
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/src/hub/MinterHub.sol",
      "quote": "function _spoke() private view returns (uint256 i, Spoke storage s) {\n        uint256 n = indexOf[msg.sender];\n        if (n == 0) revert NotSpoke();\n        i = n - 1;\n        s = rows[i];\n    }"
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/script/DeployConfig.sol",
      "quote": "// lenderCap stays 0: the blue-chip lender gets no hub row on day 1 (file H3 is refused)."
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/script/launch/SafeBatch.s.sol",
      "quote": "require(config().launch.lenderCap != 0, \"H3: the lender gets no hub row at launch on this chain (launch.lenderCap is 0)\");"
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/src/morpho/StockLiquidator.sol",
      "quote": "SAME-TRANSACTION REPORT (wave-7 panel 4, dropped specialist lead, kept as hardening): a settle that fails while the gas left\n/// after it is under 1/32 of what was left before it (it ran out of gas: the caller's limit was short) reverts the liquidation\n/// (`SettleGasShort`) instead of returning with the loss unreported; a settle that reverts by itself is still only tried."
    },
    {
      "url": "https://raw.githubusercontent.com/imdusd/imdusd-v2-audit/ff1c192b3798542997f600091f2dc73ff05e4c40/README.md",
      "quote": "**Lender**: 24 market rows for life; dead supply / borrow checked at propose only; a third party's bad debt is reported at\n  the next settle; `assets()` counts claims only (a donation is stuck and counts for nothing); `cancel()` reverts\n  SeveralPending while two kinds are pending: incident batches use `cancel(kind)`."
    }
  ]
}
