-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support JIT orders in the trade verifier #3085
Conversation
…-orders-support # Conflicts: # crates/shared/src/trade_finding/external.rs
# Conflicts: # crates/shared/src/trade_finding/external.rs
5b2374c
to
f676a96
Compare
# Conflicts: # crates/shared/src/trade_finding/external.rs
88ee77b
to
e051528
Compare
a1bc459
to
bea5183
Compare
This reverts commit bea5183.
This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed. |
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.
Still need to double check the value for the unit tests but the logic changes look correct to me.
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.
Test values make sense to me. Just change to the signature of ensure_quote_accuracy()
should be reverted to make the test setup easier. ATM it sets up a bunch of JIT orders which are actually no longer used with the latest approach.
# Conflicts: # crates/shared/src/trade_finding/mod.rs
Description
Closes task n2 from #3082 by implementing support of the quotes with JIT orders in the trade verifier. For a gradual migration, it has to support both quote versions.
Changes
Solver.sol
helper contract to fetch all token balances as was proposed in one of the comments, which reduces the overall code complexity.BigRational
.Implemented a workaround with converting float's string representation intoUsedBigRational
.BigDecimal
in the config instead.How to test
Unit tests. e2e would be possible only once the driver support is implemented(see #3103).