IUNSTETH

Git Source

Functions

getWithdrawalStatus

function getWithdrawalStatus(uint256[] calldata _requestIds)
    external
    view
    returns (WithdrawalRequestStatus[] memory statuses);

requestWithdrawals

function requestWithdrawals(
    uint256[] calldata _amounts,
    address _owner
)
    external
    returns (uint256[] memory requestIds);

claimWithdrawal

function claimWithdrawal(uint256 _requestId) external;

claimWithdrawals

function claimWithdrawals(uint256[] calldata _requestIds, uint256[] calldata _hints) external;

finalize

function finalize(uint256 _lastRequestIdToBeFinalized, uint256 _maxShareRate) external payable;

getRoleMember

function getRoleMember(bytes32 role, uint256 index) external view returns (address);

FINALIZE_ROLE

function FINALIZE_ROLE() external view returns (bytes32);

getLastFinalizedRequestId

function getLastFinalizedRequestId() external view returns (uint256);

getLastCheckpointIndex

function getLastCheckpointIndex() external view returns (uint256);

findCheckpointHints

function findCheckpointHints(
    uint256[] memory requestIds,
    uint256 firstIndex,
    uint256 lastIndex
)
    external
    view
    returns (uint256[] memory);

getClaimableEther

function getClaimableEther(
    uint256[] memory requestIds,
    uint256[] memory hints
)
    external
    view
    returns (uint256[] memory);

Structs

WithdrawalRequestStatus

struct WithdrawalRequestStatus {
    uint256 amountOfStETH;
    uint256 amountOfShares;
    address owner;
    uint256 timestamp;
    bool isFinalized;
    bool isClaimed;
}