mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
6 years ago
|
contract IERC20Good {
|
||
|
function transfer(address to, uint value) external returns (bool);
|
||
|
function approve(address spender, uint value) external returns (bool);
|
||
|
function transferFrom(address from, address to, uint value) external returns (bool);
|
||
|
function totalSupply() external view returns (uint);
|
||
|
function balanceOf(address who) external view returns (uint);
|
||
|
function allowance(address owner, address spender) external view returns (uint);
|
||
|
event Transfer(address indexed from, address indexed to, uint value);
|
||
|
event Approval(address indexed owner, address indexed spender, uint value);
|
||
|
}
|
||
|
|
||
|
contract IERC20Bad {
|
||
|
function transfer(address to, uint value) external returns (bool);
|
||
|
function approve(address spender, uint value) external returns (bool);
|
||
|
function transferFrom(address from, address to, uint value) external returns (bool);
|
||
|
function totalSupply() external view returns (uint);
|
||
|
function balanceOf(address who) external view returns (uint);
|
||
|
function allowance(address owner, address spender) external view returns (uint);
|
||
|
event Transfer(address from, address to, uint value);
|
||
|
event Approval(address owner, address spender, uint value);
|
||
|
}
|
||
|
|
||
|
contract ERC20BadDerived is IERC20Bad {
|
||
|
|
||
|
}
|