StETHQueueAdmin

Git Source

Inherits:Variables, ReentrancyGuard

FluidStETHQueue admin related methods

Functions

onlyAuths

only auths guard

modifier onlyAuths();

isAuth

reads if a certain auth_ address is an allowed auth or not

function isAuth(address auth_) public view returns (bool);

isGuardian

reads if a certain guardian_ address is an allowed guardian or not

function isGuardian(address guardian_) public view returns (bool);

isUserAllowed

reads if a certain user_ address is an allowed user or not

function isUserAllowed(address user_) public view returns (bool);

isPaused

reads if the protocol is paused or not

function isPaused() public view returns (bool);

setAuth

Sets an address as allowed auth or not. Only callable by owner.

function setAuth(address auth_, bool allowed_) external onlyOwner validAddress(auth_);

Parameters

NameTypeDescription
auth_addressaddress to set auth value for
allowed_boolbool flag for whether address is allowed as auth or not

setGuardian

Sets an address as allowed guardian or not. Only callable by owner.

function setGuardian(address guardian_, bool allowed_) external onlyOwner validAddress(guardian_);

Parameters

NameTypeDescription
guardian_addressaddress to set guardian value for
allowed_boolbool flag for whether address is allowed as guardian or not

setUserAllowed

Sets an address as allowed user or not. Only callable by auths.

function setUserAllowed(address user_, bool allowed_) external onlyAuths validAddress(user_);

Parameters

NameTypeDescription
user_addressaddress to set allowed value for
allowed_boolbool flag for whether address is allowed as user or not

setMaxLTV

Sets maxLTV to maxLTV_ (in 1e2: 1% = 100, 100% = 10000). Must be > 0 and < 100%.

function setMaxLTV(uint16 maxLTV_) external onlyAuths;

pause

Pauses the protocol (blocks queue() and claim()). Only callable by guardians.

function pause() external;

unpause

Unpauses the protocol (enables queue() and claim()). Only callable by owner.

function unpause() external onlyOwner;

setAllowListActive

Sets allowListActive flag to status_. Only callable by owner.

function setAllowListActive(bool status_) external onlyOwner;