Skip to content

Commit 375e6aa

Browse files
committed
add back ema to subnet show
1 parent 145cede commit 375e6aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,7 @@ async def show_subnet(
11801180
old_identities,
11811181
current_burn_cost,
11821182
root_claim_types,
1183+
ema_tao_inflow,
11831184
) = await asyncio.gather(
11841185
subtensor.subnet(netuid=netuid_, block_hash=block_hash),
11851186
subtensor.query_all_identities(block_hash=block_hash),
@@ -1188,6 +1189,9 @@ async def show_subnet(
11881189
param_name="Burn", netuid=netuid_, block_hash=block_hash
11891190
),
11901191
subtensor.get_all_coldkeys_claim_type(block_hash=block_hash),
1192+
subtensor.get_subnet_ema_tao_inflow(
1193+
netuid=netuid_, block_hash=block_hash
1194+
),
11911195
)
11921196

11931197
selected_mechanism_id = mechanism_id or 0
@@ -1486,6 +1490,7 @@ async def show_subnet(
14861490
f"{total_mech_line}"
14871491
f"\n Owner: [{COLOR_PALETTE['GENERAL']['COLDKEY']}]{subnet_info.owner_coldkey}{' (' + owner_identity + ')' if owner_identity else ''}[/{COLOR_PALETTE['GENERAL']['COLDKEY']}]"
14881492
f"\n Rate: [{COLOR_PALETTE['GENERAL']['HOTKEY']}]{subnet_info.price.tao:.4f} τ/{subnet_info.symbol}[/{COLOR_PALETTE['GENERAL']['HOTKEY']}]"
1493+
f"\n EMA TAO Inflow: [{COLOR_PALETTE['STAKE']['TAO']}{ema_tao_inflow.tao}[/{COLOR_PALETTE['STAKE']['TAO']}]"
14891494
f"\n Emission: [{COLOR_PALETTE['GENERAL']['HOTKEY']}{subnet_info.emission.tao:,.4f}[/{COLOR_PALETTE['GENERAL']['HOTKEY']}]"
14901495
f"\n TAO Pool: [{COLOR_PALETTE['POOLS']['ALPHA_IN']}{tao_pool}[/{COLOR_PALETTE['POOLS']['ALPHA_IN']}]"
14911496
f"\n Alpha Pool: [{COLOR_PALETTE['POOLS']['ALPHA_IN']}]{alpha_pool} {subnet_info.symbol}[/{COLOR_PALETTE['POOLS']['ALPHA_IN']}]"

0 commit comments

Comments
 (0)