Why DEX
Why should we develop the chapter "DEX Development Practice"
in the previous two chapters "Beginners", we helped the team understand some basic points of DApp development, helped front-end development try intelligent contract development, and helped non-front-end development build a front-end Demo. But for a real DApp, this is not enough.
First of all, contracts that actually go to production usually require better design and more rigorous testing, as well as consideration of development efficiency and quality. Many contracts will also be more complex, usually involving multiple contract calls, contract agents and upgrades, which will require contract splitting and combination, and will require more security.
Secondly, for the front-end part, we also need a better and more complete experience. We need better interaction design, better user experience and better usability.
Finally, for a real DApp, because it involves specific business scenarios, it often involves some specific concepts, especially for financial Dapps, we need more professional knowledge.
Therefore, we continue to improve our DApp development course on the basis of the previous courses, hoping to help everyone better understand the overall picture of DApp development by leading everyone to complete the actual development of a decentralized exchange (DEX).
What will be the content of this part of the course?
This part of the course will lead you to complete the actual development of a decentralized exchange (DEX). We will start with the analysis of the decentralized exchange, then explain the code of Uniswap, continue to lead you to complete the contract design of a Wtfswap, and finally complete the front-end development of a Wtfswap.
We will Update 1-2 courses every week until we finish this part. Finally, we can get a theoretically usable DEX and deploy it to an L2 for everyone to experience.
Why choose DEX?
Finance is the most widely used and active scenario in Web3. Decentralized exchanges (DEX) are the most important and representative of them. By completing a DEX development practice, we can better understand the overall picture of DApp development and some professional knowledge behind financial Dapps.
Compared to traditional business scenario development, DEX involves expertise such as AMM (automatic market maker) and LP (liquidity pool), which is more representative.
Who is this part of the course suitable?
This part of the course is suitable for developers who have a certain DApp Development Foundation. If you have completed the previous courses, then you already have a certain DApp Development Foundation. If you have not completed the previous courses, it is recommended that you complete the previous courses first.
Of course, if you already have a certain development foundation, you can also start directly from here. If you don't understand some of the contents involved, you can jump to the previous part of the course for study.
How to learn this course?
This part of the course from P001 to P003 introduces the basic concepts of DEX and code analysis for Uniswap. This part of the content can be read directly, as the preparation. If you don't understand the details of Uniswap code analysis, you can skip it first. You will have a better understanding of Uniswap code in the following actual combat courses, because we will also refer to the code development of Uniswap V3.
P101 and P102 talk about the framework of the initialization contract. This part can be completed step by step according to the steps of the course and directly use the code provided by the course.
P103 to P109 talked about the specific implementation of the contract. You can choose to try to implement the contract without looking at the course first, then refer back to the implementation of the course, or you can implement it step by step according to the code of the course. If you have limited time, you can also choose to read the final course directly. Contract Code reference course learning. Of course, we recommend the former more, and implementing it step by step is more helpful to have more thinking in the coding process.
P201 to P211 are front-end codes. The specific learning plan is similar to the contract part. You choose the learning plan according to your own demands and time.
We very much encourage that any course omissions found in the learning process can be submitted ISSUE feedback to us or submit Pull Request direct modification, good experience can also be submitted Pull Request submitted to the Manual of Experience.