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

Bigz/perp lp jit #448

Merged
merged 52 commits into from
May 19, 2023
Merged

Bigz/perp lp jit #448

merged 52 commits into from
May 19, 2023

Conversation

0xbigz
Copy link
Member

@0xbigz 0xbigz commented Apr 28, 2023

No description provided.

@0xbigz 0xbigz marked this pull request as ready for review May 10, 2023 13:05
test-scripts/run-anchor-tests.sh Outdated Show resolved Hide resolved
sdk/src/adminClient.ts Outdated Show resolved Hide resolved
programs/drift/src/controller/orders.rs Outdated Show resolved Hide resolved
programs/drift/src/controller/orders.rs Outdated Show resolved Hide resolved
programs/drift/src/math/amm_jit.rs Outdated Show resolved Hide resolved
programs/drift/src/math/amm_jit.rs Outdated Show resolved Hide resolved
programs/drift/src/state/perp_market.rs Show resolved Hide resolved
programs/drift/src/math/amm_jit.rs Outdated Show resolved Hide resolved
programs/drift/src/controller/orders.rs Outdated Show resolved Hide resolved
programs/drift/src/math/amm_jit.rs Show resolved Hide resolved
programs/drift/src/state/perp_market.rs Outdated Show resolved Hide resolved
programs/drift/src/math/amm_jit.rs Show resolved Hide resolved
@@ -1687,7 +1690,7 @@ pub fn fulfill_perp_order_with_amm(
fee_structure: &FeeStructure,
override_base_asset_amount: Option<u64>,
override_fill_price: Option<u64>,
split_with_lps: bool,
liquidity_split: AMMLiquiditySplit,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel like override_base_asset_amount, override_fill_price and liquidity_split are all related, maybe we can merge them somehow so it's clearer how they're related

Copy link
Member Author

@0xbigz 0xbigz May 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think adding params to AMMLiquiditySplit is a nice-to-have future task

programs/drift/src/controller/orders.rs Outdated Show resolved Hide resolved
@0xbigz 0xbigz merged commit 72efda4 into master May 19, 2023
5 of 6 checks passed
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

4 participants