Synthetixio / issues

0 stars 3 forks source link

[TASK] Update Keeper for liquidation improvements #361

Closed liamzebedee closed 2 years ago

liamzebedee commented 2 years ago
andytcf commented 2 years ago

@artdgn changes needed - it should not check all the orders (it won't scale), incentives for liquidating larger orders first

andytcf commented 2 years ago

unit tested needed

artdgn commented 2 years ago

@artdgn changes needed - it should not check all the orders (it won't scale), incentives for liquidating larger orders first

A bit more details @bachstatter - the bot should not track all positions for every block, but should track only a constant amount of positions that are closest to liquidation price. This is to prevent hanging if there are too many open positions to track (which could prevent any liquidations from hapenning due to waiting for too many call requests to the node).

Instead a mapping of positions by liquidation price and position size can be maintained:

0xjocke commented 2 years ago

Open PRs for adding typescript and unit tests: https://github.com/Synthetixio/futures-keepers/pull/7 https://github.com/Synthetixio/futures-keepers/pull/8 https://github.com/Synthetixio/futures-keepers/pull/9 https://github.com/Synthetixio/futures-keepers/pull/10 https://github.com/Synthetixio/futures-keepers/pull/11 https://github.com/Synthetixio/futures-keepers/pull/12

cavalier-eth commented 2 years ago

cli tool for keeper bot almost ready