Sifchain / sifchain-ui

Sifchain UI
sifchain-ui.vercel.app
Other
18 stars 19 forks source link

User Request: Display APY on Pool Stats & Pool Pages #377

Open shane-moore opened 2 years ago

shane-moore commented 2 years ago

Request

Example:

If a Rowan/Atom pool has 300% APR, the APY would be (1 + (300/52).01)52*100 = 1847%

nickgitcoin commented 2 years ago

When I do the calculation I end up at 55105%. I guess it's not or shouldn't be *52100, but ^52. I'm just not sure where the "100" would then come from.

With the formula from popular APR to APY sites like https://www.aprtoapy.com/ I end up at 1747% when compounded weekly.

Formula would be: (1+(3/52))^(52-1) = 17,47 = 1747%

or to keep it at the same writing style:

(1 + (300/52)*.01)^(52-1) = 1747%

shane-moore commented 2 years ago

ahh @nickgitcoin, great catch!