Updated on 2026-08-14
This commit is contained in:
parent
ab2f0f58bb
commit
22ad2ddc67
22 changed files with 190 additions and 15 deletions
|
|
@ -54,6 +54,8 @@ sealed class ScenarioUnavailabilityReason {
|
|||
|
||||
data object UnassociatedAsset : ScenarioUnavailabilityReason()
|
||||
|
||||
data object TrustlineRequired : ScenarioUnavailabilityReason()
|
||||
|
||||
enum class WithdrawalScenario {
|
||||
SELL, SEND // TODO staking create&process STAKING
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ sealed class TokenScreenAnalyticsEvent(
|
|||
private const val SINGLE_WALLET = "Single Wallet"
|
||||
private const val LOADING = "Loading"
|
||||
private const val ASSET_REQUIREMENT = "AssetRequirement"
|
||||
private const val TRUSTLINE_REQUIREMENT = "TrustlineRequirement"
|
||||
|
||||
@Suppress("CyclomaticComplexMethod")
|
||||
fun ScenarioUnavailabilityReason.toReasonAnalyticsText(): String {
|
||||
|
|
@ -177,6 +178,7 @@ sealed class TokenScreenAnalyticsEvent(
|
|||
is ScenarioUnavailabilityReason.StakingUnavailable,
|
||||
-> UNAVAILABLE
|
||||
ScenarioUnavailabilityReason.UnassociatedAsset -> ASSET_REQUIREMENT
|
||||
ScenarioUnavailabilityReason.TrustlineRequired -> TRUSTLINE_REQUIREMENT
|
||||
is ScenarioUnavailabilityReason.EmptyBalance -> EMPTY
|
||||
is ScenarioUnavailabilityReason.PendingTransaction -> PENDING
|
||||
ScenarioUnavailabilityReason.UsedOutdatedData -> CACHING
|
||||
|
|
|
|||
|
|
@ -61,4 +61,11 @@ sealed class CryptoCurrencyWarning {
|
|||
) : CryptoCurrencyWarning()
|
||||
|
||||
data object UsedOutdatedDataWarning : CryptoCurrencyWarning()
|
||||
|
||||
data class RequiredTrustline(
|
||||
val currency: CryptoCurrency,
|
||||
val currencySymbol: String,
|
||||
val requiredAmount: BigDecimal,
|
||||
val currencyDecimals: Int,
|
||||
) : CryptoCurrencyWarning()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue