Skip to content
SORA Codex Community-curated documentation

TON Bridge

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) │ │
│ └───────────┘ │ │ └───────────┘ │
└─────────────────┘ └─────────────────┘
ComponentNetworkFunction
Bridge PalletSORALock/unlock SORA assets
Smart ContractTONMint/burn wrapped assets
Validator SetCross-chainSign and relay proofs
RelayerOff-chainSubmit transactions

SORA AssetTON Representation
XORwXOR (Jetton)
VALwVAL (Jetton)
PSWAPwPSWAP (Jetton)
TBCDwTBCD (Jetton)
TON AssetSORA Representation
TONwTON (Wrapped)
USDT (TON)wUSDT-TON
Other JettonsGovernance approved

User locks tokens on SORA:

// Lock XOR on SORA
ton_bridge::lock(
asset: XOR,
amount: 1000,
ton_recipient: "EQ...", // TON address
)

User burns wrapped tokens on TON:

// Burn wXOR on TON
burn_jetton(
amount: 1000,
sora_recipient: "cnVk..."
)

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 │
└───────────┘
MetricEffect
XOR SupplyDeflationary pressure
XOR DemandContinuous buy orders
EcosystemConnected economies
TransparencyOn-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:

RequirementValue
Threshold2/3 + 1 validators
Signature SchemeEd25519 multisig
Finality Wait10+ 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:

  1. Bridge assets — Move XOR/VAL/PSWAP to TON
  2. Trade on TONSWAP — Access TON liquidity
  3. Earn rewards — LP incentives + XOR buyback
  4. Bridge back — Return to SORA when needed

The bridge enables Telegram-native DeFi:

  • Telegram wallets — Native TON wallet integration
  • Bot interfaces — Trade via Telegram bots
  • Social sharing — Share trades with friends
  • Mobile-first — Designed for smartphone users

Fee TypeAmountRecipient
Bridge Fee0.1-0.5%Treasury/Validators
TON GasVariableTON validators
SORA FeeMinimalSORA network

Tips for minimizing fees:

  • Batch smaller transfers
  • Bridge during low-activity periods
  • Use appropriate gas settings

LayerSecurity
ValidatorsStaked collateral
ContractsAudited code
ConsensusBFT threshold
Monitoring24/7 observation
  • ✅ Use official bridge interfaces
  • ✅ Verify addresses carefully
  • ✅ Start with small test amounts
  • ✅ Monitor transaction status
  • ❌ Don’t send tokens directly to contract
  • ❌ Don’t share private keys

SORA v3 positions the TON bridge as a core component:

┌─────────────┐
│ SORA v3 │
│ Hub Chain │
└──────┬──────┘
┌───────────────┼───────────────┐
│ │ │
┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐
│ Ethereum │ │ Polkadot │ │ TON │
│ Bridge │ │ Bridge │ │ Bridge │
└─────────────┘ └─────────────┘ └─────────────┘

Planned improvements for v3:

  • Faster finality — Sub-second transfers
  • Lower fees — Optimized relay costs
  • More assets — Extended jetton support
  • Direct CBDC — Government asset access