Skip to content

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).

nametypedescriptionmutable
provisionuint24The provision required to create a limit order with an expiry (defined in gwei).
pausedboolThe paused state of the contract.
owneraddressThe owner of the contract.
pausedboolThe 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);