Giter Club home page Giter Club logo

dex-strategies-curve-uniswap's Introduction

DEX Stablecoin strategies

This project has several objectives:

  • Create a mintable stablecoin using the ERC20 standard.
  • Create a metapool with this stablecoin and the 3pool (DAI, USDC, USDT) on Curve
  • Create a strategy to improve the slippage incured when swapping stablecoins on the metapool. We explore rerouting to Uniswap v2 and in later versions we will explore rerouting to 1inch and strategies leveraging flashloans of Aave.

This project cointains all the smart contracts deployed, and some scripts used for deployment. Most files were forked from Curve.fi repository. We deploy most of the files on the Rinkeby test network of Ethereum.

Testing and Development

Dependencies

Curve contracts are compiled using Vyper, however installation of the required Vyper versions is handled by Brownie.

Uniswap and other contracts are compiled using Solidity. Installation is also managed by Brownie.

Setup

To get started, first create and initialize a Python virtual environment.

python3 -m venv ./venv
source venv/bin/activate

Next, install the developer dependencies:

pip install -r requirements.txt

Deployment on Rinkeby

To run the scripts, you need

  1. Set the accounts to deploy, in this we use mainly the "admin account"

    brownie accounts new admin

    Paste your private key and set the account password.

  2. Set your Infura ID as an enviroment variable called WEB3_INFURA_PROJECT_ID or by running

    export WEB3_INFURA_PROJECT_ID=YOUR_KEY_HERE
  3. Follow the deployment instructions under DEPLOYMENT.md.

  4. To deploy a file in the scripts folder, just write

    brownie run DEPLOY_FILE --network rinkeby

dex-strategies-curve-uniswap's People

Contributors

danieljcss avatar

Stargazers

Yann Huynh avatar JC avatar

Watchers

 avatar

Forkers

trickkkkkkk

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.