{"id":22164834,"url":"https://github.com/net2devcrypto/defi-liquidity-pool-staking-calculator-js","last_synced_at":"2025-03-24T16:12:45.327Z","repository":{"id":166631263,"uuid":"642137375","full_name":"net2devcrypto/Defi-Liquidity-Pool-Staking-Calculator-JS","owner":"net2devcrypto","description":"A simple defi staking calculator based on a Masterchef contract formula to help you understand the math behind LP Staking. Just run in NodeJS","archived":false,"fork":false,"pushed_at":"2023-08-06T20:47:14.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T21:43:27.182Z","etag":null,"topics":["defi","masterchef","pancakeswap","staking","yield-farming"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-17T22:53:47.000Z","updated_at":"2024-12-05T17:35:59.000Z","dependencies_parsed_at":"2025-01-29T21:42:16.333Z","dependency_job_id":null,"html_url":"https://github.com/net2devcrypto/Defi-Liquidity-Pool-Staking-Calculator-JS","commit_stats":null,"previous_names":["net2devcrypto/defi-liquidity-pool-staking-calculator-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FDefi-Liquidity-Pool-Staking-Calculator-JS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FDefi-Liquidity-Pool-Staking-Calculator-JS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FDefi-Liquidity-Pool-Staking-Calculator-JS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FDefi-Liquidity-Pool-Staking-Calculator-JS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/net2devcrypto","download_url":"https://codeload.github.com/net2devcrypto/Defi-Liquidity-Pool-Staking-Calculator-JS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245304872,"owners_count":20593626,"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":["defi","masterchef","pancakeswap","staking","yield-farming"],"created_at":"2024-12-02T05:10:57.853Z","updated_at":"2025-03-24T16:12:45.308Z","avatar_url":"https://github.com/net2devcrypto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# DeFI Liquidity Pool Staking Rewards Calculator\n\u003ca href=\"http://youtube.a3b.io\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/n2Dex-img.png\" width=\"190\" height=\"80\"\u003e\u003c/a\u003e\n\n👑 A simple DeFI Staking Pool Calculator to help you understand the DeFI LP Staking Math. \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\n\u003ch2\u003eDownload defi-reward-formula.js and update as you like!\u003c/h2\u003e\n\n\u003ch4\u003eVariables\u003c/h4\u003e\n\n\npoolTotalStaked -- \u003e The total amount of LP tokens staked in the pool\n\npoolUserStake  -- \u003e The amount of LP tokens the user has staked in the pool\n\npoolAllocation -- \u003e The percentage in basis points allocated to each pool of \n                     tokens mined after each block and provided as staking \n                     rewards to stakers.\n                     \nFeel free to play with these values, save and run :)\n\n//DeFI Pool 1 ETH/N2DR Values\n```shell\nconst pool1TotalStaked = 250000\nconst pool1UserStake = 1250\nconst pool1Allocation = 5000\n```\n//DeFI Pool 2 MATIC/N2DR Values\n```shell\nconst pool2TotalStaked = 250000\nconst pool2UserStake = 850\nconst pool2Allocation = 2500\n```\n//DeFI Pool 3 BNB/N2DR Values\n```shell\nconst pool3TotalStaked = 10000000\nconst pool3UserStake = 5400\nconst pool3Allocation = 2500\n```\n\nif you want to calculate rewards in time, basically is substracting endblock minus start block or change the multiplier value in milliseconds\nexample 1 minute\n```shell\nlet multiplier = 60000\n```\n\ndon't forget to save everytime you make changes before running!! \n\nCTRL + S\n\n```shell\nnode defi-reward-formula.js\n\n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n█ ▄▄▀█ ▄▄█▄ ▄█ ▄ █ ▄▀█ ▄▄█▀███▀\n█ ██ █ ▄▄██ ███▀▄█ █ █ ▄▄██ ▀ █\n█▄██▄█▄▄▄██▄██ ▀▀█▄▄██▄▄▄███▄██\n▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\nDEFI Staking Rewards\n\nUser has staked for 24 hours.\n\nUser Staked: 1250 ETH\nPool 1 Rewards: 648 N2DR\n\nUser Staked: 850 MATIC\nPool 2 Rewards: 220.32 N2DR\n\nUser Staked: 5400 BNB\nPool 3 Rewards: 34.992 N2DR\n\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet2devcrypto%2Fdefi-liquidity-pool-staking-calculator-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnet2devcrypto%2Fdefi-liquidity-pool-staking-calculator-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet2devcrypto%2Fdefi-liquidity-pool-staking-calculator-js/lists"}