QuantAMM

QuantAMM
49,600 OP
View results
Submission Details
Severity: low
Valid

afterUpdate uses block.number instead of block.timestamp

Summary

The afterUpdate function updates the fee data array information for the token transfered and incorrectly sets

blockTimestampDeposit to the current block number, when this information should be the block timestamp.

Impact

Incorrect information

Tools Used

Manual review

Recommendations

Change block.number to block.timestamp in UpliftOnlyExample.sol#L610

Updates

Lead Judging Commences

n0kto Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

finding_afterUpdate_blockNumber_instead_of_timestamp

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!