Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ export class BalanceMonitor {
}

/**
* Format USDC amount (in micros) as "$X.XX".
* Format USDC amount (in micros) as "$X.XXXX".
* Uses 4 decimal places for consistency with stats display.
*/
formatUSDC(amountMicros: bigint): string {
// USDC has 6 decimals
const dollars = Number(amountMicros) / 1_000_000;
return `$${dollars.toFixed(2)}`;
return `$${dollars.toFixed(4)}`;
}

/**
Expand Down