Skip to content

Commit 6b16a90

Browse files
committed
update ema calls
1 parent fb9ed9b commit 6b16a90

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bittensor_cli/src/bittensor/subtensor_interface.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,8 +2409,7 @@ async def get_all_subnet_ema_tao_inflow(
24092409
ema_map[netuid] = Balance.from_rao(0)
24102410
else:
24112411
_, raw_ema_value = value
2412-
ema_value = fixed_to_float(raw_ema_value)
2413-
# TODO @abe is this intentional: float passed as int for from_rao
2412+
ema_value = int(fixed_to_float(raw_ema_value))
24142413
ema_map[netuid] = Balance.from_rao(ema_value)
24152414
return ema_map
24162415

@@ -2441,8 +2440,7 @@ async def get_subnet_ema_tao_inflow(
24412440
if not value:
24422441
return Balance.from_rao(0)
24432442
_, raw_ema_value = value
2444-
ema_value = fixed_to_float(raw_ema_value)
2445-
# TODO @abe this is a float, but we're passing it as an int for from_rao, is this intentional?
2443+
ema_value = int(fixed_to_float(raw_ema_value))
24462444
return Balance.from_rao(ema_value)
24472445

24482446
async def get_mev_shield_next_key(

0 commit comments

Comments
 (0)