Skip to main content

Cross Chain Swaps and Transactions

When a user initiates a cross-chain swap, ODX orchestrates a series of actions to execute the transaction seamlessly.

  • User requests to swap Asset AA on Chain CC to Asset BB on Chain DD

  • ODX 's Transaction Orchestrator (TO) breaks down the request into atomic operations

  • ODX uses the integrated DEX on Chain CC (e.g., Uniswap) to swap Asset AA to USDT/USDC.

  • Swap AA to USDT on Chain CC using a natively integrated DEX on CC

  • Amount of USDT Received UCU_C:

    UC=A×PAUSDTCU_C = A \times P^C_{A \rightarrow USDT}

    Where PAUSDTCP^C_{A \rightarrow USDT} is the price rate from the DEX on Chain CC.

  • ODX treats USDT on Chain CC and Chain DD as interchangeable.

  • No Bridging or Burning. There is no actual transfer of USDT between chains. ODX 's maintained liquidity allows it to offset the USDT balance internally.

  • ODX uses the integrated DEX on Chain DD (e.g., Raydium) to swap USDT to Asset BB.

  • Amount of Asset BB Received BDB_D:

    BD=UC×PUSDTBDB_D = U_C \times P^D_{USDT \rightarrow B}

    Where PUSDTBDP^D_{USDT \rightarrow B} is the price rate from the DEX on Chain DD.

  • The user's ODX account is credited with BDB_D.

  • SSE updates the states SBiS_{B_i} for Chains CC and DD.

  • ODX confirms transaction completion to the user.