Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-14 20:45:28 +05:00
parent b73c5486d3
commit e80ade9558
13 changed files with 470 additions and 10 deletions

View file

@ -2,7 +2,7 @@ package com.tangem.domain.express.models
import java.math.BigDecimal
sealed class ExpressError {
sealed class ExpressError : Throwable() {
abstract val code: Int

View file

@ -21,4 +21,16 @@ enum class ExpressProviderType(val typeName: String) {
@Json(name = "onramp")
ONRAMP(typeName = "ONRAMP"),
;
companion object {
fun ExpressProviderType.shouldStoreSwapTransaction() = when (this) {
CEX,
DEX_BRIDGE,
-> true
DEX,
ONRAMP,
-> false
}
}
}