Skip to content

Conversation

@0xAlunara
Copy link
Collaborator

@0xAlunara 0xAlunara commented Oct 18, 2025

Depends on #1528. This PR can be considered half a PR, because there's some other things I have yet to change in the LargeTokenInput, but I want to keep the PR easier to review and pump something out while I'm off for a week. This component is still in beta only anyway.

PS: I have been unable to test the new inputBalanceUsd stuff, as it relies on a fix in main, but this PR is based off a branch which is based off a branch which is based off an old main 🙂

  1. Remove max button functionality from balance and making it only clickable or not.
  2. Split maxBalance in LargeTokenInput into walletBalance and maxBalance. The wallet ballance really is for showing whatever balance the user has currently in in his wallet, and it's clickable. Max balance has effect on both the slider and chip functionality. These values can differ. You can have 100 crvUSD in your wallet, while max borrow could be for 1337 crvUSD in case you want to borrow more.
  3. Simplifies LargeTokenInput by removing the balanceDecimals property, I don't think it's no longer needed now we NumericTextField handles Decimal numbers only.

@vercel
Copy link

vercel bot commented Oct 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Ready Preview Comment Oct 29, 2025 4:06pm
curve-dapp-storybook Ready Ready Preview Comment Oct 29, 2025 4:06pm

@0xAlunara 0xAlunara changed the title Refactor balance handling in lending and borrowing components feat: split wallet and max balance behavior in new large token inputs Oct 18, 2025
@DanielSchiavini
Copy link
Collaborator

PS: [...] it relies on a fix in main

The PR should be up-to-date now

Base automatically changed from fix/lti-decimals to main October 22, 2025 13:21
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.

3 participants