Skip to content

Conversation

@guibescos
Copy link
Contributor

@guibescos guibescos commented Oct 3, 2024

This updates the staking app so that APYs are display after delegation fees.
Publishers will still see the full apy in their self staking view, since that's what they get.

@vercel
Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 3:58pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 3:58pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 3:58pm

@guibescos guibescos changed the title Feat/display actual apy feat: display actual net apy Oct 3, 2024
qualityRanking: number;
apyHistory: { date: Date; apy: number }[];
delegationFee: bigint;
apyHistory: { date: Date; apy: number; selfApy: number }[];
Copy link
Collaborator

@cprussin cprussin Oct 3, 2024

Choose a reason for hiding this comment

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

Hmm in my opinion it's better to pass the current stake account to the sdk when fetching the apy, rather than having all the raw data and calculating it all in the frontend, thoughts? never mind I see how you're threading this into calculateApy

@cprussin cprussin merged commit 1a37585 into staking-app-release-batch Oct 8, 2024
6 checks passed
@cprussin cprussin deleted the feat/display-actual-apy branch October 8, 2024 18:19
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.

3 participants