Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-24 09:59:10 +04:00
parent 6e267fc067
commit 8f4a8b18ef
3 changed files with 16 additions and 10 deletions

View file

@ -24,7 +24,11 @@ data class SwapPairProvider(
@Json(name = "rateTypes")
val rateTypes: List<RateType>,
)
) {
fun hasOnlyFixedRateType(): Boolean {
return rateTypes.isNotEmpty() && rateTypes.all { it == RateType.FIXED }
}
}
@JsonClass(generateAdapter = false)
enum class RateType {