Clarify payout wording for coin-denominated bounties#413
Conversation
Greptile SummaryThis PR updates
Confidence Score: 4/5Safe to merge after fixing the dashboard submissions call site that appends " payout" after the formatter output. The formatter change itself is correct and display-only. The problem is that one call site in the dashboard submissions view hard-codes a trailing " payout" word that was natural with the old format but now collides with the new "Pays" prefix, rendering "Pays $2.00 USD in SOL payout" to users. src/app/dashboard/bounties/page.tsx — the submissions list at line 260 appends a literal " payout" suffix that conflicts with the new formatter prefix. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[formatBountyPayout called] --> B{paymentCoin set?}
B -- yes --> C["Returns: 'Pays $X.XX USD in COIN'"]
B -- no --> D["Returns: 'Pays $X.XX USD'"]
C --> E[bounty browse page]
C --> F[bounty detail PriceBox]
C --> G["dashboard created list"]
C --> H["dashboard submissions list\n+ literal ' payout' appended\n→ 'Pays $X.XX USD in COIN payout'"]
D --> E
D --> F
D --> G
D --> H
Reviews (2): Last reviewed commit: "Make bounty payout label format consiste..." | Re-trigger Greptile |
Closes #401
Summary
formatBountyPayouthelper so coin-denominated payouts read asPays $X.XX USD in COIN$1.00 USD (paid in SOL)as1 SOLWhy this fix
The existing label is technically correct, but it front-loads the dollar amount and then appends the coin in parentheses, which makes
payout_usd: 1, payment_coin: "SOL"easy to misread as1 SOL.The new wording keeps the same underlying data and avoids implying that the numeric amount belongs to the coin itself.
Scope
src/lib/bounties.tsBecause the existing pages already call the shared formatter, no call-site changes were needed for the list/detail/dashboard views.
Validation
formatBountyPayoutis the shared helper used by the bounty browse page, bounty detail page, and dashboard submissions/created views