Assessment reports>Polygon Staking>Threat Model>withdrawVaults

Function: withdrawVaults(uint256[] _vaultIds)

This function withdraws from vaults and then performs upkeep if needed.

Inputs

  • _vaultIds

    • Control: Fully controlled by the caller.

    • Constraints: N/A.

    • Impact: Array of vaults to withdraw from.

Branches and code coverage

Intended branches

  • Call unstakeClaim for each vault.

  • Call performUpkeep to perform upkeep if upkeep is needed.

Zellic © 2025Back to top ↑