LogoLogo
  • MultiSwap and MultiChain Liquidity Pool Bridge
  • 📐Architecture and Tech Stack
    • 🚩Architecture issues
    • ✏️General Architecture Overview
      • 🛠️dApp Tech Stack
      • ⚖️Core Components of MultiSwap
        • 📐Overview - Core Components of MultiSwap
        • 🪙Asset Types
          • 📐Overview - Asset Types
          • ⚒️Foundry Assets
          • ⚙️Refinery Assets
          • ⛓️Ionic Assets
        • ⚡FIBER - Ferrum Inter Blockchain Express Routing Engine
          • 📐Overview - FIBER
          • 🧠FIBER Engine
          • 🔄FIBER Router
          • 🏦Fund Manager
          • 🪙Fee Manager
          • 🗄️Asset Categorization and Route Optimization
            • 📐Overview - Asset & Route Optimization
            • 📂Example of Asset Categorization
          • 🌁Bridging and Settlement
            • 📐Overview - Bridging & Settlement
            • ⚖️MultiChain Settlement Flow (MCSF)
              • 📐Overview - MCSF
              • ⚖️Swap to & from Bridgeable Asset
            • 🌁Bridging of Assets
            • ⚖️Settlement
        • 🔥FORGE - Ferrum Optimal Routing Gas Estimation Engine
          • 📐Overview - FORGE
          • ⛽Gas Estimation
          • 🏦MultiSwap Fee Estimation
        • ⏳Future Work
      • ⚡Node Infrastructure
        • 📐Overview - Node Infrastructure
        • 🔍Generator Node
        • 🕵️Validator Nodes
        • ✒️Master Node
    • 🔏Security
  • 🗄️Resources
    • 🗃️Resources and Links
      • Mainnet Tech Stack Overview
      • Deployment Pipeline Updates
      • Connecting EVM and Non-EVM
    • 📚Glossary & Acronyms
      • 🗄️Glossary
      • 🗃️Acronyms
    • ❔FAQs
      • 📐Overview MultiSwap - FAQs
      • 💸Are there any fees for using MultiSwap?
      • 🔄Which networks are supported in MultiSwap?
      • 💰Which Wallets are supported in MultipSwap?
      • ⁉️How to get support and report bugs?
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Architecture and Tech Stack
  2. General Architecture Overview
  3. Core Components of MultiSwap
  4. FIBER - Ferrum Inter Blockchain Express Routing Engine
  5. Asset Categorization and Route Optimization

Example of Asset Categorization

PreviousOverview - Asset & Route OptimizationNextBridging and Settlement

Last updated 2 years ago

Was this helpful?

Let's take and add some example parameters to understand the flow of events.

These are not actual FIBER call parameters. Some of these parameters will require querying the FIBER engine to getCABN, or ferrumNetworkIdentifer information.

The information below is just to demonstrate the logic used by FIBER to categorize and optimize swap paths across chains.

  1. sourceCABN: BUSD

  2. sourceFerrumNetworkIdentifier: BSC

  3. destinationCABN: USDT

  4. destinationFerrumNetworkIdentifier: Polygon

  5. amountSourceCABN: 100000000000000000000 (wei value)

  6. destinationAddress: 0xdestination

  7. slippage: 2% per chain (4% total)

  8. platformFeeCABN: BNB

  9. isFeeEnabled: true

FIBER Asset Categorization

When FIBER receives this call, it starts the process of categorizing the sourceCABN and destinationCABN. In order to categorize the FIBER engine conducts the following checks:

Foundry Asset Check (FAC)

Refinery or Ionic Asset Check (RIAC)

Aggregated Best Quote Check (ABQC)

aggregatedBestQuoteCheck a check for the best price on source and destination networks. Checks quotes from aggregators such as 1inch and compares those quotes against DEX quotes from DEX Router contracts. Suggest all options available rated from best to worst.

Conducts abridgePool liquidity check on destination network to determine if the asset has sufficient liquidity available in the bridgePool to be categorized as a for this swap.

Conducts if there is pair liquidity available with the bridgeable asset. i.e. Is it possible to convert user's asset to bridgeable asset in a single hop or swap. If the user's asset can be swapped for the bridgeable asset in a single hop, then the asset will be categorized as a . Otherwise the asset will be categorized as an .

📐
✏️
⚖️
⚡
🗄️
📂
Foundry Asset
Refinery Asset
Ionic Asset
a typical FIBER call
FIBER Request - Asset Categorization
FIBER request - Asset Categorization - FIAC Flow
FIBER request - Asset Categorization - RIAC Flow
Drawing
Drawing
Drawing
Drawing