Function: clobCancel(ICLOB clob, ICLOB.CancelArgs args)
This function allows the cancellation of orders identified by the provided args.orderIds array.
Inputs
clobControl: Full control.
Constraints: No constraints.
Impact: The address of the contract on which the
cancelfunction will be called.
argsControl: Full control.
Constraints: The caller should be an owner of the provided
args.orderIds.Impact: Contains the
orderIdsand the settlement type,INSTANTorACCOUNT—ACCOUNTmeans that funds will be added to the user's balance in the CLOBManager contract, whileINSTANTmeans that tokens will be transferred directly to the user.
Branches and code coverage
Intended branches
Orders have been successfully closed.
Negative behavior
The caller is not an owner of the provided
args.orderIds.
Function call analysis
clob.cancel(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↗).