QA Report #329
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
QA Findings
1. Incorrect Lockduration used
The documentation and code-comment mentions the use of 16 week lock duration, but the code uses 17 week lock duration in contracts/AuraLocker.sol#L83
Recommended solution
Update the documentation and comment to 17 weeks or use 16 week lock duration in code
2. use solidity native types such as
days
andweeks
instead of numbers for reward and lock durationin contracts/AuraLocker.sol#L81-L83, the rewards duration and lock duration uses numbers as uint, this can be replaced with solidity native time units such as
days
andweeks
.
3. Use 2 step process while setting the owner in
setOwner()
methodsIn order to protect from accidentally setting new owner to a dead address, zero address, It is a good practice to use 2 step process of setting new owner.
pendingAdmin
state variable to set theadmin
insidesetOwner()
claimOwnership()
function to be called by pendingAdmin to claim the ownershipUsages in
convex-platform/contracts/contracts/Booster.sol#L128
convex-platform/contracts/contracts/VoterProxy.sol#L73
The text was updated successfully, but these errors were encountered: