Skip to content

Conversation

@PoornaChandra2005
Copy link

Description

This PR ensures that ResearchHub Foundation bounties correctly display a flat $150 USD amount across all UI components, as requested in issue #466. This prevents confusion when the RSC amount fluctuates or doesn't match a standard rate.

Changes

  • Updated isFoundationBounty in bountyUtil.ts with a fallback name-based check to ensure reliable identification even if environment variables are missing.
  • Refactored getBountyDisplayAmount and getTotalBountyDisplayAmount to always prioritize the foundation flat fee when applicable.
  • Updated multiple components to respect the foundation status when rendering currency badges and tooltips:
    • BountyMetadataLine
    • FeedItemBountyComment
    • BountyInfo
    • BountyInfoSummary
    • FeedItemActions (Bounty action button)
    • BountyTooltip
    • EarningOpportunityBanner (Earn banner on paper/post pages)
  • Enhanced FeedEntry transformation logic in types/feed.ts to correctly flag foundation status for awarded bounties.

Related Issue

Fixes #466

Review Request

Tagging @yattias and @michaelcanova for review.

@PoornaChandra2005 PoornaChandra2005 requested a review from a team as a code owner February 9, 2026 10:28
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel
Copy link
Contributor

vercel bot commented Feb 9, 2026

@PoornaChandra2005 is attempting to deploy a commit to the ResearchHub Team on Vercel.

A member of the Team first needs to authorize it.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 9, 2026

@yattias
Copy link
Contributor

yattias commented Feb 9, 2026

@PoornaChandra2005 thanks for submitting a PR but this issue has already been fixed. Let us know if you are seeing something else. If you look at the Earn tab on researchhub.com you will see foundation bounties are $150

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