We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8a59a commit e26fc32Copy full SHA for e26fc32
app/src/main/java/to/bitkit/repositories/WalletRepo.kt
@@ -471,10 +471,11 @@ class WalletRepo @Inject constructor(
471
return@withContext 0uL
472
}
473
val fallbackMaxFee = (spendableOnchainSats.toDouble() * FALLBACK_FEE_PERCENT).toULong()
474
+ val speed = settingsStore.data.first().defaultTransactionSpeed
475
476
val fee = lightningRepo.calculateTotalFee(
477
amountSats = spendableOnchainSats,
- speed = TransactionSpeed.default(),
478
+ speed = speed,
479
utxosToSpend = lightningRepo.listSpendableOutputs().getOrNull()
480
).onFailure {
481
Logger.debug("Could not calculate max send fee, using as fallback 10% of total", context = TAG)
0 commit comments