@@ -542,14 +542,12 @@ async def wallet_balance(
542542
543543 total_free_balance = sum (free_balances .values ())
544544 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 ())
546545
547546 balances = {
548547 name : (
549548 coldkey ,
550549 free_balances [coldkey ],
551550 staked_balances [coldkey ][0 ],
552- staked_balances [coldkey ][1 ],
553551 )
554552 for (name , coldkey ) in zip (wallet_names , coldkeys )
555553 }
@@ -577,24 +575,12 @@ async def wallet_balance(
577575 style = COLOR_PALETTE ["STAKE" ]["STAKE_ALPHA" ],
578576 no_wrap = True ,
579577 ),
580- Column (
581- "[white]Staked (w/slippage)" ,
582- justify = "right" ,
583- style = COLOR_PALETTE ["STAKE" ]["STAKE_SWAP" ],
584- no_wrap = True ,
585- ),
586578 Column (
587579 "[white]Total Balance" ,
588580 justify = "right" ,
589581 style = COLOR_PALETTE ["GENERAL" ]["BALANCE" ],
590582 no_wrap = True ,
591583 ),
592- Column (
593- "[white]Total (w/slippage)" ,
594- justify = "right" ,
595- style = COLOR_PALETTE ["GENERAL" ]["BALANCE" ],
596- no_wrap = True ,
597- ),
598584 title = f"\n [{ COLOR_PALETTE ['GENERAL' ]['HEADER' ]} ]Wallet Coldkey Balance[/{ COLOR_PALETTE ['GENERAL' ]['HEADER' ]} ]\n [{ COLOR_PALETTE ['GENERAL' ]['HEADER' ]} ]Network: { subtensor .network } \n " ,
599585 show_footer = True ,
600586 show_edge = False ,
@@ -605,25 +591,21 @@ async def wallet_balance(
605591 leading = True ,
606592 )
607593
608- for name , (coldkey , free , staked , staked_slippage ) in balances .items ():
594+ for name , (coldkey , free , staked ) in balances .items ():
609595 table .add_row (
610596 name ,
611597 coldkey ,
612598 str (free ),
613599 str (staked ),
614- str (staked_slippage ),
615600 str (free + staked ),
616- str (free + staked_slippage ),
617601 )
618602 table .add_row ()
619603 table .add_row (
620604 "Total Balance" ,
621605 "" ,
622606 str (total_free_balance ),
623607 str (total_staked_balance ),
624- str (total_staked_with_slippage ),
625608 str (total_free_balance + total_staked_balance ),
626- str (total_free_balance + total_staked_with_slippage ),
627609 )
628610 console .print (Padding (table , (0 , 0 , 0 , 4 )))
629611 await subtensor .substrate .close ()
@@ -633,9 +615,7 @@ async def wallet_balance(
633615 "coldkey" : value [0 ],
634616 "free" : value [1 ].tao ,
635617 "staked" : value [2 ].tao ,
636- "staked_with_slippage" : value [3 ].tao ,
637618 "total" : (value [1 ] + value [2 ]).tao ,
638- "total_with_slippage" : (value [1 ] + value [3 ]).tao ,
639619 }
640620 for (key , value ) in balances .items ()
641621 }
@@ -644,11 +624,7 @@ async def wallet_balance(
644624 "totals" : {
645625 "free" : total_free_balance .tao ,
646626 "staked" : total_staked_balance .tao ,
647- "staked_with_slippage" : total_staked_with_slippage .tao ,
648627 "total" : (total_free_balance + total_staked_balance ).tao ,
649- "total_with_slippage" : (
650- total_free_balance + total_staked_with_slippage
651- ).tao ,
652628 },
653629 }
654630 json_console .print (json .dumps (output_dict ))
0 commit comments