Telegram Integration
Access SORA assets directly from Telegram wallets.
The TON Bridge connects the SORA ecosystem with The Open Network (TON), enabling asset transfers and bringing SORA’s DeFi infrastructure to TON’s 800+ million Telegram users. This bridge is integral to TONSWAP and creates a unified liquidity layer across ecosystems.
Telegram Integration
Access SORA assets directly from Telegram wallets.
XOR Buyback
10% of bridge fees buy and burn XOR.
Bidirectional
Move assets freely between SORA and TON.
High Speed
Leverage TON’s fast finality for quick transfers.
┌─────────────────┐ ┌─────────────────┐│ SORA │ │ TON ││ Network │ │ Network ││ │ │ ││ ┌───────────┐ │ Bridge Layer │ ┌───────────┐ ││ │ Bridge │◄─┼───────────────────┼─►│ Bridge │ ││ │ Pallet │ │ Validators │ │ Contract │ ││ └───────────┘ │ │ └───────────┘ ││ │ │ │ │ ││ ┌─────▼─────┐ │ │ ┌─────▼─────┐ ││ │ XOR, VAL │ │ │ │ Jettons │ ││ │ PSWAP │ │ │ │ (Wrapped) │ ││ └───────────┘ │ │ └───────────┘ │└─────────────────┘ └─────────────────┘| Component | Network | Function |
|---|---|---|
| Bridge Pallet | SORA | Lock/unlock SORA assets |
| Smart Contract | TON | Mint/burn wrapped assets |
| Validator Set | Cross-chain | Sign and relay proofs |
| Relayer | Off-chain | Submit transactions |
| TON Asset | SORA Representation |
|---|---|
| TON | wTON (Wrapped) |
| USDT (TON) | wUSDT-TON |
| Other Jettons | Governance approved |
User locks tokens on SORA:
// Lock XOR on SORAton_bridge::lock( asset: XOR, amount: 1000, ton_recipient: "EQ...", // TON address)Validators observe and verify:
Wrapped tokens minted on TON:
// TON contract mints wXORmint_jetton( amount: 1000 - fee, to: user_ton_address)User burns wrapped tokens on TON:
// Burn wXOR on TONburn_jetton( amount: 1000, sora_recipient: "cnVk...")Bridge relays the burn event:
SORA releases locked tokens:
// Automatic unlock on SORAunlock( asset: XOR, amount: 1000 - fee, recipient: user_sora_address)A unique feature of the TON bridge is the automatic XOR buyback:
Trading Fees │ ▼┌───────────────┐│ Fee Split ││ 90% / 10% │└───┬───────┬───┘ │ │ ▼ ▼┌───────┐ ┌───────────┐│ LPs │ │ XOR ││ 90% │ │ Buyback │└───────┘ │ 10% │ └─────┬─────┘ │ ▼ ┌───────────┐ │ Burn │ │ XOR │ └───────────┘| Metric | Effect |
|---|---|
| XOR Supply | Deflationary pressure |
| XOR Demand | Continuous buy orders |
| Ecosystem | Connected economies |
| Transparency | On-chain tracking |
The bridge contract on TON (FunC):
// Simplified bridge contract structure (FunC syntax)void recv_internal(int my_balance, int msg_value, cell in_msg_full, slice in_msg_body) { // Parse message int op = load_uint(in_msg_body, 32);
if (op == OP_BRIDGE_DEPOSIT) { // User deposits TON assets to bridge handle_deposit(in_msg_body); return; }
if (op == OP_VALIDATOR_RELEASE) { // Validators authorize release verify_signatures(in_msg_body); mint_wrapped_tokens(in_msg_body); return; }
if (op == OP_BURN_FOR_BRIDGE) { // User burns wrapped tokens to exit handle_burn(in_msg_body); return; }}Bridge security relies on validator consensus:
| Requirement | Value |
|---|---|
| Threshold | 2/3 + 1 validators |
| Signature Scheme | Ed25519 multisig |
| Finality Wait | 10+ TON blocks |
Cross-chain messages follow a standard format:
struct BridgeMessage { nonce: u64, source_chain: ChainId, dest_chain: ChainId, sender: Address, recipient: Address, asset: AssetId, amount: u128, timestamp: u64,}TONSWAP leverages the bridge for cross-ecosystem trading:
The bridge enables Telegram-native DeFi:
| Fee Type | Amount | Recipient |
|---|---|---|
| Bridge Fee | 0.1-0.5% | Treasury/Validators |
| TON Gas | Variable | TON validators |
| SORA Fee | Minimal | SORA network |
Tips for minimizing fees:
| Layer | Security |
|---|---|
| Validators | Staked collateral |
| Contracts | Audited code |
| Consensus | BFT threshold |
| Monitoring | 24/7 observation |
SORA v3 positions the TON bridge as a core component:
┌─────────────┐ │ SORA v3 │ │ Hub Chain │ └──────┬──────┘ ┌───────────────┼───────────────┐ │ │ │ ┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐ │ Ethereum │ │ Polkadot │ │ TON │ │ Bridge │ │ Bridge │ │ Bridge │ └─────────────┘ └─────────────┘ └─────────────┘Planned improvements for v3:
TONSWAP
HASHI Bridge
Polkadot Bridge
XOR Token