Function: clobPostLimitOrder(ICLOB clob, ICLOB.PostLimitOrderArgs args)
This function allows triggering the postLimitOrder function of the specified clob contract. The provided order will be executed and, if not fully filled, added to the order book.
Inputs
clobControl: Full control.
Constraints: No constraints.
Impact: The address of the contract on which the
postLimitOrderfunction will be called.
argsControl: Full control.
Constraints:
settlementis set up toACCOUNT.Impact: Contains
amountInBaseLots,priceInTicks,cancelTimestamp,side,limitOrderType, andsettlement.
Branches and code coverage
Negative behavior
The resulting amount of tokens exceeds the caller’s balance in the CLOBManager.
Function call analysis
clob.postLimitOrder(msg.sender, args)What is controllable?
clobandargs.If the return value is controllable, how is it used and how can it go wrong? Return values are not used here.
What happens if it reverts, reenters or does other unusual control flow? There is a potential problem because the
clobcontract address is fully controlled by the caller. Reentrancy is possible here. For more detailed information, refer to the3.5finding description (ref↗).