Error: cannot estimate gas; transaction may fail or may require manual gas limit

Hello community, I have a fork of sushiswap.

It was working properly and I am surprised by this unexpected error


I would like to know what it is?

Hello @DevBL

This error cannot estimate gas happens when you try to send a transaction that is not valid. The tooling plans that the transaction will revert, and doesn't find any good amount of gas to send it so it would succeed.

Log story short: either what you are trying to do is not a valid operation, or you don't have the right to do it.