Skip to content

anubhav11156/Substake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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