Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a features #196

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Added a features #196

wants to merge 5 commits into from

Conversation

MKVEERENDRA
Copy link

Description
This pull request introduces two key enhancements to the Lido SDK:

Transaction Simulation : Adds a simulateTransaction method that allows users to simulate transactions before executing them on-chain. This ensures transaction success, estimates gas usage, and prevents unnecessary gas costs.
Real-Time Staking Rewards Estimation : Implements methods (getCurrentAPR, estimateRewards, and getHistoricalRewards) to fetch the current APR from the Lido protocol's StakingRouter contract, estimate future rewards based on user balance and time period, and retrieve historical reward distributions via Lido's subgraph API.
These features improve usability by providing users with insights into transaction behavior and staking performance while ensuring compatibility with the latest Lido protocol updates.

I have added the simulation function its acts as a dry-run before store into the chain.

Signed-off-by: VEERENDRA VAMSHI <[email protected]>
made the types for simulation

Signed-off-by: VEERENDRA VAMSHI <[email protected]>
Written simulation test

Signed-off-by: VEERENDRA VAMSHI <[email protected]>
Added the Advance reward cal part

Signed-off-by: VEERENDRA VAMSHI <[email protected]>
Added the rewards type

Signed-off-by: VEERENDRA VAMSHI <[email protected]>
@MKVEERENDRA MKVEERENDRA requested a review from a team as a code owner February 10, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant