Skip to content

Frontend: Add wallet balance insufficiency guard on deposit form #363

@Junirezz

Description

@Junirezz

Goal

Prevent users from submitting a deposit that exceeds their actual USDC wallet balance.

Scope

• Fetch the connected wallet USDC balance on deposit modal open
• Disable the submit button and show an inline error when the entered amount exceeds balance
• Show a Max button that fills the input with the user's full available balance

Acceptance Criteria

• Submit button is disabled when amount exceeds wallet balance
• Inline error message appears below the amount input
• Max button populates the input with the correct spendable balance

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions