Skip to content

chore(v2): retire V1 paths post-cutover #37

@smypmsa

Description

@smypmsa

Context

Post-cutover cleanup. Open and execute after 2026-04-28 11:00 UTC once the V2 flip is verified live and stable. Keep the V1 paths in place for 1–2 weeks before retiring, in case a regression forces a temporary V1 fallback.

References:

Scope

  • Remove py-clob-client from backend/pyproject.toml; keep only py-clob-client-v2
  • Drop V1 entries from backend/core/wallet/contracts.py: USDC_E, V1 CTF_EXCHANGE, V1 NEG_RISK_CTF_EXCHANGE
  • Remove the POLYMARKET_V2_ENABLED feature flag and all V1 branches across backend/core/trading/, backend/core/positions/, backend/core/wallet/
  • Delete the V1 swap helper if not already replaced
  • Verify experiments/onchain-otc/* still work — these use the NegRisk adapter directly (separate from CTF Exchange) and should be unaffected, but spot-check
  • Update README.md / CLAUDE.md if any V1-specific guidance remains

Out of scope

  • Behavior changes — strictly cleanup of dead code paths.

Timing

Open after cutover succeeds. Wait at least 1 week before merging to ensure no V2 regressions need a quick V1 fallback.

Prerequisites

Blocks

None — final cleanup in the series.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions