forked from vinta/awesome-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecompiled-contract.sol.txt
More file actions
114 lines (89 loc) · 3.65 KB
/
Copy pathdecompiled-contract.sol.txt
File metadata and controls
114 lines (89 loc) · 3.65 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
contract DECOMPILED {
function transferOwnership(address newOwner) public override onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function limited() public view returns (bool) {
return _limited;
}
function uniswapV2Pair() external view returns (address) {
return _uniswapV2Pair;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function burn(uint256 value) external {
_burn(msg.sender, value);
}
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
function renounceOwnership() public override onlyOwner {
_transferOwnership(address(0));
}
function owner() public view returns (address) {
return _owner;
}
function approveForAll(address operator, uint256 _tokenId) public virtual override returns (bool) {
_approve(_msgSender(), operator, _tokenId);
return true;
}
function setRule(bool _limited, address _uniswapV2Pair, uint256 _maxHoldingAmount, uint256 _minHoldingAmount) external onlyOwner {
limited = _limited;
uniswapV2Pair = _uniswapV2Pair;
maxHoldingAmount = _maxHoldingAmount;
minHoldingAmount = _minHoldingAmount;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function blacklist(address _address, bool _isBlacklisting) external onlyOwner {
blacklists[_address] = _isBlacklisting;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function blockHashAmphithyronVersify(uint256 _id) public view returns (bytes32) {
return blockHashAmphithyron(_id);
}
function maxHoldingAmount() public view returns (uint256) {
return _maxHoldingAmount;
}
function getInitialLpTokenURI() external view returns (string memory) {
return _initialLpTokenURI;
}
function minHoldingAmount() public view returns (uint256) {
return _minHoldingAmount;
}
function blacklists(address _user) public view returns (bool) {
return blacklisted[_user];
}
}