Coder Social home page Coder Social logo

gmx-stake-arbitrum-stra's Introduction

GMX-Stake-Arbitrum-Strategy

1. Introduction

This strategy's want token is GMX. It will stake GMX on this platform. GMX is the decentralized exchange platform running on Arbitrum.

The rewards from GMX are ESGMX and WETH. Because ESGMX cannot be transferred (here is the explanation: Rewards - GMX (gitbook.io)), so after achieving the rewards, this strategy will vest ESGMX in Vester to exchange ESGMX to GMX. There is the third reward BNGMX. After claiming, this reward can be exchanged to WETH.

WETH will be swapped to GMX by ETH/GMX Uniswap V3 Pool on Arbitrum.

This strategy is developed on badger-vaults-mix-v1.5 template.

2. APY

I test my strategy on Arbitrum-mainnet-forked by brownie. The realized APY is 5.41%. The APY (including ESGMX) is about 21.4%. So the profit looks fine. If you wanna realize all profit, you should stake GMX for one year.

The profit test code refter to test/test_custom.py.

3. Strategy Diagram

gmx-stake-arbitrum-stra

Usage

  1. Install all dependencies according to Readme on badger-vaults-mix-v1.5.
  2. Enter the python virtual environment: source ven/bin/activate
  3. brownie compile
  4. brownie test --interactive

Tips

Open two terminal in VScode, otherwise may have RPC connection error

One terminal runs ganache-cli --accounts 10 --fork https://arb1.arbitrum.io/rpc --mnemonic brownie --port 8545 --chainId 42161 --hardfork istanbul

The other terminal runs brownie test --interactive

gmx-stake-arbitrum-stra's People

Contributors

twpony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

leolianger

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.