Skip to content

FLOW-12 AutoBalancer Threshold Bounds Allow Impractical Configurations #107

@nialexsan

Description

@nialexsan

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.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions