Loading video player...
Uniswap V2 Factory Contract Explained & Implemented From Scratch Web3EG Uniswap V2 Factory Contract Deep Dive | Creating Pairs & Core Logic | Web3EG In this video, we start building Uniswap V2 from scratch by implementing the core Factory Smart Contract. The Factory contract is the heart of Uniswap V2. It is responsible for creating trading pairs, managing deployed pairs, and enforcing protocol rules. In this episode, you will learn: What the Factory contract does in Uniswap V2 How pair creation works How CREATE2 is used for deterministic addresses How token pairs are stored and tracked How the protocol prevents duplicate pairs The core architecture of Uniswap V2 This is part of our complete Uniswap V2 deep dive series where we rebuild the protocol step by step to fully understand how decentralized exchanges (DEXs) work. Whether you're learning DeFi development, smart contract engineering, or preparing to build your own DEX, this series will give you a solid foundation. 🔗 Previous Episodes in the Series: 1️⃣ What is Uniswap V2? CEX vs DEX 2️⃣ How AMM Works 3️⃣ Uniswap V2 Swap Explained 4️⃣ Uniswap V2 Smart Contracts Architecture 5️⃣ Single-Hop vs Multi-Hop Swaps 6️⃣ Uniswap V2 Protocol Design Deep Dive 💻 Tech Stack: Solidity Foundry Framework Ethereum في الحلقة دي من سلسلة Uniswap V2 هنبدأ أول تطبيق عملي حقيقي 🔥 وهنشرح بالتفصيل Factory Smart Contract ونكتبه From Scratch خطوة خطوة. هتفهم في الفيديو: Factory Contract بيعمل إيه في Uniswap V2؟ إزاي بيتم Create Pair بين Tokenين ليه Factory هو قلب البروتوكول؟ شرح أهم Functions و Events إزاي Uniswap V2 بيضمن إن مفيش Pairs مكررة ربط Factory بالـ Pair Contract 📌 السلسلة دي موجهة لأي حد: عايز يفهم Uniswap V2 بعمق عايز يبني DEX بنفسه بيتعلم Solidity و Smart Contracts مهتم بـ DeFi & Web3 🔗 باقي السلسلة: 1️⃣ What is Uniswap V2 | CEX vs DEX 2️⃣ How Uniswap V2 Works – AMM Model 3️⃣ Swap Explained – From Formula to Trading 4️⃣ Smart Contracts Overview – Factory, Pair, Router 5️⃣ Single-Hop vs Multi-Hop Swaps 6️⃣ Protocol Design & Core Logic 7️⃣ Factory Contract Implementation (This Video) ✅ 📺 تابع السلسلة كاملة علشان في الحلقات الجاية: Pair Contract Router Contract Swaps & Liquidity Testing & Deployment 🧠 Presented by Web3EG 🚀 Subscribe to Web3EG for more advanced Solidity & DeFi content. #Uniswap #UniswapV2 #Solidity #SmartContracts #DeFi #AMM #Web3 #Blockchain #Ethereum #DEX