Enhance client dashboard summary: Add pending fiat deposits to the summary metrics and update the model and frontend to display pending deposits, improving visibility of cash awaiting confirmation for DCA processing.
This commit is contained in:
parent
9ea8c37940
commit
e05404fcab
3 changed files with 19 additions and 1 deletions
|
|
@ -11,7 +11,8 @@ class ClientDashboardSummary(BaseModel):
|
|||
"""Summary metrics for client dashboard overview"""
|
||||
user_id: str
|
||||
total_sats_accumulated: int
|
||||
total_fiat_invested: int # In centavos
|
||||
total_fiat_invested: int # Confirmed deposits
|
||||
pending_fiat_deposits: int # Pending deposits awaiting confirmation
|
||||
average_cost_basis: float # Average sats per fiat unit
|
||||
current_fiat_balance: int # Available balance for DCA
|
||||
total_transactions: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue