Links
Comment on page

LiquidStaking

LiquidStaking Methods
The "LiquidStaking" contract is a comprehensive staking platform that facilitates the staking and management of both ETH and NFTs.

#StakeETH

external stakeETH()
Description: Stakes eth and receive nETH in return, to designated operator.
Parameter
Type
Description
_operatorId
uint256
operator id

StakeNFT

external stakeNFT()
Description: Allows a user to stake Ether(multiples of 32 ETH) and receive vNFTs in return.
Parameter
Type
Description
_operatorId
uint256
operator id

RegisterValidator

external registerValidator()
Description: Registers validators by ensuring that only trusted operators can register them and that they have sufficient balances to do so.
Parameter
Type
Description
_pubkeys
bytes[]
validator pubkeys
_signatures
bytes[]
validator signatures
_depositDataRoots
bytes[]
validator depositDataRoots

getTotalEthValue

public getTotalEthValue ()
Description: Gets the total Ether (ETH) value of the protocol.
Returns (uint256 value)
Parameter
Type
Description
totalEthValue
uint256
total Ether (ETH) value of the protocol.

getEthOut

public getEthOut()
Description: Calculates the value of nETH into ETH based on the exchange rate.
Returns (uint256 value)
Parameter
Type
Description
_nethAmountIn
uint256
neth

getNethOut

public getNethOut()
Description: Calculates the value of nETH into ETH based on the exchange rate.
Returns (uint256 value)
Return Parameter
Type
Description
_ethAmountIn
uint256

unstakeETH

public unstakeETH()
Description: unstake neth to designated operator
Parameter
Type
Description
_operatorId
uint256
operator id
_amounts
uint256
unstaked neth amount

getOperatorNethUnstakePoolAmounts

public getOperatorNethUnstakePoolAmounts()
Description: Obtain the unstake amount available for users under a certain operator
Parameter
Type
Description
_operatorId
uint256
operator id
_amounts
uint256
unstaked neth amount