Function: unstakeLoan(address _gsPool, uint256 _amount)
Allows msg.sender
to unstake loan
.
Inputs
_gsPool
Control: Fully controlled by the handler.
Constraints: None --- should be a registered pool.
Impact: The pool to unstake from.
_amount
Control: Fully controlled by the handler.
Constraints: None.
Impact: Amount to be unstaked.
Branches and code coverage (including function calls)
Intended branches
Unstakes from
gsPool
foraccount
's reward tracker.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.