Assessment reports>Nukem Loans>Threat Model>registerVsCredit

Function: registerVsCredit(address vsCredit_)

This sets the vsCredit contract address.

Inputs

  • vsCredit_

    • Control: Fully controlled by the caller.

    • Constraints: Checked to be a valid address.

    • Impact: vsCredit address.

Branches and code coverage (including function calls)

Intended branches

  • Should set the vsCredit address.

  • Ensure that the vsCredit's market is the same as this address. Similar additional cross-checks could be added.

Negative behavior

  • Should not be callable by anyone other than the owner.

  • Presumably should not be callable more than once.

Zellic © 2024Back to top ↑