Demodyfi
WebsiteTelegramTwitterStaking
  • Demodyfi " the AMM DEX on MOONBEAM
  • Project overview
    • Problems
    • Technical Architecture
      • Demodyfi Protocol
      • Cross-chain Swap
      • Cross-chain Flashloan
      • Cross-chain NFT & Flashloan
      • Liquidity staking
      • Governance
      • Unified Account Experience
      • Ecosystem Fits
  • Token
    • DMOD token use cases
    • Tokennomics
    • Token distribution
  • Landscape competition
  • The Development Team
  • Community Engagement
  • Future goals
  • Products
    • Demodyfi Staking
      • How to Stake
    • Yield Farming
    • Multichain Bridge
    • The guide of Metamask and Polkadot.js wallet
  • SDK
  • Sources & stories
  • Website
  • Medium
  • Github
  • FAQ
  • Contact us
Powered by GitBook
On this page
  • Flash Loan
  • Use Case

Was this helpful?

  1. Project overview
  2. Technical Architecture

Cross-chain Flashloan

On the Demodyfi platform you will be able to utilize interoperable flashloans cross-chain.

PreviousCross-chain SwapNextCross-chain NFT & Flashloan

Last updated 4 years ago

Was this helpful?

Flash Loan

Flash Loans makes it easy and instant to borrow without collateral once liquidity is returned to the pool within a single trading block. If this is not done, the entire transaction will revert and the actions taken up to that point will be effectively revoked. This guarantees the security of the funds in the pool.

DemodyFi Flash swaps allow you to withdraw up to the full reserves of any token on the platform and execute any logic at no upfront cost or locking up collateral for the borrowed tokens. If you are unable to meet either of the following conditions by the end of the transaction:

  • Pay for the withdrawn tokens with the corresponding pair tokens.

  • Return the withdrawn tokens along with a small fee.

The flash swap transaction will fail, and any other arbitrary execution involved in that transaction will be rolled back. This is possible because these flash swaps are atomic transactions.

Use Case

Traditional flash swaps are possible from protocols like Uniswap and AAVE for Ethereum based tokens, but the Demodyfi protocol allows you to perform flash swaps with assets from other substrate as well as non-substrate chains. In addition, you need to pay a small protocol fee to use this feature which will be nominal.

Use Cases:

  1. Arbitrage, examples of use include arbitrage, claiming (NFTs) rewards while they accrue in a pool.

  2. Collateral Swap

Concept model 1.0