🤑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.. **
Click for video:
Part2 Folder Contents:
N2D-DeFI-MasterChef-SmartContract-Storage-Demo.sol
N2D-ERC20-N2DRewards-Token-SmartContract.sol
Click for video:
Part3 Folder Contents:
N2D-DeFI-MasterChef-SmartContract-Add-Pools-Demo.sol
Click for video:
Part4 Folder Contents:
N2D-DeFI-MasterChef-SmartContract-Update-Pools-Demo.sol
Click for video:
Part5 Folder Contents:
N2D-DeFI-Staking-MasterChef-SmartContract-Final.sol
N2D-ERC20-N2DRewards-Token-Final.sol
Click for video:
Final Folder Contents:
N2D-DeFI-Staking-MasterChef-SmartContract-Final.sol
N2D-ERC20-N2DRewards-Token-Final.sol
N2D-DeFI-Staking-N2DRPay-SmartContract.sol
fakeusdt.sol
DOWNLOAD "Final" Repo folder, then:
-
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.
- 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.
cd final
cd frontend
npm i
const masterchefAddr = 'ENTER_MASTERCHEF_CONTRACT_ADDRESS';
CTRL + S to save !
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!!