fix(card): track cashback redeem tx on estimation network#32006
Conversation
Use the network field from withdraw-estimation (linea or monad) to resolve the chain ID for redeem transaction receipt polling instead of hardcoding Linea.
|
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
Risk assessment: Medium - the functional change in Performance Test Selection: |
|



Description
Cashback withdrawals can now settle on Linea or Monad depending on the user's priority list, but redeem transaction monitoring always polled Linea (
0xe708). This caused successful Monad redemptions to appear stuck or fail monitoring.This PR reads the
networkfield from/v1/wallet/reward/withdraw-estimation, maps it to a chain ID viacardNetworkInfos, and uses that chain when polling for the redeem transaction receipt. Falls back to Linea when the network is missing.Changelog
CHANGELOG entry: Remove hard-coded Linea polling on Cashback redeeming transaction
Related issues
Fixes: null
Manual testing steps
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes post-withdraw confirmation UX on the correct chain; scope is limited to Card cashback monitoring with Linea fallback and new tests.
Overview
Cashback redeem transaction monitoring no longer always polls Linea (
0xe708). After a withdrawal, the hook uses thenetworkvalue from withdraw-estimation (typed on UI and Card controller responses), maps it to a chain ID throughcardNetworkInfos/safeFormatChainIdToHex, and passes that chain into receipt polling. Ifnetworkis missing, polling still defaults to Linea.Unit tests cover Linea, Monad (
0x8f), and the missing-network fallback.Reviewed by Cursor Bugbot for commit 18d10af. Bugbot is set up for automated code reviews on this repo. Configure here.