QuantAMM

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

wrong value added to blockTimestampDeposit in afterUpdate

Summary

In afterUpdate function the feeDataArray holds blockTimestampDeposit which is the timestamp of when the index of this array has been started

In addLiquidityProportional it hold block.timestamp value but
In afterUpdate it hold block.number

Impact

  • Function is broken and not working as intended

Tools Used

Manual review

Recommendations

Use block.timestamp

Updates

Lead Judging Commences

n0kto Lead Judge 11 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!