Parent: #877
Problem
Frontend sends useFarcaster: true but backend expects useFarcasterUsername: true when setting Farcaster username as referral code.
Frontend (src/components/airdrop/UserPoints.tsx):
body: JSON.stringify({ message, signature, useFarcaster: true })
Backend (src/app/api/airdrop/referral-code/route.ts):
useFarcasterUsername = body.useFarcasterUsername === true
Impact
The "Use Farcaster username" button silently fails — the request goes through but the backend never sees the flag, so it generates a nanoid instead of using the Farcaster username.
Fix
Change frontend to send useFarcasterUsername: true (matching the backend), or change backend to read useFarcaster (matching the frontend). Frontend fix is simpler.
Acceptance Criteria
Parent: #877
Problem
Frontend sends
useFarcaster: truebut backend expectsuseFarcasterUsername: truewhen setting Farcaster username as referral code.Frontend (
src/components/airdrop/UserPoints.tsx):Backend (
src/app/api/airdrop/referral-code/route.ts):Impact
The "Use Farcaster username" button silently fails — the request goes through but the backend never sees the flag, so it generates a nanoid instead of using the Farcaster username.
Fix
Change frontend to send
useFarcasterUsername: true(matching the backend), or change backend to readuseFarcaster(matching the frontend). Frontend fix is simpler.Acceptance Criteria