8000 Less aggressive security margin for otf payments by pm47 · Pull Request #793 · ACINQ/lightning-kmp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Less aggressive security margin for otf payments #793

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pm47
Copy link
Member
@pm47 pm47 commented Jul 1, 2025

Liquidity fees depend on mining fees which are volatile, and may increase between the time when a user accepts otf liquidity, and the time when the LSP allocates the liquidity. We need to make sure that the user is able to afford the increase of cost, so we require the incoming payment + fee credit to be 2x the estimated fee.

But that is overkill because only the mining fee is volatile, not the liquidity fee. On top of that, the liquidity fee can be much greater than the mining fee for some use cases (e.g. phoenixd).

Liquidity fees depend on mining fees which are volatile, and may
increase between the time when a user accepts otf liquidity, and
the time when the LSP allocates the liquidity. We need to make
sure that the user is able to afford the increase of cost, so we
require the incoming payment + fee credit to be 2x the estimated
fee.

But that is overkill because only the mining fee is volatile, not
the liquidity fee. On top of that, the liquidity fee can be much
greater than the mining fee for some use cases (e.g. phoenixd).
@pm47 pm47 requested a review from t-bast July 1, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0