code-423n4 / 2021-12-amun-findings

0 stars 0 forks source link

emit Transfer on withdraw #277

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

If deposit function emits:

  emit Transfer(address(0), user, amount);

then I expect that withdraw and withdrawTo should also emit it respectively:

  emit Transfer(_msgSender() //recipient, address(0), amount);