Skip to content

feat(domain): lower ACTIVE_VOTE_THRESHOLD from 7 to 6#105

Open
LeonardoVieira1630 wants to merge 3 commits into
mainfrom
feat/active-vote-threshold-6
Open

feat(domain): lower ACTIVE_VOTE_THRESHOLD from 7 to 6#105
LeonardoVieira1630 wants to merge 3 commits into
mainfrom
feat/active-vote-threshold-6

Conversation

@LeonardoVieira1630

Copy link
Copy Markdown
Member

Summary

  • A voter now qualifies as active by voting on 6 of the last 10 finalized proposals (was 7 of 10).
  • Constant changed in packages/domain/src/config.ts (ACTIVE_VOTE_THRESHOLD), consumed by the backend eligibility computation — no frontend change needed (the UI derives participation from API data).
  • Boundary unit tests updated (6 → active, 5 → not active) and docs (algorithm.md, prd.md) kept in sync.

Impact

  • Applies to future rounds only — already-computed distributions are stored and unchanged unless explicitly recomputed.
  • More voters become eligible, which dilutes the voter pool (10% of the monthly pool) across more recipients and expands which token holders earn (holders earn only if their delegate is active).

Test plan

  • pnpm --filter @ens-dis/domain test — 211 passed
  • backend unit tests — 171 passed
  • tsc --noEmit clean

🤖 Generated with Claude Code

A voter now qualifies as active by voting on 6 of the last 10
finalized proposals. Boundary tests and docs updated accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
delegation-incentives-system-frontend Ready Ready Preview, Comment Jul 15, 2026 2:42pm

Request Review

LeonardoVieira1630 and others added 2 commits July 15, 2026 11:15
Client-side avatar resolution (wagmi's useEnsAvatar) breaks on NFT
avatar records hosted by the OpenSea Shared Storefront: their tokenURI
points at OpenSea's deprecated v1 API, which sends no CORS headers, so
the browser blocks the fetch and the avatar silently falls back to a
blockie (e.g. simona.eth).

Resolve avatars through https://metadata.ens.domains instead, which
dereferences NFT records server-side. Adds ensAvatar.ts with a URL
builder and a useVerifiedEnsAvatar hook that probes the image before
using it. EnsAvatar keeps the blockie as an onError/placeholder
fallback for names with no avatar record. Also drops the per-avatar RPC
call that useEnsAvatar issued in long lists.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix(avatar): resolve ENS avatars via the metadata service
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.

1 participant