You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, as I was trying to call the pairFor() method from the PancakeLibrary to compute the CREATE2 address of a token pair, I noticed that the address did not match the ones returned from the router.
After a closer look, I realized the hardcoded value, see line 24 of Pancake Library does not match the INIT_CODE_PAIR_HASH that was computed by the Factory. You can find the actual value here.
Using the value obtained from BSCscan, it resolves the issue that I had and I was able to get the correct pair address. I thought I would raise this issue for anyone who's also having a hard time with this.
The text was updated successfully, but these errors were encountered:
Hi there, as I was trying to call the
pairFor()
method from thePancakeLibrary
to compute the CREATE2 address of a token pair, I noticed that the address did not match the ones returned from the router.After a closer look, I realized the hardcoded value, see line 24 of Pancake Library does not match the
INIT_CODE_PAIR_HASH
that was computed by the Factory. You can find the actual value here.Using the value obtained from BSCscan, it resolves the issue that I had and I was able to get the correct pair address. I thought I would raise this issue for anyone who's also having a hard time with this.
The text was updated successfully, but these errors were encountered: