Function: compound()
Allows a user to compound their rewards (i.e., claim -> stake).
Branches and code coverage (including function calls)
Intended branches
Should claim rewards and stake them back.
Assumes all other relevant checks are performed in each
claimForAccount
andstakeForAccount
function.