pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

[BUG] Incorrect Liquidity Calculation

Open gades opened this issue 4 months ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Product

Other

Current Behavior

The liquidity volume is being calculated incorrectly. The account holds 110.4 ZEC with an exchange rate of $26.011 per ZEC. However, instead of showing the expected value of $110.4, the system displays an incorrect value of $16,768.26.

https://pancakeswap.finance/liquidity/1318667?chain=bsc&persistChain=1

Expected Behavior

The liquidity volume is being calculated incorrectly. The account holds 110.4 ZEC, with an exchange rate of $26.011. It is expected to display $2871.6144, but in fact, it shows $16,768.26.

https://pancakeswap.finance/liquidity/1318667?chain=bsc&persistChain=1

Steps To Reproduce

  1. Please create LP ZEC/USDT 1%
  2. Open LP and check

https://pancakeswap.finance/liquidity/1318667?chain=bsc&persistChain=1

Environment

- Device: Mac
- OS: v15 
- Browser: Chrome Version 129.0.6668.90 (Official Build) (arm64)
- Wallet: Metamask

Anything else?

This issue only with ZEC 0x1Ba42e5193dfA8B03D15dd1B86a3113bbBEF8Eeb

gades avatar Oct 03 '24 07:10 gades