This line is useless addition as _shares hasn't been assigned a value before so it starts with 0:
_shares = _shares.add(_amount);
and is essentially identical to:
_shares = _amount;
Recommended Mitigation Steps
In this case you do not even need this separate value and can use _amount instead.
Handle
pauliax
Vulnerability details
Impact
This line is useless addition as _shares hasn't been assigned a value before so it starts with 0: _shares = _shares.add(_amount); and is essentially identical to: _shares = _amount;
Recommended Mitigation Steps
In this case you do not even need this separate value and can use _amount instead.