Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

luigi311/ArBluna

Repository files navigation

ArBluna

Codacy Badge

Automatic arbritage for Bluna on terraswap

Usage

Recommended Docker

With variables

  • Run

    docker run -e MNEMONIC='Seed Phrase Here' luigi311/arbluna:latest

With .env

  • Create a .env file similar to .env.sample and set the MNEMONIC variable to your seed phrase

  • Run

     docker run -v "$(pwd)/.env:/app/.env" luigi311/arbluna:latest

Baremetal

  • Setup virtualenv of your choice

  • Install dependencies

      pip install -r requirements.txt
  • Create a .env file similar to .env.sample and set the MNEMONIC variable to your seed phrase

  • Run

    python main.py

Telegram Bot

When using the notify_telegram option, you can use the following commands with the telegram bot:

  • /help - Show this help message
  • /ping - Check if the bot is running
  • /luna - Get the bluna -> luna ratio
  • /bluna - Get the luna -> bluna ratio
  • /ust - Check the current Luna to UST ratio
  • /balance - Check the current balances
  • /swap_to_bluna - To force a swap from luna to bluna
  • /swap_to_luna - To force a swap from bluna to luna

Shoutout to https://github.com/unl1k3ly/AnchorHODL that was used as a base for this project