LogoLogo
THORSwap AppTHORYield AppCommunityFAQ
  • πŸ‘‹Welcome
  • ⚑THORSwap
    • πŸ’³Wallets
      • πŸ“šCreate a new Keystore Wallet
      • πŸ“šImporting a Wallet to Keystore
      • πŸ“šWallet Management
      • πŸ“šLedger Hardware Wallet
      • πŸ“šKeepKey Hardware Wallet
    • πŸͺ™Fees
    • ⏩Cross-Chain DEX Aggregation
      • πŸ’ Ethereum DEX Aggregator
      • πŸ”ΊAvalanche DEX Aggregator
      • πŸ”ΆBNB Smart Chain DEX Aggregator
    • πŸ–οΈRUNEPool
      • ❓How to use RUNEPool
    • 🌊Streaming Swaps
      • ❓FAQs
      • Technical Documentation
    • 🏎️Boosted Swaps
  • 🀝SwapKit Integration
  • πŸ“ŠTHORYield
    • πŸ–₯️Web Dashboard
    • πŸ“±Mobile App
    • πŸ”’LP Calculator
    • πŸ€–Discord BOT
  • 🌐Ecosystem
    • 🌩️THORChain
      • ♻️THORSynths
        • πŸ“–THORSynths 101
        • 1️⃣Benefits & Use Cases
        • 2️⃣How it works
        • 3️⃣Risks
        • Technical Documentation
      • πŸ§‘THORNames
        • Technical Documentation
      • ⚑THORNode Management
      • πŸ’°Earn (Savers)
        • ❓How to Earn
        • Technical Documentation
      • πŸ’ΈLending
        • 🧠Lending Design
        • ✍️How to Lend
        • ❓FAQs
        • Technical Documentation
      • πŸ”THORSafe Multi-Sig
        • πŸ‘Benefits & Use Cases
        • ❓How it works
        • πŸ”‘Creating a THORSafe
        • πŸ”Signing Multi-sig Transaction
  • How To
    • πŸ“–Tutorials
      • πŸ“šNavigate THORSwap
      • πŸ“šAdd Liquidity
      • πŸ“šTrack Your LP Yield
    • ❓Frequently Asked Questions
      • 1️General
      • 2️THORChain (RUNE)
      • 3️THORSwap (THOR)
      • 4️Cross-Chain Swaps
      • 5️Provide Liquidity
      • 6️Fees
      • 7️Troubleshooting
      • 8️Supported Wallets
      • 9️Streaming Swaps
      • πŸ”ŸLending FAQs
      • πŸ†˜Community & Support
    • ▢️Video Guides
  • THORSwap Token
    • πŸͺ™$THOR
      • πŸ•³οΈTrading Black Hole
      • πŸ”§Utility
      • πŸ‹Fee Discounts
      • πŸͺ™Tokenomics
      • ⭐vTHOR (THOR Staking)
      • ⭐uTHOR Staking (USDC rewards)
      • βš–οΈEfficient Emissions
      • πŸ”₯THOR Burn
      • πŸ—³οΈCommunity Governance
        • 🧠Governance Process
        • πŸ’¬Governance Forum
  • Resources
    • 🎨Brand Design & Assets
    • πŸ”­Audits
    • πŸ“œTerms of Service
    • πŸ”SwapKit Dev Docs
    • πŸ™ŒCommunity Discord
    • πŸ›οΈMerch Store
    • πŸ”—Useful Links
Powered by GitBook
On this page
  • Background
  • How Streaming Swaps Work
  • Optimize for time ⏳
  • Optimize for price πŸ’°

Was this helpful?

  1. THORSwap

Streaming Swaps

Enhancing DeFi Trading Efficiency and Flexibility through Swap Optimization

PreviousHow to use RUNEPoolNextBoosted Swaps

Last updated 9 months ago

Was this helpful?

Background

THORChain and Maya Protocol operate using a slip-based fee model for its liquidity pools. This means that the trade execution fee is influenced by the swap size and pool depths.

Before Streaming Swaps, traders could achieve lower slippage for larger trades by manually dividing them into numerous smaller swaps. The downside? This method resulted in multiple individual on-chain inbound and outbound transactions. Consequently, traders faced a surge in on-chain gas fees and a tedious manual process.

How Streaming Swaps Work

Streaming Swaps streamline this process to ensure maximum capital efficiency. Users only need to send a single inbound transaction. Internally, THORChain and Maya Protocol divides the swap into several sub-swaps executed over time, consolidating them into a single outbound transaction to the chosen wallet.

This helps to reduce price slippage by allowing arbitrageurs to rebalance the pool intra-swap and reduce the swap size vs the pool depth.

Imagine sipping a drink slowly to savor it instead of gulping it all down in one go. By taking your time, you often get a better overall experience. Similarly, by being more patient with your swaps, you can achieve better price execution (optimal rate/lower slippage).

For a deep dive into the technical background of Streaming Swaps, check out and Dev docs.


Optimize for time ⏳

If you want your swap executed faster, you can choose the regular THORChain/Maya swap method, where swaps are only limited by each native network’s transaction speed.

Optimize for price πŸ’°

Using Streaming Swaps, trades can be broken down into a number of sub swaps, allowing for potentially a more favorable average price.

With the introduction of Streaming Swaps, THORSwap now offers a balance between getting the best price and saving time, putting the decision-making power directly in the hands of the user.

At launch, Streaming Swaps will split a Price Optimized swap automatically depending on Swap Size.

In future updates, THORSwap will introduce further customization options, allowing users to adjust swap intervals and specify the number of sub-swaps. It is important to note that this feature doesn’t change the fact that THORSwap never has custody of your assets. During the execution, your assets are held in the THORChain/Maya Protocol vaults, secured by an overbonded network of node operators. You can read more on THORChain vaults .

⚑
🌊
here
THORChain
Maya Protocol