I use the Pancakeswap LP Pair address for (BNB/Token) in an if statement to check if the transfer is a buy/sell. But if someone provides liquidity using a different pair for the token, example USDT/Token, then the LP Pair address would change and will be excluded from the if statement.
Is there a way to either:
- Prevent anyone else apart from the owner to create a new Liquidity Pair?
- Prevent any liquidity pair except for BNB/Token to be created?
- Check if an address is a Pancakeswap LP Pair address or not?
- Find a way to automatically add the new pairs' created addresses into the if statement?
Any option that would solve the problem would be a huge help. Thanks!