Skip to content

[bug] Transactions are failing to parse #94

@barskhianfannie

Description

@barskhianfannie

0x-parser version

2.12.0

Unexpected behavior

The parser returns null or fails to parse swap data for:

  1. https://optimistic.etherscan.io/tx/0xdee6f4fea0250f297ed9663c4ca4479e8a253c62e16faa60759e25832cd1f34f

    • wstETH → ETH swap on Optimism
  2. 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:

  1. The first txn mentioned above should return:
{
  "tokenIn": {
    "symbol": "wstETH",
    "amount": "0.008868",
    "address": "0x.."
  },
  "tokenOut": {
    "symbol": "ETH",
    "amount": "0.010671015314389981",
    "address": "0x.."
  }
}
  1. 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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions