-
Notifications
You must be signed in to change notification settings - Fork 91
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
19/amm-jit-base-amount-fix #280
Conversation
|
||
let (base_asset_amount_fulfilled, quote_asset_amount) = calculate_fill_for_matched_orders( | ||
base_asset_amount_left_to_fill, | ||
maker_base_asset_amount, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this was the key issue identified and remedied here? maker amount for match is now whatever the maker has offered rather than the taker's amount leftover
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
taker, | ||
taker_stats, | ||
taker_order_index, | ||
let taker_base_asset_amount_left_to_fill = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we might be able to avoid all of this nesting if instead of calculating taker_base_asset_amount_left_to_fill
, we just pull the base_asset_amount_unfilled
off of the taker order after the jit block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah great point
No description provided.