Assessment reports>SSI Protocol>Threat Model>confirmRedeem

Function: confirmRedeem(byte[32] orderHash, byte[32] txHash)

This function confirms the redemption order.

Inputs

  • orderHash

    • Control: Fully controlled by the caller.

    • Constraints: Must be the order hash of the pending order.

    • Impact: Specifies the order to be confirmed.

  • txHash

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: Specifies the transaction that processed the redemption.

Branches and code coverage

Intended branches

  • Change the status of the order.

  • Transfer the redeem token if the transaction hash is not given.

  • Burn the redeemed USSI tokens.

Negative behavior

  • The caller is the owner.

  • Given order is the redemption order.

  • Given order is pending.

Zellic © 2025Back to top ↑