Breaking Down STON.fi as TON Infrastructure

Most users see STON.fi as just a simple Swap button, but if you look deeper, STON has long evolved beyond being just an AMM exchange. Today, it represents a multi-layered infrastructure within the TON ecosystem: liquidity contracts, advanced routing, and a liquidity aggregation layer.

What Happens Behind the Scenes?

At its core, STON.fi is built on a system of AMM smart contracts. The platform relies on several key components, each responsible for a different part of the process:

  • Router — accepts and coordinates swaps.
  • Pool — stores liquidity.
  • Factory — creates and manages pools.
  • TON Jetton-compatible contracts — handle token functionality.

The logic is similar to a traditional DEX architecture:

  1. The user signs a transaction.
  2. The Router finds the optimal route.
  3. The system interacts with liquidity pools.
  4. The user receives the desired asset.

At the same time, the entire system remains fully non-custodial, meaning STON.fi never takes control of user funds.


Omniston — The Next Layer of Routing

The most interesting part begins above the core AMM layer with the introduction of Omniston.

Previously, STON.fi searched for liquidity only within its own infrastructure. Now, routing works through Omniston — a separate liquidity aggregation layer.

Its role is not just to check a single pool, but to scan the entire TON market and find the best possible execution route for a trade.

How It Works

The flow looks roughly like this:

User → Omniston → Resolvers → DEXs/Pools → Best Route → Execution

This allows the system to analyze multiple liquidity sources simultaneously and choose the most efficient path for the swap.


Who Are the Resolvers?

Resolvers are probably one of the most underrated parts of the STON.fi architecture.

A Resolver receives a request such as:

“Swap token A → token B”

From there, it performs several important tasks:

  • Builds possible swap routes.
  • Compares prices.
  • Evaluates liquidity.
  • Calculates price impact based on trade size.
  • Returns the most optimal route.

How the Best Route Is Chosen

After receiving responses from multiple Resolvers, Omniston compares all available options and selects the best execution path.

The route may include liquidity from various TON-based platforms, including:

  • STON.fi
  • DeDust
  • Tonco
  • swap.coffee

As a result, users receive the most efficient swap available based on pricing, liquidity, and slippage conditions.


Why It Matters

STON.fi is gradually evolving from a standard DEX into a full infrastructure layer for TON.

While users only see a simple swap interface, behind it operates a complex system responsible for:

  • liquidity aggregation,
  • intelligent routing,
  • execution optimization,
  • and interaction between multiple TON protocols.

Solutions like these are what gradually build a mature DeFi infrastructure inside the TON ecosystem.

This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pinned