Function: confirmSwapRequest(OrderInfo orderInfo, bytes[] inTxHashs)
This function confirms and finalizes the swap.
Inputs
orderInfoControl: Controlled by the caller of the contracts that use the swap.
Constraints: Must be a valid order.
Impact: Specifies the order to confirm.
inTxHashsControl: Controlled by the caller of the contracts that use the swap.
Constraints: Must have a number of elements equal to the number of inputs.
Impact: Specifies the input transactions if
inByContractis false.
Branches and code coverage
Intended branches
Change the status of the order to maker-confirmed.
Execute the input transactions if
inByContractis true.
Negative behavior
The caller is a taker.
Given order hash matches the actual hash.
Given order is requested by the caller.
Given order is maker-confirmed.