I think we are missing "brackets" in calculation of the two rates.
|
performanceRate = sumOfSevenDayAverage - sumOfPurchasePrice / sumOfPurchasePrice |
I believe it should be:
performanceRate = (sumOfSevenDayAverage - sumOfPurchasePrice) / sumOfPurchasePrice
and:
|
historicalEthRate = currentEthPrice - ethPriceAtTimeOfFirstMint / ethPriceAtTimeOfFirstMint |
I believe it should be:
historicalEthRate = (currentEthPrice - ethPriceAtTimeOfFirstMint) / ethPriceAtTimeOfFirstMint
I think we are missing "brackets" in calculation of the two rates.
Charisma/api/app/main.py
Line 102 in d6c1b7b
I believe it should be:
performanceRate = (sumOfSevenDayAverage - sumOfPurchasePrice) / sumOfPurchasePriceand:
Charisma/api/app/main.py
Line 129 in d6c1b7b
I believe it should be:
historicalEthRate = (currentEthPrice - ethPriceAtTimeOfFirstMint) / ethPriceAtTimeOfFirstMint