Assessment reports>Polygon Staking>Threat Model>deposit

Function: deposit(uint256 _amount)

This function deposits tokens from the vault controller into the validator pool.

Inputs

  • _amount

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Amount of tokens to deposit.

Branches and code coverage

Intended branches

  • Receive the amount of tokens to deposit.

  • Call the buyVoucherPOL function on the validator pool.

  • Send any remaining tokens back to the vault controller.

Zellic © 2025Back to top ↑