Stabilis Ecosystem | by ILIS DAO
  • Welcome!
  • Introduction
    • I Like It Stable Ecosystem
      • ILIS DAO
      • Flux
      • STAB Protocol
  • ILIS DAO
    • Using ILIS DAO
      • Membership
      • Incentives
      • Governance
    • Technical Info
      • Components & Manifests
      • Source Code
      • Liquidity Bootstrapping Pools
    • Founders
    • Official documents
  • Flux
    • Using Flux
      • Flux USD (fUSD)
      • Borrowing and Liquidations
      • Earning with Flux
      • Redemptions
    • Technical Info
      • Components & Manifests
      • Source Code
      • Oracle
      • System Parameters
    • Dangers
    • Whitepaper
  • Video Tutorials
  • STAB Protocol
    • Using STAB Protocol
      • Swap
      • Borrow
      • Manage loans
      • Liquidations
    • Technical Info
      • Components & Manifests
      • Source Code
      • Oracle
      • System Parameters
      • Interest Rate
      • Real 7d APY
    • Dangers
    • Whitepaper
  • Miscellaneous
    • Tokens
      • ILIS DAO
        • ILIS
        • Membership ID
          • Membership ID Unstake Receipt
          • Membership ID Transfer Receipt
        • Incentives ID
          • Incentives ID Unstake Receipt
          • Incentives ID Transfer Receipt
        • Proposal Receipt
      • STAB protocol
        • STAB
        • LPSTAB
        • Loan Receipt
        • Marker Receipt
        • Liquidation Receipt
        • Flash Loan Receipt
    • FAQ
    • Glossary
    • Useful links
    • DISCLAIMER
    • Terms & Conditions
Powered by GitBook
On this page
  1. STAB Protocol
  2. Technical Info

Components & Manifests

The three interactions currently impossible through the front-end are using flash loans, redemptions (forced liquidations) and forced minting. These are all handled by the Stabilis Proxy Component.

Flash loan manifest

Flash loan receipt resource address: resource_tdx_2_1ng9qmw3dsv3hfu7fem359llx8049af5thn9gehdrefr4xp7ckggxza

Proxy component address: component_tdx_2_1cpv6ach7wxjp79g09c0dcc9c8qy7hw9wxsfpmnr56tgd6a0pk0zk9d

STAB resource address: resource_tdx_2_1t57r3zezvsx0gud4p2ed3seteqaahnyzg5ahavamqyxqltkmjqpdxf

CALL_METHOD
  Address("<proxy_component_address>")
  "flash_borrow"
  Decimal("1000")
;

////////////////////////////////////////////////////////////////////////////
/////////////////////// USE YOUR BORROWED STAB HERE ////////////////////////
////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////
//// PUT THE STAB YOU'RE USING TO PAY BACK THE LOAN ON THE WORK TOP ////////
////////////////////////////////////////////////////////////////////////////

TAKE_ALL_FROM_WORKTOP
  Address("<stab_address>")
  Bucket("stab_bucket")
;

TAKE_ALL_FROM_WORKTOP
  Address("<loan_receipt_address>")
  Bucket("receipt_bucket")
;

CALL_METHOD
  Address("<proxy_component_address>")
  "flash_pay_back"
  Bucket("receipt_bucket")
  Bucket("stab_bucket")
;

CALL_METHOD
  Address("<your_account_address>")
  "deposit_batch"
  Expression("ENTIRE_WORKTOP")
;

Redemptions / forced borrowing

PreviousTechnical InfoNextSource Code

Last updated 7 months ago

Information on manifests will follow soon, but if you like detective work, the necessary information is already available in the .

STAB Protocol GitHub repo