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
Direct transfers should not pay mediation fees #4815
Comments
No the mediation fee percentage is for the entire route since internal routing does not have a good educated guess for the number of hops.
Yep! Also the PR for this should add a test that there are no fees involved in direct transfers. |
I think this is wrong. The code does know how many hops are in the path. |
Yes it does. My bad, wanted to say that it does not have the latest view of the hops as the PFS does. |
@LefterisJP question: Lines 213 to 215 in f8084c4
I can see that the |
Yes the comment is wrong in this case. Please change it. |
Intro
In #4760, a 2% mediation fee gets added to a certain transfer per hop. This is currently causing problems in the scenario where the target is a direct neighbour of the initiator.
Using internal routing, when no mediation takes place and a transfer is direct between X & Y, there should be no mediation fees added to the transfer.
The text was updated successfully, but these errors were encountered: