Skip to content

1kx-network/overlayLiq

Repository files navigation

Overlay Liquidation

Gravita Liq BOT

liquidation bot that sends transaction whenenver a position is liquidatable

Goal:

  • liquidate positions for multiple markets on overlay
  • portfolio support for overlay (find out areas of improvement, make sure positions are liq etc)

Process:

  • run the following everyblock
  • get all positions (do it every 2mins async in background)
  • check if any of pos liquidatable and and generate txns
  • send txns privately with ethereumUtils.js

create .env file

NETWORK="mainnet"

PRI_KEY=""
PUB_KEY=""

FB_PRI_KEY=""
FB_PUB_KEY=""

ADDRESS_SC=""
ADDRESS_FLSC=""

ARCHIVE_NODE_URL=""
ARCHIVE_POKT_NODE_URL=""
NODE_URL=""

update config.mainnet.json file with market addresses

run liq bot

npm i
NETWORK=mainnet node bot/index.js

Overlay Funding Rate Bot (WIP)

Hardhat test for execute batched calls smart contract

npm i
npx hardhat test test/0_executeCalls.test.js

Hardhat test for execute batched calls smart contract for Liquidation

npm i
npx hardhat test test/1_overlay.test.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published