Skip to content

Conversation

@therealemjy
Copy link
Member

@therealemjy therealemjy commented Dec 30, 2025

Changes

evm app

  • add high price impact acknowledgement to Boost form
  • fix issue with supply cap being incorrectly validated during "Repay with collateral" flow

@changeset-bot
Copy link

changeset-bot bot commented Dec 30, 2025

🦋 Changeset detected

Latest commit: 41c8bc4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@venusprotocol/evm Minor

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

@vercel
Copy link

vercel bot commented Dec 30, 2025

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

Project Deployment Review Updated (UTC)
app.venus.io Ready Ready Preview Jan 5, 2026 2:53pm
dapp-preview Ready Ready Preview Jan 5, 2026 2:53pm
dapp-testnet Ready Ready Preview Jan 5, 2026 2:53pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
venus.io Skipped Skipped Jan 5, 2026 2:53pm

@github-actions
Copy link
Contributor

github-actions bot commented Dec 30, 2025

Coverage Report for ./apps/evm

Status Category Percentage Covered / Total
🔵 Lines 79.75% 34540 / 43308
🔵 Statements 79.75% 34540 / 43308
🔵 Functions 62.68% 583 / 930
🔵 Branches 72.89% 4228 / 5800
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/evm/src/clients/api/queries/getSwapQuote/useGetSwapQuote.ts 0% 0% 0% 0% 1-52
apps/evm/src/components/index.ts 100% 100% 100% 100%
apps/evm/src/components/AcknowledgementToggle/index.tsx 100% 0% 100% 100%
apps/evm/src/components/BalanceUpdates/index.tsx 100% 87.5% 100% 100%
apps/evm/src/components/ValueUpdate/index.tsx 100% 0% 100% 100%
apps/evm/src/constants/swap.ts 100% 0% 100% 100%
apps/evm/src/pages/Bridge/index.tsx 91.88% 84.28% 81.81% 91.88% 79, 134-135, 166-168, 174-186, 212-214, 240-242, 249-251, 281, 344-346
apps/evm/src/pages/Market/OperationForm/BoostForm/index.tsx 94.4% 91.56% 76.92% 94.4% 148-151, 271-281, 312-321
apps/evm/src/pages/Market/OperationForm/BoostForm/SubmitSection/index.tsx 100% 77.77% 0% 100%
apps/evm/src/pages/Market/OperationForm/BoostForm/useForm/index.tsx 90% 50% 100% 90% 1, 75-79
apps/evm/src/pages/Market/OperationForm/BoostForm/useForm/useFormValidation.ts 99.46% 96.55% 100% 99.46% 1
apps/evm/src/pages/Market/OperationForm/BorrowForm/index.tsx 93.64% 88.33% 80% 93.64% 87-92, 235-251, 472
apps/evm/src/pages/Market/OperationForm/Repay/index.tsx 100% 100% 100% 100%
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithCollateralForm/index.tsx 96.52% 93.54% 90% 96.52% 163-166, 298-308, 377
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithCollateralForm/SubmitSection/index.tsx 100% 77.77% 0% 100%
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithCollateralForm/useForm/index.tsx 93.97% 84.21% 100% 93.97% 1, 112-116
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithCollateralForm/useForm/useFormValidation.ts 99.07% 96.55% 100% 99.07% 1
apps/evm/src/pages/Market/OperationForm/WithdrawForm/index.tsx 92.87% 89.85% 88.88% 92.87% 82-85, 160, 249-265, 289, 468-473
apps/evm/src/pages/Vai/Borrow/index.tsx 95.29% 86.27% 100% 95.29% 63, 86-87, 102, 112, 214-218, 235-236
Generated in workflow #12160 for commit 41c8bc4 by the Vitest Coverage Report Action

@vercel vercel bot temporarily deployed to Preview – venus.io December 31, 2025 07:40 Inactive
@vercel vercel bot temporarily deployed to Preview – venus.io December 31, 2025 10:04 Inactive
@vercel vercel bot temporarily deployed to Preview – venus.io December 31, 2025 10:46 Inactive
@vercel vercel bot temporarily deployed to Preview – venus.io December 31, 2025 10:58 Inactive
@vercel vercel bot temporarily deployed to Preview – venus.io December 31, 2025 11:06 Inactive
@vercel vercel bot temporarily deployed to Preview – venus.io December 31, 2025 12:54 Inactive
@therealemjy therealemjy force-pushed the feat/price-impact-risk branch from 6124e25 to bf1269e Compare December 31, 2025 12:56
david-sun-venus and others added 7 commits January 5, 2026 11:36
* build(evm,ui): upgrade tailwind to v4, update mui theme

* refactor(evm): tailwind v4 classNames migration (perf by upgrade tool)

* refactor(evm): unnecessary className changes done by upgrade tool

* build: update yarn lock

* fix(evm): modify unichain-theme class in html tag

* fix(evm,ui): update configs and fix ui glitches, revert unnecessary className changes

* refactor(landing,ui): upgrade tailwind to v4 in landing app

* feat: add pointer to buttons + refactor Delimiter

* style(landing): fix style differences, remove normalize.css

* build(none): update yarn.lock and changeset

* build(evm,landing): fix cicd check/lint errors

* fix: opacity class + add chain ID to transaction history

---------

Co-authored-by: therealemjy <maxime.julian.creations@gmail.com>
refactor: always show user assets only filter
@therealemjy therealemjy force-pushed the feat/price-impact-risk branch from 1e18c49 to 78a3d0e Compare January 5, 2026 10:36
Comment on lines +43 to +47
const hasCollateral = pool.assets.some(
asset =>
// Skip vBNB && Skip tokens for which user has no supply
asset.vToken.symbol !== 'vBNB' && asset.userSupplyBalanceCents.isGreaterThan(0),
);
Copy link
Member Author

Choose a reason for hiding this comment

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

There's no need to filter vBNB out, we already do that line 25 because the repayWithCollateral token action is disabled for vBNB. Also, it's not just the user supply balance of the asset that needs to be checked, but rather the borrow limit of the user within that pool (other assets can contribute towards the borrow limit of the user is they have enabled them as collateral).

The check should be:

const hasCollateral = pool.userBorrowLimitCents?.isGreaterThan(0);

content: hasCollateral ? (
<RepayWithCollateralForm pool={pool} asset={asset} />
) : (
<DisabledActionNotice token={asset.vToken.underlyingToken} action={'repay'} />
Copy link
Member Author

Choose a reason for hiding this comment

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

The action isn't disabled, instead it's a warning with the message I gave you in DM that we should display ("You do not have any collateral to repay with"):

 <NoticeWarning
    description={t('operationForm.repayTab.warning.noCollateral')}
 />

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