Skip to content

Brahma-fi/long_position_handler

Repository files navigation

Long Position Handler

Long Position Handler for delta neutral strategy, using Curve, Convex & 1Inch.

Repo Guide

Setup

  • Clone the repo using

    git clone https://github.com/Brahma-fi/long_position_handler.git --recursive
    

    (OR)

    git clone https://github.com/Brahma-fi/long_position_handler.git
    git submodule update --init --recursive
    
  • To install new dependencies

    forge install <github-username>/<repository>
    
  • To update dependencies

    • If master
      forge update
      
    • If from specific branch
      git submodule foreach git pull <branch>
      

Environment

 export ETH_RPC_URL=<rpc-url>
 export ETHERSCAN_API_KEY=<etherscan-api-key>
 export ETH_RPC_ACCOUNTS=yes
 export ETH_KEYSTORE=<keystore>
 export ETH_FROM=<eth-address>

Operations

  • Build
make all
  • Test
make test

(requires ETH_RPC_URL set)

  • Deploy
forge build <path-to-contract> --constructor-args <constructor-args-space-separated> --private-key <eth-private-key>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages