GithubHelp home page GithubHelp logo

net2devcrypto / algorithmic-stablecoin-erc20 Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 7.0 1013 KB

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

Solidity 54.86% JavaScript 33.26% CSS 11.88%

algorithmic-stablecoin-erc20's Introduction

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

algorithmic-stablecoin-erc20's People

Contributors

net2devcrypto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.