Assessment reports>Prisma Finance>Threat Models>approve

Function: approve(address _spender, uint256 _value)

Allow a token owner to authorize another account to spend a specified amount of their tokens.

Inputs

  • _spender

    • Control: Controlled by the user.

    • Constraints: N/A.

    • Impact: Becomes authorized to spend a specified amount of the caller's tokens.

  • _value

    • Control: Controlled by the user.

    • Constraints: N/A.

    • Impact: Sets the maximum number of tokens _spender can transfer from the token owner's balance.

Branches and code coverage (including function calls)

Intended branches

  • Successful approval.

Negative behavior

  • Approval of zero value.

Zellic © 2025Back to top ↑