-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gas Optimizations #96
Comments
This is false, the constructor from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol#L40
Not possible since we inherit from the yield source interface.
Duplicate of: #11
Duplicate of: #22 |
Given the sponsor feedback, this is mostly a Gas optimization issue and has been relabelled. |
Duplicate of #98 |
Changing name to better reflect the judging outcome. |
Unnecessary constructor call
The
ReentrancyGuard
base contract takes no constructor arguments and can be omitted as a modifier forconstructor
:Recommendation:
balanceOfToken
can be declared as aview
The
balanceOfToken
function is read-only and can be declared as aview
.AaveV3YieldSource.sol#L212
:Recommendation:
Note that this also declared incorrectly in the
IYieldSource
interface.Unnecessary usage of
SafeMath
librarySolidity 0.8.0 introduced checked arithmetic by default, so the
SafeMath
library may safely be omitted.Typo in natspec comment
inhereted
should readinherited
in the natspec comment on line 38.The text was updated successfully, but these errors were encountered: