I think it is a problem related to swapAndLiqudfy. try turning it off Also I see you have pancake router v1 You must use v2 address. Check This