-
Notifications
You must be signed in to change notification settings - Fork 372
Add mediation fees for internal routing and maximum fee limit #4760
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
17 commits
Select commit
Hold shift + click to select a range
d32eb2b
Add a fee for internal routing that is a percentage to the amount
LefterisJP 2430e3c
Add a check for the maximum amount limit of transfer + fees
LefterisJP fc2a01a
Use UNIT_TRANSFER_AMOUNT in tests instead of magic constants
LefterisJP 446018f
Set amount/fees in unit tests that agree with our defaults
LefterisJP 67d1022
Add a test for the maximum mediation fee limit
LefterisJP c9c6bb0
Adjust test_mediated_transfer for the fee changes
LefterisJP 43f4bbf
Adjust test_restapi for the fee changes
LefterisJP 07b392e
Adjust test_refund_transfer for fee changes
LefterisJP bd5899f
Adjust test_regression.py for the fee changes
LefterisJP eec83d3
Adjust test_pending_transfers_endpoint for fees
LefterisJP cd837e9
Adjust test_settlement after fee changes
LefterisJP 8a7cec9
Disable max mediation fee checks for test_mediated_transfer_with_fee
LefterisJP 1d0a279
/s/ininitial/initial
LefterisJP 1c299c2
Fixes after rebase
LefterisJP aff2ab7
PR review fixes for readability
LefterisJP 5ddf099
Add exception with msg at timeout of wait for transfer in tests
LefterisJP 33df00b
Add proper checks for amount/fee ratio in the mediation fee test
LefterisJP 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
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.
We're adding fees here even in case of a direct transfer.
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.
Sorry for not being thorough, yesterday. It also looks like we only apply
INTERNAL_ROUTING_DEFAULT_FEE_PERConce. Wasn't the intention of the ticket to do that once per hop?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'll write a PR that changes these two things. If any of these statements is wrong, let me know!
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.
@karlb
It's correct. I did not notice that.
No, since we are not sure of the hops anyway in internal routing the intention (and it's also written in the issue) was to add a big percentage.