IPauser
Inherits: ImTokenOperationTypes
Functions
emergencyPauseMarket
pauses all operations for a market
function emergencyPauseMarket(address _market) external;
Parameters
Name | Type | Description |
---|---|---|
_market | address | the mToken address |
emergencyPauseMarketFor
pauses a specific operation for a market
function emergencyPauseMarketFor(address _market, OperationType _pauseType) external;
Parameters
Name | Type | Description |
---|---|---|
_market | address | the mToken address |
_pauseType | OperationType | the operation type |
emergencyPauseAll
pauses all operations for all registered markets
function emergencyPauseAll() external;
Events
PauseAll
event PauseAll();
MarketPaused
event MarketPaused(address indexed market);
MarketRemoved
event MarketRemoved(address indexed market);
MarketAdded
event MarketAdded(address indexed market, PausableType marketType);
MarketPausedFor
event MarketPausedFor(address indexed market, OperationType pauseType);
Errors
Pauser_EntryNotFound
error Pauser_EntryNotFound();
Pauser_NotAuthorized
error Pauser_NotAuthorized();
Pauser_AddressNotValid
error Pauser_AddressNotValid();
Pauser_AlreadyRegistered
error Pauser_AlreadyRegistered();
Pauser_ContractNotEnabled
error Pauser_ContractNotEnabled();
Structs
PausableContract
struct PausableContract {
address market;
PausableType contractType;
}
Enums
PausableType
enum PausableType {
NonPausable,
Host,
Extension
}