Giter Club home page Giter Club logo

fren-delegation's Introduction

Fren Delegation

Collectively stake 32 ETH for a validator by just sharing the BLS public key.
A node operator that has already registered a BLS public key in the LSD Network by depositing 4 ETH, can invite others to to deposit ETH for this BLS public key. Once the BLS public key has colelcted 32 ETH, the node operator can stake and run a valdiator.
All the depositors will get LP tokens, in return of ETH, depending on the pro rata share of their deposit.

For a given BLS public key, the Fren delegation screen will show the following details:

  • Validator Details

    • LSD Network Name: Name of the LSD network the BLS public key is registered in.
    • BLS Key: BLS public key for which the deposit is to be made.
    • Node operator name: A 1-10 character long name set by the node operator.
  • Total delgation available:

    • Protected Staking: Amount of ETH that can be deposited in the Protected Staking Pool for the BLS public key.
    • MEV Staking: Amount of ETH that can be deposited in the MEV Staking Pool for the BLS public key.

If the BLS public key accepts deposits for either of the pools, then their respective buttons will be enabled.
If the Protected Staking button is enabled, following screen appears when the button is clicked:

  • Deposit ETH (input box): Enter the amount of ETH to be deposited (minimum accepted deposit is 0.001 ETH).
  • Confirm button: When clicked, it makes a call to the Protected Staking Pool (SavETH Vault smart contract) of the respective LSD network and deposits specified ETH for the BLS public key.

This is how a function call to deposit ETH into the Protected Staking pool looks like:

const { Wizard } = require('@blockswaplab/lsd-wizard');
// initialise the Wizard SDK with correct LSD Network addresses
const wizard = new Wizard(
	signer: <USER_SIGNER_INSTANCE>,
	liquidStakingManagerAddress: <LSM_ADDRESS>
	savETHPoolAddress: <SAVETH_POOL_ADDRESS>
	feesAndMevPoolAddress:<FEES_MEV_POOL_ADDRESS>
);

const tx = await wizard.savETHPool.depositETHForStaking(
	blsPublicKey, // BLS public key of the validator
	amount,       // Amount of ETH to be deposited in wei (in string)
	ethValue      // Amount of ETH to be deposited (in Big Numbers)
);

On the top right corner, click on the 3 dots to get various resources. Toggle between mainnet and testnet by enabling or disabling Testnet Mode.

fren-delegation's People

Contributors

bswap-eng avatar james-bsn avatar manulparihar avatar prasadbsn avatar stakehouse-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.