Skip to content

feat: wire up Boost tab#5044

Merged
therealemjy merged 1 commit into
mainfrom
feat/wire-up-boost-tab
Dec 5, 2025
Merged

feat: wire up Boost tab#5044
therealemjy merged 1 commit into
mainfrom
feat/wire-up-boost-tab

Conversation

@therealemjy
Copy link
Copy Markdown
Member

@therealemjy therealemjy commented Nov 18, 2025

Jira ticket(s)

VPD-216

Changes

evm app

  • add getSwapQuote query function
  • add useOpenLeveragedPosition mutation hook
  • update getSimulatedPool query function to add support for simulating an asset being enabled as collateral
  • update style of TextField component to match updated designs
  • add useGetUserSlippageTolerance hook
  • wire up Boost form with API and contracts. Note that the end-to-end flow cannot be tested with this pull request yet. This will be doable in a next PR that will also include the "repay with collateral" flow (I'm trying to merge the code with main in big blocks rather than all at once).

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 18, 2025

🦋 Changeset detected

Latest commit: ff4fb1c

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
Copy Markdown

vercel Bot commented Nov 18, 2025

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

Project Deployment Preview Updated (UTC)
app.venus.io Ready Ready Preview Dec 2, 2025 11:15am
dapp-preview Ready Ready Preview Dec 2, 2025 11:15am
dapp-testnet Ready Ready Preview Dec 2, 2025 11:15am
venus.io Ready Ready Preview Dec 2, 2025 11:15am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 18, 2025

Coverage Report for ./apps/evm

Status Category Percentage Covered / Total
🔵 Lines 78.44% 33466 / 42661
🔵 Statements 78.44% 33466 / 42661
🔵 Functions 61.88% 565 / 913
🔵 Branches 72.31% 4044 / 5592
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/evm/src/clients/api/index.ts 0% 0% 0% 0% 1-232
apps/evm/src/clients/api/mutations/useOpenLeveragedPosition/index.tsx 97.77% 80% 100% 97.77% 3
apps/evm/src/clients/api/queries/getSimulatedPool/index.ts 99.43% 89.74% 100% 99.43% 1
apps/evm/src/clients/api/queries/getSwapQuote/index.ts 98.55% 90.9% 100% 98.55% 1
apps/evm/src/clients/api/queries/getSwapQuote/useGetSwapQuote.ts 0% 0% 0% 0% 1-51
apps/evm/src/clients/api/queries/getSwapQuote/formatSwapQuote/index.ts 98.3% 66.66% 100% 98.3% 9
apps/evm/src/clients/api/queries/getSwapQuote/formatSwapQuote/subtractSlippagePercentage/index.ts 83.33% 0% 100% 83.33% 1
apps/evm/src/components/TextField/index.tsx 96.51% 88.46% 100% 96.51% 47-50, 78
apps/evm/src/constants/functionKey.ts 100% 50% 100% 100%
apps/evm/src/containers/SwapDetails/index.tsx 100% 90% 100% 100%
apps/evm/src/hooks/useDelegateApproval/index.ts 85.36% 75% 50% 85.36% 1, 35-38, 54
apps/evm/src/hooks/useGetUserSlippageTolerance/index.tsx 90.9% 66.66% 100% 90.9% 1
apps/evm/src/hooks/useIsFeatureEnabled/index.tsx 99.32% 0% 100% 99.32% 1
apps/evm/src/hooks/useSendTransaction/index.ts 90.56% 80% 50% 90.56% 5, 126-129, 161, 169, 195-197
apps/evm/src/libs/contracts/config/index.ts 0% 0% 0% 0% 1-882
apps/evm/src/libs/errors/VError.ts 100% 0% 100% 100%
apps/evm/src/libs/errors/swapQuoteErrorPhrases.ts 0% 0% 0% 0% 1-5
apps/evm/src/pages/Market/OperationForm/index.tsx 86.48% 25% 25% 86.48% 97-116
apps/evm/src/pages/Market/OperationForm/BoostForm/index.tsx 93.53% 88.4% 72.72% 93.53% 77, 140-143, 256-266, 290-299
apps/evm/src/pages/Market/OperationForm/BoostForm/testIds.ts 100% 0% 100% 100%
apps/evm/src/pages/Market/OperationForm/BoostForm/SelectTokenField/index.tsx 100% 80% 100% 100%
apps/evm/src/pages/Market/OperationForm/BoostForm/SubmitSection/index.tsx 100% 71.42% 0% 100%
apps/evm/src/pages/Market/OperationForm/BoostForm/TokenSelectField/index.tsx 0% 0% 0% 0% 1-46
apps/evm/src/pages/Market/OperationForm/BoostForm/useForm/index.tsx 89.58% 50% 100% 89.58% 1, 72-76
apps/evm/src/pages/Market/OperationForm/BoostForm/useForm/useFormValidation.ts 95.88% 94.11% 100% 95.88% 1, 190-195
apps/evm/src/pages/Market/OperationForm/BorrowForm/index.tsx 92.56% 88.33% 80% 92.56% 87-92, 235-251, 278-281, 474
apps/evm/src/pages/Market/OperationForm/BorrowForm/useForm/index.tsx 87.5% 50% 100% 87.5% 1, 87-95
apps/evm/src/pages/Market/OperationForm/RepayForm/useForm/index.tsx 94.95% 80% 100% 94.95% 1, 117-122
apps/evm/src/pages/Market/OperationForm/SupplyForm/useForm/index.tsx 88.73% 50% 100% 88.73% 1, 101-109
apps/evm/src/pages/Market/OperationForm/WithdrawForm/index.tsx 92.83% 89.85% 88.88% 92.83% 82-85, 160, 249-265, 289, 466-471
apps/evm/src/pages/Market/OperationForm/WithdrawForm/useForm/index.tsx 87.3% 50% 100% 87.3% 3, 87-95
apps/evm/src/store/index.ts 97.5% 85.71% 100% 97.5% 1
apps/evm/src/types/index.ts 97.36% 83.33% 100% 97.36% 7
Generated in workflow #11961 for commit ff4fb1c by the Vitest Coverage Report Action

@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from d3f0fbe to f6fcd97 Compare November 18, 2025 11:10
@vercel vercel Bot temporarily deployed to Preview – venus.io November 18, 2025 11:11 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from f6fcd97 to 5c774b2 Compare November 18, 2025 17:09
@vercel vercel Bot temporarily deployed to Preview – venus.io November 18, 2025 17:09 Inactive
@therealemjy therealemjy force-pushed the feat/boost-tab-components branch from c873034 to 58ba6b5 Compare November 19, 2025 08:58
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from 5c774b2 to e6269e5 Compare November 19, 2025 09:15
@vercel vercel Bot temporarily deployed to Preview – venus.io November 19, 2025 09:15 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from e6269e5 to 906ba73 Compare November 19, 2025 09:58
@vercel vercel Bot temporarily deployed to Preview – venus.io November 19, 2025 09:58 Inactive
@therealemjy therealemjy force-pushed the feat/boost-tab-components branch from 58ba6b5 to f2f3116 Compare November 19, 2025 10:04
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from 906ba73 to fe5d5bc Compare November 19, 2025 10:04
@vercel vercel Bot temporarily deployed to Preview – venus.io November 19, 2025 10:04 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from fe5d5bc to 22bdcbe Compare November 19, 2025 10:04
@vercel vercel Bot temporarily deployed to Preview – venus.io November 19, 2025 10:05 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from 22bdcbe to 5e9ba64 Compare November 19, 2025 10:10
@vercel vercel Bot temporarily deployed to Preview – venus.io November 19, 2025 10:10 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from d0bd16c to 73d86f4 Compare November 26, 2025 09:31
@vercel vercel Bot temporarily deployed to Preview – venus.io November 26, 2025 09:31 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from 73d86f4 to cb432f6 Compare November 26, 2025 14:17
@vercel vercel Bot temporarily deployed to Preview – venus.io November 26, 2025 14:17 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from cb432f6 to e6b8f35 Compare November 26, 2025 14:31
@vercel vercel Bot temporarily deployed to Preview – venus.io November 26, 2025 14:31 Inactive
@vercel vercel Bot temporarily deployed to Preview – venus.io November 27, 2025 16:10 Inactive
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from 47c052d to 19b2fa8 Compare November 27, 2025 16:29
@therealemjy therealemjy force-pushed the feat/wire-up-boost-tab branch from 19b2fa8 to 908266a Compare November 28, 2025 09:51
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