Skip to content

Redeploy StoryFactory with correct J-curve and real PLOT token #536

@realproject7

Description

@realproject7

Summary

Redeploy StoryFactory to Base mainnet with:

  1. Real PLOT token: 0x4F567DACBF9D15A6acBe4A47FC2Ade0719Fb63C4
  2. Correct J-curve bonding curve from story-token-curve.txt

Root Cause of Curve Bug

The current deploy script (DeployBase.s.sol) generates a pure exponential curve using a constant multiplier, but the intended curve is a MintPad Medium J-Curve (steepness 0.85, exponent 4). The pure exponential distributes growth evenly (looks linear), while the J-curve stays flat for ~70% of supply then rises steeply.

Implementation

  • Update DeployBase.s.sol to hardcode exact step prices from story-token-curve.txt instead of computing with a constant multiplier
  • The curve file has 499 data points (supply 2,000 → 998,000, tab-separated) with an implied final point at 1,000,000 → 1.8882421
  • stepRanges remain cumulative: [2000e18, 4000e18, ..., 1000000e18]
  • stepPrices: use exact values from the curve file (convert decimal to 18-decimal wei)
  • Set PLOT token to 0x4F567DACBF9D15A6acBe4A47FC2Ade0719Fb63C4
  • Set initialStorylineCount to skip past existing MCV2_Bond symbols

Curve File Location

~/Library/CloudStorage/Dropbox/Mac/Downloads/plotlink/story-token-curve.txt

Curve Parameters

  • 500 steps, 2,000 tokens per step
  • Max supply: 1,000,000
  • Initial price: 0.001 PLOT
  • Final price: 1.8882421 PLOT
  • Curve shape: J-curve (flat early, steep late)

Deployment

  • DEPLOYER_PRIVATE_KEY and BASESCAN_API_KEY are set in plotlink-contracts/.env
  • Deploy to Base mainnet
  • Record new StoryFactory address

Acceptance Criteria

  • DeployBase.s.sol updated with J-curve prices from curve file
  • PLOT token set to 0x4F567DACBF9D15A6acBe4A47FC2Ade0719Fb63C4
  • StoryFactory deployed to Base mainnet
  • Bonding curve matches intended J-curve shape
  • initialStorylineCount set correctly
  • New StoryFactory address recorded

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agentoperatorRequires manual operator action

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions