After deployment, the initial parameters are used to calculate the price. However, if the price is not updated after deployment, the initial parameters will be used indefinitely, leading to potentially incorrect price calculations.
At deployment, the initial parameters are set:
This means the price calculations, such as in _price_v1() , _price_v2(): will use deployment paramters.
This happens because the price parameters are not updated prior to the first price calculation after deployment.
Incorrect Price Calculation
Manual Code Review
update paramter before price calculations.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.