Components
StakeEase is powered by four main components that work in concert to create a streamlined and powerful restaking experience:
1. User Interface (UI)
Your Gateway to Restaking: The StakeEase UI serves as the entry point for users, designed to guide you through every step of the restaking journey.
Comprehensive Information: Explore a wealth of details about various staking and restaking protocols, empowering you to make informed decisions based on your preferences and risk tolerance.
Yield Optimization Guidance: For those seeking maximum returns, the UI conveniently highlights the highest yield-earning path, saving you time and effort.
Seamless Transaction Initiation: Effortlessly generate restaking requests directly within the UI, setting your assets in motion for optimal returns.
2. Path Discovery Algorithm
At the heart of StakeEase lies a sophisticated path discovery algorithm, designed to identify the most profitable restaking strategies for each user. The algorithm carefully considers your unique inputs, including the token you hold and its chain of origin, to craft an optimized restaking route.
StakeEase's path discovery algorithm is an extension of Router Nitro's pathfinder algorithm. Nitro's pathfinder enables us to find the best route for bridging/swapping the user's tokens, following which we use a custom algorithm to find the best restaking platform for the user.
3. Adapters
StakeEase adapters are smart contracts that execute the path generated by the path discovery algorithm. Based on their utility, each adapter can be classified into one of the following categories:
Swap adapters: Efficiently swap user tokens into the required assets for restaking.
Stake adapters: Interact with specific liquid staking protocols to stake assets.
Restake adapters: Engage with designated restaking protocols to maximize yield.
Core adapters: Oversee end-to-end path execution, ensure seamless transactions, and manage fee deductions.
Fusion adapters: Manage the user deposits and oversee the end-to-end execution of Fusion mode transactions.
StakeEase's swap, stake, and restake adapters are built using Router's Intent Adapter Library.
Check out this section to read more about each type of adapter.
4. Fusion Relayers
Fusion relayers are entities that trigger the execution of a batch. To do so, Fusion relayers invoke the Fusion adapters at the end of a round. A round can be user-based, time-based, or a combination of the two. For example, a round can be marked as completed if:
10 users deposit ETH or;
30 minutes have passed since the first deposit transaction or;
whatever happens first (hybrid approach)
Currently, we are using a hybrid approach wherein a batch will be executed if either 10 users deposit ETH or 120 minutes have passed since the first deposit.
5. Router Nitro
In the case of cross-chain restaking, StakeEase uses Router Nitro to facilitate the bridging of tokens from other chains to Ethereum. Nitro's contract on the source chain accepts user funds and transfers them to Ethereum, along with relevant instructions for the restaking process. Upon receiving the funds and instructions, Nitro's Ethereum contract invokes the Multicall adapter with the relevant calldata.
Router Nitro is a trustless, ultra-low latency bridge. It can transfer user funds across chains in less than 30 seconds. This means that StakeEase's users can (re)stake into Ethereum from any chain in less than 1 minute.
Last updated