Updated on 2026-08-14
This commit is contained in:
parent
26d255c390
commit
93bf42f4a0
1 changed files with 3 additions and 1 deletions
|
|
@ -223,7 +223,9 @@ internal class SetInitialDataStateTransformer(
|
|||
private fun getAprRange(validators: List<Yield.Validator>): TextReference {
|
||||
val aprValues = validators
|
||||
.filter { it.preferred }
|
||||
.mapNotNull { it.apr }
|
||||
.takeIf { it.isNotEmpty() }
|
||||
?.mapNotNull { it.apr }
|
||||
?: validators.mapNotNull { it.apr }
|
||||
|
||||
val minApr = aprValues.min()
|
||||
val maxApr = aprValues.max()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue