Skip to content
autovoting script for Terra oracle
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
terra_oracle_vote.py

README.md

Terra_oracle_voter

autovoting script for Terra oracle by B-Harvest

Disclaimer

The script is in highly experimental state, and users should aware that all result from the terra_oracle_voter script is responsible to the user himself/herself.

Language

Python3

Preliminary

The server running this script should run terrad with synced status.

Configure(in terra_oracle_vote.py)

telegram_token = ""
telegram_chat_id = ""
stop_oracle_trigger = 0.1 # stop oracle when price change exceeds stop_oracle_trigger
pause_broadcast = 1.0 # pause time after each tx broadcasting
feeder = "" # oracle feeder address
validator = "" # validator address
key_name = "" # local key name for oracle feeder
key_password = "" # local key password for oracle feeder
fee_denom = "ukrw"
fee_gas = "50000"
fee_amount = "750"
home_cli = "/home/ubuntu/.terracli"
chain_id = "columbus-2"

Functions

  1. Main feature : prevote and vote on terra oracle.
  2. Risk management feature : when percentage difference between calculated price and latest oracle price diverge more than stop_oracle_trigger, warn user via telegram and exit the program
You can’t perform that action at this time.