feat: shared non-Yield+ groundwork#5502
feat: shared non-Yield+ groundwork#5502therealemjy wants to merge 1 commit intofeat/yield-plus-pr01-query-clientfrom
Conversation
🦋 Changeset detectedLatest commit: 738e712 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcb4bad to
67ccafe
Compare
15cae43 to
8540c92
Compare
67ccafe to
91ec505
Compare
8540c92 to
738e712
Compare
|
@greptile |
Greptile SummaryThis PR extracts shared UI building blocks ( Confidence Score: 4/5Two real defects worth addressing before merge: silent skip of swap/health-factor validations when all mutations are VAI, and a potential runtime crash in calculateUserMaxBorrowTokens when borrowCapTokens is undefined. The PR is a well-structured refactoring that correctly extracts shared components and moves types to global scope. However, widening useCommonValidation's input type from AssetBalanceMutation[] to BalanceMutation[] introduces a latent P1 defect where pool-level swap/health-factor validations are silently bypassed when all mutations are VAI type. Additionally, calculateUserMaxBorrowTokens calls .minus() on borrowCapTokens without a null guard, which is a crash risk on markets without a borrow cap. apps/evm/src/hooks/useCommonValidation/index.ts and apps/evm/src/utilities/calculateUserMaxBorrowTokens/index.tsx Important Files Changed
|
|
|
Jira ticket(s)
VPD-634
VPD-632
VPD-629
VPD-640
VPD-633
VPD-638
VPD-637
VPD-643
VPD-635
VPD-639
Changes