When updating the FeeData in UpliftOnlyExample::UpliftaddLiquidityProportional()
,
we update the blockTimestampDeposit variable from block.timestamp
But in the function UpliftOnlyExample::afterUpdate()
, we are using block.number
instead of block.timestamp
for same FeeData update.
Using block.number
instead of block.timestamp
can lead to inconsistencies in the FeeData records. This discrepancy may cause issues while using the blockTimestampDeposit
of FeeData in integrations.
Manual Review
We recommend to use block.timestamp in tracking blockTimestampDeposit in afterUpdate()
function.
Likelihood: Medium/High, any NFT transfer will change this variable. Impact: Informational/Very Low. This variable is unused and won’t impact anything, but the array is public and its getter will return a variable with inconsistencies.
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.