https://github.com/net2devcrypto/algorithmic-stablecoin-erc20
🤑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.
https://github.com/net2devcrypto/algorithmic-stablecoin-erc20
Last synced: 21 days ago
JSON representation
🤑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.
- Host: GitHub
- URL: https://github.com/net2devcrypto/algorithmic-stablecoin-erc20
- Owner: net2devcrypto
- Created: 2023-06-14T18:49:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T03:43:33.000Z (over 2 years ago)
- Last Synced: 2025-07-04T23:04:35.152Z (9 months ago)
- Language: Solidity
- Size: 989 KB
- Stars: 16
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Algorithmic-Stablecoin-ERC20
🤑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.


** 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:
```shell
N2D-USDT-Fake-ERC20-Token-SmartContract.sol
N2D-WETH-Fake-ERC20-Token-SmartContract.sol
N2USD-Reserves-CollateralVault-SmartContract.sol
```
Part 3 Repo
Click for video:
Part3 Folder Contents:
Make sure you update the AggregatorV3Interface Contract to return uint256 instead of int256. Please refer to tutorial video section : 16:00
```shell
n2USD-Price-Oracle-Demo-SmartContract.sol
```
Part 4 Repo
Click for video:
Part4 Folder Contents:
```shell
N2USD-Algorithmic-Stablecoin-Governance-Contract-Option1.sol
N2USD-ERC20-Stablecoin-Smart-Contract.sol
```
Part 5 Repo
Click for video:
Part5 Folder Contents:
```shell
N2USD-Algorithmic-Stablecoin-Governance-Contract-Option2.sol
```
Part 6 FINAL Repo
Click for video:
Final Folder Contents:
```shell
Backend
Frontend
```
Step 1
Download the "Final" Folder, then navigate with your shell/terminal to each project folder and install:
```shell
cd final
cd backend
npm i
cd..
cd frontend
npm i
```
Step 2
In 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).
```shell
const rsvcontract = '0xba1f546071d9d7E2388d420AC1091ce58F661Efc';
const n2usdcontract = '0x480724B920B486af30610b5Ed6456B0113951F43';
const rpc = 'https://rpc.ankr.com/polygon_mumbai';
```
CTRL + S to save!
Step 3
Run 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.
```shell
cd final
cd backend
node backend.js
```
Step 4
Run the Frontend to live visualize the token price!
```shell
cd final
cd frontend
npm run dev
```