How to Build a Decentralized Exchange (DEX) - Web3 Developer Tutorial

Опубликовано: 26 Октябрь 2024
на канале: thirdweb
10,654
245

In this video, learn how to build a basic DEX to swap between a custom ERC20 and a chains native token. Create and deploy a DEX smart contract and build a basic DEX web3 application to allow a user to easily swap between a specified token and native token.

*Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.*

GitHub repo: https://github.com/thirdweb-example/b...
Contract repo: https://github.com/thirdweb-example/d...

ERC20 Contract: https://thirdweb.com/thirdweb.eth/Tok...

thirdweb Engine Docs: https://portal.thirdweb.com/engine/ge...
How to setup local thirdweb Engine:    • Build scalable apps with a web3 backe...  

thirdweb API: https://thirdweb.com/dashboard/settings
Creating an API:    • Start building blockchain apps: Getti...  

thirdweb Docs: https://portal.thirdweb.com/

Join our Community of over 30,000 Web3 builders:   / discord  
thirdweb Official Site: https://thirdweb.com/dashboard
thirdweb Twitter:   / thirdweb  

Timestamps:
00:00 Demo of DEX
01:15 Overview of how to build a basic DEX
01:43 Deploy an ERC20 Token smart contract with thirdweb
03:40 Create a custom DEX contract with thirdweb
23:30 Deploy custom DEX smart contract
24:50 Set approval and add initial liquidity to DEX
27:10 Create and setup and new project with thirdweb
29:25 Create variables and functions for DEX app
43:30 Build a component for the swap input of the DEX app
48:15 Create DEX with swap input components
51:45 Add a swap button to execute swap with DEX app
54:58 Conclusion