https://github.com/thirdweb-example/youtube-erc20-staking
https://github.com/thirdweb-example/youtube-erc20-staking
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thirdweb-example/youtube-erc20-staking
- Owner: thirdweb-example
- Created: 2024-04-23T02:47:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T08:58:57.000Z (almost 2 years ago)
- Last Synced: 2025-04-19T09:21:04.092Z (10 months ago)
- Language: TypeScript
- Size: 96.7 KB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ERC-20 Staking App
ERC-20 staking app where a user can stake a token and earn an ERC-20 in return.
## Getting Started
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:
### Deploy Smart Contracts
You will need to deploy the following smart contracts to be used:
[ERC-20 Token(Staking Token)](https://thirdweb.com/thirdweb.eth/TokenERC20)
[ERC-20 Token(Reward Token)](https://thirdweb.com/thirdweb.eth/TokenERC20)
[ERC-20 Staking Contract](https://thirdweb.com/thirdweb.eth/TokenStake)
### Cloning the Repository
To get started, clone the repository to your local machine:
```
git clone https://github.com/thirdweb-example/youtube-erc20-staking.git
```
### Installing Dependencies
This application requires several dependencies to function, including thirdweb Connect SDK. Install them using npm or yarn:
```
npm install
```
or
```
yarn install
```
### Video Tutorial
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](https://youtu.be/MyxsfgEGG3w)
### Setting Environment Variables
Set the following variables in the `.env` file
- `NEXT_PUBLIC_CLIENT_ID`: thirdweb API key.
## Learn More
To learn more about thirdweb and Next.js, take a look at the following resources:
- [thirdweb docs Documentation](https://portal.thirdweb.com) -
- [thirdweb dashboard](https://thirdweb.com)
You can check out [the thirdweb GitHub organization](https://github.com/thirdweb-dev) - your feedback and contributions are welcome!
## Join our Discord!
For any questions, suggestions, join our discord at [https://discord.gg/thirdweb](https://discord.gg/thirdweb).