{
 "sources": [
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/README.md",
   "quote": "The adapter sells through its own offer and is the buyer callback of that sale: it clears the admission in that callback, before Midnight transfers the loan token, so neither the buyer nor the token can reuse it."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/README.md",
   "quote": "`setIsWhitelistedWithSig` accepts a stale nonce when the account is already set to the signed value. The signature must still be unexpired and from a current whitelister."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/gates/IKRCompatibleEnterGate.sol",
   "quote": "/// @dev Registered adapter factories are trusted to always return true to isCreated on adapters they deployed, and their adapters must behave correctly. Otherwise, in-kind redemptions can be blocked even when admitEnabled is set to true."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/gates/WhitelistEnterSubGate.sol",
   "quote": "require(whitelister != address(0) && isWhitelister[creditSide][whitelister], InvalidSigner());"
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/MidnightAdapter.sol",
   "quote": "/// @dev With enterGateFactory set, the adapter can only enter gated markets whose gate was created by enterGateFactory, has admission enabled and lists the adapter's factory in admitterFactory."
  }
 ]
}