Assessment reports>Beefy UniswapV3>Threat Model>depositAll

Function: depositAll(uint256 _minShares)

Allows user to deposit in the vault their entire balances of token0 and token1.

Inputs

  • _minShares

    • Control: Fully controlled by the user.

    • Constraints: none.

    • Impact: The minimum amount of shares that the user wants to receive with slippage.

Branches and code coverage

Intended branches

  • Call deposit with the entire balance of each tokens for the user.

Negative behavior

  • Should not allow the user to deposit more than they have. This is enforced through the deposit function.

Zellic © 2024Back to top ↑