Assessment reports>SSI Protocol>Threat Model>rollbackSwapRequest

Function: rollbackSwapRequest(OrderInfo orderInfo)

This function rolls back the swap after it is maker-confirmed.

Inputs

  • orderInfo

    • Control: Fully controlled by the caller.

    • Constraints: Must be a maker-confirmed order.

    • Impact: Specifies the order to roll back.

Branches and code coverage

Intended branches

  • Change the status of the order to pending.

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.

  • outByContract is false.

Zellic © 2025Back to top ↑