Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
840,000,000 UUC
Holders
95
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
UUC
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-11-05 */ pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; 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 ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public constant returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } contract UUC is ERC20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "UUC"; string public constant symbol = "UUC"; uint public constant decimals = 8; uint256 public totalSupply = 840000000e8; event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); event Burn(address indexed burner, uint256 value); modifier onlyOwner() { require(msg.sender == owner); _; } function UUC () public { owner = msg.sender; balances[msg.sender] = totalSupply; } function transferOwnership(address newOwner) onlyOwner public { if (newOwner != address(0)) { owner = newOwner; } } function balanceOf(address _owner) constant public returns (uint256) { return balances[_owner]; } // mitigates the ERC20 short address attack modifier onlyPayloadSize(uint size) { assert(msg.data.length >= size + 4); _; } function transfer(address _to, uint256 _amount) onlyPayloadSize(2 * 32) public returns (bool success) { require(_to != address(0)); require(_amount <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_amount); balances[_to] = balances[_to].add(_amount); Transfer(msg.sender, _to, _amount); return true; } function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) { require(_to != address(0)); require(_amount <= balances[_from]); require(_amount <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_amount); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount); balances[_to] = balances[_to].add(_amount); Transfer(_from, _to, _amount); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant public returns (uint256) { return allowed[_owner][_spender]; } function withdraw() onlyOwner public { uint256 etherBalance = this.balance; owner.transfer(etherBalance); } function burn(uint256 _value) onlyOwner public { require(_value <= balances[msg.sender]); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); Burn(burner, _value); } function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); require(_spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData)); 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":"_amount","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":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","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":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","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"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
608060405260018054600160a060020a0319163317905567012a6d8e1122000060045534801561002e57600080fd5b5060018054600160a060020a03191633908117909155600454600091825260026020526040909120556109c5806100666000396000f3006080604052600436106100ab5763ffffffff60e060020a60003504166306fdde0381146100b0578063095ea7b31461013a57806318160ddd1461017257806323b872dd14610199578063313ce567146101c35780633ccfd60b146101d857806342966c68146101ef57806370a082311461020757806395d89b41146100b0578063a9059cbb14610228578063cae9ca511461024c578063dd62ed3e146102b5578063f2fde38b146102dc575b600080fd5b3480156100bc57600080fd5b506100c56102fd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ff5781810151838201526020016100e7565b50505050905090810190601f16801561012c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014657600080fd5b5061015e600160a060020a0360043516602435610334565b604080519115158252519081900360200190f35b34801561017e57600080fd5b5061018761039a565b60408051918252519081900360200190f35b3480156101a557600080fd5b5061015e600160a060020a03600435811690602435166044356103a0565b3480156101cf57600080fd5b50610187610525565b3480156101e457600080fd5b506101ed61052a565b005b3480156101fb57600080fd5b506101ed600435610584565b34801561021357600080fd5b50610187600160a060020a036004351661064d565b34801561023457600080fd5b5061015e600160a060020a0360043516602435610668565b34801561025857600080fd5b50604080516020600460443581810135601f810184900484028501840190955284845261015e948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107599650505050505050565b3480156102c157600080fd5b50610187600160a060020a03600435811690602435166108f4565b3480156102e857600080fd5b506101ed600160a060020a036004351661091f565b60408051808201909152600381527f5555430000000000000000000000000000000000000000000000000000000000602082015281565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b6000606060643610156103af57fe5b600160a060020a03841615156103c457600080fd5b600160a060020a0385166000908152600260205260409020548311156103e957600080fd5b600160a060020a038516600090815260036020908152604080832033845290915290205483111561041957600080fd5b600160a060020a038516600090815260026020526040902054610442908463ffffffff61097116565b600160a060020a038616600090815260026020908152604080832093909355600381528282203383529052205461047f908463ffffffff61097116565b600160a060020a0380871660009081526003602090815260408083203384528252808320949094559187168152600290915220546104c3908463ffffffff61098316565b600160a060020a0380861660008181526002602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001949350505050565b600881565b600154600090600160a060020a0316331461054457600080fd5b50600154604051303191600160a060020a03169082156108fc029083906000818181858888f19350505050158015610580573d6000803e3d6000fd5b5050565b600154600090600160a060020a0316331461059e57600080fd5b336000908152600260205260409020548211156105ba57600080fd5b50336000818152600260205260409020546105db908363ffffffff61097116565b600160a060020a038216600090815260026020526040902055600454610607908363ffffffff61097116565b600455604080518381529051600160a060020a038316917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25050565b600160a060020a031660009081526002602052604090205490565b60006040604436101561067757fe5b600160a060020a038416151561068c57600080fd5b336000908152600260205260409020548311156106a857600080fd5b336000908152600260205260409020546106c8908463ffffffff61097116565b3360009081526002602052604080822092909255600160a060020a038616815220546106fa908463ffffffff61098316565b600160a060020a0385166000818152600260209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b336000818152600360209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a383600160a060020a031660405180807f72656365697665417070726f76616c28616464726573732c75696e743235362c81526020017f616464726573732c627974657329000000000000000000000000000000000000815250602e019050604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b83811015610899578181015183820152602001610881565b50505050905090810190601f1680156108c65780820380516001836020036101000a031916815260200191505b509450505050506000604051808303816000875af19250505015156108ea57600080fd5b5060019392505050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600154600160a060020a0316331461093657600080fd5b600160a060020a0381161561096e576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60008282111561097d57fe5b50900390565b60008282018381101561099257fe5b93925050505600a165627a7a72305820e0eeb04c0fbfc636e31feaf6f4c597360552cad047caadc6f60be8367e5d5df40029
Deployed Bytecode
0x6080604052600436106100ab5763ffffffff60e060020a60003504166306fdde0381146100b0578063095ea7b31461013a57806318160ddd1461017257806323b872dd14610199578063313ce567146101c35780633ccfd60b146101d857806342966c68146101ef57806370a082311461020757806395d89b41146100b0578063a9059cbb14610228578063cae9ca511461024c578063dd62ed3e146102b5578063f2fde38b146102dc575b600080fd5b3480156100bc57600080fd5b506100c56102fd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ff5781810151838201526020016100e7565b50505050905090810190601f16801561012c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014657600080fd5b5061015e600160a060020a0360043516602435610334565b604080519115158252519081900360200190f35b34801561017e57600080fd5b5061018761039a565b60408051918252519081900360200190f35b3480156101a557600080fd5b5061015e600160a060020a03600435811690602435166044356103a0565b3480156101cf57600080fd5b50610187610525565b3480156101e457600080fd5b506101ed61052a565b005b3480156101fb57600080fd5b506101ed600435610584565b34801561021357600080fd5b50610187600160a060020a036004351661064d565b34801561023457600080fd5b5061015e600160a060020a0360043516602435610668565b34801561025857600080fd5b50604080516020600460443581810135601f810184900484028501840190955284845261015e948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107599650505050505050565b3480156102c157600080fd5b50610187600160a060020a03600435811690602435166108f4565b3480156102e857600080fd5b506101ed600160a060020a036004351661091f565b60408051808201909152600381527f5555430000000000000000000000000000000000000000000000000000000000602082015281565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b6000606060643610156103af57fe5b600160a060020a03841615156103c457600080fd5b600160a060020a0385166000908152600260205260409020548311156103e957600080fd5b600160a060020a038516600090815260036020908152604080832033845290915290205483111561041957600080fd5b600160a060020a038516600090815260026020526040902054610442908463ffffffff61097116565b600160a060020a038616600090815260026020908152604080832093909355600381528282203383529052205461047f908463ffffffff61097116565b600160a060020a0380871660009081526003602090815260408083203384528252808320949094559187168152600290915220546104c3908463ffffffff61098316565b600160a060020a0380861660008181526002602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001949350505050565b600881565b600154600090600160a060020a0316331461054457600080fd5b50600154604051303191600160a060020a03169082156108fc029083906000818181858888f19350505050158015610580573d6000803e3d6000fd5b5050565b600154600090600160a060020a0316331461059e57600080fd5b336000908152600260205260409020548211156105ba57600080fd5b50336000818152600260205260409020546105db908363ffffffff61097116565b600160a060020a038216600090815260026020526040902055600454610607908363ffffffff61097116565b600455604080518381529051600160a060020a038316917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25050565b600160a060020a031660009081526002602052604090205490565b60006040604436101561067757fe5b600160a060020a038416151561068c57600080fd5b336000908152600260205260409020548311156106a857600080fd5b336000908152600260205260409020546106c8908463ffffffff61097116565b3360009081526002602052604080822092909255600160a060020a038616815220546106fa908463ffffffff61098316565b600160a060020a0385166000818152600260209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b336000818152600360209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a383600160a060020a031660405180807f72656365697665417070726f76616c28616464726573732c75696e743235362c81526020017f616464726573732c627974657329000000000000000000000000000000000000815250602e019050604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b83811015610899578181015183820152602001610881565b50505050905090810190601f1680156108c65780820380516001836020036101000a031916815260200191505b509450505050506000604051808303816000875af19250505015156108ea57600080fd5b5060019392505050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600154600160a060020a0316331461093657600080fd5b600160a060020a0381161561096e576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60008282111561097d57fe5b50900390565b60008282018381101561099257fe5b93925050505600a165627a7a72305820e0eeb04c0fbfc636e31feaf6f4c597360552cad047caadc6f60be8367e5d5df40029
Swarm Source
bzzr://e0eeb04c0fbfc636e31feaf6f4c597360552cad047caadc6f60be8367e5d5df4
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.