@@ -1829,9 +1829,9 @@ def __init__(self, agent: Agent, current_policy: Optional[SpendPolicy] = None, p
18291829 daily = limits .get ('dailyLimit' ) or 0
18301830 per_req = limits .get ('perRequestMax' ) or 0
18311831 auto = limits .get ('autoApproveBelow' ) # Can be None for manual-only
1832- auth_layout .addRow ("Daily Limit:" , QLabel (f"$ { daily / divisor :.2f } { currency } " ))
1833- auth_layout .addRow ("Per Request Max:" , QLabel (f"$ { per_req / divisor :.2f } { currency } " ))
1834- auto_text = f"$ { auto / divisor :.2f } { currency } " if auto is not None else "Manual only"
1832+ auth_layout .addRow ("Daily Limit:" , QLabel (f"{ daily / divisor :.6f } { currency } " ))
1833+ auth_layout .addRow ("Per Request Max:" , QLabel (f"{ per_req / divisor :.6f } { currency } " ))
1834+ auto_text = f"{ auto / divisor :.6f } { currency } " if auto is not None else "Manual only"
18351835 auth_layout .addRow ("Auto-approve Below:" , QLabel (auto_text ))
18361836
18371837 networks = auth .get ('networks' , [])
@@ -2301,7 +2301,7 @@ def __init__(
23012301 addr_label .setTextInteractionFlags (Qt .TextInteractionFlag .TextSelectableByMouse )
23022302 source_layout .addRow ("Address:" , addr_label )
23032303
2304- balance_label = QLabel (f"$ { balance :.2f } USDC" )
2304+ balance_label = QLabel (f"{ balance :.6f } USDC" )
23052305 balance_label .setStyleSheet ("font-weight: bold;" )
23062306 source_layout .addRow ("Balance:" , balance_label )
23072307
@@ -2429,7 +2429,7 @@ def _execute_withdraw(self):
24292429 confirm = QMessageBox .question (
24302430 self ,
24312431 "Confirm Transfer" ,
2432- f"Send $ { amount :.2f } USDC to:\n \n "
2432+ f"Send { amount :.6f } USDC to:\n \n "
24332433 f"{ dest [:20 ]} ...{ dest [- 8 :]} \n \n "
24342434 "This will use gas from the source wallet.\n "
24352435 "Continue?" ,
@@ -2539,7 +2539,7 @@ def _execute_withdraw(self):
25392539 self ,
25402540 "Transaction Sent" ,
25412541 f"USDC transfer submitted!\n \n "
2542- f"Amount: $ { amount :.2f } USDC\n "
2542+ f"Amount: { amount :.6f } USDC\n "
25432543 f"To: { dest [:16 ]} ...{ dest [- 8 :]} \n \n "
25442544 f"Transaction: { tx_hash_hex [:16 ]} ...\n \n "
25452545 f"View on explorer:\n { explorer_url } "
@@ -2656,7 +2656,7 @@ def _setup_ui(self):
26562656
26572657 btn_row .addStretch ()
26582658
2659- self .total_label = QLabel ("Selected: $0.00 USDC" )
2659+ self .total_label = QLabel ("Selected: 0.000000 USDC" )
26602660 self .total_label .setStyleSheet (f"font-weight: bold; color: { Theme .LIME_DIM } ;" )
26612661 btn_row .addWidget (self .total_label )
26622662
@@ -2773,10 +2773,10 @@ def _refresh_balances(self):
27732773
27742774 # Donor list - show name + USDC balance or "--" if failed
27752775 if usdc_failed :
2776- item = QListWidgetItem (f"{ short_addr } { name_display } $ -- USDC (RPC error)" )
2776+ item = QListWidgetItem (f"{ short_addr } { name_display } -- USDC (RPC error)" )
27772777 item .setForeground (Qt .GlobalColor .red )
27782778 else :
2779- item = QListWidgetItem (f"{ short_addr } { name_display } $ { usdc_bal :.6f} USDC" )
2779+ item = QListWidgetItem (f"{ short_addr } { name_display } { usdc_bal :.6f} USDC" )
27802780 # Gray out if confirmed zero
27812781 if usdc_bal == 0 :
27822782 item .setForeground (Qt .GlobalColor .gray )
@@ -2802,7 +2802,7 @@ def _refresh_balances(self):
28022802 'usdc_failed' : True ,
28032803 }
28042804 # Add to donor list with error indicator
2805- item = QListWidgetItem (f"{ short_addr } { name_display } $ -- USDC (RPC error)" )
2805+ item = QListWidgetItem (f"{ short_addr } { name_display } -- USDC (RPC error)" )
28062806 item .setData (Qt .ItemDataRole .UserRole , address )
28072807 item .setFlags (item .flags () | Qt .ItemFlag .ItemIsUserCheckable )
28082808 item .setCheckState (Qt .CheckState .Unchecked )
@@ -2860,8 +2860,8 @@ def _update_totals(self):
28602860 total += self ._balances [addr ]['usdc' ]
28612861 count += 1
28622862
2863- self .total_label .setText (f"Selected: { count } addresses, $ { total :.6f} USDC" )
2864- self .sweep_btn .setText (f"Sweep $ { total :.2f } USDC" )
2863+ self .total_label .setText (f"Selected: { count } addresses, { total :.6f} USDC" )
2864+ self .sweep_btn .setText (f"Sweep { total :.6f } USDC" )
28652865 self .sweep_btn .setEnabled (count > 0 and total > 0 )
28662866
28672867 def _get_selected_donors (self ) -> list :
@@ -2914,7 +2914,7 @@ def _execute_sweep(self):
29142914 confirm = QMessageBox .question (
29152915 self ,
29162916 "Confirm Sweep" ,
2917- f"Sweep $ { total_usdc :.6f} USDC from { len (donors )} address(es)\n \n "
2917+ f"Sweep { total_usdc :.6f} USDC from { len (donors )} address(es)\n \n "
29182918 f"To: { recipient_addr [:16 ]} ...{ recipient_addr [- 8 :]} \n "
29192919 f"Gas paid by: { sponsor_addr [:16 ]} ...{ sponsor_addr [- 8 :]} \n \n "
29202920 "This will execute multiple transactions. Continue?" ,
0 commit comments