0

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?

1
  • 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. Jul 8 at 11:42
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, privacy policy and cookie policy

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