{
  "sources": [
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/audits/2026-10-12-midnight-adapter-cantina-draft.pdf",
      "quote": "MORPHO: MIDNIGHT-VAULT-ADAPTER"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/audits/2026-10-12-midnight-adapter-trustsec-draft.pdf",
      "quote": "Smart Contract Audit"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/README.md",
      "quote": "Relative caps only constrain allocations, so they can be exceeded because of withdrawals from the vault."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/README.md",
      "quote": "These constraints are intended for operational quality of life, not to provide guarantees to depositors."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/MidnightAdapter.sol",
      "quote": "Tokens with an expensive smallest unit (e.g. WBTC, cbBTC, 2-decimal stablecoins) are not supported"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/MidnightAdapterFactory.sol",
      "quote": "Bundles (shared msg.sender) must derive preSalt from the initiator too."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/interfaces/IMidnightAdapter.sol",
      "quote": "WAD-scaled simple interest rate per second earned on the net credit, so net of Midnight fees."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/libraries/PackedDurationsLib.sol",
      "quote": "Assumes index < 8. Otherwise the return value is unspecified."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/gates/IKRCompatibleEnterGate.sol",
      "quote": "Registered adapter factories are trusted to always return true to isCreated on adapters they deployed"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/gates/WhitelistEnterSubGate.sol",
      "quote": "A side can be made open at deployment, letting any account enter on that side (forever)."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/ratifiers/MidnightAdapterPriceRatifierV1.sol",
      "quote": "Approved roots remain ratified after an allocator is removed, until explicitly unratified."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/ratifiers/MidnightAdapterRateRatifierV1.sol",
      "quote": "Allocators and sentinels can authorize other addresses through the adapter's Midnight instance to act on their behalf."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/VaultV2.sol",
      "quote": "Relative caps can still be manipulated by allocators (with short-term deposits), but it requires capital."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/MorphoMarketV1AdapterV2.sol",
      "quote": "ids_[1] = keccak256(abi.encode(\"collateralToken\", marketParams.collateralToken));"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/midnight/4e2570e51171d09228645b2d5bdf84ef24b1720b/README.md",
      "quote": "It is organized around isolated, immutable, permissionlessly created markets with fixed-maturity."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/midnight/4e2570e51171d09228645b2d5bdf84ef24b1720b/src/Midnight.sol",
      "quote": "Nothing prevents borrowers from opening small positions / takers and liquidators from leaving small positions"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/midnight/4e2570e51171d09228645b2d5bdf84ef24b1720b/src/ratifiers/RateRatifierV1.sol",
      "quote": "The rate is quoted as simple interest using the money market quoting method."
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/midnight/4e2570e51171d09228645b2d5bdf84ef24b1720b/src/periphery/README.md",
      "quote": "Anyone authorized to act for the owner on Midnight can trigger this callback through an offer"
    },
    {
      "url": "https://raw.githubusercontent.com/morpho-org/midnight/4e2570e51171d09228645b2d5bdf84ef24b1720b/certora/README.md",
      "quote": "unless a property is specifically about callbacks, external calls are assumed not to re-enter Midnight."
    },
    {
      "url": "https://morpho.org/whitepapers/midnight-whitepaper.pdf",
      "quote": "Morpho Midnight Whitepaper"
    }
  ]
}
