Skip to content

fix(predict): update Polymarket adapter contract addresses#29573

Merged
matallui merged 1 commit into
mainfrom
predict/update-contracts
Apr 30, 2026
Merged

fix(predict): update Polymarket adapter contract addresses#29573
matallui merged 1 commit into
mainfrom
predict/update-contracts

Conversation

@matallui

@matallui matallui commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Description

Updates the Polymarket adapter contract addresses used by Predict to the new CtfCollateralAdapter and NegRiskCtfCollateralAdapter values shared by Polymarket.

Polymarket added new events on these adapters and will stop accepting relayed transactions through the old adapters on May 1 at 3pm UTC. Without this change, Polymarket transactions routed through the old adapters will start failing.

Changelog

CHANGELOG entry: Updated Polymarket adapter contracts so Polymarket prediction transactions continue working after the relayer migration.

Related issues

Fixes:

Manual testing steps

Feature: Polymarket adapter migration

  Scenario: user submits a Polymarket transaction after the adapter migration
    Given the app is running a build from this branch
    And the user has access to the Predict/Polymarket experience

    When the user submits a Polymarket transaction that uses the collateral adapters
    Then the app should use the updated adapter addresses
    And the transaction should be accepted by the relayer after the migration cutoff

Not run locally; constants-only configuration update.

Screenshots/Recordings

Not applicable.

Before

Not applicable.

After

Not applicable.

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Medium Risk
Low code complexity, but changes production on-chain contract targets for Polymarket claim/relay flows; incorrect addresses would cause transactions to fail.

Overview
Updates Predict’s Polymarket configuration to use new CtfCollateralAdapter and NegRiskCtfCollateralAdapter contract addresses in polymarket/constants.ts.

This shifts v2 claim/relay routing (as referenced by protocol claim.standardTarget/claim.negRiskTarget) to the new adapter contracts to maintain compatibility with Polymarket’s relayer migration.

Reviewed by Cursor Bugbot for commit 08b08be. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbotv2 metamaskbotv2 Bot added the team-predict Predict team label Apr 30, 2026
@matallui matallui changed the title Update Polymarket adapter contract addresses fixUpdate Polymarket adapter contract addresses Apr 30, 2026
@matallui matallui changed the title fixUpdate Polymarket adapter contract addresses fix(predict): update Polymarket adapter contract addresses Apr 30, 2026
@matallui matallui marked this pull request as ready for review April 30, 2026 17:12
@matallui matallui requested a review from a team as a code owner April 30, 2026 17:12
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokePredictions, SmokeConfirmations, SmokeWalletPlatform
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: medium
  • AI Confidence: 92%
click to see 🤖 AI reasoning details

E2E Test Selection:
The change updates two Polymarket smart contract addresses in the constants file:

  1. CTF_COLLATERAL_ADAPTER_ADDRESS - updated to a new address
  2. NEG_RISK_CTF_COLLATERAL_ADAPTER_ADDRESS - updated to a new address

These addresses are used in protocol/definitions.ts as standardTarget and negRiskTarget for Polymarket's collateral adapter contracts, which are critical for on-chain transaction flows in the Predictions feature (opening positions, cashing out, claiming winnings).

SmokePredictions is the primary tag - these contract addresses are directly used in Polymarket prediction market transactions. The tests cover the full position lifecycle which relies on these adapter addresses.

SmokeConfirmations is required per SmokePredictions tag description: "opening/closing positions are on-chain transactions" - confirmations are part of the flow.

SmokeWalletPlatform is required per SmokePredictions tag description: "Predictions is also a section inside the Trending tab (SmokeWalletPlatform)" - changes to Predictions views affect Trending.

No other tags are impacted - this is a Polymarket-specific change with no effect on accounts, swaps, networks, browser, snaps, or other features.

Performance Test Selection:
This change only updates two smart contract address constants. There is no UI rendering, data loading, state management, or initialization logic affected. No performance impact is expected from address constant changes.

View GitHub Actions results

@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@matallui matallui enabled auto-merge April 30, 2026 18:40
@matallui matallui added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Apr 30, 2026
@matallui matallui added this pull request to the merge queue Apr 30, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 30, 2026
@matallui matallui added this pull request to the merge queue Apr 30, 2026
Merged via the queue into main with commit ad31020 Apr 30, 2026
222 of 227 checks passed
@matallui matallui deleted the predict/update-contracts branch April 30, 2026 19:19
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.77.0 Issue or pull request that will be included in release 7.77.0 label Apr 30, 2026
chloeYue added a commit that referenced this pull request May 14, 2026
The stable→release/7.77.0 merge silently took stable's older Polymarket
CtfCollateralAdapter / NegRiskCtfCollateralAdapter addresses, regressing
fix #29573 that landed on release/7.77.0 (and main). Polymarket stopped
accepting the old adapters after May 1, so without this revert the sync
PR would break Polymarket relayed transactions on 7.77.0.

Restores release/7.77.0's values:
- CTF_COLLATERAL_ADAPTER_ADDRESS = 0xAdA100Db...218FcE1f
- NEG_RISK_CTF_COLLATERAL_ADAPTER_ADDRESS = 0xadA20056...DB6eAab

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.77.0 Issue or pull request that will be included in release 7.77.0 size-XS skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-predict Predict team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants