Skip to content

[Bug] Hardcoded $PLOT label in 7 components — use RESERVE_LABEL constant #349

@realproject7

Description

@realproject7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions