You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the remove_network function does not properly handle the unstaking of nominators and delegates when a network is removed. This leads to orphaned stakes in neurons. Additionally, there may be existing neurons staked in already dissolved networks that need to be addressed.
We need to update the remove_network function to correctly differentiate between delegates and nominators when returning stakes, and implement a storage migration to handle existing neurons staked in dissolved networks.
Acceptance Criteria
Update the remove_network function to properly unstake and return funds to both delegates and nominators.
Implement a storage migration to handle existing neurons staked in dissolved networks.
Ensure that delegate stakes are returned to the delegate's coldkey.
Ensure that nominator stakes are returned to the nominator's coldkey.
Write unit tests to verify the correct behavior of the updated remove_network function.
Write integration tests to ensure the storage migration works as expected.
Description
Currently, the remove_network function does not properly handle the unstaking of nominators and delegates when a network is removed. This leads to orphaned stakes in neurons. Additionally, there may be existing neurons staked in already dissolved networks that need to be addressed.
We need to update the remove_network function to correctly differentiate between delegates and nominators when returning stakes, and implement a storage migration to handle existing neurons staked in dissolved networks.
Acceptance Criteria
Tasks
remove_network
function.Related Links
The text was updated successfully, but these errors were encountered: