Function: stake(uint256 _amount)
This stakes an amount on behalf of the caller. The stake is added to the current balances
.
Inputs
_amount
Control: Fully controlled by the caller.
Constraints: Cannot exceed the amount of tokens approved for the contract.
Impact: The amount to stake.
Branches and code coverage
Intended branches
Stake the exact approved amount.
Stake less than the approved amount.
Negative behavior
Stake more than the approved amount.