File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
pallets/subtensor/src/subnets Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use frame_support::IterableStorageMap;
3
3
use sp_core:: Get ;
4
4
5
5
pub ( crate ) const POOL_INITIAL_TAO : u64 = 100_000_000_000 ;
6
+ pub ( crate ) const POOL_INITIAL_TAO_FALLBACK : u64 = 500 ;
6
7
7
8
impl < T : Config > Pallet < T > {
8
9
/// Retrieves the unique identifier (UID) for the root network.
@@ -240,8 +241,8 @@ impl<T: Config> Pallet<T> {
240
241
if pool_initial_tao > actual_tao_lock_amount {
241
242
pool_initial_tao = actual_tao_lock_amount;
242
243
}
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 ;
245
246
}
246
247
let actual_tao_lock_amount_less_pool_tao =
247
248
actual_tao_lock_amount. saturating_sub ( pool_initial_tao) ;
You can’t perform that action at this time.
0 commit comments