I am currently running some tests on ganache using web3.js connector.
Most of my transactions run OK if I supply the same amount of gas that is suggested by web3.eth.estimateGas(), however, one of the transactions uses about 3x the gas estimate provided by web3.eth.estimateGas(....), is this normal??
My concern is that once I deploy this on the mainnet and if this recurs randomly then I could be out of a lot of gas due to aborted operations resulting from inadequate gas supplied for the transaction.
What is the best practice for handling this kind of situation, should I normally supply x times the gasEstimate just to be on the safe side...what is a good value for x.
as a side note, the function call in question has three require statements, does that impact gas consumption in a big way??