SyncSwap for Integrators: From Pool Lookup to Swap
SyncSwap gives integrators access to several pool models through contracts and a router; the work is choosing a route, checking its cost and submitting it safely.
Merkle Street Newsroom#c9529b4 min read
SyncSwap is a decentralized exchange protocol that lets an integrator route token swaps through liquidity pools deployed on supported networks. The process starts with a token pair and amount, finds a suitable pool or path, checks the expected output and fees, then sends a transaction through the router. For an application, syncswap is a set of onchain components to connect, not one contract that handles every decision.
The first step is identifying the network and the deployed contracts there. A pool factory creates pools of a particular type, then registers each new pool with Pool Master, which acts as a directory of pools and factories. An integrator can use Pool Master to look up pools for a pair of tokens and inspect which pool model they use. Contract addresses should come from the deployment records for the target network, rather than being copied from another chain.
How does syncswap route a token swap?
A swap begins with the input token, output token and amount. The integrator checks available pools and estimates the output for each possible route. A direct route uses one pool. A multi-hop route passes through an intermediate token when that produces a better result. A router coordinates the chosen pool calls and the movement of tokens, so the application can present one swap action to the user.
Think of the pools as counters offering different exchange rates, and the router as the cashier carrying out the selected sequence. The analogy stops there: each pool calculates its output from its own rules and current reserves, and the final result is enforced by contract code. A quote can change before execution as pool balances and prices move.
An integrator can refer to syncswap while mapping the protocol into its application. In practice, the interface or backend prepares the route and quote, while the wallet signs a transaction that calls the relevant contracts. The user’s token approval allows the swap to use the input asset; the transaction also specifies a minimum acceptable output so it can revert if execution falls below that limit.
What do SyncSwap’s pool types change?
Pool type determines how a pool prices a trade, so it affects which route fits the tokens. SyncSwap documents three types: Classic, Stable and Aqua. Classic pools use a constant product curve suited to general trading. Stable pools use a curve designed for assets expected to trade near the same value. Aqua pools use a dynamic hybrid curve with an auto-rebalancing mechanism for volatile assets and liquid staking tokens.
These are different pricing models, not interchangeable labels. A stable pair may get a more suitable quote from a Stable pool, while a volatile pair may be better served by another pool type. An integrator should compare the estimated output and fee for the available routes instead of assuming that the pool with the most familiar name is best.
Which fees and details should an integrator check?
Fees come from the pool and its fee configuration. The Fee Manager stores default and custom swap fees, and Pool Master provides access to the current Fee Manager address. That address can change, so an integration should resolve it through the documented contract relationship instead of treating it as permanent. Fee data can include minimum and maximum fees plus a gamma value; Aqua pools support dynamic fees, while Classic and Stable pools generally use fixed fees.
- Confirm the network, token addresses and deployed contract addresses.
- Look up pools through Pool Master and account for the pool type.
- Refresh fee data and quotes as part of preparing each swap.
- Set a minimum output and make the recipient explicit in the transaction.
What is the practical trade-off for integrators?
Using the protocol’s contracts directly gives an integrator control over the route and transaction, but it also means maintaining address discovery, fee handling, quoting and transaction construction. A software development kit can simplify some application-side work, but it does not remove the need to validate the network, quote and transaction parameters. The useful division is clear: pool contracts price and execute trades, Pool Master helps discover pools and related contracts, and the integrator decides how to present and submit a route.
For most applications, the sound starting point is to fetch current pool and fee data, compare routes, then submit with a clear minimum output and recipient. That makes SyncSwap’s moving parts visible to both the application and its user, while leaving the pool contracts to enforce the trade.