-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bigz/amm-fee-pool-insurance * dead import / sign cleanup on losses_remaining etc * sdk: calculateEstimatedPerpEntryPrice use getLimitBids/getLimitAsks * program: fix paying fee_pool_delta when filling with open book * program: better rounding for openbook limit price * sdk: return worst and best price from calculateEstimatedPerpEntryPrice * sdk: array of users to skip in calculateEstimatedPerpEntryPrice * sdk: calculateEstimatedPerpEntryPrice accounts for limited vamm liquidity * sdk: tweak available liquidity calc in calculateEstimatedPerpEntryPrice * sdk: add calculateEstimatedSpotEntryPrice * program: only let market orders match against resting limit orders (#328) * program: add is_resting_limit_order * programs: change is_maker_for_taker to account for resting limit orders * tests working * refine logic to let limit order immediately be maker if it is inside the vamm spread * sdk: mirror new on-chain logic around resting limit orders * add test for new amm bid/ask logic * sdk: calculateEstimatedSpotEntryPrice uses getMakerLimitBids/Asks * CHANGELOG * program: allow for 2000 users * program: add additional logging for casting error in calculate_fee_for_fulfillment_with_amm * v2.12.0 * sdk: add loadDlob example * tests: fix multipleMakerOrders.ts * more progress on cargo test (wip) * working cargo test * tests/delistMarketLiq.ts: fix for fee pool as insurance * fix tests/liquidatePerp.ts * fix tests/liquidatePerpAndLp.ts * fix tests/liquidatePerpAndLp.ts cumulativeFundingRateDelta --------- Co-authored-by: Chris Heaney <[email protected]>
- Loading branch information
1 parent
b7e2580
commit 9a1a830
Showing
5 changed files
with
280 additions
and
15 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
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