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
_pid
Control: Arbitrary.
Constraints: Must be a valid entry in the
poolInfo
array, orbalanceOf
will revert.Impact: Decides the pool to deposit to.
_stake
Control: 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
.