contracts
contracts copied to clipboard
fix(PP_Queue_v1): Executing queue can run out of gas
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