Skip to content

Constants ​

HUNDRED_PERCENT ​

solidity
uint256 HUNDRED_PERCENT

hundred percent at 1e2 precision

EXCHANGE_PRICES_PRECISION ​

solidity
uint256 EXCHANGE_PRICES_PRECISION

precision for exchange prices in Liquidity

NATIVE_TOKEN_ADDRESS ​

solidity
address NATIVE_TOKEN_ADDRESS

address that is mapped to the chain native token at Liquidity

DUST_BORROW_AMOUNT ​

solidity
uint256 DUST_BORROW_AMOUNT

dust amount to borrow from Liquidity at initialize()

LIQUIDITY ​

solidity
contract IFluidLiquidity LIQUIDITY

address of the Liquidity contract.

LIDO_WITHDRAWAL_QUEUE ​

solidity
contract ILidoWithdrawalQueue LIDO_WITHDRAWAL_QUEUE

address of the Lido Withdrawal Queue contract (0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1)

STETH ​

solidity
contract IERC20 STETH

address of the StETH contract.

LIQUIDITY_EXCHANGE_PRICES_SLOT ​

solidity
bytes32 LIQUIDITY_EXCHANGE_PRICES_SLOT

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

constructor ​

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

constantsView ​

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

returns the constant values for LIQUIDITY, LIDO_WITHDRAWAL_QUEUE, STETH

Variables ​

claims ​

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

solidity
uint8 _status

status for reentrancy guard

maxLTV ​

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

solidity
bool allowListActive

flag whether allow list behavior is enabled or not.

_auths ​

solidity
mapping(address => uint256) _auths

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

_guardians ​

solidity
mapping(address => uint256) _guardians

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

_allowed ​

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

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