Skip to content

FluidStETHResolver ​

Fluid StETH protocol resolver Implements various view-only methods to give easy access to StETH protocol data.

STETH_QUEUE ​

solidity
contract IFluidStETHQueue STETH_QUEUE

address of the stETHQueue contract

LIDO_WITHDRAWAL_QUEUE ​

solidity
contract ILidoWithdrawalQueue LIDO_WITHDRAWAL_QUEUE

address of the Lido Withdrawal Queue contract (0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1)

LIQUIDITY_RESOLVER ​

solidity
contract IFluidLiquidityResolver LIQUIDITY_RESOLVER

address of the LiquidityResolver

NATIVE_TOKEN_ADDRESS ​

solidity
address NATIVE_TOKEN_ADDRESS

address that is mapped to the chain native token at Liquidity

FluidStETHResolver__AddressZero ​

solidity
error FluidStETHResolver__AddressZero()

thrown if an input param address is zero

FluidStETHResolver__NoClaimQueued ​

solidity
error FluidStETHResolver__NoClaimQueued()

thrown if there is no Claim queued for the given input data

constructor ​

solidity
constructor(contract IFluidStETHQueue stEthQueue_, contract IFluidLiquidityResolver liquidityResolver_, contract ILidoWithdrawalQueue lidoWithdrawalQueue_) public

isClaimable ​

solidity
function isClaimable(address claimTo_, uint256 requestIdFrom_) public view returns (bool)

checks if a linked claim for claimTo_ and claimTo_ is ready to be processed at Lido Withdrawal Queue

Parameters ​

NameTypeDescription
claimTo_addressclaimTo receiver to process the claim for
requestIdFrom_uint256Lido requestId from (start), as emitted at time of queuing via LogQueue

config ​

solidity
function config() public view returns (contract IFluidLiquidity liquidity_, contract ILidoWithdrawalQueue lidoWithdrawalQueue_, contract IERC20 stETH_, address owner_, uint16 maxLTV_, bool allowListActive_, bool isPaused_, struct Structs.UserBorrowData userBorrowData_, struct Structs.OverallTokenData overallTokenData_)

returns all constants and config values

isAuth ​

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

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

isGuardian ​

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

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

isUserAllowed ​

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

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

isPaused ​

solidity
function isPaused() public view returns (bool)

reads if the protocol is paused or not

claim ​

solidity
function claim(address claimTo_, uint256 requestIdFrom_) public view returns (struct Structs.Claim claim_, bool isClaimable_)

reads a Claim struct containing necessary information for executing the claim process from the mapping claimTo and requestIdFrom -> claims and the claimable status.

getUserBorrowData ​

solidity
function getUserBorrowData() public view returns (struct Structs.UserBorrowData userBorrowData_, struct Structs.OverallTokenData overallTokenData_)

returns borrow data and general data (such as rates, exchange prices, utilization, fee, total amounts etc.) for native token