{
 "sources": [
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/MidnightAdapter.sol",
   "quote": "Losses are immediately accounted in realAssets() minus a discount applied to the remaining interest to be earned, in proportion to the relative sizes of the loss and the adapter's position in the market hit by the loss."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/MidnightAdapter.sol",
   "quote": "A non-forceSellable shortfall reduces remaining interest proportionally across all markets by decreasing their rates, so the adapter's amortized value decreases only by the received assets."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/MidnightAdapter.sol",
   "quote": "Rates are rounded down on buys and sales, which can accrue some interest earlier."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/VaultV2.sol",
   "quote": "Interest/loss are accounted only once per transaction (at the first interaction with the vault)."
  },
  {
   "url": "https://raw.githubusercontent.com/morpho-org/vault-v2/bbeda7b27ae80abcf070e0158cb8a31e87bb2286/src/adapters/midnight/README.md",
   "quote": "In-kind redemptions therefore happen at a price of one asset per unit of credit, plus fees, whatever the time to maturity."
  }
 ]
}
