Skip to content

tomland123/faster-drift-liquidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 



About

A much faster liquidator bot for drift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published