Assessment reports>SSI Protocol>Threat Model>applyRedeem

Function: applyRedeem(HedgeOrder hedgeOrder, bytes orderSignature)

This function adds the redemption order.

Inputs

  • hedgeOrder

    • Control: Fully controlled by the caller.

    • Constraints: Must be a valid redemption hedge order.

    • Impact: Specifies the hedge order to add.

  • orderSignature

    • Control: Fully controlled by the caller.

    • Constraints: Must be a valid signature for the hash.

    • Impact: Specifies the signature for the hedge order.

Branches and code coverage

Intended branches

  • Add the order to storage.

  • Receive the USSI token from the caller.

Negative behavior

  • The caller is a participant.

  • The caller is the requester of the given hedge order.

  • Given hedge order is valid.

  • Given hedge order redeems the token.

Zellic © 2025Back to top ↑