Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bigz/perp-lp-jit * sdk: add updatePerpMarketTargetBaseAssetAmountPerLP * init tests (wip) * todo: start split_with_lps tests * fix test * controller/orders.rs: split out to calculate_amm_jit_liquidity * split out with split_with_lps param in calculate_jit_amount * fix idl * update idl * fix greater/less than on target lp amount * wip test * working basic tests * wip, working typescript tests and functions * fix tests/perpLpJit.ts * fix test * add LP split OrderActionExplanation, linter * fix prettier * address feedback p1 * add amm_lp_wants_to_jit_make functions * cleanup logs, add intuition comment * improve amm_lp_allowed_to_jit_make compute * cargo fmt -- * revert split_with_lps fee_to_market * use AMMLiquiditySplit * use protocol_owned_min_side_liquidity for amm_lp_allowed_to_jit_make * wip lp-owned fill * cargo fmt --, fix test * data check inside update_lp_market_position * update_lp_market_position: comb early return * incorp most of feedback-p2 * working LPOwned fills * fix comment * add some perp_market precisions * tests/perpLpJit.ts: add asserts * tests/perpLpJit.ts: add btc test * wip more asserts for tests/perpLpJit.ts * tests/perpLpJit.ts: expanded * tests: remove assert from spotSwap test causing race conditions * sdk: update spl-token dependency to 0.3.7 (#465) * sdk: start spl-token dependency upgrade * update tests to use spl-token 0.3.7 * fix driftClient test * fix whitelist test * fix unused import * sdk: tweaks to make driftClient.swap work * sdk: add ability to pass in route to driftClient.swap * sdk: supporting changes for jupiterClient (#466) * sdk: add IVersionedWallet, rename jupiter args, make loadKeypair support more private key types * dlob: add estimateFillWithExactBaseAmount * jupiter client decompile message fix * fix docstring * estimateFillWithExactBaseAmount to return QUOTE_PRECISION * program: add swap reduce only (#468) * init msol config (#467) * init msol config * rm devnet, decimals=9 * update changelog.md * sdk: spotBalance.ts docs * sdk: make ts BN for swaprecords * v2.30.0 * update changelog --------- Co-authored-by: Chris Heaney <[email protected]> Co-authored-by: wphan <[email protected]> Co-authored-by: lowkeynicc <[email protected]>
- Loading branch information