Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Baseline solver limit orders support #2326
Baseline solver limit orders support #2326
Changes from 16 commits
2e18b36
4b42119
c3d45a2
2a2a8aa
cffd9c0
381416d
0eb67d2
dce04b6
a830885
621ca08
ec9887d
67dba54
c86ae17
b8cfde1
bea923c
f848362
fca90f4
9ad39cd
a3167b1
3a6b13e
de418ea
e818b6d
49df1fb
f10fed0
6bcfbac
c27296d
fd7880f
68e7da3
4de0d47
7e061d8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
This multiplication is required to pass this check. Not sure it is 100% valid.
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.
🤔 to me it seems that the inequality in the check should be a<=
instead of<
.Never mind. Is it possible that the fee amount needs to be taken care of here? How big is the discrepancy exactly?
Why even multiply with 2 (maybe add a comment)?
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.
Maybe instead of adjusting the amount with these factors it's a better idea to make the order partially fillable. That way we don't have to have a comment for all the factors but only when we assert that the traded amounts look good in the end.