Updated on 2026-08-14
This commit is contained in:
parent
e326ade679
commit
4c0d5727fd
3 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package com.tangem.datasource.api.express.models.response
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import java.math.BigDecimal
|
||||
|
||||
data class ExchangeProvider(
|
||||
@Json(name = "id")
|
||||
|
|
@ -28,7 +29,7 @@ data class ExchangeProvider(
|
|||
val isRecommended: Boolean = false,
|
||||
|
||||
@Json(name = "slippage")
|
||||
val slippage: Int?,
|
||||
val slippage: BigDecimal?,
|
||||
)
|
||||
|
||||
enum class ExchangeProviderType {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.tangem.feature.swap.domain.models.domain
|
||||
|
||||
import com.tangem.domain.tokens.model.CryptoCurrencyStatus
|
||||
import java.math.BigDecimal
|
||||
|
||||
/**
|
||||
* Domain layer representation of SwapPair data network model.
|
||||
|
|
@ -39,7 +40,7 @@ data class SwapProvider(
|
|||
val termsOfUse: String?,
|
||||
val privacyPolicy: String?,
|
||||
val isRecommended: Boolean = false,
|
||||
val slippage: Int?,
|
||||
val slippage: BigDecimal?,
|
||||
)
|
||||
|
||||
enum class ExchangeProviderType(val providerName: String) {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import com.tangem.core.ui.format.bigdecimal.crypto
|
|||
import com.tangem.core.ui.format.bigdecimal.format
|
||||
import com.tangem.core.ui.format.bigdecimal.uncapped
|
||||
import com.tangem.core.ui.utils.BigDecimalFormatter
|
||||
import com.tangem.core.ui.utils.parseBigDecimal
|
||||
import com.tangem.domain.appcurrency.model.AppCurrency
|
||||
import com.tangem.domain.tokens.model.CryptoCurrency
|
||||
import com.tangem.domain.tokens.model.CryptoCurrencyStatus
|
||||
|
|
@ -1113,7 +1114,7 @@ internal class StateBuilder(
|
|||
add(
|
||||
resourceReference(
|
||||
R.string.swapping_alert_slippage_description,
|
||||
wrappedList("$slippage$PERCENT"),
|
||||
wrappedList("${slippage.parseBigDecimal(1)}$PERCENT"),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue