We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c27718 commit 17546ebCopy full SHA for 17546eb
1 file changed
app/src/main/java/to/bitkit/repositories/BlocktankRepo.kt
@@ -473,7 +473,9 @@ class BlocktankRepo @Inject constructor(
473
474
return GiftClaimResult.SuccessWithLiquidity(
475
paymentHashOrTxId = giftResponse.bolt11PaymentId ?: giftResponse.id,
476
- sats = amount.toLong(),
+ sats = giftResponse.bolt11Payment?.paidSat?.toLong()
477
+ ?: giftResponse.appliedGiftCode?.giftSat?.toLong()
478
+ ?: amount.toLong(),
479
invoice = invoice,
480
code = code,
481
)
0 commit comments