Open code423n4 opened 3 years ago
cmichel
The Pool._transfer function does not check if recipient != 0. Unlike standard ERC20, tokens can be accidentally burned this way.
Pool._transfer
recipient != 0
Prevent user errors by denying transfers to the zero address and forcing them to call burn instead.
burn
This is best practice, non-critical.
Handle
cmichel
Vulnerability details
Vulnerability Details
The
Pool._transfer
function does not check ifrecipient != 0
. Unlike standard ERC20, tokens can be accidentally burned this way.Recommended Mitigation Steps
Prevent user errors by denying transfers to the zero address and forcing them to call
burn
instead.