Function: setNetworkLimit(address network, uint256 amount)
This function sets a network's limit (how much stake the vault curator is ready to give to the network).
Inputs
network
Control: Completely controlled by the caller.
Constraints: N/A.
Impact: Address of the network.
amount
Control: Completely controlled by the caller.
Constraints: N/A.
Impact: New limit of the network.
Branches and code coverage (including function calls)
Intended branches
Network limit after the current timestamp is set to the new amount.
Network limit before the current timestamp returns the old limit.
Negative behavior
Reverts if the new limit amount exceeds the network limit.
Reverts if not called by an address with
NETWORK_LIMIT_SET_ROLE
.