Assessment reports>Anzen and protocol-v2>Threat Model>updatePoolWeightConfig

Function: updatePoolWeightConfig(address pool, uint64 maxWeight, uint64 minWeight)

This function is used to configure the maximum and minimum weight vote for a pool.

Inputs

  • pool

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the pool.

  • maxWeight

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Value of the maximum weight.

  • minWeight

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Value of the minimum weight.

Branches and code coverage

Intended branches

  • Update the pool's weight configuration.

Negative behavior

  • Revert if the caller is not the owner or owner helper.

Zellic © 2025Back to top ↑