Token Balances

ETH Balance
Token A (TKA)
Token B (TKB)
Pool Reserve A
Pool Reserve B

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.

Estimated output: TKB

Swap TokenB → TokenA

Sell TokenB and receive TokenA at the current AMM rate.

Estimated output: TKA

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.