Commit 27cade3
committed
fix(horizon): respect minimum delegation requirement in slash test
The testSlash_RoundDown_TokensThawing_Delegation test was failing because
it could generate scenarios where undelegating would leave less than the
minimum delegation amount (1 ether) in the pool, which violates the
protocol's minimum delegation constraint.
Added assumption to ensure undelegation either removes all tokens or
leaves at least MIN_DELEGATION in the pool, making the test compliant
with the protocol's validation rules introduced in commit 91cda56.1 parent 3faf055 commit 27cade3
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
0 commit comments