{
  "$schema": "https://degreesofsatoshi.com/encyclopedia/schemas/article-v1.json",
  "schemaVersion": "1.0.0",
  "id": "flash-loans",
  "canonical": "https://degreesofsatoshi.com/encyclopedia/flash-loans/",
  "collection": "defi",
  "title": "Flash loans: borrowing that must settle inside one transaction",
  "description": "Understand a flash loan’s callback and repayment condition, why it does not provide lasting unsecured cash, and how debt-opening variants differ.",
  "aliases": [
    "one-transaction loan"
  ],
  "dates": {
    "published": "2026-10-02",
    "modified": "2026-10-02",
    "verified": "2026-10-02T15:08:18.373Z",
    "dataAsOf": null
  },
  "authorship": {
    "publisher": "Degrees of Satoshi editorial project",
    "process": "AI-assisted research and drafting with a separate automated source-verification pass; no external expert or named human review is implied."
  },
  "quickAnswer": {
    "text": "A pure flash loan transfers assets to a contract on the condition that principal and the applicable fee return before the same transaction finishes. If the condition fails, the transaction reverts. Some Aave V3 flash-loan modes can instead open authorized debt, which introduces collateral or credit-delegation requirements.",
    "claimId": "flash-loans-quick-answer",
    "sourceIds": [
      "flash"
    ]
  },
  "keyFacts": [
    {
      "label": "Duration",
      "value": "Pure flash borrowing settles within a single transaction.",
      "sourceIds": [
        "flash"
      ],
      "id": "duration",
      "claimId": "flash-loans-fact-duration"
    },
    {
      "label": "Failure",
      "value": "Unmet repayment conditions revert the transaction.",
      "sourceIds": [
        "flash"
      ],
      "id": "failure",
      "claimId": "flash-loans-fact-failure"
    },
    {
      "label": "Variants",
      "value": "Aave V3 distinguishes flashLoanSimple from multi-asset flashLoan options.",
      "sourceIds": [
        "flash"
      ],
      "id": "variants",
      "claimId": "flash-loans-fact-variants"
    }
  ],
  "prerequisites": [
    "defi-lending-pools",
    "defi-arbitrage"
  ],
  "sections": [
    {
      "id": "callback",
      "heading": "The lender resumes control after the callback",
      "paragraphs": [
        "The borrowing contract requests an amount. The lender transfers it and invokes a receiver callback, where the borrowing contract performs its operations. The lender then checks repayment or the permitted alternative before allowing completion.",
        "All of these calls are part of one transaction. The borrower cannot take the funds home and promise to return them in the next block. The transaction-level condition is what makes the pure form possible without an ordinary collateral deposit."
      ],
      "sourceIds": [
        "flash"
      ]
    },
    {
      "id": "illustration",
      "heading": "Follow a hypothetical repayment requirement",
      "paragraphs": [
        "If 1,000 units are borrowed with a hypothetical 0.05% fee, the amount due is 1,000.5 units. Any operations inside the callback must leave the borrower able to satisfy that requirement. The rate is illustrative; deployed fee parameters must be read separately.",
        "If a planned swap returns only 999 units and no other funds cover the gap, the required repayment cannot succeed. A revert undoes the transaction’s state changes, but an included failed attempt can still consume gas."
      ],
      "sourceIds": [
        "flash",
        "revert"
      ]
    },
    {
      "id": "scope",
      "heading": "A funding mechanism is not a vulnerability by itself",
      "paragraphs": [
        "Flash liquidity can support refinancing or liquidation sequences. It can also amplify an exploit when another contract has faulty accounting or price assumptions. Calling an incident a flash-loan attack identifies capital used, not necessarily the defective rule.",
        "Aave V3’s multi-asset flashLoan supports authorized debt-opening choices, while flashLoanSimple uses repayment for a single reserve. Explanations must distinguish these modes rather than generalize pure repayment to every function with flash in its name."
      ],
      "sourceIds": [
        "flash",
        "pool"
      ]
    }
  ],
  "faq": [
    {
      "question": "Can I keep a flash loan overnight without collateral?",
      "answer": "Not under the pure flash-loan condition. It must be repaid in the transaction. A supported mode that opens lasting debt is a different outcome with its own authorization and collateral or delegation requirements.",
      "sourceIds": [
        "flash"
      ]
    }
  ],
  "claims": [
    {
      "id": "flash-loans-quick-answer",
      "articleSlug": "flash-loans",
      "statement": "A pure flash loan transfers assets to a contract on the condition that principal and the applicable fee return before the same transaction finishes. If the condition fails, the transaction reverts. Some Aave V3 flash-loan modes can instead open authorized debt, which introduces collateral or credit-delegation requirements.",
      "sourceIds": [
        "source-f64306b50a0ea831"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-f64306b50a0ea831",
          "locator": "Overview; Execution Flow; Flash loan fee"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": null,
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T15:08:18.373Z",
        "reviewer": "automated independent verification",
        "notes": [
          "Read Aave V3 Execution Flow, fee and multi-asset flashLoan versus flashLoanSimple debt modes. Pure repayment and authorized lasting debt are kept separate.",
          "Recomputed hypothetical0.05% of1,000 =0.5 fee, due1,000.5; it is not presented as a current deployed parameter. Added EIP-140 source for revert/gas behavior."
        ]
      }
    },
    {
      "id": "flash-loans-fact-duration",
      "articleSlug": "flash-loans",
      "statement": "Duration: Pure flash borrowing settles within a single transaction.",
      "sourceIds": [
        "source-f64306b50a0ea831"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-f64306b50a0ea831",
          "locator": "Overview; Execution Flow; Flash loan fee"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": null,
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T15:08:18.373Z",
        "reviewer": "automated independent verification",
        "notes": [
          "Read Aave V3 Execution Flow, fee and multi-asset flashLoan versus flashLoanSimple debt modes. Pure repayment and authorized lasting debt are kept separate.",
          "Recomputed hypothetical0.05% of1,000 =0.5 fee, due1,000.5; it is not presented as a current deployed parameter. Added EIP-140 source for revert/gas behavior."
        ]
      }
    },
    {
      "id": "flash-loans-fact-failure",
      "articleSlug": "flash-loans",
      "statement": "Failure: Unmet repayment conditions revert the transaction.",
      "sourceIds": [
        "source-f64306b50a0ea831"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-f64306b50a0ea831",
          "locator": "Overview; Execution Flow; Flash loan fee"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": null,
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T15:08:18.373Z",
        "reviewer": "automated independent verification",
        "notes": [
          "Read Aave V3 Execution Flow, fee and multi-asset flashLoan versus flashLoanSimple debt modes. Pure repayment and authorized lasting debt are kept separate.",
          "Recomputed hypothetical0.05% of1,000 =0.5 fee, due1,000.5; it is not presented as a current deployed parameter. Added EIP-140 source for revert/gas behavior."
        ]
      }
    },
    {
      "id": "flash-loans-fact-variants",
      "articleSlug": "flash-loans",
      "statement": "Variants: Aave V3 distinguishes flashLoanSimple from multi-asset flashLoan options.",
      "sourceIds": [
        "source-f64306b50a0ea831"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-f64306b50a0ea831",
          "locator": "Overview; Execution Flow; Flash loan fee"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": null,
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T15:08:18.373Z",
        "reviewer": "automated independent verification",
        "notes": [
          "Read Aave V3 Execution Flow, fee and multi-asset flashLoan versus flashLoanSimple debt modes. Pure repayment and authorized lasting debt are kept separate.",
          "Recomputed hypothetical0.05% of1,000 =0.5 fee, due1,000.5; it is not presented as a current deployed parameter. Added EIP-140 source for revert/gas behavior."
        ]
      }
    }
  ],
  "sources": [
    {
      "id": "flash",
      "label": "Aave V3 flash loans",
      "publisher": "Aave",
      "url": "https://aave.com/docs/aave-v3/guides/flash-loans",
      "locator": "Overview; Execution Flow; Flash loan fee",
      "note": "Atomic repayment, receiver callbacks and distinct debt-opening options.",
      "version": "Aave V3",
      "checkedAt": "2026-10-02",
      "recordId": "source-f64306b50a0ea831",
      "contentSha256": null
    },
    {
      "id": "pool",
      "label": "Aave V3 Pool",
      "publisher": "Aave",
      "url": "https://aave.com/docs/aave-v3/smart-contracts/pool",
      "locator": "supply; withdraw; borrow; repay; liquidationCall",
      "note": "Pool operations, collateral restrictions and liquidation settlement.",
      "version": "Aave V3",
      "checkedAt": "2026-10-02",
      "recordId": "source-b35859a766315ce4",
      "contentSha256": null
    },
    {
      "id": "revert",
      "label": "EIP-140: REVERT instruction",
      "publisher": "Ethereum Improvement Proposals",
      "url": "https://eips.ethereum.org/EIPS/eip-140",
      "locator": "Specification; Test Cases",
      "note": "Reverting rolls back state but does not refund work already executed; unused gas is not all consumed.",
      "version": "EIP-140 final",
      "checkedAt": "2026-10-02",
      "recordId": "source-ccab9c4be966af8f",
      "contentSha256": null
    }
  ],
  "related": {
    "articles": [
      "defi-arbitrage",
      "defi-liquidations",
      "documented-defi-exploits"
    ],
    "dossiers": [],
    "wallets": []
  },
  "revisionHistory": [
    {
      "date": "2026-10-02",
      "kind": "published",
      "summary": "First publication after primary-source research and independent automated verification."
    },
    {
      "date": "2026-10-02",
      "kind": "prepublication-review",
      "summary": "Before first publication, independent review checked and revised: sections, sources. Read Aave V3 Execution Flow, fee and multi-asset flashLoan versus flashLoanSimple debt modes. Pure repayment and authorized lasting debt are kept separate. Recomputed hypothetical0.05% of1,000 =0.5 fee, due1,000.5; it is not presented as a current deployed parameter. Added EIP-140 source for revert/gas behavior."
    }
  ],
  "citation": "Degrees of Satoshi editorial project. “Flash loans: borrowing that must settle inside one transaction.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/flash-loans/"
}
