Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomland123/faster-drift-liquidator
A much faster liquidator bot for drift
https://github.com/tomland123/faster-drift-liquidator
Last synced: about 1 month ago
JSON representation
A much faster liquidator bot for drift
- Host: GitHub
- URL: https://github.com/tomland123/faster-drift-liquidator
- Owner: tomland123
- Created: 2022-01-06T22:27:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-01-06T22:30:57.000Z (over 2 years ago)
- Last Synced: 2024-06-30T18:11:33.582Z (3 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Drift Faster Liquidator
There are two main things this bot submission solves:
1. Removing websockets. Websockets are notoriously slow on solana. It takes upwards of minutes to fetch data from a web socket and so I do not think that it is currently a scalable solution as of this current solana version.
2. The core of the bot prefetches the data that is important and calls getMultipleAccounts instead of getProgramAccounts. Even with incredibly strong computers and just 7000 accounts, it still takes the average drift liquidator multiple seconds to parse through all the data using getProgramAccounts. This bot solves this problem by bucketing users into different priority schedules and then runs different queries over the ones that are close to liquidations vs. the ones who are inactive.