We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22e51ee + 8829875 commit 3226ce8Copy full SHA for 3226ce8
pallets/subtensor/src/migrations/migrate_rao.rs
@@ -89,7 +89,12 @@ pub fn migrate_rao<T: Config>() -> Weight {
89
90
let remaining_lock = lock.saturating_sub(pool_initial_tao);
91
// Refund the owner for the remaining lock.
92
- SubnetMovingPrice::<T>::insert(netuid, I96F32::from_num(EmissionValues::<T>::get(netuid)));
+ SubnetMovingPrice::<T>::insert(
93
+ netuid,
94
+ I96F32::from_num(EmissionValues::<T>::get(netuid))
95
+ .checked_div(I96F32::from_num(1_000_000_000))
96
+ .unwrap_or(I96F32::from_num(0.0)),
97
+ );
98
Pallet::<T>::add_balance_to_coldkey_account(&owner, remaining_lock);
99
SubnetLocked::<T>::insert(netuid, 0); // Clear lock amount.
100
SubnetTAO::<T>::insert(netuid, pool_initial_tao);
0 commit comments