Assessment reports>SSI Protocol>Threat Model>cancelSwapRequest

Function: cancelSwapRequest(OrderInfo orderInfo)

This function cancels the swap if it is before the maker confirms the request.

Inputs

  • orderInfo

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

    • Constraints: Must be a pending order.

    • Impact: Specifies the order to cancel.

Branches and code coverage

Intended branches

  • Change the status of the order to canceled.

Negative behavior

  • The caller is a taker.

  • Given order hash matches to the actual hash.

  • Given order is requested by the caller.

  • Maker confirm delay has passed.

Zellic © 2025Back to top ↑