Assessment reports>WOOFI Stake>Threat Model>inCaseTokenGotStuck

Function: inCaseTokenGotStuck(address stuckToken)

This allows the owner to recover any token sent to the contract by mistake.

Inputs

  • stuckToken

    • Control: Fully controlled by the owner.

    • Constraints: Checked to be either native or some ERC-20 token.

    • Impact: The token to be recovered.

Branches and code coverage

Intended branches

  • Called by the owner to retrieve stuck native tokens.

  • Called by the owner to retrieve stuck ERC-20 tokens.

Negative behavior

  • Should not be callable by anyone other than the owner.

Zellic © 2024Back to top ↑