File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
bittensor/core/chain_data Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 10
10
from bittensor .core .chain_data .utils import decode_account_id
11
11
12
12
from bittensor .core .chain_data .subnet_identity import SubnetIdentity
13
- from bittensor .utils .balance import Balance
13
+ from bittensor .utils .balance import Balance , fixed_to_float
14
14
15
15
16
16
@dataclass
@@ -38,6 +38,7 @@ class DynamicInfo(InfoBase):
38
38
network_registered_at : int
39
39
subnet_volume : Balance
40
40
subnet_identity : Optional [SubnetIdentity ]
41
+ moving_price : float
41
42
42
43
@classmethod
43
44
def _from_dict (cls , decoded : dict ) -> "DynamicInfo" :
@@ -120,6 +121,7 @@ def _from_dict(cls, decoded: dict) -> "DynamicInfo":
120
121
network_registered_at = int (decoded ["network_registered_at" ]),
121
122
subnet_identity = subnet_identity ,
122
123
subnet_volume = subnet_volume ,
124
+ moving_price = fixed_to_float (decoded ["moving_price" ]),
123
125
)
124
126
125
127
def tao_to_alpha (self , tao : Union [Balance , float , int ]) -> Balance :
You can’t perform that action at this time.
0 commit comments