WHAT ACTUALLY HAPPENS WHEN YOU SWAP ON A DEX?
When you click Swap, it can feel like the platform is simply exchanging one token for another.
But there is more happening behind that button.
On an AMM-based DEX, your trade interacts with a liquidity pool.
A pool contains two assets.
For example:
Token A + Token B
Liquidity providers deposit those assets into the pool, creating the liquidity traders can use.
When you swap Token A for Token B, you're effectively changing the balance of the two assets in the pool.
That changes the ratio between them and therefore changes the price.
STON.fi uses an AMM model on TON. Its documentation describes the common constant-product model as:
x × y = k
The exact mechanics can vary depending on the pool type, but the basic idea is simple:
Your trade changes the pool.
This is why the size of your transaction matters.
A small trade relative to a deep pool may have limited price impact.
A large trade relative to a shallow pool can move the price much more.
Before confirming a swap, STON.fi shows information including:
→ Expected output
→ Swap rate
→ Price impact
→ Blockchain fee
→ Minimum received
So the next time you press “Swap,” remember:
You're not just exchanging two numbers on a screen.
You're interacting with liquidity that determines how that trade gets executed.
When you click Swap, it can feel like the platform is simply exchanging one token for another.
But there is more happening behind that button.
On an AMM-based DEX, your trade interacts with a liquidity pool.
A pool contains two assets.
For example:
Token A + Token B
Liquidity providers deposit those assets into the pool, creating the liquidity traders can use.
When you swap Token A for Token B, you're effectively changing the balance of the two assets in the pool.
That changes the ratio between them and therefore changes the price.
STON.fi uses an AMM model on TON. Its documentation describes the common constant-product model as:
x × y = k
The exact mechanics can vary depending on the pool type, but the basic idea is simple:
Your trade changes the pool.
This is why the size of your transaction matters.
A small trade relative to a deep pool may have limited price impact.
A large trade relative to a shallow pool can move the price much more.
Before confirming a swap, STON.fi shows information including:
→ Expected output
→ Swap rate
→ Price impact
→ Blockchain fee
→ Minimum received
So the next time you press “Swap,” remember:
You're not just exchanging two numbers on a screen.
You're interacting with liquidity that determines how that trade gets executed.