QA Report #25
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
QA Report
File AuraLocker.sol
Unlocked pragma
Contracts should be deployed using the same compiler version/flags with which they have been tested. Locking the pragma (for e.g. by not using ^ in pragma solidity 0.5.10) ensures that contracts do not accidentally get deployed using an older compiler version with unfixed bugs.
L2
Mistake in comment
// User -> reward token -> amount
Should be
// User -> reward token -> userData
L78
Out possible lock by out of gas
If the loop in the modifier has to loop througt many
rewardTokens
the contract could end lockupL173-L183
Avoid
!=
on loop comparissionSource: https://github.com/crytic/slither/wiki/Detector-Documentation#dangerous-strict-equalities
recommendation
while (epochs[epochs.length - 1].date != currentEpoch) {
Change to:
while (epochs[epochs.length - 1].date < currentEpoch) {
L334
Critical functions dont emit events
Consider add events on this functions
addReward
approveRewardDistributor
File AuraBalRewardPool.sol
Unlocked pragma
Contracts should be deployed using the same compiler version/flags with which they have been tested. Locking the pragma (for e.g. by not using ^ in pragma solidity 0.5.10) ensures that contracts do not accidentally get deployed using an older compiler version with unfixed bugs.
L2
File AuraVestedEscrow.sol
Unlocked pragma
Contracts should be deployed using the same compiler version/flags with which they have been tested. Locking the pragma (for e.g. by not using ^ in pragma solidity 0.5.10) ensures that contracts do not accidentally get deployed using an older compiler version with unfixed bugs.
L2
Assert that array length match
current code
Consider add
https://github.com/code-423n4/2022-05-aura/blob/a8758161373bc9c9ad2aec363b511afa3ed0613f/contracts/AuraVestedEscrow.sol#L96-L99
Critical functions dont emit events
Consider add events on this functions
setAdmin
setLocker
file Booster.sol
Assert that array length match
current code
Consider add
https://github.com/code-423n4/2022-05-aura/blob/main/convex-platform/contracts/contracts/Booster.sol#L535-L536
File VoterProxy.sol
Critical functions dont emit events
Consider add events on this functions
setOwner
setRewardDeposit
setSystemConfig
setOperator
setDepositor
setStashAccess
withdraw
File CrvDepositor.sol
Critical functions dont emit events
Consider add events on this functions
setFeeManager
setDaoOperator
setFees
setCooldown
[depositFor]https://github.com/code-423n4/2022-05-aura/blob/main/convex-platform/contracts/contracts/CrvDepositor.sol#L168
The text was updated successfully, but these errors were encountered: