Skip to content

Commit ec65276

Browse files
committed
Fixed moving_price conversion from I96F32 to float
1 parent 1ed62d3 commit ec65276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor/core/chain_data/dynamic_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _from_dict(cls, decoded: dict) -> "DynamicInfo":
126126
network_registered_at=int(decoded["network_registered_at"]),
127127
subnet_identity=subnet_identity,
128128
subnet_volume=subnet_volume,
129-
moving_price=fixed_to_float(decoded["moving_price"]),
129+
moving_price=fixed_to_float(decoded["moving_price"], 32),
130130
)
131131

132132
def tao_to_alpha(self, tao: Union[Balance, float, int]) -> Balance:

0 commit comments

Comments
 (0)