Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000 YFG
Holders
245
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Balance
3.74452486 YFGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Token
Compiler Version
v0.5.5+commit.47a71e8f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-24 */ pragma solidity ^0.5.5; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract Token { using SafeMath for uint256; string public name = "姨夫兄弟"; // token name string public symbol = "YFG"; // token symbol uint256 public decimals = 8; // token digit mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; uint256 public totalSupply = 0; uint256 constant valueFounder = 100000000000; modifier validAddress { assert(address(0x0) != msg.sender); _; } event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); event Burn(address indexed _from , uint256 _value); constructor() public { totalSupply = valueFounder; balanceOf[msg.sender] = valueFounder; emit Transfer(address(0x0), msg.sender, valueFounder); } function _transfer(address _from, address _to, uint256 _value) private { require(_to != address(0x0)); require(balanceOf[_from] >= _value); balanceOf[_from] = balanceOf[_from].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); } function transfer(address _to, uint256 _value) validAddress public returns (bool success) { _transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) validAddress public returns (bool success) { require(_value <= allowance[_from][msg.sender]); allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) validAddress public returns (bool success) { require(balanceOf[msg.sender] >= _value); allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
60c0604052600c60808190527fe5a7a8e5a4abe58584e5bc9f000000000000000000000000000000000000000060a090815261003e91600091906100f4565b506040805180820190915260038082527f59464700000000000000000000000000000000000000000000000000000000006020909201918252610083916001916100f4565b506008600255600060055534801561009a57600080fd5b5064174876e8006005819055336000818152600360209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a361018f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061013557805160ff1916838001178555610162565b82800160010185558215610162579182015b82811115610162578251825591602001919060010190610147565b5061016e929150610172565b5090565b61018c91905b8082111561016e5760008155600101610178565b90565b6105f58061019e6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101ad57806395d89b41146101d3578063a9059cbb146101db578063dd62ed3e1461020757610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a0610235565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b0381351690602001356102c3565b604080519115158252519081900360200190f35b61015d610351565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b03813581169160208101359091169060400135610357565b61015d6103ff565b61015d600480360360208110156101c357600080fd5b50356001600160a01b0316610405565b6100a0610417565b610141600480360360408110156101f157600080fd5b506001600160a01b038135169060200135610471565b61015d6004803603604081101561021d57600080fd5b506001600160a01b0381358116916020013516610490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102bb5780601f10610290576101008083540402835291602001916102bb565b820191906000526020600020905b81548152906001019060200180831161029e57829003601f168201915b505050505081565b60003315156102ce57fe5b336000908152600360205260409020548211156102ea57600080fd5b3360008181526004602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60055481565b600033151561036257fe5b6001600160a01b038416600090815260046020908152604080832033845290915290205482111561039257600080fd5b6001600160a01b03841660009081526004602090815260408083203384529091529020546103c6908363ffffffff6104ad16565b6001600160a01b03851660009081526004602090815260408083203384529091529020556103f58484846104bf565b5060019392505050565b60025481565b60036020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102bb5780601f10610290576101008083540402835291602001916102bb565b600033151561047c57fe5b6104873384846104bf565b50600192915050565b600460209081526000928352604080842090915290825290205481565b6000828211156104b957fe5b50900390565b6001600160a01b03821615156104d457600080fd5b6001600160a01b0383166000908152600360205260409020548111156104f957600080fd5b6001600160a01b038316600090815260036020526040902054610522908263ffffffff6104ad16565b6001600160a01b038085166000908152600360205260408082209390935590841681522054610557908263ffffffff6105b316565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828201838110156105c257fe5b939250505056fea165627a7a7230582006f64085855e65147907f74dc149e41ac5492e4953383f30e1fe772989c892300029
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101ad57806395d89b41146101d3578063a9059cbb146101db578063dd62ed3e1461020757610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a0610235565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b0381351690602001356102c3565b604080519115158252519081900360200190f35b61015d610351565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b03813581169160208101359091169060400135610357565b61015d6103ff565b61015d600480360360208110156101c357600080fd5b50356001600160a01b0316610405565b6100a0610417565b610141600480360360408110156101f157600080fd5b506001600160a01b038135169060200135610471565b61015d6004803603604081101561021d57600080fd5b506001600160a01b0381358116916020013516610490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102bb5780601f10610290576101008083540402835291602001916102bb565b820191906000526020600020905b81548152906001019060200180831161029e57829003601f168201915b505050505081565b60003315156102ce57fe5b336000908152600360205260409020548211156102ea57600080fd5b3360008181526004602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60055481565b600033151561036257fe5b6001600160a01b038416600090815260046020908152604080832033845290915290205482111561039257600080fd5b6001600160a01b03841660009081526004602090815260408083203384529091529020546103c6908363ffffffff6104ad16565b6001600160a01b03851660009081526004602090815260408083203384529091529020556103f58484846104bf565b5060019392505050565b60025481565b60036020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102bb5780601f10610290576101008083540402835291602001916102bb565b600033151561047c57fe5b6104873384846104bf565b50600192915050565b600460209081526000928352604080842090915290825290205481565b6000828211156104b957fe5b50900390565b6001600160a01b03821615156104d457600080fd5b6001600160a01b0383166000908152600360205260409020548111156104f957600080fd5b6001600160a01b038316600090815260036020526040902054610522908263ffffffff6104ad16565b6001600160a01b038085166000908152600360205260408082209390935590841681522054610557908263ffffffff6105b316565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828201838110156105c257fe5b939250505056fea165627a7a7230582006f64085855e65147907f74dc149e41ac5492e4953383f30e1fe772989c892300029
Deployed Bytecode Sourcemap
770:2152:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;770:2152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;837:35;;;:::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;837:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2639:280;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2639:280:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1176:30;;;:::i;:::-;;;;;;;;;;;;;;;;2312:319;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2312:319:0;;;;;;;;;;;;;;;;;:::i;973:27::-;;;:::i;1036:45::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1036:45:0;-1:-1:-1;;;;;1036:45:0;;:::i;905:28::-;;;:::i;2139:165::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2139:165:0;;;;;;;;:::i;1094:66::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1094:66:0;;;;;;;;;;:::i;837:35::-;;;;;;;;;;;;;;;-1:-1:-1;;837:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2639:280::-;2719:12;1336:10;1320:26;;1313:34;;;;2762:10;2752:21;;;;:9;:21;;;;;;:31;-1:-1:-1;2752:31:0;2744:40;;;;;;2805:10;2795:21;;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2795:31:0;;;;;;;;;;;;:40;;;2851:38;;;;;;;2795:31;;2805:10;2851:38;;;;;;;;;;;-1:-1:-1;2907:4:0;2639:280;;;;:::o;1176:30::-;;;;:::o;2312:319::-;2407:12;1336:10;1320:26;;1313:34;;;;-1:-1:-1;;;;;2450:16:0;;;;;;:9;:16;;;;;;;;2467:10;2450:28;;;;;;;;2440:38;;;2432:47;;;;;;-1:-1:-1;;;;;2521:16:0;;;;;;:9;:16;;;;;;;;2538:10;2521:28;;;;;;;;:40;;2554:6;2521:40;:32;:40;:::i;:::-;-1:-1:-1;;;;;2490:16:0;;;;;;:9;:16;;;;;;;;2507:10;2490:28;;;;;;;:71;2572:29;2500:5;2589:3;2594:6;2572:9;:29::i;:::-;-1:-1:-1;2619:4:0;2312:319;;;;;:::o;973:27::-;;;;:::o;1036:45::-;;;;;;;;;;;;;:::o;905:28::-;;;;;;;;;;;;;;;-1:-1:-1;;905:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2139:165;2215:12;1336:10;1320:26;;1313:34;;;;2240;2250:10;2262:3;2267:6;2240:9;:34::i;:::-;-1:-1:-1;2292:4:0;2139:165;;;;:::o;1094:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;511:113::-;569:7;592:6;;;;585:14;;;;-1:-1:-1;613:5:0;;;511:113::o;1807:320::-;-1:-1:-1;;;;;1897:19:0;;;;1889:28;;;;;;-1:-1:-1;;;;;1936:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;1936:26:0;1928:35;;;;;;-1:-1:-1;;;;;1993:16:0;;;;;;:9;:16;;;;;;:28;;2014:6;1993:28;:20;:28;:::i;:::-;-1:-1:-1;;;;;1974:16:0;;;;;;;:9;:16;;;;;;:47;;;;2049:14;;;;;;;:26;;2068:6;2049:26;:18;:26;:::i;:::-;-1:-1:-1;;;;;2032:14:0;;;;;;;:9;:14;;;;;;;;;:43;;;;2091:28;;;;;;;2032:14;;2091:28;;;;;;;;;;;;;1807:320;;;:::o;630:133::-;688:7;716:5;;;735:6;;;;728:14;;;;756:1;630:133;-1:-1:-1;;;630:133:0:o
Swarm Source
bzzr://06f64085855e65147907f74dc149e41ac5492e4953383f30e1fe772989c89230
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.