Skip to content

Commit

Permalink
program: add liquidation via fill (#1106)
Browse files Browse the repository at this point in the history
* add liquidation fill mode logic

* programs: init liquidate_perp_with_fill

* fix tests

* update drift client

* update idl

* add init cargo tests

* fill quote asset amount for if fee

* add bankrun test

* clean/add test placeOrder fails

* liquidator doesnt need position slot

* program: is_amm_available_liquidity_source for FillMode::Liquidation

* add test

* smol tweaks

* CHANGELOG

---------

Co-authored-by: 0xbigz <[email protected]>
  • Loading branch information
crispheaney and 0xbigz authored Jul 30, 2024
1 parent 7d3a922 commit a259778
Show file tree
Hide file tree
Showing 20 changed files with 1,986 additions and 112 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Features

- program: add liquidation via fill ([#1106](https://github.com/drift-labs/protocol-v2/pull/1106))
- program: add switchboard on demand integration ([#1154](https://github.com/drift-labs/protocol-v2/pull/1154))
- program: add support for token 2022 ([#1125](https://github.com/drift-labs/protocol-v2/pull/1125))

Expand Down
Loading

0 comments on commit a259778

Please sign in to comment.