{"id":22164835,"url":"https://github.com/net2devcrypto/build-your-defi-staking-dapp","last_synced_at":"2025-07-26T11:31:45.144Z","repository":{"id":191462438,"uuid":"684672339","full_name":"net2devcrypto/Build-Your-DeFI-Staking-dApp","owner":"net2devcrypto","description":"🤑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.","archived":false,"fork":false,"pushed_at":"2023-10-06T16:04:06.000Z","size":1791,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-07T05:28:08.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/net2devcrypto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-29T16:10:09.000Z","updated_at":"2023-10-07T05:28:08.268Z","dependencies_parsed_at":"2023-08-30T02:47:24.801Z","dependency_job_id":"c92bfb81-25dc-4706-819d-92c9bce4d767","html_url":"https://github.com/net2devcrypto/Build-Your-DeFI-Staking-dApp","commit_stats":null,"previous_names":["net2devcrypto/build-your-defi-staking-dapp"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FBuild-Your-DeFI-Staking-dApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FBuild-Your-DeFI-Staking-dApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FBuild-Your-DeFI-Staking-dApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FBuild-Your-DeFI-Staking-dApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/net2devcrypto","download_url":"https://codeload.github.com/net2devcrypto/Build-Your-DeFI-Staking-dApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227674004,"owners_count":17802303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T05:10:57.854Z","updated_at":"2024-12-02T05:11:00.665Z","avatar_url":"https://github.com/net2devcrypto.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build-Your-DeFI-Staking-dApp\n🤑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.\n\n\u003cimg src=\"https://raw.githubusercontent.com/net2devcrypto/misc/main/defi-vid-1.png\" width=\"550\" height=\"330\"\u003e\n\n** THE FILES ATTACHED TO THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY **\n\n** NOT FINANCIAL ADVISE **\n\n** USE IT AT YOUR OWN RISK** **I'M NOT RESPONSIBLE FOR ANY USE, ISSUES ETC.. **\n\nENTIRE PLAYLIST:\n\u003ca href=\"https://www.youtube.com/watch?v=ySBiVZaub1Q\u0026list=PLLkrq2VBYc1Y4kL1lr-W_qwgI8De6M2BC\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"90\" height=\"20\"\u003e\u003c/a\u003e\n\n\u003ch3\u003ePart 2 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://www.youtube.com/watch?v=d3K5cYSjUQ0\u0026t=710s\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"150\" height=\"40\"\u003e\u003c/a\u003e\n\nPart2 Folder Contents:\n\n```shell\nN2D-DeFI-MasterChef-SmartContract-Storage-Demo.sol\nN2D-ERC20-N2DRewards-Token-SmartContract.sol\n```\n\n\u003ch3\u003ePart 3 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://youtu.be/JJFuuoR5h78\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"150\" height=\"40\"\u003e\u003c/a\u003e\n\nPart3 Folder Contents:\n\n```shell\nN2D-DeFI-MasterChef-SmartContract-Add-Pools-Demo.sol\n```\n\n\u003ch3\u003ePart 4 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://www.youtube.com/watch?v=QnhCyZsUoNc\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"150\" height=\"40\"\u003e\u003c/a\u003e\n\nPart4 Folder Contents:\n\n```shell\nN2D-DeFI-MasterChef-SmartContract-Update-Pools-Demo.sol\n```\n\n\u003ch3\u003ePart 5 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://youtu.be/EWh8Q3RU5JY\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"150\" height=\"40\"\u003e\u003c/a\u003e\n\nPart5 Folder Contents:\n\n```shell\nN2D-DeFI-Staking-MasterChef-SmartContract-Final.sol\nN2D-ERC20-N2DRewards-Token-Final.sol\n```\n\n\u003ch3\u003eFinal Vid - Front-end Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://youtu.be/-Cd1mV5HtjA\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"150\" height=\"40\"\u003e\u003c/a\u003e\n\nFinal Folder Contents:\n\n\u003ch4\u003econtracts\u003c/h4\u003e\n\n```shell\nN2D-DeFI-Staking-MasterChef-SmartContract-Final.sol\nN2D-ERC20-N2DRewards-Token-Final.sol\nN2D-DeFI-Staking-N2DRPay-SmartContract.sol\nfakeusdt.sol\n```\n\u003ch4\u003efrontend\u003c/h4\u003e\n\n\u003ch4\u003eSteps to use practice tutorial files\u003c/h4\u003e\n\nDOWNLOAD \"Final\" Repo folder, then:\n\n# 1- Deploy the contracts in the following order:\n\n- N2D-ERC20-N2DRewards-Token-Final.sol\n\n  * Copy the token smart contract address once deployed.\n\n- N2D-DeFI-Staking-N2DRPay-SmartContract.sol\n\n  * Provide the N2DR token smart contract address when deploying.\n  * Copy the N2DRPay smart contract address once deployed.\n\n- N2D-DeFI-Staking-MasterChef-SmartContract-Final.sol\n\n  * Provide the N2DR token smart contract address when deploying.\n  * Provide the N2DRPay smart contract address when deploying.\n  * Provide all the additional values, refer to tutorial videos.\n\n  * Copy the Masterchef smart contract address once deployed.\n\n- fakeusdt.sol\n\n  * Copy the fake USDT smart contract address once deployed.\n\n# 2- Grant the MANAGER Role to the Masterchef smart contract address on both N2DR Token and N2DRPay smart contracts.\n\n  * Refer to tutorial video for additional info.\n\n# 3- Proceed to add the fake USDT Pool on the Masterchef Smart Contract.\u003c/h5\u003e\n\n  * Provide the fake USDT smart contract address recently deployed as lpToken address.\n  * Add Allocation Point and _withUpdate to true\n  * Refer to tutorial video for additional info.\n\n# 4- Open your shell/terminal and navigate to the frontend folder then install dependencies.\n\n```shell\ncd final\ncd frontend\nnpm i\n```\n\n# 5- Enter your Masterchef contract address to the config.js file.\u003c/h5\u003e\n\n```shell\nconst masterchefAddr = 'ENTER_MASTERCHEF_CONTRACT_ADDRESS';\n```\n\nCTRL + S to save !\n\n# 6- Mint some test N2DR and USDT Tokens from your smart contracts and run your application!\n\n```shell\ncd final\ncd frontend\nnpm run dev\n```\n\nNavigate to your web frontend and test!\n\nPlease watch full tutorial videos to understand the entire concept. It is important to learn how the DeFI Masterchef smart contract works!\n\nMake your own mods and enjoy this tutorial, Knowledge is power!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet2devcrypto%2Fbuild-your-defi-staking-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnet2devcrypto%2Fbuild-your-defi-staking-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet2devcrypto%2Fbuild-your-defi-staking-dapp/lists"}