there is also the same kind of error lurking in reddit,
You can try to check them and see if they will fix your problem.
The transaction is reverted, so the ETH/tokens/... never left your account in the first place. The ETH you paid for gas is not returned however.
Increase the gas limit, not the gas price. The gas limit is how much gas a transaction can use in total, and the gas price is how much you pay per unit of gas. More info on gas can be found here (
https://support.mycrypto.com/general-knowledge/ethereum-blockchain/what-is-gas), if you're interested.
So generally execution reverted means the transaction was canceled due to slippage. Every transaction has a slippage % and if that % is exceeded the transaction is reverted. Yes you paid the gas fee for it, because the miner did "work" but had to reverse the outcome.
Usually this happens for a few reasons:
Your transaction waited too long to execute (gas price was too low), and the price deviated too much between the time the transaction was initiated and when it was processed).
You tried to swap an amount that was large relative to the size of the pool, i.e. a small cap coin where your swap represents like 10% of the liquidity pool, which caused the price to fluctuate and exceed the slippage %.
The market was very volatile at the time of your transaction, in which case the slippage % was set too low.
https://ethereum.stackexchange.com/questions/87475/how-to-fix-warning-error-encountered-during-contract-execution-out-of-gashttps://forum.moralis.io/t/warning-error-encountered-during-contract-execution-reverted/901
That is another possibility, but execution reverted errors in some cases do get included in a transaction.
We can't know for sure since OP using a custom smart contract. I don't know what is wrong, whether on the user side or not. But I suspect it is rather how OP smart contract behaves. It would be much better if @OP gives more information regarding tx if any, or a specific part of the code.
If everything about slippage, and gas fee don't solve the problem, I think this ↑↑↑