Function: stakeLp(address _amount, uint256 _gsPool)
Allows msg.sender to stake lp on behalf of msg.sender.
Inputs
_amountControl: Fully controlled by the handler.
Constraints: None.
Impact: Amount to be staked.
_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
Allows
msg.senderto stakelp.Calls
IRewardTracker.stakeForAccountwithlptracker.Calls
IRewardTracker.stakeForAccountwithbonustracker.Calls
IRewardTracker.stakeForAccountwithfeetracker.Assumes all other relevant checks are preformed in
IRewardTracker.stakeForAccount.
Negative behavior
Should not allow calling an unregistered pool.