{"id":22164836,"url":"https://github.com/net2devcrypto/algorithmic-stablecoin-erc20","last_synced_at":"2026-03-05T03:31:20.740Z","repository":{"id":175372490,"uuid":"653794883","full_name":"net2devcrypto/Algorithmic-Stablecoin-ERC20","owner":"net2devcrypto","description":"🤑The Official ERC20 Algoritmic Stablecoin Project Tutorial Repo - Complete repo on how to deploy your own algorithmic stablecoin and back it with a hybrid collateral reserve between other stablecoins or cryptocurrencies.","archived":false,"fork":false,"pushed_at":"2023-08-02T03:43:33.000Z","size":1013,"stargazers_count":16,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T23:04:35.152Z","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-14T18:49:00.000Z","updated_at":"2025-05-17T16:59:52.000Z","dependencies_parsed_at":"2025-07-04T23:04:37.438Z","dependency_job_id":"d86fc35f-fd6d-4577-97e4-ecdd1d13e599","html_url":"https://github.com/net2devcrypto/Algorithmic-Stablecoin-ERC20","commit_stats":null,"previous_names":["net2devcrypto/algorithmic-stablecoin-erc20"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/net2devcrypto/Algorithmic-Stablecoin-ERC20","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FAlgorithmic-Stablecoin-ERC20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FAlgorithmic-Stablecoin-ERC20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FAlgorithmic-Stablecoin-ERC20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FAlgorithmic-Stablecoin-ERC20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/net2devcrypto","download_url":"https://codeload.github.com/net2devcrypto/Algorithmic-Stablecoin-ERC20/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net2devcrypto%2FAlgorithmic-Stablecoin-ERC20/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30108594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:39:18.192Z","status":"online","status_checked_at":"2026-03-05T02:00:06.710Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:58.490Z","updated_at":"2026-03-05T03:31:20.732Z","avatar_url":"https://github.com/net2devcrypto.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Algorithmic-Stablecoin-ERC20\n🤑The Official ERC20 Algoritmic Stablecoin Project Tutorial Repo - Complete repo on how to deploy your own algorithmic stablecoin and back it with a hybrid collateral reserve between other stablecoins or cryptocurrencies.\n\n\u003cimg src=\"https://raw.githubusercontent.com/net2devcrypto/misc/main/n2usd-logo.png\" width=\"200\" height=\"80\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/net2devcrypto/misc/main/stablechart.png\" width=\"600\" height=\"500\"\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://youtube.com/playlist?list=PLLkrq2VBYc1ZAES681GtUnZhn_OgMNSTq\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/net2devcrypto/misc/blob/main/ytlogo2.png\" width=\"90\" height=\"20\"\u003e\u003c/a\u003e\n\n\n\u003ch3\u003ePart 2 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://youtu.be/QM4bXGd0CcA\" 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-USDT-Fake-ERC20-Token-SmartContract.sol\nN2D-WETH-Fake-ERC20-Token-SmartContract.sol\nN2USD-Reserves-CollateralVault-SmartContract.sol\n```\n\n\u003ch3\u003ePart 3 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://youtu.be/wwWiUiuhc2A\" 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\nMake sure you update the AggregatorV3Interface Contract to return uint256 instead of int256. Please refer to tutorial video section : 16:00\n\n```shell\nn2USD-Price-Oracle-Demo-SmartContract.sol\n```\n\n\u003ch3\u003ePart 4 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://youtu.be/vVLyiamdvII\" 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\nN2USD-Algorithmic-Stablecoin-Governance-Contract-Option1.sol\nN2USD-ERC20-Stablecoin-Smart-Contract.sol\n```\n\n\u003ch3\u003ePart 5 Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://www.youtube.com/watch?v=r3QScnCGtgM\" 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\nN2USD-Algorithmic-Stablecoin-Governance-Contract-Option2.sol\n```\n\n\u003ch3\u003ePart 6 FINAL Repo\u003c/h3\u003e\n\nClick for video:\n\n\u003ca href=\"https://www.youtube.com/watch?v=qL-MoAH6cDU\" 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```shell\nBackend\nFrontend\n```\n\n\u003ch4\u003eStep 1\u003c/h4\u003e\n\nDownload the \"Final\" Folder, then navigate with your shell/terminal to each project folder and install:\n\n```shell\ncd final\ncd backend\nnpm i\n\ncd..\ncd frontend\nnpm i\n```\n\n\n\u003ch4\u003eStep 2\u003c/h4\u003e\n\nIn the \"config.js\" on frontend and \"getprices.js\" on the backend, you can either use the already configured test smart contract addresses or add your own contract addresses. Make sure you update the RPC address as well (if needed).\n\n```shell\nconst rsvcontract = '0xba1f546071d9d7E2388d420AC1091ce58F661Efc';\nconst n2usdcontract = '0x480724B920B486af30610b5Ed6456B0113951F43';\nconst rpc = 'https://rpc.ankr.com/polygon_mumbai';\n```\n\nCTRL + S to save!\n\n\u003ch4\u003eStep 3\u003c/h4\u003e\n\nRun the backend and await the database to store more than 12 entries before running the frontend. Verify both ethpricedb.json and n2usdpricedb.json files to confirm. \n\n```shell\ncd final\ncd backend\nnode backend.js\n```\n\n\n\u003ch4\u003eStep 4\u003c/h4\u003e\n\nRun the Frontend to live visualize the token price!\n\n```shell\ncd final\ncd frontend\nnpm run dev\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/net2devcrypto/misc/main/stablechart.png\" width=\"500\" height=\"400\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet2devcrypto%2Falgorithmic-stablecoin-erc20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnet2devcrypto%2Falgorithmic-stablecoin-erc20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet2devcrypto%2Falgorithmic-stablecoin-erc20/lists"}