BTB
/

ether.fi Stake

Liquid Stakingwebsite
Non-custodial Ethereum staking. Deposit ETH to receive eETH, wrap eETH into weETH, or request a withdrawal that mints a WithdrawRequestNFT and is claimed as ETH once finalized.

What you can do

stakeStake ETH for eETHcall LiquidityPool.deposit() or deposit(referral) with ETH as msg.value; eETH is credited to the caller
wrapConvert eETH to weETHeETH.approve(weETH, amount), then weETH.wrap(amount)
unwrapConvert weETH to eETHweETH.unwrap(amount)
request-withdrawalStart unstaking eETH to ETHeETH.approve(LiquidityPool, amount) if required by the caller flow, then LiquidityPool.requestWithdraw(recipient, amount); read the request ID from the return value or the WithdrawRequestNFT transfer
check-withdrawalSee whether a request is readyWithdrawRequestNFT.isFinalized(requestId) and getClaimableAmount(requestId)
claim-withdrawalReceive ETH for finalized requestsWithdrawRequestNFT.claimWithdraw(requestId) or batchClaimWithdraw(ids) once isFinalized is true
eETH balances rise as rewards accrue, without a Transfer event for each change. Store shares (shares) or convert with amountForShare for accounting.
Withdrawals are queued. A request must be finalized before it can be claimed, and finalization depends on protocol liquidity and validator exits.
The protocol is pausable. Deposits and withdrawal requests revert while paused.
Contracts are upgradeable proxies. The implementation can change, so re-check the ABI before relying on a function.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
LiquidityPoolstaking on ethereum0x308861A430be4cce5502d0A12724771Fc6DaF216
write deposit()
Stake ETH (msg.value) and mint eETH to msg.sender with no referral. Reverts while the pool is paused or the sender is blacklisted. Same as sending plain ETH to the contract through receive().
write deposit(address)
Stake ETH (msg.value) and mint eETH to msg.sender. Argument: referral address (zero address for none). Reverts while paused or if the sender is blacklisted.
write requestWithdraw(address,uint256)
Start an eETH to ETH withdrawal. Arguments: recipient address, eETH amount in wei. Burns the eETH and mints a WithdrawRequestNFT to the recipient. Returns the request ID. Reverts while paused or if the sender is blacklisted.
write requestWithdrawWithPermit(address,uint256,(uint256,uint256,uint8,bytes32,bytes32))
Same as requestWithdraw with an EIP-2612 permit for eETH. Tuple is (value, deadline, v, r, s). Use requestWithdraw if the permit may be front-run.
read amountForShare(uint256)
Convert a share amount into an eETH amount. Use for balance accounting because eETH value rises with rewards.
read sharesForAmount(uint256)
Convert an eETH amount into shares.
read getTotalPooledEther()
Total ETH controlled by the protocol, in wei.
read getTotalEtherClaimOf(address)
ETH value attributed to an address, in wei.
read totalValueInLp()
ETH held directly by the liquidity pool, in wei. Use it to judge whether a withdrawal can be served from the pool.
read totalValueOutOfLp()
ETH deployed out of the liquidity pool (validators), in wei.
eETHtoken on ethereum0x35fA164735182de50811E8e2E824cFb9B6118ac2
read balanceOf(address)
eETH balance of an address in wei. Changes as rewards accrue, without Transfer events.
read shares(address)
Share balance of an address. Constant across rewards, so use it for accounting.
read totalShares()
Total shares in existence.
read totalSupply()
Total eETH supply in wei, derived from the liquidity pool's total pooled ETH.
write approve(address,uint256)
Approve a spender for an eETH amount. Needed before weETH.wrap(amount) and before any contract pulls eETH.
write transfer(address,uint256)
Transfer eETH. The amount is converted to shares internally, so the recipient receives the amount in eETH.
write transferFrom(address,address,uint256)
Transfer eETH from an owner using an allowance.
write permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
EIP-2612 signed approval: owner, spender, value, deadline, v, r, s.
weETHtoken on ethereum0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
write wrap(uint256)
Wrap eETH into weETH. Approve eETH to this contract for the amount first. Returns the weETH minted.
write unwrap(uint256)
Burn weETH and receive eETH. Argument: weETH amount in wei. Returns the eETH received.
write wrapWithPermit(uint256,(uint256,uint256,uint8,bytes32,bytes32))
Wrap eETH with an EIP-2612 permit for eETH. Tuple is (value, deadline, v, r, s).
read getRate()
eETH per 1 weETH, scaled by 1e18. Rises as rewards accrue.
read getEETHByWeETH(uint256)
eETH amount that a given weETH amount is worth.
read getWeETHByeETH(uint256)
weETH amount that a given eETH amount is worth.
read eETH()
Address of the underlying eETH token.
read balanceOf(address)
weETH balance of an address in wei.
write approve(address,uint256)
Approve a spender for a weETH amount. Needed before unwrapping through another contract.
WithdrawRequestNFTstaking on ethereum0x7d5706f6ef3F89B3951E23e557CDFBC3239D4E2c
read isFinalized(uint256)
True when a withdrawal request has been finalized and can be claimed.
read getClaimableAmount(uint256)
ETH claimable for a request ID, in wei. Check before claiming.
read getRequest(uint256)
Withdrawal request struct for a request ID (amounts, shares, recipient and related fields).
read lastFinalizedRequestId()
Highest request ID finalized so far. A request is finalized once its ID is at or below this value.
read nextRequestId()
ID that the next withdrawal request will receive.
read ownerOf(uint256)
Current holder of a withdrawal NFT. The holder is the account that can claim.
read balanceOf(address)
Number of withdrawal NFTs held by an address.
write claimWithdraw(uint256)
Claim the ETH for one finalized request. Reverts if the request is not finalized, already claimed, or the sender is blacklisted.
write batchClaimWithdraw(uint256[])
Claim the ETH for several finalized requests in one transaction. Argument: array of request IDs.