Category: Coding Mistakes
Inaccessible market-setting functions via delegate call
Informational Severity
Informational Impact
N/A Likelihood
Description
The setMaxLimitsPerTx
, setMaxLimitsExempt
, and setMinLimitOrderAmountInBase
functions in PerpCLOB are designed to be called via the delegate call to modify the PerpBook's MarketSettings
.
However, the PerpCLOBCaller contract does not implement wrapper functions to delegate these calls, making them inaccessible.
Additionally, the reduce
function, which is also intended to be executed via delegate call, is missing from the PerpCLOBCaller implementation.
Impact
As a result, market settings cannot be updated.
Recommendations
Implement the missing delegate-call forwarding functions in PerpCLOBCaller for setMaxLimitsPerTx
, setMaxLimitsExempt
, and setMinLimitOrderAmountInBase
.
Additionally, consider implementing support for the reduce
function if it is intended to be used.