Submitted by shenwilly
An orders type and its rules are defined in its Complication. Not checking it would allow anyone to take any orders regardless of their Complications rule, causing unexpected execution for order makers.
takeMultipleOneOrders assumes that all makerOrders are simple orderbook orders and the  Complication check is missing here.
Add canExecTakeOneOrder function in IComplication.sol and implement it in InfinityOrderBookComplication (and future Complications) to support takeMultipleOneOrders operation, then modify takeMultipleOneOrders to use the check:
nneverlander (Infinity) confirmed and resolved:
HardlyDifficult (judge) commented:
