question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify absolute fee max instead of average fee max

See original GitHub issue

Right now it seems that it’s only possible to specify the maximum average fee per hop for a rebalancing route, when really I’d be more interested in specifying a maximum absolute fee (still in terms of the lnd default for a single hop). Basically, I’d rather pay 100 satoshis for 2 hops than 120 satoshis for 3 hops, even though the latter has a lower per-hop average.

This could also allow for some shortcuts to prevent searching for routes when the fees for the first or last hop (specified by the -f and -t arguments) exceed the maximum fee. If I don’t want to pay more than 10 times the lnd default fee, and I’m trying to rebalance a channel which itself charges 20 times the lnd default fee, then the rebalancing should not even be attempted potentially saving time and headache. I guess this might change if negative fees ever become a thing, however.

Last minor request, it’d be nice to have a single character alias for this argument, like -m or -f instead of --max-fee-factor.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
C-Ottocommented, Jul 25, 2021

It make make sense to specify the fee limit as a ppm value.

0reactions
C-Ottocommented, Jul 23, 2021

QueryRoutesRequest accepts a fee limit, which in turn can be configured with a fixed fee, or a percentage of the forwarded amount.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EIP-1559 Gas Fees: Base Fee, Priority Fee, & Max Fee
The Max Fee is the absolute maximum amount you are willing to pay per unit of gas to get your transaction confirmed. And...
Read more >
Setting min/max prices - Informed Help Center
Informed will not reprice a listing without a min price set. Your max price is the highest total price you are willing to...
Read more >
Out-of-pocket maximum/limit - Glossary - HealthCare.gov
The amount you pay for your health insurance every month. In addition to your premium, you usually have to pay other costs for...
Read more >
Excel MAX function - formula examples to find highest value
The MAX function in Excel returns the highest value in a set of data ... To simplify the formula, use the IFERROR function...
Read more >
Section A. Calculating Maximum Mortgage Amounts on ... - HUD
In order for FHA to insure this maximum loan amount, the borrower must make a required investment of at least 3.5% of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found