GithubHelp home page GithubHelp logo

guyonmatteau / bricks Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.18 MB

Capstone project for Artemis EVM & Solidity bootcamp

Makefile 4.08% Solidity 41.31% JavaScript 15.35% Python 33.97% HTML 5.29%
ethereum flask foundry solidity

bricks's Introduction

work in progress

Bricks

Bricks is the final capstone project for the Artemis Bootcamp, an intensive 8-week EVM & Solidity bootcamp. In the capstone project one brings together all the acquired knowledge and aims to build a DeFi or web3 product.

Introduction

Bricks is a combination of Defi and paying your rent or mortgage. The basic idea is that it is a combination of e.g. Aave or Gearbox, and a scheduler that allows you to set recurring payments to an EOA. The protocol consists of the following components:

  • Scheduler contract: allowing a user to submit a certain recurring (e.g. monthly) transaction;
    • contract should make use of chainlink oracle to fetch latest price of asset to see how much it needs to convert to e.g. USDC.
  • Vault contract, that contains the deposits of a user; or (V2)
    • contract that acts as intermediary between Aave and and the Scheduler contract.
  • Borrow contract, that allows a user to set a certain amount to borrow.
  • Notifier: that checks if a certain transaction is executed or not
  • Frontend: that allows a user to interact with the contracts

Contract addresses

| Network | Address | Version |
| Goerli | address | version |

Deployment

The contracts are developed and deployed with Forge and Alchemy. In order to deploy the contract(s), an .env file is required that contains the following envvars

ALCHEMY_KEY=<alchemy-api-key>
PRIVATE_KEY_GOERLI=<private-key-of-goerli-address-to-deploy-from>

MVPs

For iterative development the following versions have been iterated over:

  1. Contract that keeps track of users funds and is allowed to transfer funds on behalf of user.
  2. Contract that able to swap WETH to USDC.
    • Contract that is able to swaps ether to USDC on a fixed rate on behalf of user (so no borrowing).
    • Add Chainlink reference contract to request current ETH/USDC rate.
  3. Ability to borrow against ETH, with default value.

bricks's People

Contributors

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