FluidStETHResolver
Fluid StETH protocol resolver Implements various view-only methods to give easy access to StETH protocol data.
STETH_QUEUE
contract IFluidStETHQueue STETH_QUEUE
address of the stETHQueue contract
LIDO_WITHDRAWAL_QUEUE
contract ILidoWithdrawalQueue LIDO_WITHDRAWAL_QUEUE
address of the Lido Withdrawal Queue contract (0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1)
LIQUIDITY_RESOLVER
contract IFluidLiquidityResolver LIQUIDITY_RESOLVER
address of the LiquidityResolver
NATIVE_TOKEN_ADDRESS
address NATIVE_TOKEN_ADDRESS
address that is mapped to the chain native token at Liquidity
FluidStETHResolver__AddressZero
error FluidStETHResolver__AddressZero()
thrown if an input param address is zero
FluidStETHResolver__NoClaimQueued
error FluidStETHResolver__NoClaimQueued()
thrown if there is no Claim queued for the given input data
constructor
constructor(contract IFluidStETHQueue stEthQueue_, contract IFluidLiquidityResolver liquidityResolver_, contract ILidoWithdrawalQueue lidoWithdrawalQueue_) public
isClaimable
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
Name | Type | Description |
---|---|---|
claimTo_ | address | claimTo receiver to process the claim for |
requestIdFrom_ | uint256 | Lido requestId from (start), as emitted at time of queuing via LogQueue |
config
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
function isAuth(address auth_) public view returns (bool)
reads if a certain auth_
address is an allowed auth or not
isGuardian
function isGuardian(address guardian_) public view returns (bool)
reads if a certain guardian_
address is an allowed guardian or not
isUserAllowed
function isUserAllowed(address user_) public view returns (bool)
reads if a certain user_
address is an allowed user or not
isPaused
function isPaused() public view returns (bool)
reads if the protocol is paused or not
claim
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
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