contracts icon indicating copy to clipboard operation
contracts copied to clipboard

fix(PP_Queue_v1): Executing queue can run out of gas

Open Zitzak opened this issue 8 months ago • 1 comments

Why

If enough orders are in the redemption queue, the execution of the function to process the queue could run out of gas. This has been fixed by introducing a maxOrderPerExecution value which will stop the queue execution loop when it is reached.

What has been done?

  • Add setters and getters for maxOrderPerExecution value
  • Add value to while loop in _executePaymentQueue
  • Update tests

Additional Context

  • https://inverternetwork.slack.com/archives/C07RXJVLAUS/p1747214034621999
  • Closes issue #744

Zitzak avatar May 26 '25 18:05 Zitzak