This bot monitor current leverage ratio of the specified RISE token then trigger the rebalance if needed.
Clone the repository:
git clone git@github.com:risedle/rebalancing-bot.git
cd rebalancing-bot/
Install the dependencies:
npm install
Copy .env.example
to .env
and modify the values.
Build the program:
tsc
Run the program:
node dist/cron.js
This bot is deployed to fly.io.
Create new app:
flyctl launch
Set the secrets:
flyctl secrets --app kovan-rebalance-ethrise set RPC_URL="here" WALLET_PRIVATE_KEY="here" SENTRY_DSN="here"
Run the following command to deploy:
flyctl deploy --app kovan-rebalance-ethrise --config kovan-ethrise.toml .