Giter VIP home page Giter VIP logo

aggregatorbe's Introduction

GamlaFund Yield-Aggregator (Back End)

This project is an fork of merritt-bank-web-ethereum's project to adapt GamlaFund changes.

This project is a simple decentrialized app where a user can deposit DAI into our smart contract. Once funds are deposited, the contract compares the interest rate of Compound & Aave, and deposits funds to whichever has the highest interest rate. The user can rebalance his/her funds to ensure that the funds are still currently in the higher interest rate protocol, and can also withdraw at any time.

Technology Stack & Tools

  • Solidity (Writing Smart Contract)
  • Javascript (React & Testing)
  • Ethers (BlockChain Interaction)
  • Hardhat (Development Framework)
  • Alchemy (Forking Ethereum Mainnet)
  • https://metamask.io/ (Ethereum Wallet)
  • Openzeppelin (Solidity Math)

Setting Up

  1. Install
  • $ npm install

  1. Start Local BlockChain
    • $ npx hardhat compile

    • $ npx hardhat node

    • $ npx hardhat run --network localhost scripts/deploy.ts

Testing

Go to hardhat.config.ts and comment out the mining params

$ npx hardhat test

Details

This hardhat project is configured to fork the Ethereum mainnet. The code to do this is in the hardhat.config file. When the deploy script is run, the mcd join account is impersonated to be able to mint dai for the first account. Do not use any of the hardhat generated accounts for anything but testing as these accounts the same for all hardhat users.

aggregatorbe's People

Contributors

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