Skip to content

Commit 11df0e8

Browse files
authored
Merge pull request #3010 from mcjkula/fix/moving-price-decoding-in-dynamic-info
Fixed `moving_price` conversion from `I96F32` to float
2 parents 1ed62d3 + ec65276 commit 11df0e8

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)