Trades for certain transactions show incorrect data

Hi, when I look up the transaction results for the following txhash I don’t see the correct data:

I have a list of various transactions like this where the amounts in vs out don’t seem to match what I see during etherscan. Part of this is because some of these tx don’t seem like regular uniswap trades.

I’m trying to find a common denominator between all of these results so that I can exclude it from my data as the values are not the same as I would find on etherscan. Any advice?

I’m using the following query:

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {asc: ["block.height"], limit: 50, offset: 0}
      txHash: {is: "0xc681f8cfd7273fe079eef58b33b068aab6a336bc060e7f718db5392bd6434f5c"}
    ) {
      side
      baseCurrency {
        address
        symbol
        decimals
      }
      quoteCurrency {
        address
        symbol
        decimals
      }
      quotePrice
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sellAmount: buyAmount
      sellCurrency: buyCurrency {
        address
        symbol
      }
      buyAmount: sellAmount
      buyCurrency: sellCurrency {
        address
        symbol
      }
      tradeAmount(in: USD)
    }
  }
}

Hello @Avo, yes this seems to be a problem related to decimals, you can open a ticket in support to get help and fix the issue.

Support

Regards.

1 Like