Skip to content

Commit 1e76bf2

Browse files
committed
updates dynamic_info
1 parent c86b030 commit 1e76bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bittensor/core/chain_data/dynamic_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def _from_dict(cls, decoded: dict) -> "DynamicInfo":
7777
price = (
7878
Balance.from_tao(1.0)
7979
if netuid == 0
80-
else Balance.from_tao(tao_in.tao / alpha_in.tao)
80+
else Balance.from_tao(tao_in.tao / alpha_in.tao).set_unit(netuid)
8181
if alpha_in.tao > 0
82-
else Balance.from_tao(1)
82+
else Balance.from_tao(1).set_unit(netuid)
8383
) # Root always has 1-1 price
8484

8585
if decoded.get("subnet_identity"):

0 commit comments

Comments
 (0)