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

Function: finalizeAndBroadcast(uint64[] chainIds)

This function is used to update the last broadcasted week and finalize the epoch. It is used to calculate the fee for broadcasting the result and broadcast the results for the given chain IDs.

Inputs

  • chainIds

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Array of chain IDs.

Branches and code coverage

Intended branches

  • Get the fee for broadcasting the result.

  • Update the last broadcasted week.

Negative behavior

  • Revert if the last broadcasted week is greater than or equal to the current week.

Zellic © 2025Back to top ↑