subgraphs icon indicating copy to clipboard operation
subgraphs copied to clipboard

fix(#patch); pancakeswap-v2-swap-bsc; add broken ERC20 tokens

Open dhruv-chauhan opened this issue 2 years ago • 2 comments

  • Issues:
    • pancakeswap-v2-swap-bsc deployment is failing with messages:
      • overflow converting 0xa9f551de0f330654f37bcd89128d8828e4f820f000 to i32 inside getOrCreateToken() method. This is due to token with it's decimals = 1370893090329243333764287979126883543363385161129 which overflows i32 when trying to bind the token to an ERC20 abi.
      • overflow converting 0x000064a7b3b6e00d to i32, due to unverified token contract.
    • Another similar occurance at tx: https://bscscan.com/tx/0x6580a2c83d60ef7794896c4f11a37ecabbc7871d0a98ed1ed1c4346f04f90d5d, due to unverified token contract: https://bscscan.com/address/0x14111b627d35D3d54505247b4ef1a0754eb02eb7#code
  • Previously seen: #2341 and #2445
  • Deployments:
    • (grafted) pancakeswap-v2-swap-bsc: https://okgraph.xyz/?q=dhruv-chauhan%2Fpancakeswap-v2-swap-bsc-3

dhruv-chauhan avatar Dec 25 '23 10:12 dhruv-chauhan

@dhruv-chauhan I know this is going to take a billion years to finish syncing. We have had this problem 2x in a few months, I can't remember if we have code to fix the root cause? And if we don't can we add that in this PR?

melotik avatar Feb 15 '24 17:02 melotik

This PR has fix for both #2400 and #2483 @melotik

dhruv-chauhan avatar Feb 16 '24 09:02 dhruv-chauhan