Updated on 2026-08-14
This commit is contained in:
parent
b73c5486d3
commit
e80ade9558
13 changed files with 470 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue