Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program: add swap reduce only #468

Merged
merged 1 commit into from
May 18, 2023
Merged

Conversation

crispheaney
Copy link
Member

No description provided.

@crispheaney crispheaney merged commit b79b8d0 into master May 18, 2023
0xbigz pushed a commit that referenced this pull request May 19, 2023
0xbigz added a commit that referenced this pull request May 19, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant