File(s) affected: cadence/contracts/interfaces/DeFiActions.cdc
Description: The threshold validation allows values very close to the extremes:
lower < upper && 0.01 <= lower && lower < 1.0 && 1.0 < upper && upper < 2.0
This allows configurations like: lower = 0.01 (rebalance when value drops to 1% of deposits) upper = 1.99 (rebalance when value
reaches 199% of deposits) Such extreme values are likely configuration errors rather than intentional choices. By the time value drops
to 1% or rises to 199%, the opportunity for meaningful rebalancing may have passed.
Recommendation: Consider enforcing tighter bounds.
File(s) affected: cadence/contracts/interfaces/DeFiActions.cdc
Description: The threshold validation allows values very close to the extremes:
This allows configurations like: lower = 0.01 (rebalance when value drops to 1% of deposits) upper = 1.99 (rebalance when value
reaches 199% of deposits) Such extreme values are likely configuration errors rather than intentional choices. By the time value drops
to 1% or rises to 199%, the opportunity for meaningful rebalancing may have passed.
Recommendation: Consider enforcing tighter bounds.