-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
0x-parser version
2.12.0
Unexpected behavior
The parser returns null or fails to parse swap data for:
-
- wstETH → ETH swap on Optimism
-
https://basescan.org/tx/0x701a78e3d6fe85f45b488c8dd77f589ccb98f609620cd9abeb03c8e926f70f96
- AERO → USDC swap on Base routing through Aerodrome + BMX + Uniswap V3 + Balancer
Both scenarios result in failed parsing despite being valid swap transactions.
Expected behavior
The parser should successfully extract swap data for both scenarios:
- The first txn mentioned above should return:
{
"tokenIn": {
"symbol": "wstETH",
"amount": "0.008868",
"address": "0x.."
},
"tokenOut": {
"symbol": "ETH",
"amount": "0.010671015314389981",
"address": "0x.."
}
}- The second txn should return:
{
"tokenIn": {
"symbol": "AERO",
"amount": "1234.567",
"address": "0x..."
},
"tokenOut": {
"symbol": "USDC",
"amount": "890.123",
"address": "0x..."
}
}The parser should handle these by using transfer logs to determine what the user sent and received.
Steps to reproduce
No response
Minimal reproducible demo of issue
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
No labels