Assessment reports>SSI Protocol>Threat Model>confirmSwapRequest

Function: confirmSwapRequest(OrderInfo orderInfo, bytes[] inTxHashs)

This function confirms and finalizes the swap.

Inputs

  • orderInfo

    • Control: Controlled by the caller of the contracts that use the swap.

    • Constraints: Must be a valid order.

    • Impact: Specifies the order to confirm.

  • inTxHashs

    • Control: 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 inByContract is false.

Branches and code coverage

Intended branches

  • Change the status of the order to maker-confirmed.

  • Execute the input transactions if inByContract is 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.

Zellic © 2025Back to top ↑