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
clob
Control: Full control.
Constraints: No constraints.
Impact: The address of the contract on which the
postLimitOrder
function will be called.
args
Control: Full control.
Constraints:
settlement
is 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?
clob
andargs
.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
clob
contract address is fully controlled by the caller. Reentrancy is possible here. For more detailed information, refer to the3.5
finding description (ref↗).