Constants

HUNDRED_PERCENT

uint256 HUNDRED_PERCENT

hundred percent at 1e2 precision

EXCHANGE_PRICES_PRECISION

uint256 EXCHANGE_PRICES_PRECISION

precision for exchange prices in Liquidity

NATIVE_TOKEN_ADDRESS

address NATIVE_TOKEN_ADDRESS

address that is mapped to the chain native token at Liquidity

DUST_BORROW_AMOUNT

uint256 DUST_BORROW_AMOUNT

dust amount to borrow from Liquidity at initialize()

LIQUIDITY

contract IFluidLiquidity LIQUIDITY

address of the Liquidity contract.

LIDO_WITHDRAWAL_QUEUE

contract ILidoWithdrawalQueue LIDO_WITHDRAWAL_QUEUE

address of the Lido Withdrawal Queue contract (0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1)

STETH

contract IERC20 STETH

address of the StETH contract.

LIQUIDITY_EXCHANGE_PRICES_SLOT

bytes32 LIQUIDITY_EXCHANGE_PRICES_SLOT

slot id in Liquidity contract for exchange prices storage slot for NATIVE_TOKEN_ADDRESS.

constructor

constructor(contract IFluidLiquidity liquidity_, contract ILidoWithdrawalQueue lidoWithdrawalQueue_, contract IERC20 stETH_) internal

constantsView

function constantsView() external view returns (contract IFluidLiquidity, contract ILidoWithdrawalQueue, contract IERC20)

returns the constant values for LIQUIDITY, LIDO_WITHDRAWAL_QUEUE, STETH

Variables

claims

mapping(address => mapping(uint256 => struct Structs.Claim)) claims

maps claimTo address and requestIdFrom to the Claim struct containing necessary information for executing the claim process.

_status

uint8 _status

status for reentrancy guard

maxLTV

uint16 maxLTV

maximum allowed percentage of LTV (loan-to-value). E.g. 90% -> max. 90 ETH can be borrowed with 100 stETH as collateral in withdrawal queue. ETH will be received at time of claim to cover the paid borrowed ETH amount. In 1e2 (1% = 100, 90% = 9_000, 100% = 10_000). Configurable by auths.

allowListActive

bool allowListActive

flag whether allow list behavior is enabled or not.

_auths

mapping(address => uint256) _auths

auths can update maxLTV. owner can add/remove auths. Owner is auth by default.

_guardians

mapping(address => uint256) _guardians

guardians can pause/unpause queue() and claim(). owner can add/remove guardians. Owner is guardian by default.

_allowed

mapping(address => uint256) _allowed

allowed users can use the StETH protocol (if allowListActive is true, then use is open for everyone). owner and auths can add/remove allowed users.

constructor

constructor(contract IFluidLiquidity liquidity_, contract ILidoWithdrawalQueue lidoWithdrawalQueue_, contract IERC20 stETH_) internal