-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QA Report #241
Comments
reward will be accumulated per block |
I don't believe that in this case the severity of the finding is valid, at most a block will be delayed by a few seconds and over time difficulty is adjusted so that blocks are produced in a predictable way. Given the circumstances I believe non-critical to be more appropriate as severity |
Generating QA Report as warden had not submitting and judge downgraded issue. Preserving original title: Block average time |
1+++ |
Lines of code
https://github.com/code-423n4/2022-02-concur/blob/main/contracts/MasterChef.sol#L50
Vulnerability details
Impact
Block average time can change significantly, changing protocol parameters. If time dependence is desired, use
block.timestamp
. This can vary by as much as 15s (default Geth implementation), while block times can change measured time not by a constant, but scale it. Note that block time change WILL happen because of difficulty bomb and Ethereum 2.0.Tools Used
Manual analysis
Recommended Mitigation Steps
Use
block.timestamp
for calculations where time is crucial.The text was updated successfully, but these errors were encountered: