Skip to content

OFUZORCHUKWUEMEKE/Stylus-Liquid-Stacking-Contract

Repository files navigation

🌊 Liquid Staking Contract

A decentralized liquid staking protocol built with Arbitrum Stylus and Rust, allowing users to stake ETH and receive liquid stETH tokens that accrue value over time.

Rust Ethereum Arbitrum

✨ Features

  • 🔄 Liquid Staking: Stake ETH and receive tradeable stETH tokens
  • 📈 Auto-Compounding: Rewards automatically increase stETH value
  • ⏱️ Withdrawal Delays: 7-day security delay for withdrawals
  • 🛡️ Security: Built with Rust's memory safety and formal verification
  • Low Gas: 50%+ gas savings compared to Solidity contracts
  • 🎯 ERC20 Compatible: stETH works with all DeFi protocols

Installation

# Clone the repository
git clone https://github.com/yourusername/liquid-staking-stylus.git
cd liquid-staking-stylus

# Install Cargo Stylus
cargo install --force cargo-stylus

# Install dependencies
cargo build

Deploy to Arbitrum Sepolia

# Set your private key
export PRIVATE_KEY="your_private_key_here"

# Deploy the contract
cargo stylus deploy \
  --private-key-path=.secret \
  --endpoint="https://sepolia-rollup.arbitrum.io/rpc"

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages