Skip to content

Display payout token for referral rewards - #2482

Merged
MusabShakeel576 merged 1 commit into
masterfrom
claude/referral-rewards-sousd-to-fuse-gfitfp
Sep 7, 2026
Merged

Display payout token for referral rewards#2482
MusabShakeel576 merged 1 commit into
masterfrom
claude/referral-rewards-sousd-to-fuse-gfitfp

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Summary

Add support for displaying the actual token that referral rewards are settled in, since rewards are quoted in USD but paid out in a specific token (soUSD or FUSE). This helps users match promised rewards against actual on-chain transfers.

Key Changes

  • New type definitions: Added ReferralPayoutToken enum (soUSD, FUSE) and extended ReferralRewardListItem and ReferralSummary types to include payout token information
  • ReferralFriendRow: Added formatPayoutToken() function to display the actual token amount paid (e.g., "3,719.31 FUSE") on paid referral rows, with a new "Paid" line showing what was actually sent to the wallet
  • ReferralProgramContent & ReferralProgramContentNew: Updated "how it works" copy to explicitly mention the payout token when available (e.g., "You get $15 in FUSE")

Implementation Details

  • The payout token information is optional and only present on backends that support it (newer systems post-FUSE switch)
  • Token amount is displayed with proper localization (2 decimal places max) and only when the amount is valid and positive
  • The feature gracefully degrades on older backends that don't report payout token information
  • Comprehensive JSDoc comments explain the rationale for each addition

https://claude.ai/code/session_016YX6KN5LnrKFNcZKzRr7EJ

The reward is quoted in dollars and settled on chain in a token, and
that token is changing from soUSD to native FUSE on a date the backend
owns. A row that only says "+$15" leaves someone who received 3,719
FUSE with no way to tie the two together.

So the referral summary's per-row asset is surfaced where it matters: a
paid row shows what actually landed ("Paid 3,719.31 FUSE", next to the
existing explorer link), and the "how it works" copy on both referral
screens names the asset a reward earned now would be paid in. Both come
straight from the API, so rows either side of the switch read correctly
and a backend that doesn't report the asset renders exactly as before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YX6KN5LnrKFNcZKzRr7EJ
@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Sep 7, 2026 12:31pm UTC
solid-app-staging Ignored Ignored Sep 7, 2026 12:31pm UTC

Request Review

@claude

claude Bot commented Sep 7, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@MusabShakeel576
MusabShakeel576 merged commit 22cc717 into master Sep 7, 2026
5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/referral-rewards-sousd-to-fuse-gfitfp branch September 7, 2026 13:54
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