Biconomy Gasless SDK (EOA)
DashboardMediumWebsite
  • 🚀Getting Started
  • Introduction
    • 🤘Why Biconomy?
    • 🙂How we simplify transactions
  • Products
    • 💸Gasless Transactions
      • Choose An Approach to Enable Gasless
        • Standard EIP 2771 Approach
          • 1. Register Artifacts on the Dashboard
          • 2. Code Changes
            • Using SDK
            • Using API
        • Custom Implementation Approach
          • 1. Register Artifacts on the Dashboard
          • 2. Code Changes
            • Using SDK
            • Using API
        • Smart Contract Wallet Approach
          • Gnosis
        • Network Agnostic Transactions
          • EIP-2771 Approach
          • Custom Approach
      • Conditional Whitelisting
      • Gasless SDK (EOA) 3
      • Networks Supported
    • ↔️Hyphen - Instant Cross-Chain Transfers
      • SDK
        • DepositManager
        • TransferManager
        • TokenManager
      • APIs
      • Helper Methods
      • Migrating from Hyphen V1
      • Contract Addresses
      • Hyphen Widget
  • Guides
    • 💻Dashboard
      • DApp Statistics
    • ⛽Gas Tank Deposits
      • Via Dashboard
      • Via Smart Contract
  • api
    • 🔧Native Meta Transaction
      • Get Retried Hashes
    • 🌎Dashboard APIs
    • ⚪Whitelist API
      • Whitelist Destination Address
      • Whitelist Proxy Contracts
    • 〰️ Check Limits
    • 💿Biconomy Data API
      • 👨‍🚀Unique User Data
      • 🧑‍🔧Per User Limits Data
      • ⛽Gas Tank Balance Data
  • SDK
    • 📙Gasless SDK (EOA)
      • Configuration
  • Tutorials
    • 🔰Native Meta Transactions
      • How To Build Your First DApp
        • Write Your First Smart Contract
        • Initialize Web3 on Client Side
        • Executing First Blockchain Transaction
      • Enable Native Meta Transactions
        • Smart Contract
          • Describe Your Structs
          • Declare Your Variables
          • Modify Respective Function
        • Client Side
          • Design Your JSON structure
          • Design Your Domain Separator
          • Design Data Types
          • Define Data To Sign
          • Generate Signatures
      • Integrate Biconomy
        • Register On Dashboard
        • Integrate Gasless SDK (EOA)
      • Summary
  • BICO Staking
    • 🪁Safety Module
  • Get in touch
    • 👥Contact Us
  • Misc
    • 🧩Projects on Biconomy
    • 🌐Supported Networks
    • 📫Contract Addresses
    • ✔︎ Smart Contracts Audit
    • ❓FAQs
Powered by GitBook
On this page
  • How does it work?
  • Dynamic Transfer Fee
  • Rebalancing

Was this helpful?

  1. Products

Hyphen - Instant Cross-Chain Transfers

PreviousNetworks SupportedNextSDK

Last updated 2 years ago

Was this helpful?

Hyphen enables instant and cheaper token transfers across different blockchains. It especially solves the pain point of getting your funds from Layer2 to Layer1 blockchains. If you transfer your funds via Layer2 native bridges it might take you from 40 min to 7 days to get your funds on Layer1. For example, it takes around 40-50 min to get your ERC20 tokens from Polygon Network to Ethereum via their native bridge.

Hyphen provides cheaper and instant transfer of funds by maintaining tokens liquidity on both sides of the chains and instantly transferring tokens on the second chain after accepting tokens on the first chain. The pools are designed in such a way that it incentivizes people to balance the pools if there is an imbalance due to one-sided demand.

If Alice wants to transfer tokens across chains then she'll be charged a dynamic transfer fee, part of which goes to Liquidity Providers, and the transfers transaction fee is also deducted from the tokens being transferred in the same currency. For example, if Alice is transferring 500 USDC from Polygon to Ethereum and the transfer transaction on Ethereum takes a $10 USD gas fee, then she will get 489.5 USDC on Ethereum.

How does it work?

Biconomy has deployed LiquidityPool contracts on all supported chains where the entire Liquidity will be stored. We have off-chain servers, aka Executor Nodes, running, that are constantly monitoring these smart contracts for any incoming deposit transactions.

Executor Nodes has two main components: Watch Tower and Executors

Watch Tower monitors LiquidityPool smart contract to listen for any incoming deposit transaction on all the chains. Once it finds any deposit transaction it notifies the Executor component about the same.

The Executor verifies the incoming deposit and initiates a transfer transaction on the other chain. The other chain id, receiver address and the amount to be transferred are part of the deposit transaction only.

The LiquidityProvider fee and transfer transaction fee is deducted on-chain on LiquidityPool smart contract only. Only Executors have the right to transfer funds from the LiquidityPool contract.

Dynamic Transfer Fee

Hyphen implements a dynamic transfer fee mechanism that makes the transfer fee variable and it depends on the total liquidity supplied (SL) by the Liquidity Providers and available liquidity(L) in the pools. There is an equilibrium transfer fee, F(e), which is currently set as 0.1% which is charged when a cross chain transfer brings the destination pool in a state where L = SL. Most of the time either the transfer fee will be higher or less than F(e).

Rebalancing

Hyphen pools are designed in such a way that it incentivizes people to rebalance the pools in case of an imbalance in liquidity. It maintains an Incentive Pool (IP) which is gradually filled as the pool becomes empty due to more one-sided demand. When a user makes a transfer and deposits in a pool that is low in available liquidity (hence a high Incentive Pool), some part of the Incentive Pool is given as a reward in the deposit transaction hence incentivizing the user to do this transfer.

When this reward given on the source chain becomes more than the transfer fee on the destination chain, this transfer becomes profitable for the user.

Manual Exit

You can read more about the dynamic fee mechanism .

On some super rare occasions, your Hyphen transfer might get stuck and not reach you even after 10 minutes, even though your deposit transaction went through. Don't worry, your funds are always safe! We've listened to our community, and now you can push the transaction through yourself on the destination chain! Just paste your source transaction hash and source chain and you'll get your exit transaction. Happy Bridging!

↔️
here
here
Try out Hyphen for instant transfer of tokens across chains.