I donât understand what the error is, when you execute the ZapInToken function with a pair of Cake/WBNB or Cake/USDT tokens, everything is completed successfully. If you take a pair with a commission of 5% (pancakeswap), it returns the error: âGas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Returned error: {âjsonrpcâ:â2.0â,âerrorâ:âexecution revertedâ,âidâ:2392006384191628}â Despite the fact that the contract has the SetFee function, and I set the required commission there.
I tried to change the commission size using the SetFee function, approve everything was done, the number of tokens was also sufficient.