ERC-20 staking app where a user can stake a token and earn an ERC-20 in return.
To use the ERC-20 staking app, you'll need to clone this repository, install dependencies, set up environment variables, and deploy the application. Below are the steps to follow:
You will need to deploy the following smart contracts to be used: ERC-20 Token(Staking Token) ERC-20 Token(Reward Token) ERC-20 Staking Contract
To get started, clone the repository to your local machine:
git clone https://github.com/thirdweb-example/youtube-erc20-staking.git
This application requires several dependencies to function, including thirdweb Connect SDK. Install them using npm or yarn:
npm install
or
yarn install
For a detailed setup and deployment guide, watch our video tutorial on YouTube:
How to Build an ERC-20 Staking App - Stake Tokens and Earn
Set the following variables in the .env
file
NEXT_PUBLIC_CLIENT_ID
: thirdweb API key.
To learn more about thirdweb and Next.js, take a look at the following resources:
You can check out the thirdweb GitHub organization - your feedback and contributions are welcome!
For any questions, suggestions, join our discord at https://discord.gg/thirdweb.