Function: stakeLpForAccount(address _account, address _amount, uint256 _gsPool)
Allows handler to stake lp on behalf of account.
Inputs
_accountControl: Fully controlled by the handler.
Constraints: None.
Impact:
lpis staked on behalf of_account.
_amountControl: Fully controlled by the handler.
Constraints: None.
Impact:
lpis staked on behalf of_account.
_gsPoolControl: Fully controlled by the handler.
Constraints: None --- should be a registered pool.
Impact: The pool to stake in.
Branches and code coverage (including function calls)
Intended branches
Stake on behalf of
address(this)for account.Call
IRewardTracker.stakeForAccountwithlptracker.Call
IRewardTracker.stakeForAccountwithbonustracker.Call
IRewardTracker.stakeForAccountwithfeetracker.Assumes all other relevant checks are performed in
IRewardTracker.stakeForAccount.
Negative behavior
Should not be callable by anyone other than the handler.
Should not allow calling an unregistered pool.