Function: unstakeLoanForAccount(address _account, address _gsPool, uint256 _amount)
Allows the handler to unstake loan on behalf of account.
Inputs
_accountControl: Fully controlled by the handler.
Constraints: None.
Impact:
loanis unstaked on behalf of_account.
_gsPoolControl: Fully controlled by the handler.
Constraints: None --- should be a registered pool.
Impact: The pool to unstake from.
_amountControl: Fully controlled by the handler.
Constraints: None.
Impact: Amount to be unstaked.
Branches and code coverage (including function calls)
Intended branches
Unstakes from
gsPoolforaccount's reward tracker.Acts on behalf of
_account.Assumes all other relevant checks are performed in
ILoanTracker.unstakeForAccount.Should not allow calling an unregistered pool.
Negative behavior
Should not be callable by anyone other than the handler.