Skip to content

fix: stake add operation mapping for multi-hotkey and multi-netuid#897

Open
bitloi wants to merge 1 commit intolatent-to:stagingfrom
bitloi:fix/issue-1-stake-add-operation-mapping
Open

fix: stake add operation mapping for multi-hotkey and multi-netuid#897
bitloi wants to merge 1 commit intolatent-to:stagingfrom
bitloi:fix/issue-1-stake-add-operation-mapping

Conversation

@bitloi
Copy link
Copy Markdown
Contributor

@bitloi bitloi commented Apr 2, 2026

Closes #896

Fix stake add planning/execution to keep per-operation (hotkey, netuid, amount, current_stake, price_limit) alignment end-to-end, instead of rebuilding operations with zip(...).

Also fix stake_all allocation to divide across total valid operations (not only len(netuids)), and add regression tests for:

  • multi-hotkey + multi-netuid mapping correctness
  • stake_all distribution across all operations

@bitloi bitloi force-pushed the fix/issue-1-stake-add-operation-mapping branch from 48fb5ea to b9c5d83 Compare April 2, 2026 23:01
@bitloi bitloi changed the base branch from main to staging April 2, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: stake add mis-maps operations in multi-hotkey + multi-netuid mode

1 participant