Assessment reports>SSI Protocol>Threat Model>forceCancelSwapRequest

Function: forceCancelSwapRequest(OrderInfo orderInfo)

This function forcefully cancels the swap after the expiration of the swap.

Inputs

  • orderInfo

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

    • Constraints: Must be a pending or maker-confirmed order.

    • Impact: Specifies the order to cancel.

Branches and code coverage

Intended branches

  • Change the status of the order to force-canceled.

Negative behavior

  • The caller is a taker.

  • Given order hash matches the actual hash.

  • Expiration delay has passed.

Zellic © 2025Back to top ↑