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

πŸš€ Quick Start for Developers

Whether you're building on STON.fi or integrating our protocol, here's where to begin:

Getting Started Guides

Developer Resources

πŸ“š 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

Main Resources:

Community:

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