uniswap-v3-oracle icon indicating copy to clipboard operation
uniswap-v3-oracle copied to clipboard

PancakeSwap pair reserves swapped for some reasons

Open dzarezenko opened this issue 2 years ago • 0 comments

Hi,

I have found your answer to the PancakeSwap connected question here and looks like you can help me with my problem.

Have you faced the problem when all hardhat tests worked fine but for some reason crashed because the PancakeSwap pair reserved swapped? So, if you change the reserves logic in the contract code tests work again. Even more, I have noticed that the same Solidity code works on the test environment or test networks, but doesn't work on the mainnet. But when I change reserves logic (swap tokens reserves) all work on the mainnet but fails on the testnets.

I have been looking for the reason for this few weeks and can't find any explanation.

Thank you!

dzarezenko avatar Jul 24 '23 10:07 dzarezenko