Home / Vulnerability Database / Solidity : ERC-20 transfer should throw
Solidity

Solidity : ERC-20 transfer should throw

Overview

Functions of ERC-20 Token Standard should throw in special cases:

  • transfer should throw if the _from account balance does not have enough tokens to spend
  • transferFrom should throw unless the _from account has deliberately authorized the sender of the message via some mechanism
LOW

DerScanner Severity Score

Do you want to fix Solidity : ERC-20 transfer should throw in your application?

See also

Solidity

Solidity : Return value of transfer, transferFrom, or approve function of ERC-20 standard is always false.

Solidity

Solidity : Using approve function of the ERC-20 token standard

Solidity

Solidity : Prefer external to public visibility level