forked from drift-labs/protocol-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program: allow amm to fill instantly (drift-labs#1258)
* program: add-amm-availability-enum * passing tests * add init skip duration logic * amm skip auction duration check for prelaunch oracle * cargo fmt -- * add state check for pause * add protected maker mode for user * improve naming * filter protected makers in get_maker_orders_info * add helper function for amm fill check * Revert "filter protected makers in get_maker_orders_info" This reverts commit e1a9e1a. * Revert "add protected maker mode for user" This reverts commit c59e2b2. * wip - cache amm imbalance math * add support for cached amm imbalance * use cached amm_lp_allowed_to_jit_make, simplier criteria for user skip * add PerpOperation AmmImmediateFill * user skip check on sub_account_id stats * add sufficient_slippage for user skip_duration * simplify number_of_sub_accounts_created check * some optimizations * fix test * add logs and test * cargo fmt -- * CHANGELOG --------- Co-authored-by: Chris Heaney <[email protected]>
- Loading branch information
1 parent
149bf50
commit 50f67cf
Showing
19 changed files
with
408 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.