Token Balances
Add Liquidity
Deposit TokenA and TokenB into the pool to earn a share of the reserves.
Remove Liquidity
Withdraw your TokenA and TokenB from the pool reserves.
Swap TokenA → TokenB
Sell TokenA and receive TokenB at the current AMM rate.
Swap TokenB → TokenA
Sell TokenB and receive TokenA at the current AMM rate.
About This Project
What is a DEX?
A Decentralized Exchange (DEX) is a peer-to-peer marketplace that allows users to trade tokens directly from their wallets — no central authority, no custodian holds your funds. Trades are executed by smart contracts deployed on a blockchain.
What is Liquidity?
Liquidity refers to the pool of tokens locked in the DEX smart contract that makes trading possible. Liquidity providers deposit pairs of tokens (e.g., TKA + TKB) into the pool. The deeper the pool, the less price impact each trade has.
How Does Swapping Work?
This DEX uses the constant-product AMM formula:
x × y = k.
When you swap Token A for Token B, the amount you receive is:
amountOut = (amountIn × reserveOut) / (reserveIn + amountIn)
The price shifts with each trade — selling more A makes A cheaper relative to B.