project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

StakeMyEth

This smart contract allws a user to stake their ETH in and get lsETH liquid staking tokens which can be used to earn yields.

StakeMyEth

Created At

Superhack 2024

Project Description

This solution addresses the liquidity issue in traditional staking by providing tradable tokens representing staked ETH. Key features include:

  1. ETH staking with immediate liquidity via lsETH tokens
  2. Unstaking mechanism by burning lsETH
  3. Individual and total staked balance tracking

The contract inherits from OpenZeppelin's ERC20 and ReentrancyGuard for standard functionality and security. Main functions are stake(), unstake(), and balance checking. Benefits include DeFi integration potential and flexible staking periods. However, the basic implementation lacks native reward distribution and governance features. Security measures involve reentrancy protection and balance checks. Future enhancements could include reward distribution, governance, and dynamic minting ratios.

How it's Made

The contract inherits from OpenZeppelin's ERC20 and ReentrancyGuard for standard functionality and security. Main functions are stake(), unstake(), and balance checking. Benefits include DeFi integration potential and flexible staking periods. However, the basic implementation lacks native reward distribution and governance features. Security measures involve reentrancy protection and balance checks. Future enhancements could include reward distribution, governance, and dynamic minting ratios.

background image mobile

Join the mailing list

Get the latest news and updates