A BEP20 smart contract needs to have a function called periodically (At least once a day) to process some data. The gas fee required to do so is quite high (>0.1 BNB every call). What are some ways to reduce the amount of gas fees required to call this function without changing the smart contract's code or data?

  • There could be many ways optimize and cut the costs, but it all depends on the logic. Please walk us thru the logic that the method is executing and provide us with the smart contract code. Commented Jul 8, 2021 at 11:42

1 Answer 1


I have two suggestions

  • You can optimize your code to make it work more efficiently, here are some tips.

  • You can enable the solidity optimizer, see more about it here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.