Updated on 2026-08-14
This commit is contained in:
parent
93d05ff815
commit
21912f4c7f
1 changed files with 5 additions and 4 deletions
|
|
@ -61,7 +61,7 @@ internal class CurrencyStatusOperations(
|
|||
(yieldBalance as? YieldBalance.Data)?.address == status.address.defaultAddress.value
|
||||
val currentYieldBalance = yieldBalance.takeIf { isCurrentAddressStaking }
|
||||
return when {
|
||||
ignoreQuote || quote == null -> CryptoCurrencyStatus.NoQuote(
|
||||
ignoreQuote -> CryptoCurrencyStatus.NoQuote(
|
||||
amount = amount,
|
||||
hasCurrentNetworkTransactions = hasCurrentNetworkTransactions,
|
||||
pendingTransactions = currentTransactions,
|
||||
|
|
@ -70,14 +70,15 @@ internal class CurrencyStatusOperations(
|
|||
)
|
||||
currency is CryptoCurrency.Token && currency.isCustom -> CryptoCurrencyStatus.Custom(
|
||||
amount = amount,
|
||||
fiatAmount = calculateFiatAmountOrNull(amount, quote.fiatRate),
|
||||
fiatRate = quote.fiatRate,
|
||||
priceChange = quote.priceChange,
|
||||
fiatAmount = calculateFiatAmountOrNull(amount, quote?.fiatRate),
|
||||
fiatRate = quote?.fiatRate,
|
||||
priceChange = quote?.priceChange,
|
||||
hasCurrentNetworkTransactions = hasCurrentNetworkTransactions,
|
||||
pendingTransactions = currentTransactions,
|
||||
networkAddress = status.address,
|
||||
yieldBalance = currentYieldBalance,
|
||||
)
|
||||
quote == null -> CryptoCurrencyStatus.Loading
|
||||
else -> CryptoCurrencyStatus.Loaded(
|
||||
amount = amount,
|
||||
fiatAmount = calculateFiatAmount(amount, quote.fiatRate),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue