Skip to content

Fix amount calculation for liquidity purchases in csv export#124

Merged
pm47 merged 1 commit intomasterfrom
export-csv-liquidity-amount
Oct 18, 2024
Merged

Fix amount calculation for liquidity purchases in csv export#124
pm47 merged 1 commit intomasterfrom
export-csv-liquidity-amount

Conversation

@pm47
Copy link
Member

@pm47 pm47 commented Oct 18, 2024

Depending on the payment_type, fees for a liquidity purchase may be paid from the balance, or from future htlcs. In the former case, the fee amount must be deducted from the balance immediately.

A helper method InboundLiquidityOutgoingPayment.feePaidFromChannelBalance has been introduced for that purpose in
ACINQ/lightning-kmp#706 and we must use it.

Depending on the `payment_type`, fees for a liquidity purchases may be
paid from the balance, or from future htlcs. In the former case, we must
count the fee amount must be deducted from balance immediately.

A helper method `InboundLiquidityOutgoingPayment.feePaidFromChannelBalance`
has been introduced for that purpose in
ACINQ/lightning-kmp#706 and we must use it.
@pm47 pm47 requested a review from dpad85 October 18, 2024 09:45
@pm47 pm47 merged commit 744d4e9 into master Oct 18, 2024
@pm47 pm47 deleted the export-csv-liquidity-amount branch October 18, 2024 09:49
vincenzopalazzo pushed a commit to vincenzopalazzo/phoenixd that referenced this pull request Nov 7, 2024
Depending on the `payment_type`, fees for a liquidity purchases may be
paid from the balance, or from future htlcs. In the former case, we must
count the fee amount must be deducted from balance immediately.

A helper method `InboundLiquidityOutgoingPayment.feePaidFromChannelBalance`
has been introduced for that purpose in
ACINQ/lightning-kmp#706 and we must use it.
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.

2 participants