Trying to figure out why the init hash code of Benswap's Router.sol is different in the deployed mainnet vs testnet contracts and how it is actually calculated. To give some more context, I've been struggling for the past day to successfully provide initial liquidity (which creates brand new Pair) on Benswap's contracts I deployed myself on testnet and after debugging some on Remix my current suspicion is that the hardcoded init hash in PancakeLibrary (within Router.sol) has a wrong value configured and possibly the cause of the reverts. If by any chance anyone has an idea why it is different and how to calculate the init hash I would greatly appreciate your feedback Init hash code in question: https://github.com/BenTokenFinance/benswapbch-contracts/blob/master/Contracts/Router.sol#L294 Official Mainnet Router Contract: https://www.smartscan.cash/address/0xa194133ED572D86fe27796F2feADBAFc062cB9E0 Official Testnet Router Contract: https://www.smartscan.cash/address/0x221C2c57B0dAec7aF9A3B03c384c0C99e066b612 #BitcoinCash
No comments yet