File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class TransferViewModel @Inject constructor(
124124 viewModelScope.launch {
125125 _spendingUiState .update { it.copy(isLoading = true ) }
126126
127- val minAmount = getMinnAmountToPurchase ()
127+ val minAmount = getMinAmountToPurchase ()
128128 if (_spendingUiState .value.satsAmount < minAmount) {
129129 setTransferEffect(
130130 TransferEffect .ToastError (
@@ -243,7 +243,7 @@ class TransferViewModel @Inject constructor(
243243 }
244244 }
245245
246- private suspend fun getMinnAmountToPurchase (): Long {
246+ private suspend fun getMinAmountToPurchase (): Long {
247247 val fee = lightningRepo.calculateTotalFee(_spendingUiState .value.satsAmount.toULong()).getOrNull() ? : 0u
248248 return max((fee + maxLspFee).toLong(), Env .TransactionDefaults .dustLimit.toLong())
249249 }
You can’t perform that action at this time.
0 commit comments