getOrderDetailsString function uses unbounded string concatenation which can cause out-of-gas errors for large order IDs or addresses, making the function unusable. The getOrderDetailsString function is designed to return human-readable order information.
The function uses abi.encodePacked with multiple string concatenations and conversions, which can consume excessive gas for large values.
Likelihood:
Order IDs increment indefinitely (_nextOrderId++)
Large token amounts and prices are common in DeF
Impact:
Function becomes unusable for large order IDs or amounts
Gas cost increases significantly over time
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.