Fusion
  • Learn and build with Fusion
  • Learn
    • Learn about Fusion
      • About Fusion
      • Fusion's vision
      • Key problems to be solved
      • How does Fusion (and AnySwap) compare?
      • Journey to Interoperability
      • Whitepaper
    • The features of Fusion
      • DCRM
        • DCRM journey
        • DCRM nodes
        • DCRM Yellow paper
      • Time lock feature
        • Infinity
        • Lock-In and Lock-Out (LILO)
        • Use-Case — Lending
        • Use-Case — Banker’s Acceptance
      • Smart contacts
        • Use cases
          • Mortgage smart contract
          • Risk-free Token Loan
          • Risk free contract market
      • Cross-chain Tokens
      • Quantum swap
      • Secure and Distributed Secret Key Sharding
      • Fusion assets and tokens
      • Ticketed Proof of Stake (TPoS)
    • Fusion blockchain
      • Short Address Notation - SAN
      • Chain data
      • FSN token
        • Uses of FSN token
        • Tokenomics
      • Gas
  • Dapps
    • Chainge finance
    • Anyswap
  • Build
    • Quick links
    • JavaScript API - web3-fusion-extend
    • JSON RPC API - fsn-rpc-api
    • Python Web3 library - web3fsnpy
    • DCRM SDK
    • Create your own FRC20
    • Github repositories
    • Developers community
  • Tutorials
    • My Fusion wallet
      • Creating a new PSN wallet
      • Generating a Short Account Number (SAN)
      • Send tokens and assets using a send function
      • Create assets
      • Quantum swaps
      • Lock-in and Lock-out feature
    • How to setup a node
    • Staking options
    • How To Setup and Use Anyswap with Metamask wallet
    • How to use MultiSwap
    • Set up DCRM Windows guide
  • Credits
Powered by GitBook
On this page
  • Make MultiSwap
  • Take MultiSwap

Was this helpful?

  1. Tutorials

How to use MultiSwap

PreviousHow To Setup and Use Anyswap with Metamask walletNextSet up DCRM Windows guide

Last updated 4 years ago

Was this helpful?

This guide is a walk-through of Fusion’s MultiSwap feature, which allows users to create swaps in a many-to-many fashion. Whether users want to send multiple assets to receive single asset, send single asset to receive multiple assets, or send and receive multiple assets — all are possible.

Make MultiSwap

To make a MultiSwap, create a swap in the Quantum Swap market, just as in single swap.

Both Send and Receive legs in the Make Swap entry screen have the new “Add Asset” option.

Click “Add Asset” to add a new swap leg. You can add unlimited number of different assets to your swap.

Note: MultiSwaps for USANs can not be created, though you can still create single swap for USAN.

Fill in the additional asset you want to exchange, just as in single swap. For example, I will send 0.5 SSOU tokens in addition to my 1 FSN.

Select the asset you want to receive, just as in single swap. For example, I want to receive 10 DAIs for my 1 FSN + 0.5 SSOU.

Number of Fills automatically calculates and adjusts the ratio for each asset swapped. For example, I set 10 fills for my order and minimum fill sizes are automatically calculated to be 1/10th of full swap size.

Review screens are updated with MultiSwap details.

Once swap has been made, users can check out their MultiSwap in the Quantum Swap market, which displays all legs of their swap.

Users can MultiSwap timelocks as well. Sophisticated swaps such as “future ladders” can easily be constructed using the MultiSwap.

Take MultiSwap

In the Quantum Swap markets, users can see and take MultiSwaps just as single swaps.

Takes can only take swaps where they have sufficient balance of assets for every asset that is being asked for in the MultiSwap. For example, if taker does not have sufficient asset balance for one asset out of three assets being asked for in MultiSwap, then taker can not take the swap.

Otherwise, taking a MultiSwap behaves exactly as a single swap.