Skip to content

Commit

Permalink
Merge pull request #1274 from opentensor/fix/remove-tempo-from-rao-mi…
Browse files Browse the repository at this point in the history
…gration

DefaultMinimumPoolLiquidity and tempos in rao migration
  • Loading branch information
sam0x17 authored Feb 7, 2025
2 parents a30f514 + 4f8d9bb commit de6f5b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ pub mod pallet {
#[pallet::type_value]
/// Default value for minimum liquidity in pool
pub fn DefaultMinimumPoolLiquidity<T: Config>() -> I96F32 {
I96F32::saturating_from_num(1_000_000_000)
I96F32::saturating_from_num(10_000_000)
}

#[pallet::storage]
Expand Down
2 changes: 1 addition & 1 deletion pallets/subtensor/src/migrations/migrate_rao.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub fn migrate_rao<T: Config>() -> Weight {
SubnetAlphaIn::<T>::insert(netuid, pool_initial_tao); // Set initial alpha to pool initial tao.
SubnetAlphaOut::<T>::insert(netuid, 0); // Set zero subnet alpha out.
SubnetMechanism::<T>::insert(netuid, 1); // Convert to dynamic immediately with initialization.
Tempo::<T>::insert(netuid, DefaultTempo::<T>::get());

// Set the token symbol for this subnet using Self instead of Pallet::<T>
TokenSymbol::<T>::insert(netuid, Pallet::<T>::get_symbol_for_subnet(*netuid));
TotalStakeAtDynamic::<T>::insert(netuid, 0);
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 232,
spec_version: 233,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit de6f5b0

Please sign in to comment.