-
Notifications
You must be signed in to change notification settings - Fork 254
dTao-Compatible Subnet Deregistration #1685
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
Conversation
|
Currently the immunity period of the subnet's neurons is being called instead of the network immunity period, which you should be able to get with |
pallets/swap/src/pallet/impls.rs
Outdated
| .sort_by(|a, b| (a.owner == protocol_account).cmp(&(b.owner == protocol_account))); | ||
|
|
||
| for CloseItem { owner, pos_id } in to_close.into_iter() { | ||
| let rm = Self::do_remove_liquidity(netuid, &owner, pos_id)?; |
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.
Would it make sense to ignore errors here since we’re in the loop? If reserves are ideal, errors will not happen, but we had a few small discrepancies in the state so liquidity removals may fail for some (larger) accounts while they will succeed for smaller ones.
| } | ||
|
|
||
| // (netuid, locked_rao) pairs taken from the historical snapshot (block #4_828_623). | ||
| const SUBNET_LOCKED: &[(u16, u64)] = &[ |
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.
Maybe I misunderstand the migration, but why again are we re-inserting lock costs into pre-DTAO subnets?
Their locked should be 0 because we have given them their lock cost already, so nothing to refund
Description
dTao-Compatible Subnet Deregistration
Related Issue(s)
Type of Change