Skip to content

Commit e26fc32

Browse files
committed
fix: get default transaction speed on fee calc
1 parent da8a59a commit e26fc32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/to/bitkit/repositories/WalletRepo.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,11 @@ class WalletRepo @Inject constructor(
471471
return@withContext 0uL
472472
}
473473
val fallbackMaxFee = (spendableOnchainSats.toDouble() * FALLBACK_FEE_PERCENT).toULong()
474+
val speed = settingsStore.data.first().defaultTransactionSpeed
474475

475476
val fee = lightningRepo.calculateTotalFee(
476477
amountSats = spendableOnchainSats,
477-
speed = TransactionSpeed.default(),
478+
speed = speed,
478479
utxosToSpend = lightningRepo.listSpendableOutputs().getOrNull()
479480
).onFailure {
480481
Logger.debug("Could not calculate max send fee, using as fallback 10% of total", context = TAG)

0 commit comments

Comments
 (0)