Loading video player...
In Part I, we built a runnable Uniswap V2-style AMM simulation for swaps. In Part II, we add Liquidity Providers to the model: mint/burn LP shares, add/remove liquidity, and verify pool accounting in real time. Then we “blockrize” the DEX for reuse — and build a Pro variant via Block inheritance. You’ll learn & build ✅ Add/Remove Liquidity (LP shares, totalSupply, proportional withdrawal) ✅ Clean asset flows with Containers (wallets + pools, auditable transfers) ✅ LP as requester → DEX as service (quote → execute patterns) ✅ Turn the DEX into a reusable Block + extend it via inheritance (e.g., protocol-fee variant) Uniswap V2 & AMM background (quick reference) 1. Uniswap V2 overview: https://docs.uniswap.org/contracts/v2/concepts/protocol-overview/how-uniswap-works 2. Pools & LP tokens: https://docs.uniswap.org/contracts/v2/concepts/core-concepts/pools 3. How liquidity provision works: https://blog.uniswap.org/how-liquidity-provision-in-defi-works 4. Uniswap V2 whitepaper (PDF): https://docs.uniswap.org/whitepaper.pdf 5. Uniswap V2 core contracts (GitHub): https://github.com/Uniswap/v2-core Chapters 0:00 Intro — LPs + Blocks (Part II goals) 0:28 LP basics — add/remove liquidity + LP tokens 0:59 Build blueprint — DEX + Liquidity Provider Agent 2:26 Configure DEX — LP token keys + totalSupply 3:28 Add liquidity quote — match reserve ratio 6:17 Implement addLiquidity — mint LP tokens + update reserves 10:19 LP goAddLiquidity — send request + wallet flows 13:01 Test & verify — price stability + pool accounting 14:31 Remove liquidity — burn LP tokens & withdraw share 15:10 Build removeLiquidity + goRemoveLiquidity 17:29 Blocks 101 — turn DEX into a reusable Block 18:21 Reuse — drag the Block into a new scenario 18:43 Inheritance — create a “Pro” Block (protocol-fee variant) 20:04 Extend swap logic — hook into existing processes 23:33 Observe — compare standard vs Pro pool results 24:02 Marketplace — publish & share Blocks 24:45 Wrap-up + next steps Watch the full HoloBit Tutorials Playlist: https://www.youtube.com/playlist?list=PLE8KkqZeu9DidKW-hqpEFsECotABdnIrN ➡️ Tutorial 3 (Part 1): https://youtu.be/kL96qKeFc60 ➡️ Tutorial 2: https://youtu.be/wTRx-eunIpM ➡️ Tutorial 1: https://youtu.be/Htu4O1cRGQc Visit HoloBit and start building: https://holobit.xyz/ Disclaimer: This video is for educational purposes only and does not constitute financial or investment advice. #AMM #UniswapV2 #LiquidityProvider #LPToken #DeFi #DEX #Simulation #ABM #NoCode #VisualModeling #SystemsThinking