Function: depositAll(uint256 _pid, bool _stake)
Helper function for depositing the sender's full balance to a gauge (specified by _pid). Optionally stakes the minted DepositToken on BaseRewardPool.
Inputs
_pidControl: Arbitrary.
Constraints: Must be a valid entry in the
poolInfoarray, orbalanceOfwill revert.Impact: Decides the pool to deposit to.
_stakeControl: Arbitrary.
Constraints: Boolean.
Impact: Decides if the deposit should be staked after minting.
Branches and code coverage (including function calls)
Intended branches
Deposit with stake.
Deposit without stake.
Negative behavior
Deposit with invalid
_pid.