Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

feat: resolve bankruptcy in liquidation flow - #40

Open
LukasDeco wants to merge 4 commits into
masterfrom
lukas/add-bankruptcy-resolution-liquidator
Open

feat: resolve bankruptcy in liquidation flow#40
LukasDeco wants to merge 4 commits into
masterfrom
lukas/add-bankruptcy-resolution-liquidator

Conversation

@LukasDeco

Copy link
Copy Markdown

Summary

  • enqueue users that are liquidatable or already bankrupt so the worker can process bankruptcy recovery paths
  • add explicit perp and spot bankruptcy resolution transactions before normal liquidation attempts
  • record bankruptcy resolution tx intents alongside existing liquidation tx intents for consistent tracking

Test plan

  • cargo check --bin keeprs
  • run liquidator against staging and verify resolve bankruptcy txs are emitted for bankrupt users
  • confirm users with isolated bankrupt flags can be recovered via resolver path

Made with Cursor

Queue bankrupt users for handling and send explicit resolve perp/spot bankruptcy transactions before standard liquidation attempts.

Made-with: Cursor
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant