QA Report #108
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 disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
valid
Should use modifier instead of function call for role based access control
For example
Should be converted to
It is best practice to use modifier for role based access control instead of calling a private function.
Should use solidity 0.8 instead of 0.6 with SafeMathUpgradeable
It provide more readable, more security and better gas utilization if you use solidity 0.8.
_amount.mul(9_980).div(MAX_BPS)
can be replaced with_amount * 9_980 / MAX_BPS
in solidity 0.8 while providing better underflow and overflow guardcheckUpkeep should check for expired lock (a way is using try catch)
https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L385-L388
Currently, it only check for whether locker has locked fund but don't know whether it can be unlocked or not.
Should be implemented this way
The text was updated successfully, but these errors were encountered: