I am trying to use PancakeSwap contracts in my Foundry Tests. But when I import some of them (for example PancakeRouter) I get an error:
Discovered incompatible solidity versions in following
: test/helpers/Pancake.sol (>=0.4.0) imports:
lib/pancake-smart-contracts/projects/exchange-protocol/contracts/libraries/WBNB.sol (^0.4.18)
lib/pancake-smart-contracts/projects/exchange-protocol/contracts/PancakeFactory.sol (=0.5.16)
lib/pancake-smart-contracts/projects/exchange-protocol/contracts/PancakeRouter.sol (=0.6.6)
lib/pancake-smart-contracts/projects/exchange-protocol/contracts/interfaces/IPancakeFactory.sol (>=0.5.0)
lib/pancake-smart-contracts/projects/exchange-protocol/contracts/PancakePair.sol (=0.5.16)
Do you have any idia how to solve such errors?