QA Report #161
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
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
NatSpec is incomplete
AuraVestedEscrow.sol#L157 link
The above is missing the return @return
modifiers
Use modifiers to replace duplicate condition checks in multiple functions, such as isOwner(),isAdmin().
File: AuraVestedEscrow.sol link has the require statement occur in 3 different functions, rather than writing this duplicate require statement use a modifier to check the authorization
Lock pragmas to specific compiler version
Most of the contracts have a floating pragma version ^0.8.11 which means they can also be compiled on ^0.8.12 etc
Contracts should be deployed with the same compiler version and flags that they have been tested the most with. Locking the pragma helps ensure that contracts do not accidentally get deployed using, for example, the latest compiler which may have higher risks of undiscovered bugs. Contracts may also be deployed by others and the pragma indicates the compiler version intended by the original authors.
Link to consensus best practices. pragma best practice
typos
AuraLocker.sol#L672 see file
futher instead of further
File: contracts/aura.sol (Line 18) see file
distirbuted instead of distributed
File: convex-platform/contracts/contracts/Booster.sol (line 631) see file
Repsonsible Instead of Responsible
Duplicated emit values
File: AuraLocker.sol line (295) see line
The contract AuraLocker.sol has an event called Staked which takes in 3 variables see
But the emit on function _lock emits lockedAmount twice see line
The text was updated successfully, but these errors were encountered: