MarketHubRegistrar

This contract provides the functionality to register and unregister to the MarketHub. Contracts that inherit from this contract can be registered and unregistered from the MarketHub.

marketHub

contract IMarketHub marketHub

onlyMarketHub

modifier onlyMarketHub()

Modifier to allow only the MarketHub contract to perform certain actions.

register

function register() public virtual

Registers the calling contract to the MarketHub. Reverts if the contract is already registered.

unregister

function unregister() public virtual

Unregisters the calling contract from the MarketHub. Reverts if the contract is not registered.

Last updated