ERC-20
Overview
Max Total Supply
9,940.207861769783429605 gCORE
Holders
12
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
3.713386930499277866 gCOREValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenshinCORE
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-23 */ /*GENSHINCORE t.me/genshinCOREOfficial*/ pragma solidity ^0.5.0; contract ERC20Interface { function allowance(address tokenOwner, address spender) public view returns (uint remaining); function approve(address spender, uint tokens) public returns (bool success); function totalSupply() public view returns (uint); function balanceOf(address tokenOwner) public view returns (uint balance); function transfer(address to, uint tokens) public returns (bool success); function transferFrom(address from, address to, uint tokens) public returns (bool success); event Transfer(address indexed from, address indexed to, uint tokens); event Approval(address indexed tokenOwner, address indexed spender, uint tokens); } library SafeMath { function add(uint256 x, uint256 y) internal pure returns (uint256) { uint256 z = x + y; assert(z >= x); return z; } function subtract(uint256 x, uint256 y) internal pure returns (uint256) { assert(y <= x); return x - y; } function multiply(uint256 x, uint256 y) internal pure returns (uint256) { if (x == 0) { return 0; } uint256 z = x * y; assert(z / x == y); return z; } function divide(uint256 x, uint256 y) internal pure returns (uint256) { uint256 z = x / y; return z; } function ceil(uint256 x, uint256 y) internal pure returns (uint256) { uint256 c = add(x,y); uint256 d = subtract(c,1); return multiply(divide(d,y),y); } } contract GenshinCORE is ERC20Interface { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 public foundationRatio = 100; uint256 public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { name = "genshinCORE"; symbol = "gCORE"; decimals = 18; _totalSupply = 10000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); } function totalSupply() public view returns (uint) { return _totalSupply - balances[address(0)]; } function allowance(address tokenOwner, address spender) public view returns (uint remaining) { return allowed[tokenOwner][spender]; } function getBurnPercent(uint256 value) public view returns (uint256) { uint256 roundValue = value.ceil(foundationRatio); uint256 onePercent = roundValue.multiply(foundationRatio).divide(30000); // 3 percent burn return onePercent; } function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; } function balanceOf(address tokenOwner) public view returns (uint balance) { return balances[tokenOwner]; } function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = balances[from].subtract(tokens); allowed[from][msg.sender] = allowed[from][msg.sender].subtract(tokens); balances[to] = balances[to].add(tokens); emit Transfer(from, to, tokens); return true; } function transfer(address to, uint value) public returns (bool success) { require(value <= balances[msg.sender]); require(to != address(0)); uint256 tokensToBurn = getBurnPercent(value); uint256 tokensToTransfer = value.subtract(tokensToBurn); balances[msg.sender] = balances[msg.sender].subtract(value); balances[to] = balances[to].add(tokensToTransfer); _totalSupply = _totalSupply.subtract(tokensToBurn); emit Transfer(msg.sender, to, tokensToTransfer); emit Transfer(msg.sender, address(0), tokensToBurn); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenOwner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","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":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundationRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"getBurnPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052606460035534801561001557600080fd5b5060408051808201909152600b8082526a67656e7368696e434f524560a81b6020909201918252610048916000916100e1565b506040805180820190915260058082526467434f524560d81b6020909201918252610075916001916100e1565b506002805460ff1916601217905569021e19e0c9bab24000006004819055336000818152600560209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a361017c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012257805160ff191683800117855561014f565b8280016001018555821561014f579182015b8281111561014f578251825591602001919060010190610134565b5061015b92915061015f565b5090565b61017991905b8082111561015b5760008155600101610165565b90565b6107f08061018b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80633eaaf86b116100715780633eaaf86b146101ec57806370a08231146101f45780637d63ab381461021a57806395d89b4114610237578063a9059cbb1461023f578063dd62ed3e1461026b576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd146101905780632a29936c146101c6578063313ce567146101ce575b600080fd5b6100c1610299565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610327565b604080519115158252519081900360200190f35b61017e61038e565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b038135811691602081013590911690604001356103c0565b61017e6104cb565b6101d66104d1565b6040805160ff9092168252519081900360200190f35b61017e6104da565b61017e6004803603602081101561020a57600080fd5b50356001600160a01b03166104e0565b61017e6004803603602081101561023057600080fd5b50356104fb565b6100c1610546565b6101626004803603604081101561025557600080fd5b506001600160a01b0381351690602001356105a0565b61017e6004803603604081101561028157600080fd5b506001600160a01b03813581169160200135166106f5565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561031f5780601f106102f45761010080835404028352916020019161031f565b820191906000526020600020905b81548152906001019060200180831161030257829003601f168201915b505050505081565b3360008181526006602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc546004540390565b6001600160a01b0383166000908152600560205260408120546103e9908363ffffffff61072016565b6001600160a01b0385166000908152600560209081526040808320939093556006815282822033835290522054610426908363ffffffff61072016565b6001600160a01b03808616600090815260066020908152604080832033845282528083209490945591861681526005909152205461046a908363ffffffff61073216565b6001600160a01b0380851660008181526005602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60035481565b60025460ff1681565b60045481565b6001600160a01b031660009081526005602052604090205490565b6000806105136003548461074890919063ffffffff16565b9050600061053e6175306105326003548561078290919063ffffffff16565b9063ffffffff6107a616565b949350505050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561031f5780601f106102f45761010080835404028352916020019161031f565b336000908152600560205260408120548211156105bc57600080fd5b6001600160a01b0383166105cf57600080fd5b60006105da836104fb565b905060006105ee848363ffffffff61072016565b33600090815260056020526040902054909150610611908563ffffffff61072016565b33600090815260056020526040808220929092556001600160a01b03871681522054610643908263ffffffff61073216565b6001600160a01b03861660009081526005602052604090205560045461066f908363ffffffff61072016565b6004556040805182815290516001600160a01b0387169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a360408051838152905160009133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3506001949350505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b60008282111561072c57fe5b50900390565b60008282018381101561074157fe5b9392505050565b6000806107558484610732565b90506000610764826001610720565b905061077961077382866107a6565b85610782565b95945050505050565b60008261079157506000610388565b8282028284828161079e57fe5b041461074157fe5b6000808284816107b257fe5b0494935050505056fea265627a7a72315820d5d365e724c4ced5d273f55ddcd55eb4a4b8c39e037efd29e0ef40e8d43385cb64736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80633eaaf86b116100715780633eaaf86b146101ec57806370a08231146101f45780637d63ab381461021a57806395d89b4114610237578063a9059cbb1461023f578063dd62ed3e1461026b576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd146101905780632a29936c146101c6578063313ce567146101ce575b600080fd5b6100c1610299565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610327565b604080519115158252519081900360200190f35b61017e61038e565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b038135811691602081013590911690604001356103c0565b61017e6104cb565b6101d66104d1565b6040805160ff9092168252519081900360200190f35b61017e6104da565b61017e6004803603602081101561020a57600080fd5b50356001600160a01b03166104e0565b61017e6004803603602081101561023057600080fd5b50356104fb565b6100c1610546565b6101626004803603604081101561025557600080fd5b506001600160a01b0381351690602001356105a0565b61017e6004803603604081101561028157600080fd5b506001600160a01b03813581169160200135166106f5565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561031f5780601f106102f45761010080835404028352916020019161031f565b820191906000526020600020905b81548152906001019060200180831161030257829003601f168201915b505050505081565b3360008181526006602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc546004540390565b6001600160a01b0383166000908152600560205260408120546103e9908363ffffffff61072016565b6001600160a01b0385166000908152600560209081526040808320939093556006815282822033835290522054610426908363ffffffff61072016565b6001600160a01b03808616600090815260066020908152604080832033845282528083209490945591861681526005909152205461046a908363ffffffff61073216565b6001600160a01b0380851660008181526005602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60035481565b60025460ff1681565b60045481565b6001600160a01b031660009081526005602052604090205490565b6000806105136003548461074890919063ffffffff16565b9050600061053e6175306105326003548561078290919063ffffffff16565b9063ffffffff6107a616565b949350505050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561031f5780601f106102f45761010080835404028352916020019161031f565b336000908152600560205260408120548211156105bc57600080fd5b6001600160a01b0383166105cf57600080fd5b60006105da836104fb565b905060006105ee848363ffffffff61072016565b33600090815260056020526040902054909150610611908563ffffffff61072016565b33600090815260056020526040808220929092556001600160a01b03871681522054610643908263ffffffff61073216565b6001600160a01b03861660009081526005602052604090205560045461066f908363ffffffff61072016565b6004556040805182815290516001600160a01b0387169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a360408051838152905160009133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3506001949350505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b60008282111561072c57fe5b50900390565b60008282018381101561074157fe5b9392505050565b6000806107558484610732565b90506000610764826001610720565b905061077961077382866107a6565b85610782565b95945050505050565b60008261079157506000610388565b8282028284828161079e57fe5b041461074157fe5b6000808284816107b257fe5b0494935050505056fea265627a7a72315820d5d365e724c4ced5d273f55ddcd55eb4a4b8c39e037efd29e0ef40e8d43385cb64736f6c63430005110032
Deployed Bytecode Sourcemap
2013:2600:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2013:2600:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2104:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2104:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3224:208;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3224:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2664:112;;;:::i;:::-;;;;;;;;;;;;;;;;3576:353;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3576:353:0;;;;;;;;;;;;;;;;;:::i;2190:36::-;;;:::i;2156:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2233:27;;;:::i;3444:120::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3444:120:0;-1:-1:-1;;;;;3444:120:0;;:::i;2947:265::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2947:265:0;;:::i;2129:20::-;;;:::i;3947:645::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3947:645:0;;;;;;;;:::i;2788:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2788:147:0;;;;;;;;;;:::i;2104:18::-;;;;;;;;;;;;;;;-1:-1:-1;;2104:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3224:208::-;3320:10;3287:12;3312:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3312:28:0;;;;;;;;;;;:37;;;3365;;;;;;;3287:12;;3312:28;;3320:10;;3365:37;;;;;;;;-1:-1:-1;3420:4:0;3224:208;;;;;:::o;2664:112::-;2708:4;2748:20;;:8;:20;;;;2732:12;;:36;2664:112;:::o;3576:353::-;-1:-1:-1;;;;;3695:14:0;;3653:12;3695:14;;;:8;:14;;;;;;:31;;3719:6;3695:31;:23;:31;:::i;:::-;-1:-1:-1;;;;;3678:14:0;;;;;;:8;:14;;;;;;;;:48;;;;3765:7;:13;;;;;3779:10;3765:25;;;;;;:42;;3800:6;3765:42;:34;:42;:::i;:::-;-1:-1:-1;;;;;3737:13:0;;;;;;;:7;:13;;;;;;;;3751:10;3737:25;;;;;;;:70;;;;3833:12;;;;;:8;:12;;;;;:24;;3850:6;3833:24;:16;:24;:::i;:::-;-1:-1:-1;;;;;3818:12:0;;;;;;;:8;:12;;;;;;;;;:39;;;;3873:26;;;;;;;3818:12;;3873:26;;;;;;;;;;;;;-1:-1:-1;3917:4:0;3576:353;;;;;:::o;2190:36::-;;;;:::o;2156:21::-;;;;;;:::o;2233:27::-;;;;:::o;3444:120::-;-1:-1:-1;;;;;3536:20:0;3504:12;3536:20;;;:8;:20;;;;;;;3444:120::o;2947:265::-;3007:7;3028:18;3049:27;3060:15;;3049:5;:10;;:27;;;;:::i;:::-;3028:48;;3087:18;3108:50;3152:5;3108:36;3128:15;;3108:10;:19;;:36;;;;:::i;:::-;:43;:50;:43;:50;:::i;:::-;3087:71;2947:265;-1:-1:-1;;;;2947:265:0:o;2129:20::-;;;;;;;;;;;;;;;-1:-1:-1;;2129:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3947:645;4058:10;4005:12;4049:20;;;:8;:20;;;;;;4040:29;;;4032:38;;;;;;-1:-1:-1;;;;;4089:16:0;;4081:25;;;;;;4123:20;4146:21;4161:5;4146:14;:21::i;:::-;4123:44;-1:-1:-1;4178:24:0;4205:28;:5;4123:44;4205:28;:14;:28;:::i;:::-;4282:10;4273:20;;;;:8;:20;;;;;;4178:55;;-1:-1:-1;4273:36:0;;4303:5;4273:36;:29;:36;:::i;:::-;4259:10;4250:20;;;;:8;:20;;;;;;:59;;;;-1:-1:-1;;;;;4335:12:0;;;;;;:34;;4352:16;4335:34;:16;:34;:::i;:::-;-1:-1:-1;;;;;4320:12:0;;;;;;:8;:12;;;;;:49;4401:12;;:35;;4423:12;4401:35;:21;:35;:::i;:::-;4386:12;:50;4458:42;;;;;;;;-1:-1:-1;;;;;4458:42:0;;;4467:10;;4458:42;;;;;;;;;4516:46;;;;;;;;4545:1;;4525:10;;4516:46;;;;;;;;;-1:-1:-1;4580:4:0;;3947:645;-1:-1:-1;;;;3947:645:0:o;2788:147::-;-1:-1:-1;;;;;2899:19:0;;;2865:14;2899:19;;;:7;:19;;;;;;;;:28;;;;;;;;;;;;;2788:147::o;1178:164::-;1271:7;1309:1;1304;:6;;1297:14;;;;-1:-1:-1;1329:5:0;;;1178:164::o;991:173::-;1069:7;1107:5;;;1130:6;;;;1123:14;;;;1155:1;991:173;-1:-1:-1;;;991:173:0:o;1786:220::-;1875:7;1901:9;1913:8;1917:1;1919;1913:3;:8::i;:::-;1901:20;;1932:9;1944:13;1953:1;1955;1944:8;:13::i;:::-;1932:25;;1975:23;1984:11;1991:1;1993;1984:6;:11::i;:::-;1996:1;1975:8;:23::i;:::-;1968:30;1786:220;-1:-1:-1;;;;;1786:220:0:o;1354:247::-;1447:7;1477:6;1473:45;;-1:-1:-1;1505:1:0;1498:8;;1473:45;1540:5;;;1544:1;1540;:5;:1;1563:5;;;;;:10;1556:18;;;1613:161;1704:7;1730:9;1746:1;1742;:5;;;;;;;1613:161;-1:-1:-1;;;;1613:161:0:o
Swarm Source
bzzr://d5d365e724c4ced5d273f55ddcd55eb4a4b8c39e037efd29e0ef40e8d43385cb
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.