Skip to content

Conversation

@0xPearce
Copy link
Collaborator

  • update the add collateral form to match the design
  • added collateral, prevCollateral, prevHealth, prevDebt and prevLTV to the accordion
  • added input and balance in USD
Empty With User Value
Screenshot 2025-11-28 at 19 34 32 Screenshot 2025-11-28 at 19 34 46

@vercel
Copy link

vercel bot commented Nov 28, 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 Nov 28, 2025 6:36pm
curve-dapp-storybook Ready Ready Preview Comment Nov 28, 2025 6:36pm

[collateralToken?.symbol, userState, values.userCollateral],
)
const marketRates = useMarketRates(params, isOpen)
const loanToValue = useLoanToValueFromUserState({
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be moved to the useAddCollateralForm as well

gas: Query<LoanInfoGasData | null>
debt?: Query<Decimal | null> & { tokenSymbol: string }
prevDebt?: Query<Decimal | null>
debt?: Query<Decimal | null> & { tokenSymbol?: string }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I preferred to separate debt and collateral instead of using userState for more granularity and to correctly display the "previous → current" values

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.

2 participants