Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hubbleprotocol/liq-bot
https://github.com/hubbleprotocol/liq-bot
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hubbleprotocol/liq-bot
- Owner: hubbleprotocol
- Created: 2022-02-28T17:25:41.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T19:57:19.000Z (almost 3 years ago)
- Last Synced: 2024-04-18T04:17:32.573Z (9 months ago)
- Language: TypeScript
- Size: 243 KB
- Stars: 5
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Typescript Liquidation Bot for HubbleProtocol by Lmvdzande
> TPU Client for sending tryLiquidate and clearLiquidationGains transactions without a rate limit
> Polling Account Fetcher for account retrieval (5k accounts per second)### Overview
Liquidations on HubbleProtocol are as follows:
For a User to be liquidatable their Loan to Value (LTV) must reach 90.91 % (Under normal system conditions)
The User gets liquidated via the `tryLiquidate` transaction instruction
The Liquidatation gains get added to the LiquidationQueue
The LiquidationQueue contains LiquidationEvents, new events in the queue having a pending status
The `clearLiquidationGains` transaction instruction is used to collect the gains from liquidation event### Environment
copy the `.env.example` file to `.env` and input your `BOT_KEY` and `RPC_URL`
`BOT_KEY` can be either an Uint8Array (solana-keygen) or bs58 encoded private key (phantom wallet private key export)
### Usage
```bash
yarn install
yarn build
yarn start
```