Skip to content

Commit 22e51ee

Browse files
authored
Merge pull request #1270 from opentensor/nonclaim
moving price init from emission
2 parents a16dbb8 + 48441d8 commit 22e51ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pallets/subtensor/src/migrations/migrate_rao.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use alloc::string::String;
33
use frame_support::IterableStorageMap;
44
use frame_support::{traits::Get, weights::Weight};
55
use sp_runtime::format;
6+
use substrate_fixed::types::I96F32;
67
use substrate_fixed::types::U64F64;
78

89
use super::*;
@@ -88,6 +89,7 @@ pub fn migrate_rao<T: Config>() -> Weight {
8889

8990
let remaining_lock = lock.saturating_sub(pool_initial_tao);
9091
// Refund the owner for the remaining lock.
92+
SubnetMovingPrice::<T>::insert(netuid, I96F32::from_num(EmissionValues::<T>::get(netuid)));
9193
Pallet::<T>::add_balance_to_coldkey_account(&owner, remaining_lock);
9294
SubnetLocked::<T>::insert(netuid, 0); // Clear lock amount.
9395
SubnetTAO::<T>::insert(netuid, pool_initial_tao);

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
229229
// `spec_version`, and `authoring_version` are the same between Wasm and native.
230230
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
231231
// the compatible custom types.
232-
spec_version: 231,
232+
spec_version: 232,
233233
impl_version: 1,
234234
apis: RUNTIME_API_VERSIONS,
235235
transaction_version: 1,

0 commit comments

Comments
 (0)