Skip to content

Commit e3635ff

Browse files
authored
use correct min burn init (#1265)
* use correct min brun init * fmt * no into * no into 2 * bump spec
1 parent e9b8628 commit e3635ff

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

pallets/subtensor/src/migrations/migrate_set_min_burn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use frame_support::{traits::Get, weights::Weight};
66
use super::*;
77

88
pub fn migrate_set_min_burn<T: Config>() -> Weight {
9-
let migration_name = b"migrate_set_min_burn".to_vec();
9+
let migration_name = b"migrate_set_min_burn_1".to_vec();
1010

1111
// Initialize the weight with one read operation.
1212
let mut weight = T::DbWeight::get().reads(1);

pallets/subtensor/src/rpc_info/dynamic_info.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ pub struct DynamicInfo<AccountId: TypeInfo + Encode + Decode> {
2929
network_registered_at: Compact<u64>,
3030
subnet_identity: Option<SubnetIdentityV2>,
3131
moving_price: I96F32,
32-
3332
}
3433

3534
impl<T: Config> Pallet<T> {
@@ -67,7 +66,7 @@ impl<T: Config> Pallet<T> {
6766
subnet_volume: SubnetVolume::<T>::get(netuid).into(),
6867
network_registered_at: NetworkRegisteredAt::<T>::get(netuid).into(),
6968
subnet_identity: SubnetIdentitiesV2::<T>::get(netuid),
70-
moving_price: SubnetMovingPrice::<T>::get( netuid ).into(),
69+
moving_price: SubnetMovingPrice::<T>::get(netuid),
7170
})
7271
}
7372
pub fn get_all_dynamic_info() -> Vec<Option<DynamicInfo<T::AccountId>>> {

pallets/subtensor/src/rpc_info/metagraph.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct Metagraph<AccountId: TypeInfo + Encode + Decode> {
4040
pending_alpha_emission: Compact<u64>, // pending alpha to be distributed
4141
pending_root_emission: Compact<u64>, // panding tao for root divs to be distributed
4242
subnet_volume: Compact<u128>, // volume of the subnet in TAO
43-
moving_price: I96F32, // subnet moving price.
43+
moving_price: I96F32, // subnet moving price.
4444

4545
// Hparams for epoch
4646
rho: Compact<u16>, // subnet rho param
@@ -183,7 +183,7 @@ impl<T: Config> Pallet<T> {
183183
pending_alpha_emission: PendingEmission::<T>::get(netuid).into(), // pending alpha to be distributed
184184
pending_root_emission: PendingRootDivs::<T>::get(netuid).into(), // panding tao for root divs to be distributed
185185
subnet_volume: subnet_volume.into(),
186-
moving_price: SubnetMovingPrice::<T>::get(netuid).into(),
186+
moving_price: SubnetMovingPrice::<T>::get(netuid),
187187

188188
// Hparams for epoch
189189
rho: Self::get_rho(netuid).into(), // subnet rho param

runtime/src/lib.rs

+2-2
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: 229,
232+
spec_version: 230,
233233
impl_version: 1,
234234
apis: RUNTIME_API_VERSIONS,
235235
transaction_version: 1,
@@ -1031,7 +1031,7 @@ parameter_types! {
10311031
pub const SubtensorInitialMaxDifficulty: u64 = u64::MAX / 4;
10321032
pub const SubtensorInitialServingRateLimit: u64 = 50;
10331033
pub const SubtensorInitialBurn: u64 = 1_000_000_000; // 1 tao
1034-
pub const SubtensorInitialMinBurn: u64 = 1_000_000_000; // 1 tao
1034+
pub const SubtensorInitialMinBurn: u64 = 500_000; // 500k RAO
10351035
pub const SubtensorInitialMaxBurn: u64 = 100_000_000_000; // 100 tao
10361036
pub const SubtensorInitialTxRateLimit: u64 = 1000;
10371037
pub const SubtensorInitialTxDelegateTakeRateLimit: u64 = 216000; // 30 days at 12 seconds per block

0 commit comments

Comments
 (0)