I am trying to automate swap on pancakeswap but for some tokens manual slippage percent doesn't help and it fails. I need to set slippage automatically every time based on token requirement. In poocoin.app, it does calculate slippage automatically. I want to do something similar to that. Expecting some experts advice. Thanks in advance!