Giter Club home page Giter Club logo

substake's Introduction

Substake: Cross-chain Liquid Staking Protocol

ezgif com-optimize

Substake is a Cross-chain Liquid Staking protocol designed to enable seamless participation in liquid staking from Layer 2 (L2) funds. By leveraging Substake, users can deposit their wrapped/Native ETH tokens on L2, which our platform bridges to Layer 1 (L1) for staking on Liquid Staking Derivative (LSD) platforms such as Lido, Rocket Pool, and Stader Labs. Our solution is highly gas-effective, minimizing the bridging and staking costs for users. Currently Substake V1 is built for scroll zkEVM (L2).

Key Features

  • Seamless Cross-chain Staking: Deposit wrapped or Native scroll ETH tokens on L2, and stake on LSD platforms without the hassle of managing different chains individually and hoping here and there between multiple dapps.

  • Gas Efficiency: Substake significantly reduces gas fees by creating batches on L2s and equally distributing the bridging and staking costs among batch members.

  • Regular APY: Users can enjoy a regular Annual Percentage Yield (APY) on their L2 funds without the complexities associated with traditional staking processes.

Working

Stake Flow

Unstake flow

substake maths

Screenshots

substake stake

unstake_

transaction

Stake Flow

  1. Deposit and SubToken Creation: Users deposit their funds on our platform and receive SubToken, a representational token. These deposited funds are accumulated in a batch, and when specific conditions are met, the batch is dispatched to L1. Gas fees are equally distributed among batch members, significantly reducing costs.

  2. Bridging and Staking on LSD Platforms: After the bridging of tokens to L1, they are staked on LSD platforms, providing users with a regular APY. Transaction costs are efficiently partitioned among batch members, ensuring gas efficiency.

  3. Native Token Unstaking: Substake facilitates the unstaking of native tokens in a similar fashion. Users deposit their Subtokens, a batch is created, and after meeting specific conditions, the batch is dispatched. The wstETH is then swapped for wETH and transferred to L2 for distribution.

Challenges Faced

While developing Substake, we encountered several notable challenges:

  • Messaging Protocols: Understanding the messaging protocols of different L2 chains was a significant challenge. Scroll was the only chain that provided a well-built bridging infrastructure for ETH tokens, enabling successful staking.

  • Batching Architecture: Implementing the batching architecture required deep thought and fine-tuning for an efficient solution. Messaging between chains also posed a tough challenge, with significant time delays for message transfers.

  • Exchange Rate Calculation: Calculating the exchange rate between Subtoken and wstETH was complex, requiring continuous logging of wstETH price on L2, which was not fully supported by messaging protocols.

Contract Addresses

Demo

๐Ÿ‘‰๐Ÿผ Demo video

Contact Us

For inquiries and support, please contact us at Anubhav Kumar

substake's People

Contributors

hemantwasthere avatar anubhav11156 avatar surfer05 avatar danushetti avatar daneshwari-rf avatar

Stargazers

 avatar Sabir Khan avatar  avatar

Watchers

 avatar

Forkers

hemantwasthere

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.