Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liquidation Bot #65

Open
ghost opened this issue Jan 12, 2022 · 0 comments
Open

Liquidation Bot #65

ghost opened this issue Jan 12, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2022

Liquidation Bot - Prize Bounty

Bounty Description

A liquidator that is an improvement over the simple liquidator found in Zeta's SDK examples.

The liquidator:

  • Should have optional parameters to either:
  1. Liquidate positions relative to a margin consumption cap (e.g. 50%), and use the remaining margin to hedge the book's delta positions using futures, referencing a Black model of choice (preferably).
  2. Or hedge out of its positions when liquidating, meaning the liquidator is warehousing little to no potential risk.

It should also be able to fetch margin accounts on a cadence and cache them, updating them on account change to ensure minimal number of RPC getProgramAccount calls:

  • Calculate the delta of each account
  • Reference a CeFi price feed for SOL/USD and compute the delta pnl for each account, pre-empting potential liquidations for those accounts.
  • Robust logging / a simple frontend which can show liquidation logs and current greek risks that the liquidator is warehousing.

Requirements

Submissions will be reviewed on an on-going basis. Please include the following in your submission:

  • Github repo (the cleaner the better!)
  • Demo of the liquidator running successfully (where possible)

Criteria

We will look at:

  • Quality of the github repo
  • Implementation of the liquidator

Deadline

  • All submissions will reviewed by 01/03/2022 - any submissions after this will be ineligible for a prize from this bounty program.

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

0 participants