Giter Site home page Giter Site logo

snowdog-sniper's Introduction

Snowdog Sniper

This project runs a cron job every 5 seconds to check how much liquidity is in the SDOG-MIM LP, and triggers a sell if it passes a given threshold. To set up this project,

  • Deploy the seller contract with the proper configurations (set the "recipient" field in the config.json to be the account which receives the MIM from the trade) and afterwards send all your SDOG to the newly created contract (address will be found in config.json as snowdogSeller after deployment). This can be done by setting the PRIVATE_KEY env var to be the account which will deploy the contract and execute the trade from the cron server
  • Deploy the cron server (via heroku). This can be done (after having heroku installed and being logged in - https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up) by running the following commands in the repo
heroku create
heroku config:set GAS_PRICE=350
heroku config:set MIN_SELL_LIQUIDITY=25000000
heroku config:set PRIVATE_KEY=0x123.....
heroku config:set PROVIDER_URL=https://api.avax.network/ext/bc/C/rpc
heroku config:set SNOWDOG_SELLER=0x123...
heroku config:set RECIPIENT=0x12..receipients_address_here_for_logs...
git push heroku master
heroku ps:scale web=1

This will deploy

snowdog-sniper's People

Contributors

davidberiro 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.