Closed code423n4 closed 2 years ago
defsec
During the code review, It has been observed that startTime and endTime do not have necessity checks and that will cause to broken functionality on the contract. That will be resulted with re-deployment.
"https://github.com/code-423n4/2022-01-openleverage/blob/main/openleverage-contracts/contracts/OLETokenLock.sol#L35"
Code Review
Consider initialize variables with comparision block.timestamp. Endtime should be bigger than starttime.
Duplicate to #160
Handle
defsec
Vulnerability details
Impact
During the code review, It has been observed that startTime and endTime do not have necessity checks and that will cause to broken functionality on the contract. That will be resulted with re-deployment.
Proof of Concept
"https://github.com/code-423n4/2022-01-openleverage/blob/main/openleverage-contracts/contracts/OLETokenLock.sol#L35"
Tools Used
Code Review
Recommended Mitigation Steps
Consider initialize variables with comparision block.timestamp. Endtime should be bigger than starttime.