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

Refactor APY calculation logic #197

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Refactor APY calculation logic #197

merged 2 commits into from
Apr 23, 2024

Conversation

jakubswierczek
Copy link
Contributor

The logic to calculate the Average Percentage Yield (APY) for each day, and for specific periods (i.e., 7, 30, 90, 365 days) has been refactored for optimization. APY calculation is now performed over actual data length, eliminating the division over fixed period values. The results are also systematically sorted by timestamp for consistent retrieval of data.

The logic to calculate the Average Percentage Yield (APY) for each day, and for specific periods (i.e., 7, 30, 90, 365 days) has been refactored for optimization. APY calculation is now performed over actual data length, eliminating the division over fixed period values. The results are also systematically sorted by timestamp for consistent retrieval of data.
@jakubswierczek jakubswierczek self-assigned this Apr 23, 2024
marcinciarka
marcinciarka previously approved these changes Apr 23, 2024
In the 'curated-yield-pools.ts' file, the latest change includes adding the MEVETH yield pool. Additionally, WEETH and EZETH identifiers have been commented out for now. This was likely done due to changes or updates within the respective pools or protocol.
@jakubswierczek jakubswierczek merged commit 7eb9d26 into dev Apr 23, 2024
2 checks passed
@jakubswierczek jakubswierczek deleted the jacob/sc-15255/1day-apy branch April 23, 2024 10:12
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