Bug: 7 components hardcode "$PLOT" instead of using RESERVE_LABEL constant
Problem
Multiple components define their own reserveLabel as IS_TESTNET ? "WETH" : "$PLOT" instead of importing RESERVE_LABEL from lib/contracts/constants.ts. The constant was updated to "PL_TEST" for the mainnet test phase (PR #342), but these components still show "$PLOT".
Affected Files
src/components/WriterTradingStats.tsx:16
src/components/DonateWidget.tsx:29
src/components/ClaimRoyalties.tsx:36
src/components/ReaderPortfolio.tsx:23
src/components/PriceChart.tsx:39
src/components/TradingWidget.tsx:35
src/components/StoryCardStats.tsx:8
Fix
In each file, replace:
const reserveLabel = IS_TESTNET ? "WETH" : "$PLOT";
with:
import { RESERVE_LABEL } from "../../lib/contracts/constants";
And use RESERVE_LABEL directly. Remove the IS_TESTNET import if no longer needed.
Branch
task/349-reserve-label
Labels
agent/T3, bug
Bug: 7 components hardcode "$PLOT" instead of using RESERVE_LABEL constant
Problem
Multiple components define their own
reserveLabelasIS_TESTNET ? "WETH" : "$PLOT"instead of importingRESERVE_LABELfromlib/contracts/constants.ts. The constant was updated to"PL_TEST"for the mainnet test phase (PR #342), but these components still show "$PLOT".Affected Files
src/components/WriterTradingStats.tsx:16src/components/DonateWidget.tsx:29src/components/ClaimRoyalties.tsx:36src/components/ReaderPortfolio.tsx:23src/components/PriceChart.tsx:39src/components/TradingWidget.tsx:35src/components/StoryCardStats.tsx:8Fix
In each file, replace:
with:
And use
RESERVE_LABELdirectly. Remove theIS_TESTNETimport if no longer needed.Branch
task/349-reserve-labelLabels
agent/T3,bug