Open code423n4 opened 3 years ago
cmichel
The Synth._transfer function does not check if recipient != 0. Unlike standard ERC20, tokens can be accidentally burned this way.
Synth._transfer
recipient != 0
Prevent user errors by denying transfers to the zero address and forcing them to call burn instead.
burn
Don't send synths to a zero address
No harm in adding these checks IMO, will look into it
Best practice, non-critical.
Handle
cmichel
Vulnerability details
Vulnerability Details
The
Synth._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.