Submitted by hickuphh3, also found by 0xNazgul, 0xSky, CertoraInc, Deivitto, hansfriese, Jeiwan, linmiaomiao, rbserver, and SinceJuly
Because of the brackets, the division of prices[i] / decimals is executed before multiplication, causing token0TVL to potentially be zero.
Add the following test in oracle.test.ts. Note: getPriceLP() should have its visibility changed from internal to public as the test relies on it.
To summarise what the test is doing, a stablecoin of 24 decimals is deployed, whose address will be greater than the note address so that token0 = note. It will enter the following case:
such that the pricess denomination is smaller than the stablecoins decimals of 24.
To see the difference in test results, apply the recommended fix after running the test once. In essence, the LPs price will double from 999500000001499 to 1999999998838589, which is expected since the LP token should be worth the combined value of both stablecoins.
nivasan1 (Canto) confirmed 
0xean (judge) decreased severity to Medium 
