-
Notifications
You must be signed in to change notification settings - Fork 63
Improve Asset Scale conversions #192
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
Merged
Merged
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ba54167
fix(settlement-client): do not convert scale
gakonst 5e576ab
feat(settlement): Implement asset scale conversion for u256
gakonst a04832a
feat(settlement): Normalize the amount properly when being notified b…
gakonst 4fc57a2
fix(eth-se): Scale the amount to settle for based on the body and eng…
gakonst f02937d
improve tester
gakonst 9395f53
test(eth-se): adjust test for proper scale conversion
gakonst 0041bd7
test(eth-xrp) Set ETHXRP exchange rate
gakonst c32f27c
test(eth-xrp): Switch back to BTP
gakonst 5b1e2a5
fix(crate): Remove settlement_engine_asset_scale from account
gakonst a5874a9
improvement(settlement/engines): use BigUInt to handle big numbers
gakonst 61ecec5
test(settlement-engines): use asset_scale local variables per test
gakonst 642a29b
test(engine-eth-xrp): elaborate on how results are produced
gakonst 725b9f0
fix(settlement): Convert asset scale properly
gakonst ca46d74
fix comment
gakonst 56237a6
Revert "test(eth-xrp): Switch back to BTP"
gakonst 1f6f9a4
feat(settlement/engine): Return None when idempotent data not found i…
gakonst 9de2c7f
docs: fix readme in interoperability test
gakonst b5b62ec
fix(settlement): Make u64 conversions overflow-safe, and warn for f64…
gakonst 1c3a182
docs: fix review comments
gakonst 449e4a6
improvement(settlement): return Error on overflow during conversion
gakonst d227963
improvement(exchange-rate): make the scale conversion after the excha…
gakonst fa69cd6
test(exchange-rate): Add tests which verify that rate conversions fai…
gakonst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.