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
  • If you want to integrate yBridge v3 through contracts
  • If you have integrated yBridge v3 before 2024/07/17, please check our latest upgrade notice
  • If you have previously integrated v2 contracts and want to migrate to v3
  • If you still need access to v2 documentation

Was this helpful?

  1. Single Bridge Integration

yBridge Contract Integration

PreviousChange LogNextIntegrate YBridge Contract

Last updated 9 months ago

Was this helpful?

Original bridge service will be upgraded to v3 and officially renamed as yBridge from November 22, 2023.

  • The original XSwapper Contract will be renamed to YBridge

  • The original YPoolVault Contract will be renamed to YBridgeVault.

In v3, in addition to the original bridge and swap functionalities, we have further enhanced security and upgraded the fee mechanism to a real-time dynamic fee structure. If you want to understand our new real-time fee structure, you can refer to yBridge Fee Information

If you want to integrate yBridge v3 through contracts

Please refer to the following docs

  • Integrate YBridge Contract : You could learn how to send the bridge transaction and how to check the status of your transaction on the source chain and destination chain.

  • Integrate YBridgeVault Contract : You could learn how to deposit or withdraw into/from the liquidity vault.

If you have integrated yBridge v3 before 2024/07/17, please check our latest upgrade notice

We have implemented a new upgrade, we compatible with the previous interface, so the original function and interface will not be affected. However we strongly urge the partners to review the Latest Upgrade ( 2024/07/17 ) to transition to new interface to gain full support for the latest aggregated DEXes and Bridges

If you have previously integrated v2 contracts and want to migrate to v3

Please refer to this documentation to understand the migration of the or

If you still need access to v2 documentation

You could still refer the following docs, but the current contract has been upgraded to v3 since November 22, 2023.

  • (Legacy) Integrate X Swap Contract: It corresponds to the current YBridge

  • (Legacy) Integrate Y Pool Contract: It corresponds to the current YBridgeVault

bridge contract
vault contract