How to create an ERC20 staking app
Автор: thirdweb
Загружено: 2023-04-30
Просмотров: 12378
In this video, we'll go over how to create an ERC20 staking application. This app will allow users to stake a token and earn a reward token in return. We will cover deploying the necessary contracts for the ERC20 tokens and an ERC20 staking contract. We will then build our own staking application to allow a user to stake, unstake, and claim their reward tokens.
*Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.*
Demo repo: https://github.com/watase-eth/ERC20-S...
Smart contracts:
ERC20 - https://thirdweb.com/thirdweb.eth/Tok...
ERC20Drop - https://thirdweb.com/thirdweb.eth/Dro...
ERC20Staking - https://thirdweb.com/thirdweb.eth/Tok...
Wei converter: https://eth-converter.com/
Join our Community of over 30,000 Web3 builders: / discord
thirdweb Official Site: https://thirdweb.com/dashboard
thirdweb Twitter: / thirdweb
Timestamps:
00:00 Introduction
00:55 Demo of app
03:00 Create Stake token contract
05:15 Create Reward token contract
06:07 Create ERC20 staking contract
08:21 Set approval and deposit reward tokens to stake contract
10:35 Setup staking app
13:45 Navbar
15:22 Check if wallet is connected
16:46 Stake token info
20:30 Reward token info
22:25 Staking. unstaking, and claiming rewards
33:05 Conclusion
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: