pancakeswap / pancake-frontend

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

[BUG] Incorrect APR and ROI calculation #10842

Closed alexeysmovzh closed 2 weeks ago

alexeysmovzh commented 1 month ago

Is there an existing issue for this?

Product

Farms

Current Behavior

Current APR calculation displays 10 trillion percent of interest rate

Screenshot from 2024-10-19 20-00-09

Current ROI displayed also incorrect Screenshot from 2024-10-19 19-59-58

Expected Behavior

Correct calculation of APR and ROI

Steps To Reproduce

  1. enter to pancakeswap website
  2. go to Pool and open your liquidity position (please see screenshots attached)

Environment

- Device: Lenovo laptop AMD Ryzen 5 5500U, 16Gb ram
- OS: Ubuntu 22.04
- Browser: Brave Version 1.69.168 Chromium: 128.0.6613.138 (Official Build) (64-bit)
- Wallet: Metamask

Anything else?

No response

gades commented 4 weeks ago

It's related to issues with API prices

https://wallet-api.pancakeswap.com/v1/prices/list/56%3A0x1ba42e5193dfa8b03d15dd1b86a3113bbbef8eeb

chefjackson commented 2 weeks ago

Hi thanks for the report. The price issue has been resolved.