Skip to content

“Insufficient Balance” validation before donation → fails during processing #206

@maryjaf

Description

@maryjaf

I have USDC balance (below pics), and when I tap on donate the insufficient balance isn't shown, but during processing donation I see a balance error.

Steps to Reproduce

  1. Connect wallet (MetaMask)
  2. Have balance in USD Coin (PoS) (e.g. ~25 USDC)
  3. Go to QF cart
  4. Select USDC.e as donation token
  5. Enter donation amount (e.g. 0.00001)
  6. Click Donate
  7. Confirm transaction

Actual Result
No warning or validation is shown before transaction
Donation proceeds to processing state
Then fails with:
Error: ERC20: transfer amount exceeds balance
UI shows: Donation failed

Expected Result
Before transaction:
User should see “Insufficient balance” if they don’t have the selected token

Screenshots

Image Image Image

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions