☝️Symbiosis: From/To TON
Introduction
This document describes the implementation of the cross-chain exchange process to and from TON (The Open Network) using the Symbiosis TON bridge. It outlines the approaches used to facilitate cross-chain operations with the TON network. Understanding these mechanisms is essential for developers and stakeholders involved in the deployment and operation of cross-chain exchanges.
Implemented cases:
Bridging TON:
Wrapping TON from the TON network to the Symbiosis host chain: TON →sTON
Unwrapping sTON from the Symbiosis host chain to the TON network: sTON → TON
Bridging USDT (TON) two ways:
Wrapping USDT from the TON network to the Symbiosis host chain: USDT (TON) → sUSDT
Unwrapping USDT from the Symbiosis host chain to the TON network: sUSDT → USDT (TON)
Exchanging a token to/from the TON network:
Exchanging TON token from the TON network for another token within a single cross-chain operation across supported blockchain networks.
Exchanging USDT (TON) from the TON network for another token within a single cross-chain operation across supported blockchain networks.
Exchanging a token from a supported network for TON or USDT on the TON network within a single cross-chain operation across certain supported blockchain networks.
The security audit of the Symbiosis TON bridge can be found here:https://github.com/symbiosis-finance/audits/tree/master
Bridging TON and USDT
Wrapping TON: TON → sTON
Symbiosis bridges TON from the TON network to the Symbiosis host chain by wrapping it into sTON. The wrapping process involves locking the original asset on its native blockchain (the TON network) and minting an equivalent amount of tokens on the target blockchain, the Symbiosis host chain.
Unwrapping sTON: sTON → TON
The unwrapping process reverses the wrapping by burning sTON on the Symbiosis host chain and releasing the equivalent amount of TON on the TON network. This ensures that the supply of wrapped tokens always matches the amount of TON locked, maintaining a 1:1 backing ratio.
A similar wrapping and unwrapping process is implemented for another token from the TON network: USDT.
Wrapping USDT (TON): USDT → sUSDT
Symbiosis bridges USDT from the TON network to the Symbiosis host chain by wrapping it into sUSDT. The wrapping process involves locking the original asset on the TON network and minting an equivalent amount of tokens on the Symbiosis host chain.
Unwrapping sUSDT: sUSDT → USDT (TON)
The unwrapping process reverses the wrapping by burning sUSDT on the Symbiosis host chain and releasing the equivalent amount of USDT on the TON network. This ensures that the supply of wrapped tokens always matches the amount of USDT locked, maintaining a 1:1 backing ratio.
sTON and sUSDT (TON) Purpose
sTON and sUSDT (TON) tokens are used to enable cross-chain exchanges between the TON network and other blockchain networks.
Once bridged from the TON network, sTON and sUSDT (TON) tokens are added to Octopools on the Symbiosis host chain:
sUSDT (TON) is added to the Octopool with sStable tokens.
sTON is added to the Octopool with sWTON tokens.
For more details on Octopools, see Symbiosis Octopools.
Exchanging from and to the TON Network
Currently, two tokens on the TON network participate in the cross-chain exchange process: TON and USDT.
When a user exchanges TON from the TON network or receives TON on the TON network as the result of an exchange, the process will always route through the Octopool with sWTON tokens.
When a user exchanges USDT from the TON network or receives USDT on the TON network as the result of an exchange, the process will always route through the Octopool with sStable tokens.
The exchange process to/from the TON network is very similar to the cross-chain exchange between any two EVM networks.
Let’s break down how the exchange process works with specific examples.
Exchanging a Token from the TON Network
Below is a high-level diagram of the token exchange from the TON network to a token on another network.
Important notes for Scheme 1
Transit Token In this example, USDT/USDC are used as the transit tokens for moving between networks, with the Octopool containing sStables on the host network.
Host Chain The current Symbiosis host chain is BOBA BNB, where Octopools are hosted, and all cross-chain operations pass through it.
Cross-chain fees For more details on the fee calculating and withholding process, please refer to Gas Fees for Cross-chain Operations via Symbiosis
Step 1. The user receives a quote at this stage and signs a transaction with all the details.
Step 9. Once the last on-chain swap is accomplished, the user gets tokens to their address on the destination chain.
Exchanging a Token for TON/USDT on TON
Below is a high-level diagram of the cross-chain exchange for tokens on the TON network.
Important notes for Scheme 2
Transit Token In this example, WTON is used as the transit token for moving between networks, with the Octopool containing sWTON/sTON on the host network.
Routing
Two Octopools are used for routing exchanges to and from the TON network: the Octopool with sStable tokens and the Octopool with sWTON tokens. The choice of Octopool depends on the token being exchanged on the TON network.
Last updated