This fixes an errant exit when trying to unstake an amount that is below the minimum required stake on-chain.
Description of the Change
The code will now check if the remaining balance is below the aforementioned minimum (rather than the amount to unstake), and only for nominated stakes.
The code will now only emit a warning message, instead unstaking all staked balance, as expected since opentensor/subtensor/pull/462
The code will now check the threshold when attempting to stake, to reduce failed extrinsics
Bug
This fixes an errant exit when trying to unstake an amount that is below the minimum required stake on-chain.
Description of the Change
Verification Process
Release Notes
Allow unstake below network minimum