function setIntervals(uint256 id_, uint32[3] calldata intervals_) external
Intended behavior.
Set market intervals to different values than the defaults
Negative behavior.
shouldn’t update metadata for an INEXISTENT ID (this is covered since
uint256(terms[id_].conclusion) - block.timestamp
would fail otherwise)
Preconditions.
assumes that a market exists for the
id
(including its metadata mapping)shouldn’t
tuneBelowCapacity
also be updated?assumes that the owner calls the function( checked here
if (msg.sender != market.owner) revert Auctioneer_OnlyMarketOwner();
)
Postconditions.
that the metadata for the market has been changed (IMPORTANT: not all fields are supposed to change)
Inputs.
uint256 id_
full control; despite that,msg.sender
is checked to be the owner of the marketuint32[3] calldata intervals_
full control; limited checks(seems like all checks are fine)
Examine all function calls the function makes.
There are no function calls here.