ETH Price: $2,722.46 (+0.73%)

Token

ttt (ttt)
 

Overview

Max Total Supply

30,000 ttt

Holders

4

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
3 ttt

Value
$0.00
0xaDcDD1CAA63Ed3f4c928490F2A85CEB9612D643d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
y3dToken

Compiler Version
v0.5.1+commit.c8a2cb62

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-11-27
*/

pragma solidity ^0.5.0;

contract DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x, "ds-math-sub-underflow");
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }
}

// token.sol -- ERC20 implementation with burning

// Copyright (C) 2015, 2016, 2017  DappHub, LLC

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

contract y3dToken is DSMath {
    uint256                                           public  totalSupply;
    mapping (address => uint256)                      public  balanceOf;
    mapping (address => mapping (address => uint256)) public  allowance;
    bytes32                                           public  symbol = "ttt";
    uint256                                           public  decimals = 18;
    bytes32                                           public  name = "ttt";

    constructor() public {
        // hard limit 30,000 gain
        totalSupply = 30000000000000000000000;
        balanceOf[msg.sender] = 30000000000000000000000;
    }

    event Approval(address indexed src, address indexed guy, uint wad);
    event Transfer(address indexed src, address indexed dst, uint wad);
    event Burn(uint wad);

    function approve(address guy) external returns (bool) {
        return approve(guy, uint(-1));
    }

    function approve(address guy, uint wad) public returns (bool) {
        allowance[msg.sender][guy] = wad;
        emit Approval(msg.sender, guy, wad);
        return true;
    }

    function transfer(address dst, uint wad) external returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

    function transferFrom(address src, address dst, uint wad) public returns (bool) {
        if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) {
            require(allowance[src][msg.sender] >= wad, "ds-token-insufficient-approval");
            allowance[src][msg.sender] = sub(allowance[src][msg.sender], wad);
        }

        require(balanceOf[src] >= wad, "ds-token-insufficient-balance");
        balanceOf[src] = sub(balanceOf[src], wad);
        balanceOf[dst] = add(balanceOf[dst], wad);

        emit Transfer(src, dst, wad);
        return true;
    }

    function burn(uint wad) public {
        require(balanceOf[msg.sender] >= wad, "ds-token-insufficient-balance");
        totalSupply = sub(totalSupply, wad);
        balanceOf[msg.sender] = sub(balanceOf[msg.sender], wad);
        emit Burn(wad);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"guy","type":"address"},{"name":"wad","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":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","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":false,"inputs":[{"name":"wad","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"guy","type":"address"}],"name":"approve","outputs":[{"name":"","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":"src","type":"address"},{"indexed":true,"name":"guy","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"wad","type":"uint256"}],"name":"Burn","type":"event"}]

60806040527f747474000000000000000000000000000000000000000000000000000000000060035560126004557f747474000000000000000000000000000000000000000000000000000000000060055534801561005d57600080fd5b5069065a4da25d3016c0000060008181553381526001602052604090205561076c8061008a6000396000f3fe6080604052600436106100a8577c0100000000000000000000000000000000000000000000000000000000600035046306fdde0381146100ad578063095ea7b3146100d457806318160ddd1461012157806323b872dd14610136578063313ce5671461017957806342966c681461018e57806370a08231146101ba57806395d89b41146101ed578063a9059cbb14610202578063daea85c51461023b578063dd62ed3e1461026e575b600080fd5b3480156100b957600080fd5b506100c26102a9565b60408051918252519081900360200190f35b3480156100e057600080fd5b5061010d600480360360408110156100f757600080fd5b50600160a060020a0381351690602001356102af565b604080519115158252519081900360200190f35b34801561012d57600080fd5b506100c2610316565b34801561014257600080fd5b5061010d6004803603606081101561015957600080fd5b50600160a060020a0381358116916020810135909116906040013561031c565b34801561018557600080fd5b506100c2610552565b34801561019a57600080fd5b506101b8600480360360208110156101b157600080fd5b5035610558565b005b3480156101c657600080fd5b506100c2600480360360208110156101dd57600080fd5b5035600160a060020a0316610633565b3480156101f957600080fd5b506100c2610645565b34801561020e57600080fd5b5061010d6004803603604081101561022557600080fd5b50600160a060020a03813516906020013561064b565b34801561024757600080fd5b5061010d6004803603602081101561025e57600080fd5b5035600160a060020a031661065f565b34801561027a57600080fd5b506100c26004803603604081101561029157600080fd5b50600160a060020a038135811691602001351661066d565b60055481565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b6000600160a060020a038416331480159061035c5750600160a060020a038416600090815260026020908152604080832033845290915290205460001914155b1561042f57600160a060020a03841660009081526002602090815260408083203384529091529020548211156103dc576040805160e560020a62461bcd02815260206004820152601e60248201527f64732d746f6b656e2d696e73756666696369656e742d617070726f76616c0000604482015290519081900360640190fd5b600160a060020a038416600090815260026020908152604080832033845290915290205461040a908361068a565b600160a060020a03851660009081526002602090815260408083203384529091529020555b600160a060020a03841660009081526001602052604090205482111561049f576040805160e560020a62461bcd02815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b600160a060020a0384166000908152600160205260409020546104c2908361068a565b600160a060020a0380861660009081526001602052604080822093909355908516815220546104f190836106e5565b600160a060020a0380851660008181526001602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60045481565b336000908152600160205260409020548111156105bf576040805160e560020a62461bcd02815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b6105cb6000548261068a565b6000908155338152600160205260409020546105e7908261068a565b3360009081526001602090815260409182902092909255805183815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb929181900390910190a150565b60016020526000908152604090205481565b60035481565b600061065833848461031c565b9392505050565b6000610310826000196102af565b600260209081526000928352604080842090915290825290205481565b80820382811115610310576040805160e560020a62461bcd02815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b80820182811015610310576040805160e560020a62461bcd02815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea165627a7a72305820ad13a7d566c51e152407ac3dd85d1ae185a3f7f284933cf6210eca4e076ad8760029

Deployed Bytecode

0x6080604052600436106100a8577c0100000000000000000000000000000000000000000000000000000000600035046306fdde0381146100ad578063095ea7b3146100d457806318160ddd1461012157806323b872dd14610136578063313ce5671461017957806342966c681461018e57806370a08231146101ba57806395d89b41146101ed578063a9059cbb14610202578063daea85c51461023b578063dd62ed3e1461026e575b600080fd5b3480156100b957600080fd5b506100c26102a9565b60408051918252519081900360200190f35b3480156100e057600080fd5b5061010d600480360360408110156100f757600080fd5b50600160a060020a0381351690602001356102af565b604080519115158252519081900360200190f35b34801561012d57600080fd5b506100c2610316565b34801561014257600080fd5b5061010d6004803603606081101561015957600080fd5b50600160a060020a0381358116916020810135909116906040013561031c565b34801561018557600080fd5b506100c2610552565b34801561019a57600080fd5b506101b8600480360360208110156101b157600080fd5b5035610558565b005b3480156101c657600080fd5b506100c2600480360360208110156101dd57600080fd5b5035600160a060020a0316610633565b3480156101f957600080fd5b506100c2610645565b34801561020e57600080fd5b5061010d6004803603604081101561022557600080fd5b50600160a060020a03813516906020013561064b565b34801561024757600080fd5b5061010d6004803603602081101561025e57600080fd5b5035600160a060020a031661065f565b34801561027a57600080fd5b506100c26004803603604081101561029157600080fd5b50600160a060020a038135811691602001351661066d565b60055481565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b6000600160a060020a038416331480159061035c5750600160a060020a038416600090815260026020908152604080832033845290915290205460001914155b1561042f57600160a060020a03841660009081526002602090815260408083203384529091529020548211156103dc576040805160e560020a62461bcd02815260206004820152601e60248201527f64732d746f6b656e2d696e73756666696369656e742d617070726f76616c0000604482015290519081900360640190fd5b600160a060020a038416600090815260026020908152604080832033845290915290205461040a908361068a565b600160a060020a03851660009081526002602090815260408083203384529091529020555b600160a060020a03841660009081526001602052604090205482111561049f576040805160e560020a62461bcd02815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b600160a060020a0384166000908152600160205260409020546104c2908361068a565b600160a060020a0380861660009081526001602052604080822093909355908516815220546104f190836106e5565b600160a060020a0380851660008181526001602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60045481565b336000908152600160205260409020548111156105bf576040805160e560020a62461bcd02815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b6105cb6000548261068a565b6000908155338152600160205260409020546105e7908261068a565b3360009081526001602090815260409182902092909255805183815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb929181900390910190a150565b60016020526000908152604090205481565b60035481565b600061065833848461031c565b9392505050565b6000610310826000196102af565b600260209081526000928352604080842090915290825290205481565b80820382811115610310576040805160e560020a62461bcd02815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b80820182811015610310576040805160e560020a62461bcd02815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea165627a7a72305820ad13a7d566c51e152407ac3dd85d1ae185a3f7f284933cf6210eca4e076ad8760029

Deployed Bytecode Sourcemap

1228:2137:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1644:70;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1644:70:0;;;:::i;:::-;;;;;;;;;;;;;;;;2186:181;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2186:181:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2186:181:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1263:69;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1263:69:0;;;:::i;2508:589::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2508:589:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2508:589:0;;;;;;;;;;;;;;;;;:::i;1566:71::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1566:71:0;;;:::i;3105:257::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3105:257:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3105:257:0;;:::i;:::-;;1339:67;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1339:67:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1339:67:0;-1:-1:-1;;;;;1339:67:0;;:::i;1487:72::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1487:72:0;;;:::i;2375:125::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2375:125:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2375:125:0;;;;;;;;:::i;2076:102::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2076:102:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2076:102:0;-1:-1:-1;;;;;2076:102:0;;:::i;1413:67::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1413:67:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1413:67:0;;;;;;;;;;:::i;1644:70::-;;;;:::o;2186:181::-;2269:10;2242:4;2259:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2259:26:0;;;;;;;;;;;:32;;;2307:30;;;;;;;2242:4;;2259:26;;2269:10;;2307:30;;;;;;;;-1:-1:-1;2355:4:0;2186:181;;;;;:::o;1263:69::-;;;;:::o;2508:589::-;2582:4;-1:-1:-1;;;;;2603:17:0;;2610:10;2603:17;;;;:59;;-1:-1:-1;;;;;;2624:14:0;;;;;;:9;:14;;;;;;;;2639:10;2624:26;;;;;;;;-1:-1:-1;;2624:38:0;;2603:59;2599:248;;;-1:-1:-1;;;;;2687:14:0;;;;;;:9;:14;;;;;;;;2702:10;2687:26;;;;;;;;:33;-1:-1:-1;2687:33:0;2679:76;;;;;-1:-1:-1;;;;;2679:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2803:14:0;;;;;;:9;:14;;;;;;;;2818:10;2803:26;;;;;;;;2799:36;;2831:3;2799;:36::i;:::-;-1:-1:-1;;;;;2770:14:0;;;;;;:9;:14;;;;;;;;2785:10;2770:26;;;;;;;:65;2599:248;-1:-1:-1;;;;;2867:14:0;;;;;;:9;:14;;;;;;:21;-1:-1:-1;2867:21:0;2859:63;;;;;-1:-1:-1;;;;;2859:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2954:14:0;;;;;;:9;:14;;;;;;2950:24;;2970:3;2950;:24::i;:::-;-1:-1:-1;;;;;2933:14:0;;;;;;;:9;:14;;;;;;:41;;;;3006:14;;;;;;;3002:24;;3022:3;3002;:24::i;:::-;-1:-1:-1;;;;;2985:14:0;;;;;;;:9;:14;;;;;;;;;:41;;;;3044:23;;;;;;;2985:14;;3044:23;;;;;;;;;;;;;-1:-1:-1;3085:4:0;2508:589;;;;;:::o;1566:71::-;;;;:::o;3105:257::-;3165:10;3155:21;;;;:9;:21;;;;;;:28;-1:-1:-1;3155:28:0;3147:70;;;;;-1:-1:-1;;;;;3147:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3242:21;3246:11;;3259:3;3242;:21::i;:::-;3228:11;:35;;;3312:10;3302:21;;:9;:21;;;;;;3298:31;;3325:3;3298;:31::i;:::-;3284:10;3274:21;;;;:9;:21;;;;;;;;;:55;;;;3345:9;;;;;;;;;;;;;;;;;;3105:257;:::o;1339:67::-;;;;;;;;;;;;;:::o;1487:72::-;;;;:::o;2375:125::-;2434:4;2458:34;2471:10;2483:3;2488;2458:12;:34::i;:::-;2451:41;2375:125;-1:-1:-1;;;2375:125:0:o;2076:102::-;2124:4;2148:22;2156:3;-1:-1:-1;;2148:7:0;:22::i;1413:67::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;184:129::-;268:5;;;263:16;;;;255:50;;;;;-1:-1:-1;;;;;255:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;50:128;134:5;;;129:16;;;;121:49;;;;;-1:-1:-1;;;;;121:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://ad13a7d566c51e152407ac3dd85d1ae185a3f7f284933cf6210eca4e076ad876
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.