Skip to content

fix(APP-517): Resolve cryptex voting escrow addresses dynamically#1066

Merged
thekidnamedkd merged 9 commits intomainfrom
fix/cryptex
Apr 2, 2026
Merged

fix(APP-517): Resolve cryptex voting escrow addresses dynamically#1066
thekidnamedkd merged 9 commits intomainfrom
fix/cryptex

Conversation

@thekidnamedkd
Copy link
Copy Markdown
Contributor

@thekidnamedkd thekidnamedkd commented Mar 30, 2026

Description

This change removes Cryptex’s shared hardcoded voting escrow address and resolves the escrow address dynamically from the live token plugin metadata for Cryptex DAOs.

The capital distributor flow now passes daoId into the CAPITAL_DISTRIBUTOR_VOTING_ESCROW_ADDRESS slot, and Cryptex uses a centralized DAO-to-token-plugin mapping plus a hook-based slot resolver to read plugin.votingEscrow?.escrowAddress at runtime. This was needed because tokenRewards should not reuse the old shared Cryptex escrow constant, and the same dynamic pattern now works across the Cryptex DAO registrations.

It also adds the new tokenRewards Cryptex DAO entry and token-voting plugin mapping on Sepolia, and removes the temporary proposal-detail debugging logs that were added during investigation.

TOKEN VOTING REWARDS TEST PATH:

{{preview-url}} /dao/ethereum-sepolia/0xF445edE111dD57Effc7aC9bcf8fC3dF1f60797Fa/

Dependencies:

  • No downstream module dependency changes
  • Relies on DAO plugin data exposing votingEscrow.escrowAddress

Type of Change

  • Major: Breaking change (change that would cause existing functionality to not work as expected)
  • Minor: Feature (non-breaking change which adds new functionality)
  • Patch: Enhancement (non-breaking change to an existing feature)
  • Patch: Bug fix (non-breaking change which fixes an issue)

Developer Checklist:

  • Manually smoke tested the functionality in a preview or locally
  • Confirmed there are no new warnings or errors in the browser console
  • (For User Stories only) Double-checked that all Acceptance Criteria are satisfied
  • Confirmed there are no new warnings on automated tests
  • Merged and published any dependent changes in downstream modules
  • Selected the correct base branch
  • Commented the code in hard-to-understand areas
  • Followed the code style guidelines of this project
  • Reviewed that the Files Changed in Github’s UI reflect my intended changes
  • Confirmed the pipeline checks are not failing

Review Checklist:

  • (For User Stories only) Tested in a preview or locally that all Acceptance Criteria are satisfied
  • Confirmed that changes follow the code style guidelines of this project

@linear
Copy link
Copy Markdown

linear bot commented Mar 30, 2026

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

🚀 Preview Deployment: View Here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

E2E Smoke Results

Base URL https://app-next-5nhd6odb9-aragon-app.vercel.app
Suite smoke
Playwright result ✅ passed
Summary 44 passed
GitHub job ✅ completed
Run #3971

Copy link
Copy Markdown
Contributor

@milosh86 milosh86 left a comment

Choose a reason for hiding this comment

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

Hey left a comment, I guess with added validation we don't need to change much as it adds safety if we miss the address

@thekidnamedkd thekidnamedkd marked this pull request as ready for review March 31, 2026 15:53
@thekidnamedkd thekidnamedkd requested a review from a team as a code owner March 31, 2026 15:53
milosh86
milosh86 previously approved these changes Apr 2, 2026
Copy link
Copy Markdown
Contributor

@milosh86 milosh86 left a comment

Choose a reason for hiding this comment

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

nice!

Copy link
Copy Markdown
Contributor

@milosh86 milosh86 left a comment

Choose a reason for hiding this comment

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

👍

@thekidnamedkd thekidnamedkd merged commit bb2198b into main Apr 2, 2026
16 checks passed
@thekidnamedkd thekidnamedkd deleted the fix/cryptex branch April 2, 2026 08:04
@arabot-1 arabot-1 mentioned this pull request Apr 2, 2026
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