Skip to content

Airdrop: MilestoneTrack uses hardcoded FDV targets instead of config #1004

@realproject7

Description

@realproject7

Problem

MilestoneTrack.tsx has hardcoded prod FDV milestone values (lines 22-27):

const CHART_TIERS = [
  { label: "Bronze", fdv: 1_000_000, poolPct: 10 },
  { label: "Silver", fdv: 10_000_000, poolPct: 30 },
  { label: "Gold", fdv: 50_000_000, poolPct: 50 },
  { label: "Diamond", fdv: 100_000_000, poolPct: 100 },
];

These ignore the AIRDROP_CONFIG.MILESTONES values from lib/airdrop/config.ts. When running in test mode (NEXT_PUBLIC_AIRDROP_MODE=test), the UI still shows $1M/$10M/$50M/$100M instead of the test values ($7K/$10K/$35K/$50K).

File: src/components/airdrop/MilestoneTrack.tsx:22-27

Solution

Replace hardcoded CHART_TIERS with values derived from the API response (/api/airdrop/status already returns milestone data from config). The component already fetches StatusData which includes milestones — use those mcap values instead of the hardcoded constants.

Acceptance Criteria

  • MilestoneTrack displays FDV targets from config, not hardcoded values
  • Test mode shows test milestones ($7K/$10K/$35K/$50K)
  • Prod mode continues showing prod milestones ($1M/$10M/$50M/$100M)

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions