Intermediate
DeFiNFT Certificate on CompletionDeFi Liquidity Pool Simulation
Run a real AMM — manage liquidity, earn fees, understand impermanent loss
3 hrs 1,000 XP 5 modules⛓️ Polygon Amoy (testnet)
About This Lab
Deploy a Uniswap V2-compatible AMM on testnet, add liquidity, execute trades, observe price impact and impermanent loss in real time, and learn to optimize LP positions with concentrated liquidity.
Lab Modules
- 1AMM mechanics: x·y=k deep divelesson
Constant product formula, price impact, arb equilibrium.
25 min - 2Deploy your token pair + pooldeploy
Factory, pair creation, initial liquidity provision.
35 min - 3Trade and observe price impactsimulation
Slippage, large vs small trades, MEV preview.
30 min - 4Calculate impermanent losssimulation
IL formula, fee income offset, exit strategies.
25 min - 5DeFi mechanics quizquiz
AMMs, IL, fee tiers, concentrated liquidity.
15 min
What You'll Build
- Deploy and seed a liquidity pool on testnet
- Calculate and observe impermanent loss in real time
- Understand how AMM pricing works (x·y=k)
- Optimize LP positions with concentrated liquidity math
Tools & Stack
Uniswap V2 ForkHardhatEthers.jsDune Analytics
🏅
Ready to build?
Complete all 5 modules and earn your NFT certificate. Earn 1,000 XP on completion.
Start Lab →Register Free FirstPrerequisites
🏅 NFT Certificate
On completion, your certificate is anchored to IPFS via Unykorn and issued as an on-chain NFT badge — permanently verifiable proof of your build.
Verify on Unykorn