Assessment reports>Cega>Threat Models>Function: updateRoundData(uint80 roundId, RoundData _roundData)

Function: updateRoundData(uint80 roundId, RoundData _roundData)

This function changes the pricing data struct (RoundData) for a given round number (roundId).

Inputs

  • roundId

    • Control: Full.

    • Constraints: Value must be less than the size of the oracleData array or the function call will revert with an index-out-of-bounds error.

    • Impact: The round ID to update in the oracleData array.

  • _roundData

    • Control: Full.

    • Constraints: None.

    • Impact: The new RoundData struct to store.

Branches and code coverage (including function calls)

Intended branches

  • Updates the pricing round data stored at the roundId index of the oracleData array.

Negative behaviour

  • Function is called by non-service admin.

  • Function is called with a roundId that is not a valid index in the oracleData array.

Zellic © 2024Back to top ↑