QA Report #187
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
QA report:
./contracts
contracts/Aura.sol
mint
(https://github.com/code-423n4/2022-05-aura/blob/main/contracts/Aura.sol#L91)minterMint
(https://github.com/code-423n4/2022-05-aura/blob/main/contracts/Aura.sol#L128)contracts/AuraBalRewardPool.sol
getReward()
(https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraBalRewardPool.sol#L189)true
is returned even whenreward == 0
. Solution: move the return statement from line 189 to inside the if statement.contracts/AuraMerkleDrop.sol
setDao()
function. Add the checkrequire(_newDao != address(0),"Error message")
to avoid incorrect address set for Dao. (https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraMerkleDrop.sol#L77)claim()
function is emitting the incorrect amount in case of a penalty being charged. When there is a penalty deduction, ensure that the exact amount withdrawn is emitted. (https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraMerkleDrop.sol#L141)contracts/ExtraRewardsDistributor.sol
_addReward()
function. (https://github.com/code-423n4/2022-05-aura/blob/main/contracts/ExtraRewardsDistributor.sol#L87)contracts/AuraLocker.sol
emergencyWithdraw()
function. The event should be emitted after the transfer is completed. (https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraLocker.sol#L352-L368)contracts/AuraStakingProxy.sol
setRewards()
function. Add the checkrequire(_rewards != address(0),"Error message")
(https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraStakingProxy.sol#L137)contracts/AuraVestedEscrow.sol
setAdmin()
function. Add the check `require(_admin != address(0), "Error message") (https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraVestedEscrow.sol#L77)The text was updated successfully, but these errors were encountered: