Open code423n4 opened 3 years ago
tensors
Uninitialized variables initialize to 0 automatically. No need to explicitly initialize it.
https://github.com/pooltogether/aave-yield-source/blob/bc65c875f62235b7af55ede92231a495ba091a47/contracts/yield-source/ATokenYieldSource.sol#L141
Replace with: uint256 shares;
uint256 shares;
PR: https://github.com/pooltogether/aave-yield-source/pull/16
Handle
tensors
Vulnerability details
Impact
Uninitialized variables initialize to 0 automatically. No need to explicitly initialize it.
Proof of concept
https://github.com/pooltogether/aave-yield-source/blob/bc65c875f62235b7af55ede92231a495ba091a47/contracts/yield-source/ATokenYieldSource.sol#L141
Recommended mitigation steps
Replace with:
uint256 shares;