Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swaps do not display correct or all "to" and "recipients" #121

Open
DecFeee opened this issue Oct 24, 2022 · 0 comments
Open

Swaps do not display correct or all "to" and "recipients" #121

DecFeee opened this issue Oct 24, 2022 · 0 comments

Comments

@DecFeee
Copy link

DecFeee commented Oct 24, 2022

Hello,

I just play around with your subgraph and found an Issue I guess. A swap which finds 2 relevant transfers of 5 in a transaction. But the real pain is that it does not display the "sender" or "to" correctly. Both is your Router V2 contract as you can see:

Input:

{
  swaps(
    first: 10
    where: {transaction: "0x14943f571b1dc8df554a8acfc6cd29ff21b529d72f67ae55622d9f6b0efc6b6a"}
  ) {
    id
    sender
    to
  }
}

Output:

{
  "data": {
    "swaps": [
      {
        "id": "0x14943f571b1dc8df554a8acfc6cd29ff21b529d72f67ae55622d9f6b0efc6b6a-0",
        "sender": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
        "to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"
      },
      {
        "id": "0x14943f571b1dc8df554a8acfc6cd29ff21b529d72f67ae55622d9f6b0efc6b6a-1",
        "sender": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
        "to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"
      }
    ]
  }
}

Etherscan to the transaction: https://etherscan.io/tx/0x14943f571b1dc8df554a8acfc6cd29ff21b529d72f67ae55622d9f6b0efc6b6a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant