Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 12513808 | 1364 days ago | IN | 0 ETH | 0.00153678 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CHI
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-27 */ pragma solidity ^0.6.0; contract CHI { string public name = "CHI"; string public symbol = "CHI"; uint256 public totalSupply; address payable private admin; event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval( address indexed _owner, address indexed _spender, uint256 _value ); mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; constructor(uint256 _initialSupply) public { balanceOf[msg.sender] = _initialSupply; totalSupply = _initialSupply; admin = msg.sender; } function transfer(address _to, uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value, "Not enough balance"); balanceOf[msg.sender] -= _value; balanceOf[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function transferFrom( address _from, address _to, uint256 _value ) public returns (bool success) { require( balanceOf[_from] >= _value, "_from does not have enough tokens" ); require( allowance[_from][msg.sender] >= _value, "Spender limit exceeded" ); balanceOf[_from] -= _value; balanceOf[_to] += _value; allowance[_from][msg.sender] -= _value; emit Transfer(_from, _to, _value); return true; } receive() external payable {} function exit() external { require(msg.sender == admin); admin.transfer(address(this).balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600360808190526243484960e81b60a090815261002491600091906100b1565b506040805180820190915260038082526243484960e81b602090920191825261004f916001916100b1565b5034801561005c57600080fd5b506040516108433803806108438339818101604052602081101561007f57600080fd5b5051336000818152600460205260409020829055600291909155600380546001600160a01b0319169091179055610144565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f257805160ff191683800117855561011f565b8280016001018555821561011f579182015b8281111561011f578251825591602001919060010190610104565b5061012b92915061012f565b5090565b5b8082111561012b5760008155600101610130565b6106f0806101536000396000f3fe60806040526004361061008a5760003560e01c806370a082311161005957806370a08231146101d757806395d89b411461020a578063a9059cbb1461021f578063dd62ed3e14610258578063e9fad8ee1461029357610091565b806306fdde0314610096578063095ea7b31461012057806318160ddd1461016d57806323b872dd1461019457610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab6102aa565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561012c57600080fd5b506101596004803603604081101561014357600080fd5b506001600160a01b038135169060200135610338565b604080519115158252519081900360200190f35b34801561017957600080fd5b5061018261039e565b60408051918252519081900360200190f35b3480156101a057600080fd5b50610159600480360360608110156101b757600080fd5b506001600160a01b038135811691602081013590911690604001356103a4565b3480156101e357600080fd5b50610182600480360360208110156101fa57600080fd5b50356001600160a01b03166104f6565b34801561021657600080fd5b506100ab610508565b34801561022b57600080fd5b506101596004803603604081101561024257600080fd5b506001600160a01b038135169060200135610562565b34801561026457600080fd5b506101826004803603604081101561027b57600080fd5b506001600160a01b0381358116916020013516610629565b34801561029f57600080fd5b506102a8610646565b005b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103305780601f1061030557610100808354040283529160200191610330565b820191906000526020600020905b81548152906001019060200180831161031357829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b6001600160a01b0383166000908152600460205260408120548211156103fb5760405162461bcd60e51b815260040180806020018281038252602181526020018061069a6021913960400191505060405180910390fd5b6001600160a01b038416600090815260056020908152604080832033845290915290205482111561046c576040805162461bcd60e51b815260206004820152601660248201527514dc195b99195c881b1a5b5a5d08195e18d95959195960521b604482015290519081900360640190fd5b6001600160a01b0380851660008181526004602090815260408083208054889003905593871680835284832080548801905583835260058252848320338452825291849020805487900390558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103305780601f1061030557610100808354040283529160200191610330565b336000908152600460205260408120548211156105bb576040805162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b604482015290519081900360640190fd5b336000818152600460209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600560209081526000928352604080842090915290825290205481565b6003546001600160a01b0316331461065d57600080fd5b6003546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610696573d6000803e3d6000fd5b5056fe5f66726f6d20646f6573206e6f74206861766520656e6f75676820746f6b656e73a264697066735822122087e0ec0eafe71c0b47a82f9d8396904b9822eb537eae12655ec1badad8cb650564736f6c634300060c00330000000000000000000000000000000000000000000000000000000001406f40
Deployed Bytecode
0x60806040526004361061008a5760003560e01c806370a082311161005957806370a08231146101d757806395d89b411461020a578063a9059cbb1461021f578063dd62ed3e14610258578063e9fad8ee1461029357610091565b806306fdde0314610096578063095ea7b31461012057806318160ddd1461016d57806323b872dd1461019457610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab6102aa565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561012c57600080fd5b506101596004803603604081101561014357600080fd5b506001600160a01b038135169060200135610338565b604080519115158252519081900360200190f35b34801561017957600080fd5b5061018261039e565b60408051918252519081900360200190f35b3480156101a057600080fd5b50610159600480360360608110156101b757600080fd5b506001600160a01b038135811691602081013590911690604001356103a4565b3480156101e357600080fd5b50610182600480360360208110156101fa57600080fd5b50356001600160a01b03166104f6565b34801561021657600080fd5b506100ab610508565b34801561022b57600080fd5b506101596004803603604081101561024257600080fd5b506001600160a01b038135169060200135610562565b34801561026457600080fd5b506101826004803603604081101561027b57600080fd5b506001600160a01b0381358116916020013516610629565b34801561029f57600080fd5b506102a8610646565b005b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103305780601f1061030557610100808354040283529160200191610330565b820191906000526020600020905b81548152906001019060200180831161031357829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b6001600160a01b0383166000908152600460205260408120548211156103fb5760405162461bcd60e51b815260040180806020018281038252602181526020018061069a6021913960400191505060405180910390fd5b6001600160a01b038416600090815260056020908152604080832033845290915290205482111561046c576040805162461bcd60e51b815260206004820152601660248201527514dc195b99195c881b1a5b5a5d08195e18d95959195960521b604482015290519081900360640190fd5b6001600160a01b0380851660008181526004602090815260408083208054889003905593871680835284832080548801905583835260058252848320338452825291849020805487900390558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103305780601f1061030557610100808354040283529160200191610330565b336000908152600460205260408120548211156105bb576040805162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b604482015290519081900360640190fd5b336000818152600460209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600560209081526000928352604080842090915290825290205481565b6003546001600160a01b0316331461065d57600080fd5b6003546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610696573d6000803e3d6000fd5b5056fe5f66726f6d20646f6573206e6f74206861766520656e6f75676820746f6b656e73a264697066735822122087e0ec0eafe71c0b47a82f9d8396904b9822eb537eae12655ec1badad8cb650564736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000001406f40
-----Decoded View---------------
Arg [0] : _initialSupply (uint256): 21000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000001406f40
Deployed Bytecode Sourcemap
27:1987:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:239;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1031:239:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;117:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1278:566;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1278:566:0;;;;;;;;;;;;;;;;;:::i;394:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;394:44:0;-1:-1:-1;;;;;394:44:0;;:::i;81:28::-;;;;;;;;;;;;;:::i;694:329::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;694:329:0;;;;;;;;:::i;445:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;445:64:0;;;;;;;;;;:::i;1889:120::-;;;;;;;;;;;;;:::i;:::-;;47:26;;;;;;;;;;;;;;;-1:-1:-1;;47:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1031:239::-;1156:10;1116:12;1146:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1146:31:0;;;;;;;;;;;:40;;;1202:38;;;;;;;1116:12;;1146:31;;1156:10;;1202:38;;;;;;;;-1:-1:-1;1258:4:0;1031:239;;;;:::o;117:26::-;;;;:::o;1278:566::-;-1:-1:-1;;;;;1441:16:0;;1394:12;1441:16;;;:9;:16;;;;;;:26;-1:-1:-1;1441:26:0;1419:109;;;;-1:-1:-1;;;1419:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1561:16:0;;;;;;:9;:16;;;;;;;;1578:10;1561:28;;;;;;;;:38;-1:-1:-1;1561:38:0;1539:110;;;;;-1:-1:-1;;;1539:110:0;;;;;;;;;;;;-1:-1:-1;;;1539:110:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;1660:16:0;;;;;;;:9;:16;;;;;;;;:26;;;;;;;1697:14;;;;;;;;;:24;;;;;;1732:16;;;:9;:16;;;;;1749:10;1732:28;;;;;;;;:38;;;;;;;1786:28;;;;;;;1697:14;;1786:28;;;;;;;;;;;-1:-1:-1;1832:4:0;1278:566;;;;;:::o;394:44::-;;;;;;;;;;;;;:::o;81:28::-;;;;;;;;;;;;;;;-1:-1:-1;;81:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;694:329;823:10;775:12;813:21;;;:9;:21;;;;;;:31;-1:-1:-1;813:31:0;805:62;;;;;-1:-1:-1;;;805:62:0;;;;;;;;;;;;-1:-1:-1;;;805:62:0;;;;;;;;;;;;;;;888:10;878:21;;;;:9;:21;;;;;;;;:31;;;;;;;-1:-1:-1;;;;;920:14:0;;;;;;;;;:24;;;;;;960:33;;;;;;;920:14;;888:10;960:33;;;;;;;;;;;-1:-1:-1;1011:4:0;694:329;;;;:::o;445:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1889:120::-;1947:5;;-1:-1:-1;;;;;1947:5:0;1933:10;:19;1925:28;;;;;;1964:5;;:37;;-1:-1:-1;;;;;1964:5:0;;;;1979:21;1964:37;;;;;:5;:37;:5;:37;1979:21;1964:5;:37;;;;;;;;;;;;;;;;;;;;;1889:120::o
Swarm Source
ipfs://87e0ec0eafe71c0b47a82f9d8396904b9822eb537eae12655ec1badad8cb6505
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.