Assessment reports>Staking>Threat Model>stakeLoan

Function: stakeLoan(address _gsPool, uint256 _loanId)

Allows msg.sender to stake loan on behalf of msg.sender.

Inputs

  • _gsPool

    • Control: Fully controlled by the handler.

    • Constraints: None --- should be a registered pool.

    • Impact: The pool to stake in.

  • _loanId

    • Control: Fully controlled by the handler.

    • Constraints: None.

    • Impact: The loan to stake.

Branches and code coverage (including function calls)

Intended branches

  • Allows msg.sender to stake loan.

  • Assumes all other relevant checks are performed in ILoanTracker.stakeForAccount.

Negative behavior

  • Should not allow calling an unregistered pool.

Zellic © 2024Back to top ↑