You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Displayed balance can exceed spendable balance (fractional-cent USD wallets) — manual full-balance sends fail at IBEX #690
The API reports USD cash-wallet balances in fractional cents (e.g. 109.9346 = $1.099346 held at IBEX). The app's balance header rounds for display, so the user sees $1.10 while only $1.099346 is spendable. Anyone who manually types their full displayed balance gets an IBEX rejection:
Found while device-testing the MAX button (#512 / PR #689) — MAX itself now floors to whole minor units, but manual entry still hits this.
Options
Display-floor: show the floored spendable balance ($1.09) everywhere a balance is displayed, so the user can never see a number they can't send.
Clamp typed sends: when the entered amount exceeds spendable but is within a cent of it (i.e. the user clearly meant "everything"), clamp the send to the spendable max with a note.
Both — floor the display and keep a clamp as a belt-and-braces guard.
Option 1 is the simpler and more honest fix; option 2 risks surprising users who typed a deliberate amount.
Activity
fix(amount-input): floor wallet max in exceeded-amount error message