X-Talk Token Swap

The ability to swap up a Fungible Token on Chain A with the Fungible Token on Chain B. The two chains may be EVM or Non-EVM compatible blockchain networks. The source token will automatically be burnt on Chain A, and the equivalent destination token will be minted on Chain B. This allows the Fungible Token to be swapped and used on any platform for various purposes.

Example:

The ability to swap a fungible token on Binance Smart Chain with a fungible token on Solana. The source fungible token will be automatically swapped with the destination fungible token. The token will be usable on the destination chain for transaction fees, staking, governance, and trading.

Technical Workflow

Workflow explained

  1. User deposits Fungible Token to the L1X Smart Contract on the Binance Smart Chain. L1X Smart Contract sends these tokens to the L1X Liquidity Pool.

  2. User initiates the Smart Contract on the L1X Chain that makes the Execution Manager ready in terms of listening to the L1X Smart Contract initiation events.

  3. Execution Manager informs the Rule Engine about Transaction Type. In this use case, it’s ‘L1X_Swap’.

  4. Rule Engine verifies the event and forwards it to the Rule Processor.

  5. Rule Processor filters and sends relevant information to the Rule Database.

  6. Rule Database gives the response for the associated function call.

  7. Rule Engine sends an event for an empty struct to the Execution Manager with function/rules and its relevant variable/function parameter details.

  8. Execution Manager requests the Execution Register to store the information about Fungible Token deposited to the L1X Smart Contract.

  9. Execution Register stores the event information and informs Execution Manager.

  10. Execution Manager invokes L1X Smart Contract on the Solana blockchain network to send Fungible Token from L1X Liquidity Pool to the destination address.

  11. Event is triggered once Fungible Token is successfully transferred to the Solana destination address.

  12. Rule Engine sends the corresponding event for the transaction struct to the Execution Manager.

  13. Execution Manager provides the information about ‘the successful Fungible Token swapping to the Solana network’, to Execution Register.

  14. Execution Register stores the information and updates the Execution Manager.

  15. User is informed about successful FT swapping and availability of the Fungible Token on the Solana Blockchain network.

Last updated