-
Notifications
You must be signed in to change notification settings - Fork 255
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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_stakeabove 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 TAOabove)- FAIL!
remove_stakeis rejected.
Expected behavior
I would expect something more like this:
add_stakeabove 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 TAOabove)- Success! (but
StakeMap entry is removed, and you remove all0.101 TAOstake)
or
add_stakeabove threshold to a delegate (e.g.0.101 TAO)remove_stake_allow_death(0.0011)(after rate limit period)- Success! (
StakeMap entry is removed, and you remove all0.101 TAOstake)
Screenshots
No response
Environment
OS: NA. Chain Spec: 149
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working