Function: confirmRedeem(byte[32] orderHash, byte[32] txHash)
This function confirms the redemption order.
Inputs
orderHashControl: Fully controlled by the caller.
Constraints: Must be the order hash of the pending order.
Impact: Specifies the order to be confirmed.
txHashControl: Fully controlled by the caller.
Constraints: None.
Impact: Specifies the transaction that processed the redemption.
Branches and code coverage
Intended branches
Change the status of the order.
Transfer the redeem token if the transaction hash is not given.
Burn the redeemed USSI tokens.
Negative behavior
The caller is the owner.
Given order is the redemption order.
Given order is pending.