We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3 variables are read many times but set only once in the constructor. They could be set as immutable to save gas.
IAToken public aToken; IRewardsController public rewardsController; IPoolAddressesProviderRegistry public poolAddressesProviderRegistry;
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L126-L133
Make variables immutable
The text was updated successfully, but these errors were encountered:
throttle issue #51
e8def4c
Duplicate of #1
Sorry, something went wrong.
PierrickGT
No branches or pull requests
[G-01] Immutable variables
Description
3 variables are read many times but set only once in the constructor. They could be set as immutable to save gas.
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L126-L133
Recommended Mitigation Steps
Make variables immutable
-----------------------------------------------------------------
The text was updated successfully, but these errors were encountered: