fix: initial predict deposit using polygon usdce#25774
Conversation
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The PredictController is a Phase 6 (business logic) controller that handles Polymarket prediction market integration. The change is isolated to this feature domain. Tag selection rationale:
The test file change (PredictController.test.ts) simply updates the test expectations to match the code change, removing the same flag from the expected call parameters. Performance Test Selection: |
|



Description
Remove
disableUpgradeoptimisation for Predict deposits to ensure non-Relay transactions using Polygon USDCe can still upgrade the EOA.Intentionally not applied per transaction data to reduce complexity and improve stability.
Changelog
CHANGELOG entry: null
Related issues
Fixes: #6820
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches transaction submission options for deposits; behavior changes could affect batching/upgrade flow on Polygon and should be validated against real deposit scenarios.
Overview
Predict deposits no longer pass
disableUpgrade: truetoaddTransactionBatchinPredictController.depositWithConfirmation, allowing the underlying transaction flow to perform an account upgrade when required (e.g., non-relay Polygon USDCe deposits).Updates the deposit unit test to match the new
addTransactionBatchcall signature (removing thedisableUpgradeexpectation).Written by Cursor Bugbot for commit 19019f2. This will update automatically on new commits. Configure here.