-
Notifications
You must be signed in to change notification settings - Fork 21
fix(FillUtils): verifyFillRepayment should check that repayment chain has pool rebalance route #863
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 all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3bb7a25
fix(FillUtils): verifyFillRepayment should check that repayment chain…
nicholaspai 7a8872d
lint
nicholaspai fe14e5a
Update BundleDataClient.ts
nicholaspai 1c591a5
Add isSlowFill check
nicholaspai 7e7ff5c
tests
nicholaspai 985cbb7
deafult to destination chain
nicholaspai 819173d
don't swap repayment chain for lite chain
nicholaspai 0c8223e
clean up case work
nicholaspai 5639645
Update FillUtils.ts
nicholaspai 49fa55d
handle lite chains
nicholaspai f5ed755
Refactor and finish tests
nicholaspai c18383b
fix loadApproximateRefunds function
nicholaspai 4d0905d
Update FillUtils.ts
nicholaspai 9ea4ce3
Increase test robustness
nicholaspai 307dbd3
Remove log
nicholaspai a1b1a03
bump version
nicholaspai f642b3f
Merge branch 'master' into fix-verify-fill-repayment
nicholaspai 2df9b40
Fix
nicholaspai 6574340
fix
nicholaspai 6ce43e8
Update SpokePoolClient.ts
nicholaspai 1a69335
fix
nicholaspai 3c57e88
Update package.json
nicholaspai 0cfceda
forceDestinationRepayment
nicholaspai 47afa2d
Merge branch 'master' into fix-verify-fill-repayment
nicholaspai 68b52fc
Update FillUtils.ts
nicholaspai 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
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.
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.
Driveby question - any idea why it's necessary to assert the existence of
matchingDeposit
here when the check above should guarantee it?Uh oh!
There was an error while loading. Please reload this page.
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 because TSC doesn't interpret asserts the same way it does if statements. We could change the above assert to an if statement to avoid this "!"
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 figured it out - it's because we have some locally-defined
assert
that instead throws an exception.This diff fixes it so that tsc can infer things from the use of asserts: