File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 42
42
43
43
44
44
Tensor = Union ["torch.nn.Parameter" , NDArray ]
45
+ ROOT_TAO_STAKES_WEIGHT = 0.018
45
46
46
47
47
48
METAGRAPH_STATE_DICT_NDARRAY_KEYS = [
@@ -1619,7 +1620,7 @@ async def _get_all_stakes_from_chain(self):
1619
1620
dtype = self ._dtype_registry ["float32" ],
1620
1621
)
1621
1622
self .tao_stake = self ._create_tensor (
1622
- [b .tao * 0.018 for b in subnet_state .tao_stake ],
1623
+ [b .tao * ROOT_TAO_STAKES_WEIGHT for b in subnet_state .tao_stake ],
1623
1624
dtype = self ._dtype_registry ["float32" ],
1624
1625
)
1625
1626
self .total_stake = self .stake = self ._create_tensor (
@@ -1923,7 +1924,7 @@ def _get_all_stakes_from_chain(self):
1923
1924
dtype = self ._dtype_registry ["float32" ],
1924
1925
)
1925
1926
self .tao_stake = self ._create_tensor (
1926
- [b .tao * 0.018 for b in subnet_state .tao_stake ],
1927
+ [b .tao * ROOT_TAO_STAKES_WEIGHT for b in subnet_state .tao_stake ],
1927
1928
dtype = self ._dtype_registry ["float32" ],
1928
1929
)
1929
1930
self .total_stake = self .stake = self ._create_tensor (
You can’t perform that action at this time.
0 commit comments