Skip to content

Commit 92a476e

Browse files
committed
Change subnet initial supply fallback value
1 parent 9df0d13 commit 92a476e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pallets/subtensor/src/subnets/subnet.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use frame_support::IterableStorageMap;
33
use sp_core::Get;
44

55
pub(crate) const POOL_INITIAL_TAO: u64 = 100_000_000_000;
6+
pub(crate) const POOL_INITIAL_TAO_FALLBACK: u64 = 500;
67

78
impl<T: Config> Pallet<T> {
89
/// Retrieves the unique identifier (UID) for the root network.
@@ -240,8 +241,8 @@ impl<T: Config> Pallet<T> {
240241
if pool_initial_tao > actual_tao_lock_amount {
241242
pool_initial_tao = actual_tao_lock_amount;
242243
}
243-
if pool_initial_tao < 1 {
244-
pool_initial_tao = 1;
244+
if pool_initial_tao == 0 {
245+
pool_initial_tao = POOL_INITIAL_TAO_FALLBACK;
245246
}
246247
let actual_tao_lock_amount_less_pool_tao =
247248
actual_tao_lock_amount.saturating_sub(pool_initial_tao);

0 commit comments

Comments
 (0)