Updated on 2026-08-14
This commit is contained in:
parent
799a38655e
commit
4570bc334c
54 changed files with 178 additions and 183 deletions
|
|
@ -54,7 +54,7 @@ internal class DefaultStakingDeepLinkHandler @AssistedInject constructor(
|
|||
)
|
||||
.orEmpty()
|
||||
.firstOrNull { currency ->
|
||||
val isNetwork = currency.network.backendId.equals(networkId, ignoreCase = true)
|
||||
val isNetwork = currency.network.rawId.equals(networkId, ignoreCase = true)
|
||||
val isCurrency = currency.id.rawCurrencyId?.value?.equals(tokenId, ignoreCase = true) == true
|
||||
isNetwork && isCurrency
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ internal class StakingBalanceEntryConverter(
|
|||
|
||||
private fun StakingBalanceEntry.getBalanceValue(): BigDecimal {
|
||||
val isIncludeStakingTotalBalance = BlockchainUtils.isIncludeStakingTotalBalance(
|
||||
blockchainId = cryptoCurrencyStatus.currency.network.rawId,
|
||||
networkId = cryptoCurrencyStatus.currency.network.rawId,
|
||||
)
|
||||
return if (isIncludeStakingTotalBalance) {
|
||||
amount
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ internal class AddStakingNotificationsTransformer(
|
|||
addExceedsBalanceNotification(
|
||||
cryptoCurrencyWarning = currencyWarning,
|
||||
cryptoCurrencyStatus = cryptoCurrencyStatus,
|
||||
shouldMergeFeeNetworkName = BlockchainUtils.isArbitrum(network.backendId),
|
||||
shouldMergeFeeNetworkName = BlockchainUtils.isArbitrum(network.rawId),
|
||||
onClick = prevState.clickIntents::openTokenDetails,
|
||||
onAnalyticsEvent = { prevState.clickIntents.onNotEnoughFeeNotificationShow() },
|
||||
onResetAnalyticsEvent = { /*no-op*/ },
|
||||
|
|
@ -315,7 +315,7 @@ internal class AddStakingNotificationsTransformer(
|
|||
currencyName = name,
|
||||
feeName = name,
|
||||
feeSymbol = symbol,
|
||||
mergeFeeNetworkName = BlockchainUtils.isArbitrum(network.backendId),
|
||||
mergeFeeNetworkName = BlockchainUtils.isArbitrum(network.rawId),
|
||||
onClick = { onClick(this) },
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue