Assessment reports>Molend Protocol>Threat Model>Function: updateAggregators(address[] memory assets, address[] memory aggregators)

Function: updateAggregators(address[] memory assets, address[] memory aggregators)

The function updates the aggregatorsOfAssets mapping.

Inputs

  • assets

    • Control: Arbitrary.

    • Constraints: No constraints.

    • Impact: The mapping key to be updated.

  • aggregators

    • Control: Arbitrary.

    • Constraints: No constraints.

    • Impact: The mapping value to be updated.

Branches and code coverage

Intended branches

  • The function updates the aggregatorsOfAssets mapping for the provided input.

Negative behavior

  • Revert if caller is not admin.

Function call analysis

  • No external function calls found.

Zellic © 2024Back to top ↑