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.
external stakeETH()
Description: Stakes eth and receive nETH in return, to designated operator.
Parameter | Type | Description |
_operatorId | uint256 | operator id |
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 |
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 |
| | |
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. |
public getEthOut()
Description: Calculates the value of nETH into ETH based on the exchange rate.
Returns (uint256 value)
Parameter | Type | Description |
_nethAmountIn | uint256 | neth |
public getNethOut()
Description: Calculates the value of nETH into ETH based on the exchange rate.
Returns (uint256 value)
Return Parameter | Type | Description |
_ethAmountIn | uint256 |
public unstakeETH()
Description: unstake neth to designated operator
Parameter | Type | Description |
_operatorId | uint256 | operator id |
_amounts | uint256 | unstaked neth amount |
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 |
Last modified 6mo ago