Opus
  • Meet Opus and CASH
  • Rewards
  • Borrowing
  • Liquidations
  • Peg Stability
  • Recovery Mode
  • Global Settlement
  • Risks
  • Resources
  • Glossary
  • Technical Documentation
    • Overview
    • Smart Contracts
      • Shrine Module
      • Abbot Module
      • Gate Module
      • Sentinel Module
      • Purger Module
      • Absorber Module
      • Controller Module
      • Equalizer Module
      • Stabilizer Module
      • Seer Module
      • Receptor Module
      • Flash Mint Module
      • Caretaker Module
      • Transmuter Module
    • Security
      • Internal
      • External
      • Emergency Procedures
    • Governance
      • Onboarding collateral
      • Monitoring collateral
      • Onboarding a reward to the Absorber
    • Deployed Contracts
Powered by GitBook
On this page
  1. Technical Documentation
  2. Smart Contracts

Flash Mint Module

EIP-3156 Flash Loans

The Flash Mint module is an implementation of EIP-3156 that lets user borrow and repay yin in the same transaction.

  • Flash mints are fee-less.

  • The maximum amount that can be borrowed will be a percentage of the circulating yin supply.

Note that while the maximum percentage is fixed as a constant, it can be easily adjusted by re-deploying the contract with a different constant should the protocol or governance decide to do so.

Interaction with the debt ceiling

An important implementation detail is that the Flash Mint module needs to temporarily raise the debt ceiling if the debt ceiling has been exceeded, or will be exceeded as a result of the loan amount.

PreviousReceptor ModuleNextCaretaker Module

Last updated 1 year ago