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

Luke/dpe 1861 jito api changes #67

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lukecaan
Copy link
Member

@lukecaan lukecaan commented Feb 1, 2024

Refactored / Updated LST methods to use data sourced from @glitchful-dev/sol-apy-sdk .. which according to person in jito is more of a standardised way to do things, and being used by Solana Compass already.

Can confirm that the APR/APYs values coming from this library are closer to the ones in Solana compass than the numbers we calculate locally with our own methods.

@lukecaan lukecaan marked this pull request as draft February 1, 2024 16:19

solEarned = solEarned.add(
currentLstTokenAmount.mul(currentLstRatioBN).div(LAMPORTS_PRECISION)
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not strictly specific to your PR, but I was also wondering if we should do the "sol earned" feature differently from a UX point of view.

I had a friend sort of get confused about what that even means, because there is no breakdown about where the sol earned is coming from or where it ends up. He thought he was getting sol that was claimable or added to his drift account or something lol.

I think we should work towards not showing a "sol earned" number necessarily, and instead showing a performance comparison of the user's current account value against the value of their initial deposit. That way it would factor out the "sol earned" that would have already been there if they had not been super staking at all.

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.

2 participants