The UpliftOnlyExample::FeeData struct defines the blockTimestampDeposit field to store a uint40 value representing block.timestamp. However, in the UpliftOnlyExample::afterUpdate function, this field is incorrectly assigned a uint32 value of block.number. This mismatch results in the blockTimestampDeposit field storing an unintended and incorrect value, leading to an inaccurate representation of the contract's state.
UpliftOnlyExample::afterUpdate function:
This mismatch results in the blockTimestampDeposit field storing an unintended and incorrect value, leading to an inaccurate representation of the contract's state.
Update the UpliftOnlyExample::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.