Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-19 18:09:53 +04:00
parent 7b574b2a20
commit c3850e7991
5 changed files with 91 additions and 9 deletions

View file

@ -242,7 +242,11 @@ internal class YieldSupplyActiveModel @Inject constructor(
userWalletId,
cryptoCurrencyStatusFlow.value,
).onRight { minAmount ->
val dustAmount = yieldSupplyGetDustMinAmountUseCase(minAmount = minAmount, appCurrency = appCurrency)
val dustAmount = yieldSupplyGetDustMinAmountUseCase(
minAmountTokenCurrency = minAmount,
appCurrency = appCurrency,
tokenCryptoCurrencyStatus = cryptoCurrencyStatusFlow.value,
)
uiState.update(
YieldSupplyActiveMinAmountTransformer(
cryptoCurrencyStatus = cryptoCurrencyStatusFlow.value,

View file

@ -348,8 +348,9 @@ internal class YieldSupplyModel @Inject constructor(
.getOrNull()
if (minAmount != null) {
val dustAmount = yieldSupplyGetDustMinAmountUseCase(
minAmount = minAmount,
minAmountTokenCurrency = minAmount,
appCurrency = appCurrency,
tokenCryptoCurrencyStatus = cryptoCurrencyStatus,
)
cryptoCurrencyStatus.shouldShowNotSuppliedNotification(dustAmount)
} else {