pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.69k stars 3.54k forks source link

PANCAKE.INFO - PAIR STATS #1800

Closed 0xNegi closed 3 years ago

0xNegi commented 3 years ago

Hi guys, where can i found the code for this page?

https://pancakeswap.info/pool/0xD171B26E4484402de70e3Ea256bE5A2630d7e88D Screenshot from 2021-07-29 01-08-26

I need to know how to calculate the "LP REWARD APR" and the "LP REWARD FEES 24H", THANK YOU !

Chef-Cheems commented 3 years ago

Hi! We're in the process of migrating info site code into this repository. Right now it's temporarily in private repo. Please check back in a week or so.

0xNegi commented 3 years ago

e process of migrating info site code into this repository. Right now it's temporarily in private repo. Please check back in a week or so.

Hi! thanks for answering me. It would be very helpful if you can provide me the way that LP REWARD APR is calculated. Is for an exercise of a job interview :)

Chef-Cheems commented 3 years ago

@matilareo APR is based on past week trading volume const lpApr7d = (volumeUSDWeek * LP_HOLDERS_FEE * WEEKS_IN_YEAR * 100) / LPLiquidity where LP_HOLDERS_FEE is 0.0017 , i.e. 0.17% you earn by being aliquidity provider. Other data received from StreamingFast. LP REWARD FEES 24H is just volumeUSDinLast24hours * LP_HOLDERS_FEE

0xNegi commented 3 years ago

@Chef-Cheems Awesome! Thank you so much!