Global Parameters
Vif is an ownable, pausable contract. In addition, it has one global parameter, which is the provision required to create a limit order with an expiry (defined in gwei).
| name | type | description | mutable |
|---|---|---|---|
| provision | uint24 | The provision required to create a limit order with an expiry (defined in gwei). | ✅ |
| paused | bool | The paused state of the contract. | ✅ |
| owner | address | The owner of the contract. | ✅ |
| paused | bool | The paused state of the contract. | ✅ |
Ownable
This contract respects EIP-173, so this is easily indexable with the following ABI:
/// @dev The ownership is transferred from `oldOwner` to `newOwner`.
event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);
/// @dev An ownership handover to `pendingOwner` has been requested.
event OwnershipHandoverRequested(address indexed pendingOwner);
/// @dev The ownership handover to `pendingOwner` has been canceled.
event OwnershipHandoverCanceled(address indexed pendingOwner);Pausable
The pausable contract has the following event, and is easily indexable with the following ABI:
/// @notice Emitted when the paused state of the contract is set.
/// @param paused The new paused state.
event SetPaused(bool paused);Pausing the core contract will prevent calling the lock function (and subsequently all the state modifying functions, except the admin functions).
Provision
The provision is a global parameter that is set when the core contract is deployed, and can be updated by the owner. It is defined in gwei.
/// @notice Emitted when the global minimum provision is updated.
/// @param provision The new minimum provision value.
event SetProvision(uint24 provision);