Build-Your-DeFI-Staking-dApp
🤑Build Your Own Defi Staking dApp - The Official Github Repo with all the supporting code to follow the Youtube Tutorial so you can build your own DeFI Staking Rewards dApp.
** THE FILES ATTACHED TO THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY **
** NOT FINANCIAL ADVISE **
** USE IT AT YOUR OWN RISK** **I'M NOT RESPONSIBLE FOR ANY USE, ISSUES ETC.. **
Part 2 Repo
Click for video:
Part2 Folder Contents:
N2D-DeFI-MasterChef-SmartContract-Storage-Demo.sol
N2D-ERC20-N2DRewards-Token-SmartContract.sol
Part 3 Repo
Click for video:
Part3 Folder Contents:
N2D-DeFI-MasterChef-SmartContract-Add-Pools-Demo.sol
Part 4 Repo
Click for video:
Part4 Folder Contents:
N2D-DeFI-MasterChef-SmartContract-Update-Pools-Demo.sol
Part 5 Repo
Click for video:
Part5 Folder Contents:
N2D-DeFI-Staking-MasterChef-SmartContract-Final.sol
N2D-ERC20-N2DRewards-Token-Final.sol
Final Vid - Front-end Repo
Click for video:
Final Folder Contents:
contracts
N2D-DeFI-Staking-MasterChef-SmartContract-Final.sol
N2D-ERC20-N2DRewards-Token-Final.sol
N2D-DeFI-Staking-N2DRPay-SmartContract.sol
fakeusdt.sol
frontend
Steps to use practice tutorial files
DOWNLOAD "Final" Repo folder, then:
1- Deploy the contracts in the following order:
-
N2D-ERC20-N2DRewards-Token-Final.sol
- Copy the token smart contract address once deployed.
-
N2D-DeFI-Staking-N2DRPay-SmartContract.sol
- Provide the N2DR token smart contract address when deploying.
- Copy the N2DRPay smart contract address once deployed.
-
N2D-DeFI-Staking-MasterChef-SmartContract-Final.sol
-
Provide the N2DR token smart contract address when deploying.
-
Provide the N2DRPay smart contract address when deploying.
-
Provide all the additional values, refer to tutorial videos.
-
Copy the Masterchef smart contract address once deployed.
-
-
fakeusdt.sol
- Copy the fake USDT smart contract address once deployed.
2- Grant the MANAGER Role to the Masterchef smart contract address on both N2DR Token and N2DRPay smart contracts.
- Refer to tutorial video for additional info.
3- Proceed to add the fake USDT Pool on the Masterchef Smart Contract.
- Provide the fake USDT smart contract address recently deployed as lpToken address.
- Add Allocation Point and _withUpdate to true
- Refer to tutorial video for additional info.
4- Open your shell/terminal and navigate to the frontend folder then install dependencies.
cd final
cd frontend
npm i
5- Enter your Masterchef contract address to the config.js file.
const masterchefAddr = 'ENTER_MASTERCHEF_CONTRACT_ADDRESS';
CTRL + S to save !
6- Mint some test N2DR and USDT Tokens from your smart contracts and run your application!
cd final
cd frontend
npm run dev
Navigate to your web frontend and test!
Please watch full tutorial videos to understand the entire concept. It is important to learn how the DeFI Masterchef smart contract works!
Make your own mods and enjoy this tutorial, Knowledge is power!!