-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathISecureERC20.sol
88 lines (65 loc) · 2.61 KB
/
ISecureERC20.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// SPDX-License-Identifier: MIT
// https://github.com/ElPettego/SecureERC20
pragma solidity ^0.8.19;
interface ISecureERC20 {
/**
* @dev Standard ERC20 interface.
* https://github.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/IERC20.sol
*
*/
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed from, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
// ISecureERC20
/**
* @dev Emitted when the token is created;
*/
event Creation(address creator);
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals of the token.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the address of the owner of the token.
*/
function owner() external view returns (address);
/**
* @dev Returns the address of the creator of the token.
*/
function creator() external view returns (address);
/**
* @dev Returns the amount of tokens held by the owner.
*/
function ownerBalance() external view returns (uint256);
/**
* @dev Returns the amount of tokens held by the creator.
*/
function creatorBalance() external view returns (uint256);
/**
* @dev Returns the buy tax value. If the value of the tax is not the same as the one checked with
* a honeypot checker the contract could be not secure.
*
* Consider that honeypot checkers return floating point values and this function returns a integer.
*/
function buyTax() external view returns(uint8);
/**
* @dev Returns the sell tax value. If the value of the tax is not the same as the one checked with
* a honeypot checker the contract could be not secure.
*
* Consider that honeypot checkers return floating point values and this function returns a integer.
*/
function sellTax() external view returns(uint8);
}