Module unchecked_calls

Module unchecked_calls 

Source

StructsΒ§

UncheckedCallChecker πŸ”’
Visitor that detects unchecked low-level calls within function bodies.
UncheckedTransferERC20Checker πŸ”’
Visitor that detects unchecked ERC20 transfer calls within function bodies.

StaticsΒ§

ERC20_UNCHECKED_TRANSFER
UNCHECKED_CALL

FunctionsΒ§

is_erc20_transfer_call πŸ”’
Checks if an expression is an ERC20 transfer or transferFrom call. function ERC20.transfer(to, amount) function ERC20.transferFrom(from, to, amount)
is_low_level_call πŸ”’
Checks if an expression is a low-level call that should be checked.
is_unchecked_tuple_assignment πŸ”’
Checks if a tuple assignment doesn’t properly check the success value.