-
Notifications
You must be signed in to change notification settings - Fork 62
Feat: Ask Amount for Each Subnet When Staking to Multiple #771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Feat: Ask Amount for Each Subnet When Staking to Multiple #771
Conversation
|
@thewhaleking |
|
@Mobile-Crest Some e2e coverage will be good for this. Maybe add this behaviour in the current add_stake test we have |
|
thewhaleking
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very silly to have --amount AND --amounts that do nearly-identical-but-different things. Look at how similar items are done throughout this file.
we already have --netuid and --netuids, |
In |
then should I make amount an alias of amounts arg? |
Ask Amount for Each Subnet When Staking to Multiple
Summary
Implements per-subnet amount prompting when staking to multiple netuids, improving user control and transparency over stake distribution.
Changes
CLI (
bittensor_cli/cli.py)--netuids 1,2,3), the CLI now prompts for an amount for each subnet individuallyStake Add Function (
src/commands/stake/add.py)amount: Union[float, list[float]]Example Usage
Before:
After:
Contribution by Gittensor, learn more at https://gittensor.io/