ERC-20
Overview
Max Total Supply
100,000,000,000 YSM
Holders
1,379
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
YSM
Compiler Version
v0.4.26+commit.4563c3fc
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-02-19 */ pragma solidity ^0.4.26; interface ERC20 { function transferFrom(address _from, address _to, uint256 _value) external returns (bool); function transfer(address _to, uint256 _value) external returns (bool); function balanceOf(address _owner) external constant returns (uint256); function allowance(address _owner, address _spender) external returns (uint256); function approve(address _spender, uint256 _value) external returns (bool); event Approval(address indexed _owner, address indexed _spender, uint256 _val); event Transfer(address indexed _from, address indexed _to, uint256 _val); } contract YSM is ERC20 { uint256 public totalSupply; uint public decimals; string public symbol; string public name; mapping (address => mapping (address => uint256)) approach; mapping (address => uint256) holders; constructor() public { name = "number cloud trade"; symbol = "YSM"; decimals = 18; totalSupply = 100000 * 10000 * 100 * 10**uint(decimals); holders[msg.sender] = totalSupply; } function () public { revert(); } function balanceOf(address _own) public view returns (uint256) { return holders[_own]; } function transfer(address _to, uint256 _val) public returns (bool) { require(holders[msg.sender] >= _val); require(msg.sender != _to); assert(_val <= holders[msg.sender]); holders[msg.sender] = holders[msg.sender] - _val; holders[_to] = holders[_to] + _val; assert(holders[_to] >= _val); emit Transfer(msg.sender, _to, _val); return true; } function transferFrom(address _from, address _to, uint256 _val) public returns (bool) { require(holders[_from] >= _val); require(approach[_from][msg.sender] >= _val); assert(_val <= holders[_from]); holders[_from] = holders[_from] - _val; assert(_val <= approach[_from][msg.sender]); approach[_from][msg.sender] = approach[_from][msg.sender] - _val; holders[_to] = holders[_to] + _val; assert(holders[_to] >= _val); emit Transfer(_from, _to, _val); return true; } function approve(address _spender, uint256 _val) public returns (bool) { require(holders[msg.sender] >= _val); approach[msg.sender][_spender] = _val; emit Approval(msg.sender, _spender, _val); return true; } function allowance(address _owner, address _spender) public view returns (uint256) { return approach[_owner][_spender]; } }
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":"_val","type":"uint256"}],"name":"approve","outputs":[{"name":"","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":"_val","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","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":"_own","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":"_val","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_val","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_val","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
608060405234801561001057600080fd5b506040805180820190915260128082527f6e756d62657220636c6f756420747261646500000000000000000000000000006020909201918252610055916003916100c5565b506040805180820190915260038082527f59534d0000000000000000000000000000000000000000000000000000000000602090920191825261009a916002916100c5565b5060126001556c01431e0fae6d7217caa0000000600081815533815260056020526040902055610160565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010657805160ff1916838001178555610133565b82800160010185558215610133579182015b82811115610133578251825591602001919060010190610118565b5061013f929150610143565b5090565b61015d91905b8082111561013f5760008155600101610149565b90565b6106518061016f6000396000f3006080604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100aa578063095ea7b31461013457806318160ddd1461016c57806323b872dd14610193578063313ce567146101bd57806370a08231146101d257806395d89b41146101f3578063a9059cbb14610208578063dd62ed3e1461022c575b3480156100a457600080fd5b50600080fd5b3480156100b657600080fd5b506100bf610253565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f95781810151838201526020016100e1565b50505050905090810190601f1680156101265780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014057600080fd5b50610158600160a060020a03600435166024356102e1565b604080519115158252519081900360200190f35b34801561017857600080fd5b50610181610364565b60408051918252519081900360200190f35b34801561019f57600080fd5b50610158600160a060020a036004358116906024351660443561036a565b3480156101c957600080fd5b506101816104b7565b3480156101de57600080fd5b50610181600160a060020a03600435166104bd565b3480156101ff57600080fd5b506100bf6104d8565b34801561021457600080fd5b50610158600160a060020a0360043516602435610530565b34801561023857600080fd5b50610181600160a060020a03600435811690602435166105fa565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d95780601f106102ae576101008083540402835291602001916102d9565b820191906000526020600020905b8154815290600101906020018083116102bc57829003601f168201915b505050505081565b336000908152600560205260408120548211156102fd57600080fd5b336000818152600460209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005481565b600160a060020a03831660009081526005602052604081205482111561038f57600080fd5b600160a060020a03841660009081526004602090815260408083203384529091529020548211156103bf57600080fd5b600160a060020a0384166000908152600560205260409020548211156103e157fe5b600160a060020a0384166000908152600560209081526040808320805486900390556004825280832033845290915290205482111561041c57fe5b600160a060020a03808516600090815260046020908152604080832033845282528083208054879003905592861682526005905220805483019081905582111561046257fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a35060019392505050565b60015481565b600160a060020a031660009081526005602052604090205490565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156102d95780601f106102ae576101008083540402835291602001916102d9565b3360009081526005602052604081205482111561054c57600080fd5b33600160a060020a038416141561056257600080fd5b3360009081526005602052604090205482111561057b57fe5b3360009081526005602052604080822080548590039055600160a060020a0385168252902080548301908190558211156105b157fe5b604080518381529051600160a060020a0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600160a060020a039182166000908152600460209081526040808320939094168252919091522054905600a165627a7a72305820251aaf81d036caf796d1b32aab641cf9be9e7e8ec934db0f12ab112351536ace0029
Deployed Bytecode
0x6080604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100aa578063095ea7b31461013457806318160ddd1461016c57806323b872dd14610193578063313ce567146101bd57806370a08231146101d257806395d89b41146101f3578063a9059cbb14610208578063dd62ed3e1461022c575b3480156100a457600080fd5b50600080fd5b3480156100b657600080fd5b506100bf610253565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f95781810151838201526020016100e1565b50505050905090810190601f1680156101265780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014057600080fd5b50610158600160a060020a03600435166024356102e1565b604080519115158252519081900360200190f35b34801561017857600080fd5b50610181610364565b60408051918252519081900360200190f35b34801561019f57600080fd5b50610158600160a060020a036004358116906024351660443561036a565b3480156101c957600080fd5b506101816104b7565b3480156101de57600080fd5b50610181600160a060020a03600435166104bd565b3480156101ff57600080fd5b506100bf6104d8565b34801561021457600080fd5b50610158600160a060020a0360043516602435610530565b34801561023857600080fd5b50610181600160a060020a03600435811690602435166105fa565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d95780601f106102ae576101008083540402835291602001916102d9565b820191906000526020600020905b8154815290600101906020018083116102bc57829003601f168201915b505050505081565b336000908152600560205260408120548211156102fd57600080fd5b336000818152600460209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005481565b600160a060020a03831660009081526005602052604081205482111561038f57600080fd5b600160a060020a03841660009081526004602090815260408083203384529091529020548211156103bf57600080fd5b600160a060020a0384166000908152600560205260409020548211156103e157fe5b600160a060020a0384166000908152600560209081526040808320805486900390556004825280832033845290915290205482111561041c57fe5b600160a060020a03808516600090815260046020908152604080832033845282528083208054879003905592861682526005905220805483019081905582111561046257fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a35060019392505050565b60015481565b600160a060020a031660009081526005602052604090205490565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156102d95780601f106102ae576101008083540402835291602001916102d9565b3360009081526005602052604081205482111561054c57600080fd5b33600160a060020a038416141561056257600080fd5b3360009081526005602052604090205482111561057b57fe5b3360009081526005602052604080822080548590039055600160a060020a0385168252902080548301908190558211156105b157fe5b604080518381529051600160a060020a0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600160a060020a039182166000908152600460209081526040808320939094168252919091522054905600a165627a7a72305820251aaf81d036caf796d1b32aab641cf9be9e7e8ec934db0f12ab112351536ace0029
Deployed Bytecode Sourcemap
611:1740:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;611:1740:0;1063:8;;;711:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;711:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;711:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2007:213;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2007:213:0;-1:-1:-1;;;;;2007:213:0;;;;;;;;;;;;;;;;;;;;;;;;;636:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;636:26:0;;;;;;;;;;;;;;;;;;;;1528:475;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1528:475:0;-1:-1:-1;;;;;1528:475:0;;;;;;;;;;;;665:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;665:20:0;;;;1079:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1079:91:0;-1:-1:-1;;;;;1079:91:0;;;;;688:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;688:20:0;;;;1174:350;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1174:350:0;-1:-1:-1;;;;;1174:350:0;;;;;;;2224:124;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2224:124:0;-1:-1:-1;;;;;2224:124:0;;;;;;;;;;711:18;;;;;;;;;;;;;;;-1:-1:-1;;711:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2007:213::-;2098:10;2073:4;2090:19;;;:7;:19;;;;;;:27;-1:-1:-1;2090:27:0;2082:36;;;;;;2130:10;2121:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;2121:30:0;;;;;;;;;;;;:37;;;2166:36;;;;;;;2121:30;;2130:10;2166:36;;;;;;;;;;;-1:-1:-1;2212:4:0;2007:213;;;;:::o;636:26::-;;;;:::o;1528:475::-;-1:-1:-1;;;;;1626:14:0;;1609:4;1626:14;;;:7;:14;;;;;;:22;-1:-1:-1;1626:22:0;1618:31;;;;;;-1:-1:-1;;;;;1660:15:0;;;;;;:8;:15;;;;;;;;1676:10;1660:27;;;;;;;;:35;-1:-1:-1;1660:35:0;1652:44;;;;;;-1:-1:-1;;;;;1714:14:0;;;;;;:7;:14;;;;;;1706:22;;;1699:30;;;;-1:-1:-1;;;;;1749:14:0;;;;;;:7;:14;;;;;;;;;;:21;;;1732:38;;1788:8;:15;;;;;1804:10;1788:27;;;;;;;;1780:35;;;1773:43;;;;-1:-1:-1;;;;;1849:15:0;;;;;;;:8;:15;;;;;;;;1865:10;1849:27;;;;;;;;;:34;;;1819:64;;1901:12;;;;;:7;:12;;;;;:19;;1886:34;;;;1930:20;-1:-1:-1;1930:20:0;1923:28;;;;1975:3;-1:-1:-1;;;;;1959:26:0;1968:5;-1:-1:-1;;;;;1959:26:0;;1980:4;1959:26;;;;;;;;;;;;;;;;;;-1:-1:-1;1995:4:0;1528:475;;;;;:::o;665:20::-;;;;:::o;1079:91::-;-1:-1:-1;;;;;1153:13:0;1134:7;1153:13;;;:7;:13;;;;;;;1079:91::o;688:20::-;;;;;;;;;;;;;;-1:-1:-1;;688:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1174:350;1261:10;1236:4;1253:19;;;:7;:19;;;;;;:27;-1:-1:-1;1253:27:0;1245:36;;;;;;1292:10;-1:-1:-1;;;;;1292:17:0;;;;1284:26;;;;;;1336:10;1328:19;;;;:7;:19;;;;;;1320:27;;;1313:35;;;;1381:10;1373:19;;;;:7;:19;;;;;;;;:26;;;1351:48;;-1:-1:-1;;;;;1417:12:0;;;;;;;;:19;;1402:34;;;;1446:20;-1:-1:-1;1446:20:0;1439:28;;;;1475:31;;;;;;;;-1:-1:-1;;;;;1475:31:0;;;1484:10;;1475:31;;;;;;;;;-1:-1:-1;1516:4:0;1174:350;;;;:::o;2224:124::-;-1:-1:-1;;;;;2318:16:0;;;2299:7;2318:16;;;:8;:16;;;;;;;;:26;;;;;;;;;;;;;2224:124::o
Swarm Source
bzzr://251aaf81d036caf796d1b32aab641cf9be9e7e8ec934db0f12ab112351536ace
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.