Assessment reports>Spectral Modelers>Threat Model>setConsumptionContract

Function: setConsumptionContract(IConsumption _consumptionContract)

This function sets the consumption contract address in the calling contract.

Inputs

  • _consumptionContract

    • Control: Controlled by the admin.

    • Constraints: Address must not be zero.

    • Impact: Updates the consumptionContract state variable with the provided address.

Branches and code coverage

Intended branches

  • Updating the consumptionContract state variable.

Negative behavior

  • Ensuring caller is an admin.

  • _consumptionContract must not be a zero address.

Zellic © 2024Back to top ↑