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

Expected interest earnings for Month/Week/Day calculated incorrectly. #201

Open
dmbutalsodm opened this issue Dec 16, 2021 · 1 comment
Open

Comments

@dmbutalsodm
Copy link

It looks like the Monthly/weekly/daily earnings are simply calculated by taking the expected interest in APY for the year and dividing by 12/52/365. This is incorrect as the interest rate displayed is APY, meaning it compounds/accelerates over time
meaning just dividing is going to make the interest appear linear, which is not how it works in reality.

For example, if my balance is $1000, and the APY is 19.49%, the APR is 17.78%, which means the daily earnings should be $0.487 ((1000*.1778)/365).

Instead, the earn page will show $0.534 ((1000*.1949)/365), making it off by a significant margin.

@kevinhankpark
Copy link
Contributor

Hey!
Thanks for reaching out. We are planning to have an upgrade on the actual contract level interest compounding mechanism changes in our next major upgrade (https://github.com/Anchor-Protocol/money-market-contracts/tree/dev/v1.1) , and will modify the webapp to calculate expected interest earned accordingly.

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

No branches or pull requests

2 participants