fix: second class chains dedupe internal/value - #11527
Conversation
Native amounts are currently doubled for same-chain second-class EVM Txs (sends/swaps) in upserted Txs, when the Tx is a same-account Tx. The reason here is we parse both the `value` and the internal transfer value out of debug RPC call. This ensures deduping, so Tx value is not doubled in Tx history. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughAdds a guard condition in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/naming-conventions.mdc)
Files:
🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-11-24T21:20:57.909ZApplied to files:
📚 Learning: 2025-09-12T13:44:17.019ZApplied to files:
📚 Learning: 2025-11-12T12:49:17.895ZApplied to files:
📚 Learning: 2025-12-17T14:50:01.629ZApplied to files:
📚 Learning: 2025-11-24T21:20:57.909ZApplied to files:
📚 Learning: 2025-11-24T21:20:57.909ZApplied to files:
📚 Learning: 2025-12-04T22:57:50.850ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Yeeting as obvious/blatant mistake once CI finishes. |
Description
Native amounts are currently doubled for same-chain second-class EVM Txs (sends/swaps) in upserted Txs, when the Tx is a same-account Tx. The reason here is we parse both the
valueand the internal transfer value out of debug RPC call. This ensures deduping, so Tx value is not doubled in Tx history.Issue (if applicable)
Risk
Low
Second-class EVM chains (XPL, Monad, Plasma, HyperEVM) - fixes duplicate transfer amounts in transaction history for same-account sends and swaps.
Testing
Engineering
Operations
Screenshots (if applicable)
develop
this diff