Skip to content

🤑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.

Notifications You must be signed in to change notification settings

net2devcrypto/Algorithmic-Stablecoin-ERC20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.. **

ENTIRE PLAYLIST:

Part 2 Repo

Click for video:

Part2 Folder Contents:

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

n2USD-Price-Oracle-Demo-SmartContract.sol

Part 4 Repo

Click for video:

Part4 Folder Contents:

N2USD-Algorithmic-Stablecoin-Governance-Contract-Option1.sol
N2USD-ERC20-Stablecoin-Smart-Contract.sol

Part 5 Repo

Click for video:

Part5 Folder Contents:

N2USD-Algorithmic-Stablecoin-Governance-Contract-Option2.sol

Part 6 FINAL Repo

Click for video:

Final Folder Contents:

Backend
Frontend

Step 1

Download the "Final" Folder, then navigate with your shell/terminal to each project folder and install:

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).

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.

cd final
cd backend
node backend.js

Step 4

Run the Frontend to live visualize the token price!

cd final
cd frontend
npm run dev

About

🤑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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published