Assessment reports>SSI Protocol>Threat Model>makerConfirmSwapRequest

Function: makerConfirmSwapRequest(OrderInfo orderInfo, bytes[] outTxHashs)

This function confirms the swap from the maker's side.

Inputs

  • orderInfo

    • Control: Fully controlled by the caller.

    • Constraints: Must be a pending order.

    • Impact: Specifies the order to confirm.

  • outTxHashs

    • Control: Fully controlled by the caller.

    • Constraints: Must have a number of elements equal to the number of outputs.

    • Impact: Specifies the output transactions if outByContract is false.

Branches and code coverage

Intended branches

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

  • Execute the output transactions if outByContract is true.

Negative behavior

  • The caller is a maker.

  • Given order hash matches the actual hash.

  • The caller is the maker of the given order.

Zellic © 2025Back to top ↑