Updated on 2026-08-14
This commit is contained in:
parent
6e267fc067
commit
8f4a8b18ef
3 changed files with 16 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue