opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
146 stars 150 forks source link

add cleared amount in remove_stake #798

Open cuteolaf opened 3 weeks ago

cuteolaf commented 3 weeks ago

Description

Currently, only the user requested amount is emitted in the event StakeRemoved. In the new runtime upgrade, when the staked amount is less than the minimum amount(set to 0.1TAO at the moment), it gets cleared automatically.

In this PR, I take the cleared amount into consideration in remove_stake extrinsic.

Checklist

camfairchild commented 3 weeks ago

Please rebase this on devnet_ready