Skip to content

StETHQueueAdmin ​

Git Source

Inherits:Variables, ReentrancyGuard

FluidStETHQueue admin related methods

Functions ​

onlyAuths ​

only auths guard

solidity
modifier onlyAuths();

isAuth ​

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

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

isGuardian ​

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

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

isUserAllowed ​

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

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

isPaused ​

reads if the protocol is paused or not

solidity
function isPaused() public view returns (bool);

setAuth ​

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

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

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

solidity
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%.

solidity
function setMaxLTV(uint16 maxLTV_) external onlyAuths;

pause ​

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

solidity
function pause() external;

unpause ​

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

solidity
function unpause() external onlyOwner;

setAllowListActive ​

Sets allowListActive flag to status_. Only callable by owner.

solidity
function setAllowListActive(bool status_) external onlyOwner;