We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a246edc + e903419 commit 8c8e25eCopy full SHA for 8c8e25e
1 file changed
app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt
@@ -1169,7 +1169,10 @@ class AppViewModel @Inject constructor(
1169
}
1170
1171
1172
- SendMethod.ONCHAIN -> amount > Defaults.dustLimit.toULong()
+ SendMethod.ONCHAIN -> {
1173
+ val maxSendable = walletRepo.balanceState.value.maxSendOnchainSats
1174
+ amount > Defaults.dustLimit.toULong() && amount <= maxSendable
1175
+ }
1176
1177
1178
0 commit comments