-
Notifications
You must be signed in to change notification settings - Fork 47
update wallet connect #828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 9e31981 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. 4 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive Web3 staking functionality to the hub application, including wallet integration, vault management, and multiplier points system. The changes enable users to stake SNT tokens, manage vaults, and earn multiplier points through a fully functional UI.
- Integrates Wagmi, ConnectKit, and SIWE for Web3 wallet connectivity and authentication
- Implements a state machine for vault operations (staking, withdrawing, locking, compounding)
- Adds comprehensive utility functions for currency/token formatting and vault calculations
- Updates dependencies including
@scure/basefrom^1.1.1to^1.2.6across multiple packages
Reviewed Changes
Copilot reviewed 72 out of 79 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Updated package lock with new Web3 dependencies and version bumps |
| package.json | Added Web3 dependencies at root level and updated overrides |
| apps/hub/package.json | Added staking-related dependencies and form management libraries |
| apps/hub/tsconfig.json | Added path aliases for hooks, constants, and utils |
| apps/hub/src/app/stake/page.tsx | Complete staking page implementation with vault selection and management |
| apps/hub/src/app/_providers/index.tsx | Consolidated provider setup with proper hierarchy for Web3 and state management |
| apps/hub/src/app/_hooks/* | Multiple custom hooks for vault operations, staking, withdrawals, and MP calculations |
| apps/hub/src/utils/* | Utility functions for currency formatting, address shortening, and vault calculations |
| apps/hub/src/app/_constants/index.ts | Central export for application constants |
| packages/status-network/* | Button variant additions and color system integration |
| packages/components/* | Toast component fix and ButtonProps export |
| packages/status-js/package.json | Updated @scure/base dependency |
| packages/portfolio/package.json | Updated @scure/base dependency |
Comments suppressed due to low confidence (1)
apps/hub/src/app/_providers/query-client-provider.tsx:1
- [nitpick] This file is deleted but the QueryClient configuration is duplicated in
apps/hub/src/app/_providers/index.tsx. Consider extracting the QueryClient configuration to a separate constant file to avoid duplication and make the configuration reusable if needed elsewhere.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| {onAction && ( | ||
| <Close> | ||
| <CloseIcon className="cursor-pointer text-white-100" /> | ||
| </Close> | ||
| )} |
Copilot
AI
Nov 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The close button is only rendered when onAction is truthy. This means toasts without action buttons cannot be closed manually. The close button should always be available, or this conditional should check for a separate showClose prop.
| } catch { | ||
| sendVaultEvent({ type: 'REJECT' }) | ||
| } finally { |
Copilot
AI
Nov 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty catch block swallows errors without logging. Add error logging or at minimum add a comment explaining why the error is intentionally ignored. This makes debugging production issues difficult.
c909463 to
fe9e7cb
Compare
apps/hub/.env
Outdated
|
|
||
|
|
||
| NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="123" | ||
| NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="7ab664eee6a734b14327cdf4678a3431" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flagging this once again just for the record
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jkbktl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ pre-approving
|
|
||
| NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="123" | ||
| NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="" | ||
| NEXT_PUBLIC_STATUS_NETWORK_API_URL="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@status-im/web fyi, rename from NEXT_PUBLIC_API_URL to NEXT_PUBLIC_STATUS_NETWORK_API_URL
|
Found several issues but will comment on those as part of #827 |
OP: #821