APR Calculation Help

Hello Everyone,

I have gone through the course, and I am building a Defi dapp. However, I have been stuck at one point and cannot find any solution as of now.

I want to display APR% in my app, how should I calculate APR and display in my dapp.

Scenario : Users will stake LP tokens, and will get reward as XYZ tokens.

Please help, I would really appreciate it.

1 Like