Introduction
The STON.fi Developer Documentation

What is STON.fi?
STON.fi is the leading decentralized automated market maker (AMM) exchange on the TON blockchain, employing the Constant Product Market Maker algorithm. The web-based app (app.ston.fi) provides a visual interface for interacting with smart contracts deployed on TON.
Key Features
Fully Decentralized - Non-custodial exchange with funds held in permissionless smart contracts
Near-zero fees - Minimal transaction costs leveraging TON's efficiency
Low slippage - Deep liquidity pools ensure optimal trading rates
No front-running - TON's advanced sharding and async architecture prevent manipulation
Immutable contracts - Pool contracts cannot be modified, ensuring fund security
Time-locked upgrades - Router updates have a 7-day lock period for transparency
Fee Structure
STON.fi charges a 0.3% trading fee on swaps:
0.2% goes to liquidity providers as rewards
0.1% goes to the STON.fi protocol
STON.fi is live! Trade now at app.ston.fi
π Quick Start for Developers
Whether you're building on STON.fi or integrating our protocol, here's where to begin:
Getting Started Guides
Swap Guide - Integrate token swaps into your dApp
Omniston Guide - Use our cross-chain aggregator for best rates
Liquidity Providing Guide - Add and manage liquidity pools
Developer Resources
Omniston Protocol - Cross-chain swaps and aggregation
SDK Documentation - TypeScript/JavaScript SDK for easy integration
Smart Contract APIs - Direct contract interaction
DEX API Reference - REST API for data queries
Architecture Overview - Technical deep dive
Becoming a Resolver - Participate in our network
π Documentation Structure
This documentation provides:
Technical specifications for protocol integration
Code examples for common operations
API references for all contracts and endpoints
Best practices for optimal implementation
π Quick Links
Main Resources:
Website: https://ston.fi/
Web App: https://app.ston.fi/
GitHub: https://github.com/ston-fi/
Community:
Twitter: @ston_fi
Telegram: @stonfidex
Reddit: r/STONFi
What is an AMM?
An Automated Market Maker (AMM) is a decentralized trading protocol that:
Uses liquidity pools instead of order books
Provides instant trades without counterparties
Allows anyone to become a liquidity provider
Operates 24/7 without intermediaries
Why Build on STON.fi?
For Developers:
Comprehensive SDKs and documentation
Battle-tested smart contracts
Active developer community
Direct team support
For Users:
Largest liquidity on TON
Best rates through aggregation
Seamless Telegram integration
Trusted by millions
Ready to start building? Jump to our Quickstart Guides or explore the SDK Documentation!
Last updated