Skip to content

Commit

Permalink
feat(2981): fix caching misplacement.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Nov 24, 2024
1 parent 70193db commit 4bb3b25
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,13 @@ async function fundPayment(
.forUpdate()
.withGraphFetched('quote')
if (!payment) return FundingError.UnknownPayment

await deps.assetService.setOn(payment.quote)
if (payment.state !== OutgoingPaymentState.Funding) {
return FundingError.WrongState
}
if (amount !== payment.debitAmount.value) return FundingError.InvalidAmount

await deps.assetService.setOn(payment.quote)
// Create the outgoing payment liquidity account before trying to transfer funds to it.
try {
await deps.accountingService.createLiquidityAccount(
Expand Down

0 comments on commit 4bb3b25

Please sign in to comment.