Skip to content

stafiprotocol/eth-lsd-contracts

Repository files navigation

eth-lsd-contracts

Contracts is the foundation of ETH LSD stack. It consists of LsdToken, UserDeposit, NodeDeposit and NetworkWithdraw and other contracts, which enables users to stake, unstake and withdraw, validators to run node with minimum amount of ETH and platform to manage solo and trust nodes.

To learn more about ETH LSD stack, see ETH LSD Stack Documentation and Guide

a very brief diagrams of the workflow:

sequenceDiagram
participant  UserDeposit.sol
actor User
participant  NetworkWithdraw.sol

User->>UserDeposit.sol: stake ETH
UserDeposit.sol->>User: mint rToken
User->>NetworkWithdraw.sol: unstake rToken 
NetworkWithdraw.sol->>User: transfer ETH
Loading
sequenceDiagram
actor Admin
actor Node
participant NodeDeposit.sol

Admin->>NodeDeposit.sol: manage trust node
Node->>NodeDeposit.sol: create new validator
Loading
sequenceDiagram
Ethereum->>FeePool.sol: distribute priority fee
Ethereum->>NetworkWithdraw.sol: distribute validator rewards
Loading
sequenceDiagram
Voter->>NetworkBalances.sol: vote for user balances <br>and other proposals for the network
Loading

License

The primary license for ETH LSD Contracts is the Business Source License 1.1 (BUSL-1.1), see LICENSE. Minus the following exceptions:

Each of these files states their license type.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published