Skip to content

chore(vault): remove vault and btc-vault sections from dApp - #2141

Open
sleyter93 wants to merge 7 commits into
mainfrom
feat/remove-vault
Open

chore(vault): remove vault and btc-vault sections from dApp#2141
sleyter93 wants to merge 7 commits into
mainfrom
feat/remove-vault

Conversation

@sleyter93

Copy link
Copy Markdown
Collaborator

Summary

  • Deletes all vault-exclusive code: src/app/vault/, src/app/btc-vault/, src/app/api/vault/, src/app/api/btc-vault/, src/app/fund-manager/, src/app/fund-admin/
  • Removes shared vault infrastructure: contract ABIs, shared hooks, contracts.ts exports, formatter.ts vault utilities
  • Cleans up shared files: nav menu, route constants, feature flags, constants, and tx messages

Test plan

  • App builds without errors
  • Navigation no longer shows Vault, BTC Vault, Fund Manager, or Fund Admin items
  • All other pages (Holdings, Proposals, Treasury, Collective Rewards, etc.) work normally
  • No vault-related routes accessible (404 on /vault, /btc-vault, /fund-manager, /fund-admin)

@github-actions

github-actions Bot commented May 11, 2026

Copy link
Copy Markdown

Dependency Review

The following issues were found:

  • ❌ 1 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses.

View full job summary

@sleyter93 sleyter93 self-assigned this May 11, 2026
@sleyter93
sleyter93 requested a review from scguaquetam May 18, 2026 15:43

@scguaquetam scguaquetam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me

Comment thread src/components/MainContainer/sidebars/useFilteredMenuData.ts
@scguaquetam

Copy link
Copy Markdown
Member

@sleyter93 Please take a look on the next files where Vaults is still being referenced:
.workflow/PROJECT.md
.workflow/agents/user-story-creator.md
.workflow/agents/workload-analyst.md
.workflow/rules/... various files like architecture-patterns - coding-conventions - documentation-and-testing -
docs/spike-transaction-balance-updates.md
var BTC_VAULT_NAV_HISTORY_COLUMNS from src/app/api/db/constants
src/components/Breadcrumbs/breadcrumbs.tsx

among other files, there still being used some vaults stuff.

@scguaquetam scguaquetam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Check vaults usage in other files

@sleyter93
sleyter93 requested review from Copilot and scguaquetam May 20, 2026 19:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

sleyter93 and others added 7 commits May 27, 2026 15:02
* feat/ adding settings for PostHog tracking

* feat/adding capture to prop profile for identifying on posthog which environment is taking the measurement from

* feat/adding PostHogWalletSync wrapper for making wallet address a parent property for posthog events

* feat/tested-working correctly stake_rif_confirmed and unstake_rif_confirmed events storing information after completing transaction

* feat/ adding onError event, for error on staking or unstaking into posthog measurements

* feat/ adding POSTHOG doc for clarifying usage, adding event check into allowance process, for error and success

* adding Backing activity monitoring, tested and checked on Posthog dashboard

* adding collect rewards activity monitoring

* adding delegation activity monitoring into Posthog

* refactor/ taking out vaults measured events, and refactoring proposal_vote_cast for being measured inside the try-catch function, also adding error event proposal_vote_cast_failed

---------

Co-authored-by: scguaquetam <sebastian.guaqueta@rootstocklabs.com>
Deletes all directories exclusively owned by the vault/btc-vault features.
Removes vault/rbtcVault/buffer/permissionsManager/syntheticYield from contracts.ts.
Removes btc-vault re-export from shared/hooks/contracts/index.ts.
Simplifies useFilteredMenuData — role filtering was exclusively for vault nav items.
Removes formatApy and ctokenvault from formatter.ts (vault-only dead code).
- menuData.ts: remove getBetaToolsSection functions and RequiredRole type
- routes.ts: remove btcVault* route constants
- features.conf.ts: remove vault and btc_vault feature definitions
- constants.ts: remove vault addresses, roles, and env flag entries
- txMessages.ts: remove vault and btc-vault transaction message keys
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Addresses reviewer feedback from scguaquetam:

- .workflow/PROJECT.md, agents/user-story-creator.md, agents/workload-analyst.md
- .workflow/rules/ (architecture-patterns, coding-conventions, documentation-and-testing, git-commits)
- docs/spike-transaction-balance-updates.md, docs/FORK_SETUP.md
- src/app/api/db/constants.ts — removed BTC_VAULT_NAV_HISTORY_COLUMNS and BTC_VAULT_AUDIT_LOG_COLUMNS
- src/components/Breadcrumbs/Breadcrumbs.tsx — removed vault breadcrumb paths
- src/lib/constants.ts, src/lib/endpoints.ts, src/lib/the-graph.ts
- src/lib/contracts.ts — removed vault/rbtcVault/buffer/permissionsManager/syntheticYield exports
- src/lib/abis/VaultAbi.ts, VaultDepositLimiterAbi.ts — deleted
- src/shared/hooks/contracts/btc-vault/ — deleted entire directory
- src/shared/hooks/contracts/index.ts — removed btc-vault re-export
- src/shared/txMessages.ts — removed all vault-related tx messages
- src/shared/components/ApolloClient/makeClient.ts — removed btcVaultClient
- src/shared/constants/routes.ts — removed btcVault route constants
- src/shared/walletConnection/constants.tsx — removed vault route header patterns
- src/components/MainContainer/sidebars/menuData.ts — removed vault menu items and RequiredRole
- src/components/MainContainer/sidebars/useFilteredMenuData.ts — removed role-based filtering
- public/images/sidemenukoto/{BTC-Vault,USD-Vault,FundManager,Admin}.svg — deleted
- Various component JSDoc comments cleaned up
- All .env.* files — removed vault-related env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sleyter93
sleyter93 force-pushed the feat/remove-vault branch from d9510b2 to fa281ef Compare June 3, 2026 16:17
@sleyter93
sleyter93 changed the base branch from main to v1.21.0 June 3, 2026 16:19
Base automatically changed from v1.21.0 to main July 8, 2026 07:46
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