Skip to content

Commit 97b5f0a

Browse files
committed
fix spend insufficient validation check
1 parent 432da4a commit 97b5f0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
ext {
55
// App version
66
versionName = '2.2.3'
7-
versionCode = 91
7+
versionCode = 92
88

99
// SDK and tools
1010
compileSdkVersion = 33

feature-polkaswap-impl/src/main/kotlin/jp/co/soramitsu/polkaswap/impl/presentation/swap_tokens/SwapTokensViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ class SwapTokensViewModel @Inject constructor(
476476
val isToFeeAsset = toAsset.value?.token?.configuration?.id == feeAsset.token.configuration.id
477477

478478
return when {
479-
amountToSwap >= available -> {
479+
amountToSwap > available -> {
480480
SpendInsufficientBalanceException(resourceManager)
481481
}
482482
isToFeeAsset.not() && feeAsset.transferable <= fee -> {

0 commit comments

Comments
 (0)