Part 2: Design and Implementation of a DeFi Application for Trading Cryptos
In this part, you will learn how to build a Decentralized Exchange (DEX) – the most popular DeFi application for trading cryptos – from the ground up. This part will give you an introduction to the various types of DEXs and dive into a specific type of DEX – the Constant Product Market Maker (CPMM). You will learn how to build smart contracts for token swapping and providing and removing liquidity, along with coverage of the interaction between the frontend and the smart contract, and ways to handle native tokens in smart contracts.
Starting from this part, we will elaborate the mathematics that goes on behind the scenes so you can understand how DeFi applications work and how you can monetize your DeFi projects.
This part has the following chapters:
- Chapter 4, Introduction to Decentralized Exchanges
- Chapter 5, Building Crypto-Trading Smart Contracts
- Chapter 6, Implementing...