返回
项目实战
Yield Farming - Part 1
What is Yield Farming and how does it work? Yield farming is a foundational DeFi strategy where investor stakes crypto assets to earn a higher return. In Part 1 of the Yield Farming course, we will learn to build the basic structure of a liquidity mining system, including LP Token, Treasury, and Yield Farming contracts.
语言solidity
难度简单
总时长1.7小时
目标学习者
这门课是给谁上的
- For developers who are interested in blockchain finance
- For developers who are looking to learn Solidity programming applications
要求
- Basic understanding of cryptocurrency, liquidity mining concepts; prior study of DEX series courses recommended
- Familiarity with ERC20/IERC20 standards
- Basic Solidity programming skills, with a recommendation to first complete Solidity foundational courses (at least Solidity 101 to 104)
- Possess an Ethereum account, connected to both Mantle and a wallet, holding either Mantle tokens or test tokens (for those wishing to perform real on-chain operations, though deployment can also be done directly in a local environment if test tokens are not available)
你会学到什么
- Creation and initialization of the main contract LoanSystem, and auxiliary contracts Treasury and LoanLibray.
- Step-by-step guidance on contract function testing and on-chain operation tutorials.
ERC20
liquidity pool
LP token
课程安排
Mock LP Token - 1
This unit setup the LP Token.
Mock LP Token - 2
This unit implement the minting of LP Token.
Mock Treasury - 1
Setup the Treasury contract.
Mock Treasury - 2
This unit implement the withdraw function.
Yield Farming Contract
Setup the Yield Farming contract.
![practice](/_next/static/media/practices_img1.95313557.png)
Yield Farming - Part 1
26 小节
移动端和桌面端均可访问