Assessment reports>Polygon Staking>Threat Model>withdraw

Function: withdraw(uint256 _amount)

This function is called to withdraw tokens from the splitter contract.

Inputs

  • _amount

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Amount of tokens to deposit.

Branches and code coverage

Intended branches

  • Check if the caller is a splitter.

  • Call the withdraw function of the splitter.

Negative behavior

  • Revert transaction if caller is not a splitter.

Zellic © 2025Back to top ↑