-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program: limit order auctions (#355)
* new is_amm_available_liquidity_source * tweak how trigger orders work * tweak get_limit_price to allow limit orders to have auction price * allow limit order to pass auction params * do order validation * make the resting limit order logic based on auction being complete * dlob trigger order matches on chain * ts client reflects price changes * fix ts dlob tests * add rust tests * add failing test * prototype of updateRestingLimitOrders * address pr feedback * program: tweak calculate_size_premium_liability_weight to have smaller effect on initial margin (#350) * bigz/improve-calculate_size_premium_liability_weight * fmt fix * margin.ts: sync w/ contract * CHANGELOG --------- Co-authored-by: Chris Heaney <chrisheaney30@gmail.com> * v2.16.0-beta.2 * sdk: fix borrow limit calc (#356) * update CHANGELOG.md * sdk: new squareRootBN implementation using bit shifting * sdk: change modify order params to be object (#353) * sdk: change modify order params to be object * Update CHANGELOG.md * sdk: DLOB matching logic accounts for zero-price spot market orders not matching resting limit orders * v2.16.0-beta.3 * sdk: add market lookup table (#359) * sdk: add look up table to config * add ability to send version tx with retry sender * tweak LOOK UP to LOOKUP * add fetchMarketLookupTableAccount to driftClient * CHANGELOG * v2.16.0 * getMarketBids/Asks becomes getTakingBids/Asks * remove updateRestingLimitOrder from getbestNode * tests working * update isFallbackAvailableLiquiditySource * tweak is_maker_for_taker * tweaks * fix updateRestingLimitOrders * add test for updating resting limit ordres * add tests for is_maker_for_taker * fix broken ts test * tweak some syntax choices * simplify is_maker_for_taker * dont let auction prices be zero for market or limit orders * tweak findJitAuctionNodesToFill * CHANGELOG --------- Co-authored-by: bigzPubkey <zane@lunoho.company> Co-authored-by: wphan <william@drift.trade> Co-authored-by: Evan Pipta <3pipta@gmail.com> Co-authored-by: 0xbigz <83473873+0xbigz@users.noreply.github.com>
- Loading branch information
1 parent
b0a6250
commit 0c4a4ba
Showing
18 changed files
with
1,674 additions
and
331 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.