@@ -542,14 +542,12 @@ async def wallet_balance(
542
542
543
543
total_free_balance = sum (free_balances .values ())
544
544
total_staked_balance = sum (stake [0 ] for stake in staked_balances .values ())
545
- total_staked_with_slippage = sum (stake [1 ] for stake in staked_balances .values ())
546
545
547
546
balances = {
548
547
name : (
549
548
coldkey ,
550
549
free_balances [coldkey ],
551
550
staked_balances [coldkey ][0 ],
552
- staked_balances [coldkey ][1 ],
553
551
)
554
552
for (name , coldkey ) in zip (wallet_names , coldkeys )
555
553
}
@@ -577,24 +575,12 @@ async def wallet_balance(
577
575
style = COLOR_PALETTE ["STAKE" ]["STAKE_ALPHA" ],
578
576
no_wrap = True ,
579
577
),
580
- Column (
581
- "[white]Staked (w/slippage)" ,
582
- justify = "right" ,
583
- style = COLOR_PALETTE ["STAKE" ]["STAKE_SWAP" ],
584
- no_wrap = True ,
585
- ),
586
578
Column (
587
579
"[white]Total Balance" ,
588
580
justify = "right" ,
589
581
style = COLOR_PALETTE ["GENERAL" ]["BALANCE" ],
590
582
no_wrap = True ,
591
583
),
592
- Column (
593
- "[white]Total (w/slippage)" ,
594
- justify = "right" ,
595
- style = COLOR_PALETTE ["GENERAL" ]["BALANCE" ],
596
- no_wrap = True ,
597
- ),
598
584
title = f"\n [{ COLOR_PALETTE ['GENERAL' ]['HEADER' ]} ]Wallet Coldkey Balance[/{ COLOR_PALETTE ['GENERAL' ]['HEADER' ]} ]\n [{ COLOR_PALETTE ['GENERAL' ]['HEADER' ]} ]Network: { subtensor .network } \n " ,
599
585
show_footer = True ,
600
586
show_edge = False ,
@@ -605,25 +591,21 @@ async def wallet_balance(
605
591
leading = True ,
606
592
)
607
593
608
- for name , (coldkey , free , staked , staked_slippage ) in balances .items ():
594
+ for name , (coldkey , free , staked ) in balances .items ():
609
595
table .add_row (
610
596
name ,
611
597
coldkey ,
612
598
str (free ),
613
599
str (staked ),
614
- str (staked_slippage ),
615
600
str (free + staked ),
616
- str (free + staked_slippage ),
617
601
)
618
602
table .add_row ()
619
603
table .add_row (
620
604
"Total Balance" ,
621
605
"" ,
622
606
str (total_free_balance ),
623
607
str (total_staked_balance ),
624
- str (total_staked_with_slippage ),
625
608
str (total_free_balance + total_staked_balance ),
626
- str (total_free_balance + total_staked_with_slippage ),
627
609
)
628
610
console .print (Padding (table , (0 , 0 , 0 , 4 )))
629
611
await subtensor .substrate .close ()
@@ -633,9 +615,7 @@ async def wallet_balance(
633
615
"coldkey" : value [0 ],
634
616
"free" : value [1 ].tao ,
635
617
"staked" : value [2 ].tao ,
636
- "staked_with_slippage" : value [3 ].tao ,
637
618
"total" : (value [1 ] + value [2 ]).tao ,
638
- "total_with_slippage" : (value [1 ] + value [3 ]).tao ,
639
619
}
640
620
for (key , value ) in balances .items ()
641
621
}
@@ -644,11 +624,7 @@ async def wallet_balance(
644
624
"totals" : {
645
625
"free" : total_free_balance .tao ,
646
626
"staked" : total_staked_balance .tao ,
647
- "staked_with_slippage" : total_staked_with_slippage .tao ,
648
627
"total" : (total_free_balance + total_staked_balance ).tao ,
649
- "total_with_slippage" : (
650
- total_free_balance + total_staked_with_slippage
651
- ).tao ,
652
628
},
653
629
}
654
630
json_console .print (json .dumps (output_dict ))
0 commit comments