Skip to main content

Documentation

Ring Swap is Ring's native constant-product AMM. Its pools trade FewToken assets, and its routers provide

Structured reference
TOC available

Ring Swap

Ring Swap is Ring's native constant-product AMM. Its pools trade FewToken assets, and its routers provide the normal entry points for swaps and liquidity.

The (v2) label identifies the compatible contract design. It does not make Ring Swap a legacy product.

When to use Ring Swap

Use this section when you need to:

  • find Ring contract or pair addresses
  • integrate swaps or liquidity in a smart contract
  • read pair reserves or LP state
  • build quotes and trades with the Ring Swap SDK
  • resolve the FewToken assets used in a route

If you are building directly against Uniswap v4 PoolManager, PositionManager, or hook contracts, use the Uniswap v4 Integration section instead.

Architecture

LayerMain componentsPurpose
AssetFewFactory, FewTokenResolve and wrap the assets used by Ring
Core AMMRing Swap Factory, PairCreate pools, hold reserves, mint LP tokens, and execute swaps
RoutingRing Swap Router, Universal Router, Permit2Coordinate user-facing swaps, liquidity, and approvals
Developer accessRing Swap SDK, Routing APIBuild routes, quotes, and transactions

Start by task

TaskGuide
Select a network and contractContract Deployments
Find a BSC or HyperEVM poolPools by Network
Resolve or validate a FewTokenFewToken Integration
Execute a swap from a contractSmart Contract Quick Start
Provide liquidityProviding Liquidity
Build in TypeScriptRing Swap SDK
Understand the AMMRing Swap Model

Source repositories