Skip to content

Add mobile lending amount validation#145

Closed
qingfeng312 wants to merge 1 commit into
Zyntarivoid:mainfrom
qingfeng312:codex/mobile-amount-validation-58-20260623050507
Closed

Add mobile lending amount validation#145
qingfeng312 wants to merge 1 commit into
Zyntarivoid:mainfrom
qingfeng312:codex/mobile-amount-validation-58-20260623050507

Conversation

@qingfeng312

Copy link
Copy Markdown

Closes #58

Summary

  • Add a shared mobile amount validator for lending protocol actions.
  • Block empty, non-numeric, zero, negative, over-balance, over-limit, and over-debt submissions before they reach the API.
  • Show short inline warnings/errors in the deposit, borrow, and repay modals for small screens.

Validation

  • npx tsc --noEmit
  • npx prettier --write src/utils/amountValidation.ts src/screens/DepositScreen.tsx src/screens/BorrowScreen.tsx src/screens/RepayScreen.tsx
  • npx tsc --noEmit

Payout: Base USDC 0xe87b4889baeee4ed60a1b2bfc7b3a6a17bce4ad6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve deposit, borrow, and repay form validation

2 participants