Giter Site home page Giter Site logo

mil0xeth / maker-v3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from therealmonoloco/maker-dai-delegate

0.0 0.0 2.0 412 KB

Let's draw some Dai together.

License: GNU Affero General Public License v3.0

Shell 0.04% JavaScript 0.04% Python 56.69% Solidity 43.23%

maker-v3's Introduction

Maker v3

Brief Strategy Description: This strategy is based on maker-dai-delegate from monoloco (https://github.com/therealmonoloco/maker-dai-delegate) with

  • Updated keeper automation & harvestTrigger override specifics.
  • UniswapV3 integration.
  • ySwaps integration.
  • Automated testing for all maker collateral for want token universality.

Stages of the strategy to go from v2.1 to v3:

  • First stage (maker v2.2 -- current): Deposit YFI into Maker, mint DAI, deposit DAI in yvDAI. With above mentioned keeper automation & harvestTrigger updates + UniswapV3 integration + ySwaps integration.
  • Second stage (maker v2.3): Automated tests to deposit any collateral into Maker, mint DAI, deposit DAI in yvDAI.
  • Third stage (maker v3): Deposit any collateral on Maker, mint DAI, deposit in yvDAI or swap DAI through Maker's PSM and deposit into yvUSDC (etc.) or universal deposit interface.

Installation and Setup

  1. Install Brownie & Ganache-CLI, if you haven't already.

  2. Sign up for Infura and generate an API key. Store it in the WEB3_INFURA_PROJECT_ID environment variable.

export WEB3_INFURA_PROJECT_ID=YourProjectID
  1. Sign up for Etherscan and generate an API key. This is required for fetching source codes of the mainnet contracts we will be interacting with. Store the API key in the ETHERSCAN_TOKEN environment variable.
export ETHERSCAN_TOKEN=YourApiToken
  • Optional Use .env file
    1. Make a copy of .env.example
    2. Add the values for ETHERSCAN_TOKEN and WEB3_INFURA_PROJECT_ID NOTE: If you set up a global environment variable, that will take precedence
  1. Download the mix.
brownie bake yearn-strategy

Testing

To run the tests over all Maker collateral:

brownie test

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.