I'm messing around with web3py and I ran into something that I haven't been able to understand; when I call positions() on a tokenid, I get odd results for the tokensOwed values. The results don't match what I see on the app.uniswap.org/#/pool/{TOKEN_ID} url; some times there are values that are just off from what's listed, other times it just straight up returns a 0.

This isn't unique to web3py, if I call the function from the contract's etherscan page, I also get an incorrect return value. I'm not sure what I'm missing here.

  • It would help with some code. Jun 7 at 9:57
  • It's not really a matter of code, I'm calling the positions function located here: etherscan.io/token/…
    – denxi
    Jun 8 at 2:59
  • It does. We cannot determine what goes wrong (if there is) if we do not know what the functions do. Jun 8 at 6:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.