You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if you unstake to a balance below the minimum nomination stake threshold, but not exactly all your stake, it fails your SubtensorModule.remove_stake call.
However, I would expect that the stake balance should be sweep fully instead, or perhaps provide a call to allow "death" from the stake entry.
To Reproduce
add_stake above threshold to a delegate (e.g. 0.101 TAO)
remove_stake (after rate limit period) your stake so it would be below the threshold, but not 0 (e.g. 0.0011 TAO, 0.0001 TAO above)
FAIL! remove_stake is rejected.
Expected behavior
I would expect something more like this:
add_stake above threshold to a delegate (e.g. 0.101 TAO)
remove_stake (after rate limit period) your stake so it would be below the threshold, but not 0 (e.g. 0.0011 TAO, 0.0001 TAO above)
Success! (but Stake Map entry is removed, and you remove all 0.101 TAO stake)
or
add_stake above threshold to a delegate (e.g. 0.101 TAO)
Describe the bug
Currently, if you unstake to a balance below the minimum nomination stake threshold, but not exactly all your stake, it fails your
SubtensorModule.remove_stake
call.However, I would expect that the stake balance should be sweep fully instead, or perhaps provide a call to allow "death" from the stake entry.
To Reproduce
add_stake
above threshold to a delegate (e.g.0.101 TAO
)remove_stake
(after rate limit period) your stake so it would be below the threshold, but not 0 (e.g.0.0011 TAO
,0.0001 TAO
above)remove_stake
is rejected.Expected behavior
I would expect something more like this:
add_stake
above threshold to a delegate (e.g.0.101 TAO
)remove_stake
(after rate limit period) your stake so it would be below the threshold, but not 0 (e.g.0.0011 TAO
,0.0001 TAO
above)Stake
Map entry is removed, and you remove all0.101 TAO
stake)or
add_stake
above threshold to a delegate (e.g.0.101 TAO
)remove_stake_allow_death(0.0011)
(after rate limit period)Stake
Map entry is removed, and you remove all0.101 TAO
stake)Screenshots
No response
Environment
OS: NA. Chain Spec: 149
Additional context
No response
The text was updated successfully, but these errors were encountered: