Giter Club home page Giter Club logo

vaults's Introduction

Vaults

This is an EVM simple private vault implementation to farm yield on any MasterChef/Uniswap based DEX. There is a concrete example with SushiSwap but should be easy to implement other exchanges and also use the base contracts for other types of vaults besides yield/DEX.

Start docker service

sudo service docker start

Build the Docker container

sudo docker build -t <image-name> .

Run the Docker container

sudo docker run -it --name <container-name> <image-name> /bin/sh;

Set private key env variable inside the Docker container

export PRIVATE_KEY=<private-key>

Compiling the contracts

truffle compile

Migration files

Deploy migration

Will run the 1_deploy.js migration to deploy the contracts on the specified blockchain.

truffle migrate --network hecomainnet -f 1 --to 1

Reinvest migration

truffle migrate --network hecomainnet -f 2 --to 2

Add liquidity migration

truffle migrate --network hecomainnet -f 3 --to 3

Running emergency exit migration

truffle migrate --network hecomainnet -f 4 --to 4

Changing the master migration

truffle migrate --network hecomainnet -f 5 --to 5

Useful commands

List all the Docker container images

sudo docker image ls

Will also tell image creation date/time, useful to check the id of the latest.

Get contract size

truffle run contract-size

Donations / Sponsor

If you found any of my stuff useful and want me to keep it alive and flourishing, this is my EVM address. Donations in USDC will count for the Universal Premium Account.

EVM Address: 0x26b9fD8EF7a6d2f0612D4953CE7A06Fe8d90dd66

EVM Address

vaults's People

Contributors

nelo-crypto avatar

Stargazers

 avatar  avatar

Watchers

 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.