I need APY calculation formula for my Contract

Hi, I am using Idle in my contract. I need to do apy calculation before user deposits Idle money. How can I do this calculation on the chain?

3 Likes

Hi @erengnn, you can use this method getAvgApr - Idle

If you have any other question regarding the integration you can join our Discord server here

2 Likes