modified contracts/MStableYieldSource.sol
@@ -44,7 +44,7 @@ contract MStableYieldSource is IYieldSource, ReentrancyGuard {
constructor(ISavingsContractV2 _savings) ReentrancyGuard() {
// As immutable storage variables can not be accessed in the constructor,
- // create in-memory variables that can be used instead.
+ // create in-stack variables that can be used instead.
IERC20 mAssetMemory = IERC20(_savings.underlying());
// infinite approve Savings Contract to transfer mAssets from this contract
The comment and therefore the variable name aren't accurate. The value
would be in stack, and not memory.
Handle
hrkrshnn
Vulnerability details
Incorrect comment
Context
The comment and therefore the variable name aren't accurate. The value would be in stack, and not memory.
However, this doesn't affect the code in any way.