XY Finance
  • Getting Started
  • XY Token
  • Supported Blockchains/Bridges/DEXs
  • Fee Structure
    • 🌉yBridge Fee Information
    • 🌉(Legacy) XY Bridge Fee Information
  • products
    • Bridge Aggregator : XY Finance
      • Gasless Transaction
    • Bridge : yBridge
      • Yield Farming
      • Omnichain Settlement
      • Consensus
    • Refuel
    • Proxy Bridge
    • Cross Chain Infrastructure
  • Bridge Aggregator Integration
    • XY Finance API (Multiple Bridges Aggregator)
      • 1️⃣Get Quote
      • 2️⃣Get Allowance
      • 3️⃣Build Approval Transaction
      • 4️⃣Build Swap Transaction
      • 5️⃣Get Cross-Chain Status
      • 6️⃣Get MinimumSwapAmount
      • ✔️Recommended Tokens
      • ✅Supported Blockchains/Bridges/DEXs
      • 📩Error Message
      • 💰Monetization / Take Fees
      • 📄Change Log
    • XY Finance Widget (iframe)
      • (Legacy) XY Finance Widget (iframe)
    • XY Finance Widget (NPM)
      • 1️⃣Install the Widget
      • 2️⃣Configure the Widget
      • 3️⃣Customize the Theme
      • 📘Widget API Reference
      • 📄Change Log
    • Custom-Built Link
    • Token Listing
  • Single Bridge Integration
    • yBridge API
      • 1️⃣Get Quote
      • 2️⃣Get Allowance
      • 3️⃣Build Approval Transaction
      • 4️⃣Build Swap Transaction
      • 5️⃣Get Cross-Chain Status
      • 🚰Get Pool Liquidity
      • 💲Get Fee Structure
      • ✔️Recommended Tokens
      • ✅Supported Blockchains
      • 📩Error Message
      • 📄Change Log
    • yBridge Contract Integration
      • Integrate YBridge Contract
        • Bridge Example
        • Latest Upgrade ( 2024/07/17 )
        • Migrate from V2 to V3
      • Integrate YBridgeVault Contract
        • Maximum Available Liquidity
        • Migrate from V2 to V3
      • (Legacy) Integrate X Swap Contract
        • (Legacy) Bridge Example
      • (Legacy) Integrate Y Pool Contract
        • (Legacy) Maximum Available Liquidity
    • xAsset Bridge
      • How to Develop Under XY Standards
        • Function Interface for Token Contract
      • How to Deposit / Withdraw Liquidity
        • Direct Contract Interaction
        • Through the Explorer
      • Set up Your Own Validator
  • SMART CONTRACT
    • Addresses
      • Ethereum (chain id : 1)
      • BNB Chain (chain id : 56)
      • Polygon (chain id : 137)
      • Cronos (chain id : 25)
      • Avalanche (chain id : 43144)
      • Kucoin Community Chain (chain id : 321)
      • Arbitrum (chain id : 42161)
      • Optimism (chain id : 10)
      • Astar (chain id : 592)
      • Kaia (chain id : 8217)
      • zkSync Era (chain id : 324)
      • Polygon zkEVM ( chainid : 1101)
      • Linea (chain id : 59144)
      • Base (chain id : 8453)
      • Mantle ( chain id : 5000)
      • Scroll (chain id : 534352 )
      • Blast (chain id : 81457)
      • X Layer (chain id : 196)
      • Taiko (chain id : 167000)
      • Cronos zkEVM (chain id : 388)
      • Abstract (chain id : 2741)
      • Berachain (chain id : 80094)
      • Numbers (chain id : 10507)
      • Treasury
      • (Suspended)Fantom
      • (Suspended)ThunderCore
      • (Suspended)Moonriver
    • Audit Reports
    • Privileged Roles Management
  • Document
    • Terms of Use
    • AML and CFT Compliance Statement
    • Integration Terms and Brand Guidelines
    • Product Update
  • FAQ
    • How to Speed up Pending Transactions
    • How to add a custom RPC to my wallet
  • Contact Us
    • Telegram
    • Medium
    • Twitter
    • Discord
Powered by GitBook
On this page
  • How is the bridge fee calculated?
  • How much does the fee cost?
  • BaseFee
  • ProtocolFee
  • xAsset Bridge Fee

Was this helpful?

  1. Fee Structure

yBridge Fee Information

PreviousFee StructureNext(Legacy) XY Bridge Fee Information

Last updated 9 months ago

Was this helpful?

How is the bridge fee calculated?

Users are able to roughly estimate the cost of a transaction depending on the formulae given below as reference.

  • The Bridge Fee consists of two components. The first part is allocated to cover the gas expenses associated with transferring tokens to users on the destination chain. This portion is determined by the fluctuations in the market gas price on the destination chain. The second part is levied to provide rewards to both the yBridge liquidity providers and the XY DAO.

BridgeFee=BaseFee+ProtocolFeeBridgeFee = BaseFee + ProtocolFeeBridgeFee=BaseFee+ProtocolFee
  • The Protocol Fee will be calculated based on the amount and a predetermined percentage factor. Typically, this percentage is determined by the XY DAO.

ProtocolFee=amount⋅rateProtocolFee= amount \cdot rateProtocolFee=amount⋅rate
  • There are lower bound and upper bound in the Protocol Fee.

{ProtocolFee=minimum,minimum>ProtocolFeeProtocolFee=amount⋅rate,minimum<ProtocolFee<maximumProtocolFee=maximum,ProtocolFee>maximum\begin{equation} \left\{ \begin{array}{lr} ProtocolFee=minimum, & minimum > ProtocolFee \\ ProtocolFee = amount \cdot rate, & minimum < ProtocolFee < maximum\\ ProtocolFee=maximum, & ProtocolFee > maximum \\ \end{array} \right. \end{equation}\notag⎩⎨⎧​ProtocolFee=minimum,ProtocolFee=amount⋅rate,ProtocolFee=maximum,​minimum>ProtocolFeeminimum<ProtocolFee<maximumProtocolFee>maximum​​​

If the trading volume multiplied by rate is less than the minimum, then XY Finance will still charge the minimum as a basic commission.

If the trading volume multiplied by rate is more than the maximum, then XY Finance will only charge the maximum as a basic commission.

protocolFeeRate & minimumProtocolFee & maximumProtocolFee are determined by XYDAO.

How much does the fee cost?

BaseFee

The fee charged to cover the gas cost on the destination chain will be influenced by several factors. For instance, the BaseFee will be determined by fluctuations in the gas price on the destination chain. Furthermore, if users request a swap process on the destination chain, it may also incur additional transaction fees.

ProtocolFee

The protocolFee is calculated as the product of the srcBridgeTokenAmount and rate. This fee is then allocated to reward yBridge liquidity providers and XY DAO.

xAsset Bridge Fee

  • rate: 0.1%

  • maximum: $1,000

  • minimum: The following values represent the reference minimumFee ranges for different chains. However, it is important to note that actual prices may be subject to adjustment based on market conditions.

    • Ethereum: $50

    • Avalanche, Cronos, BNB Chain, Optimism, Arbitrum, zkSync Era, Polygon zkEVM, Linea, Base, Mantle, Scroll, Blast, Taiko, OX Chain, Cronos zkEVM: $0.6 - $2.3

    • Others: $0.15 - $0.285

The actual fee charged for the xAsset Bridge may fluctuate based on the real-time market gas conditions. Please refer to the real-time display on app.xy.finance for the final fee. We apologize for any inconvenience this may cause

For the actual amount that we charge for BaseFee, please refer to our .

For the actual amount that we charge for ProtocolFee, please refer to our .

🌉
fee structure API
fee structure API