ETH Price: $3,709.54 (+3.21%)

Token

DREP (DREP)
 

Overview

Max Total Supply

324,627,510.406353184070207687 DREP

Holders

2,564 ( 0.078%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
47,247.9564 DREP

Value
$0.00
0xf51D75C6c4E7d278D4c144855feEB79A96F51AD3
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Token migration announcement. DREP token contract has migrated to 0x3ab6ed69ef663bd986ee59205ccad8a20f98b4c2

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DrepToken

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2019-09-05
*/

pragma solidity ^0.4.21;

contract DrepToken {

    string public name = "DREP";
    string public symbol = "DREP";
    uint8 public decimals = 18;

    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    uint256 public totalSupply;
    uint256 constant initialSupply = 10000000000;
    
    bool public stopped = false;

    address internal owner = 0x0;

    modifier ownerOnly {
        require(owner == msg.sender);
        _;
    }

    modifier isRunning {
        require(!stopped);
        _;
    }

    modifier validAddress {
        require(msg.sender != 0x0);
        _;
    }

    function DrepToken() public {
        owner = msg.sender;
        totalSupply = initialSupply * 10 ** uint256(decimals);
        balanceOf[owner] = totalSupply;
    }

    function transfer(address _to, uint256 _value) isRunning validAddress public returns (bool success) {
        require(_to != 0x0);
        require(balanceOf[msg.sender] >= _value);
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        balanceOf[msg.sender] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) isRunning validAddress public returns (bool success) {
        require(_to != 0x0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        require(allowance[_from][msg.sender] >= _value);
        allowance[_from][msg.sender] -= _value;
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);
        return true;
    }

    function approve(address _spender, uint256 _value) isRunning validAddress public returns (bool success) {
        require(_value == 0 || allowance[msg.sender][_spender] == 0);
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    function stop() ownerOnly public {
        stopped = true;
    }

    function start() ownerOnly public {
        stopped = false;
    }

    function burn(uint256 _value) isRunning validAddress public {
        require(balanceOf[msg.sender] >= _value);
        require(totalSupply >= _value);
        balanceOf[msg.sender] -= _value;
        totalSupply -= _value;
    }

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","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":"stopped","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[],"name":"start","outputs":[],"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"}]

606060405260408051908101604052600481527f44524550000000000000000000000000000000000000000000000000000000006020820152600090805161004b929160200190610110565b5060408051908101604052600481527f445245500000000000000000000000000000000000000000000000000000000060208201526001908051610093929160200190610110565b506002805460ff1916601217905560068054600160a860020a031916905534156100bc57600080fd5b6006805461010060a860020a03191661010033600160a060020a039081168202929092179283905560025460ff16600a0a6402540be4000260058190559204166000908152600360205260409020556101ab565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061015157805160ff191683800117855561017e565b8280016001018555821561017e579182015b8281111561017e578251825591602001919060010190610163565b5061018a92915061018e565b5090565b6101a891905b8082111561018a5760008155600101610194565b90565b610835806101ba6000396000f3006060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c957806307da68f514610153578063095ea7b31461016857806318160ddd1461019e57806323b872dd146101c3578063313ce567146101eb57806342966c681461021457806370a082311461022a57806375f12b211461024957806395d89b411461025c578063a9059cbb1461026f578063be9a655514610291578063dd62ed3e146102a4575b600080fd5b34156100d457600080fd5b6100dc6102c9565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610166610367565b005b341561017357600080fd5b61018a600160a060020a0360043516602435610396565b604051901515815260200160405180910390f35b34156101a957600080fd5b6101b1610462565b60405190815260200160405180910390f35b34156101ce57600080fd5b61018a600160a060020a0360043581169060243516604435610468565b34156101f657600080fd5b6101fe6105b3565b60405160ff909116815260200160405180910390f35b341561021f57600080fd5b6101666004356105bc565b341561023557600080fd5b6101b1600160a060020a0360043516610642565b341561025457600080fd5b61018a610654565b341561026757600080fd5b6100dc61065d565b341561027a57600080fd5b61018a600160a060020a03600435166024356106c8565b341561029c57600080fd5b6101666107c0565b34156102af57600080fd5b6101b1600160a060020a03600435811690602435166107ec565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b820191906000526020600020905b81548152906001019060200180831161034257829003601f168201915b505050505081565b60065433600160a060020a03908116610100909204161461038757600080fd5b6006805460ff19166001179055565b60065460009060ff16156103a957600080fd5b600160a060020a03331615156103be57600080fd5b8115806103ee5750600160a060020a03338116600090815260046020908152604080832093871683529290522054155b15156103f957600080fd5b600160a060020a03338116600081815260046020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60055481565b60065460009060ff161561047b57600080fd5b600160a060020a033316151561049057600080fd5b600160a060020a03831615156104a557600080fd5b600160a060020a038416600090815260036020526040902054829010156104cb57600080fd5b600160a060020a03831660009081526003602052604090205482810110156104f257600080fd5b600160a060020a03808516600090815260046020908152604080832033909416835292905220548290101561052657600080fd5b600160a060020a038085166000818152600460209081526040808320338616845282528083208054889003905583835260039091528082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60065460ff16156105cc57600080fd5b600160a060020a03331615156105e157600080fd5b600160a060020a0333166000908152600360205260409020548190101561060757600080fd5b6005548190101561061757600080fd5b600160a060020a03331660009081526003602052604090208054829003905560058054919091039055565b60036020526000908152604090205481565b60065460ff1681565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b60065460009060ff16156106db57600080fd5b600160a060020a03331615156106f057600080fd5b600160a060020a038316151561070557600080fd5b600160a060020a0333166000908152600360205260409020548290101561072b57600080fd5b600160a060020a038316600090815260036020526040902054828101101561075257600080fd5b600160a060020a033381166000818152600360205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60065433600160a060020a0390811661010090920416146107e057600080fd5b6006805460ff19169055565b6004602090815260009283526040808420909152908252902054815600a165627a7a72305820a6a57e5f3cfb623d77dd92fa177d207333381f34861e6449548c4672470f780d0029

Deployed Bytecode

0x6060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c957806307da68f514610153578063095ea7b31461016857806318160ddd1461019e57806323b872dd146101c3578063313ce567146101eb57806342966c681461021457806370a082311461022a57806375f12b211461024957806395d89b411461025c578063a9059cbb1461026f578063be9a655514610291578063dd62ed3e146102a4575b600080fd5b34156100d457600080fd5b6100dc6102c9565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610166610367565b005b341561017357600080fd5b61018a600160a060020a0360043516602435610396565b604051901515815260200160405180910390f35b34156101a957600080fd5b6101b1610462565b60405190815260200160405180910390f35b34156101ce57600080fd5b61018a600160a060020a0360043581169060243516604435610468565b34156101f657600080fd5b6101fe6105b3565b60405160ff909116815260200160405180910390f35b341561021f57600080fd5b6101666004356105bc565b341561023557600080fd5b6101b1600160a060020a0360043516610642565b341561025457600080fd5b61018a610654565b341561026757600080fd5b6100dc61065d565b341561027a57600080fd5b61018a600160a060020a03600435166024356106c8565b341561029c57600080fd5b6101666107c0565b34156102af57600080fd5b6101b1600160a060020a03600435811690602435166107ec565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b820191906000526020600020905b81548152906001019060200180831161034257829003601f168201915b505050505081565b60065433600160a060020a03908116610100909204161461038757600080fd5b6006805460ff19166001179055565b60065460009060ff16156103a957600080fd5b600160a060020a03331615156103be57600080fd5b8115806103ee5750600160a060020a03338116600090815260046020908152604080832093871683529290522054155b15156103f957600080fd5b600160a060020a03338116600081815260046020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60055481565b60065460009060ff161561047b57600080fd5b600160a060020a033316151561049057600080fd5b600160a060020a03831615156104a557600080fd5b600160a060020a038416600090815260036020526040902054829010156104cb57600080fd5b600160a060020a03831660009081526003602052604090205482810110156104f257600080fd5b600160a060020a03808516600090815260046020908152604080832033909416835292905220548290101561052657600080fd5b600160a060020a038085166000818152600460209081526040808320338616845282528083208054889003905583835260039091528082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60065460ff16156105cc57600080fd5b600160a060020a03331615156105e157600080fd5b600160a060020a0333166000908152600360205260409020548190101561060757600080fd5b6005548190101561061757600080fd5b600160a060020a03331660009081526003602052604090208054829003905560058054919091039055565b60036020526000908152604090205481565b60065460ff1681565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b60065460009060ff16156106db57600080fd5b600160a060020a03331615156106f057600080fd5b600160a060020a038316151561070557600080fd5b600160a060020a0333166000908152600360205260409020548290101561072b57600080fd5b600160a060020a038316600090815260036020526040902054828101101561075257600080fd5b600160a060020a033381166000818152600360205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60065433600160a060020a0390811661010090920416146107e057600080fd5b6006805460ff19169055565b6004602090815260009283526040808420909152908252902054815600a165627a7a72305820a6a57e5f3cfb623d77dd92fa177d207333381f34861e6449548c4672470f780d0029

Deployed Bytecode Sourcemap

28:2647:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;56:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2118:66;;;;;;;;;;;;;;1800:310;;;;;;;;;;-1:-1:-1;;;;;1800:310:0;;;;;;;;;;;;;;;;;;;;;;;;288:26;;;;;;;;;;;;;;;;;;;;;;;;;;;1283:509;;;;;;;;;;-1:-1:-1;;;;;1283:509:0;;;;;;;;;;;;126:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2268:234;;;;;;;;;;;;;;161:45;;;;;;;;;;-1:-1:-1;;;;;161:45:0;;;;;378:27;;;;;;;;;;;;90:29;;;;;;;;;;;;877:398;;;;;;;;;;-1:-1:-1;;;;;877:398:0;;;;;;;2192:68;;;;;;;;;;;;213:66;;;;;;;;;;-1:-1:-1;;;;;213:66:0;;;;;;;;;;56:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2118:66::-;489:5;;498:10;-1:-1:-1;;;;;489:19:0;;;:5;;;;;:19;481:28;;;;;;2162:7;:14;;-1:-1:-1;;2162:14:0;2172:4;2162:14;;;2118:66::o;1800:310::-;576:7;;1890:12;;576:7;;575:8;567:17;;;;;;-1:-1:-1;;;;;653:10:0;:17;;;645:26;;;;;;1923:11;;;:51;;-1:-1:-1;;;;;;1948:10:0;1938:21;;;;;;:9;:21;;;;;;;;:31;;;;;;;;;;:36;1923:51;1915:60;;;;;;;;-1:-1:-1;;;;;1996:10:0;1986:21;;;;;;:9;:21;;;;;;;;:31;;;;;;;;;;;;;;:40;;;2042:38;;2020:6;;2042:38;;;;;;;;;;;;;-1:-1:-1;2098:4:0;1800:310;;;;:::o;288:26::-;;;;:::o;1283:509::-;576:7;;1388:12;;576:7;;575:8;567:17;;;;;;-1:-1:-1;;;;;653:10:0;:17;;;645:26;;;;;;-1:-1:-1;;;;;1421:10:0;;;;1413:19;;;;;;-1:-1:-1;;;;;1451:16:0;;;;;;:9;:16;;;;;;:26;;;;1443:35;;;;;;-1:-1:-1;;;;;1524:14:0;;;;;;:9;:14;;;;;;1497:23;;;:41;;1489:50;;;;;;-1:-1:-1;;;;;1558:16:0;;;;;;;:9;:16;;;;;;;;1575:10;1558:28;;;;;;;;;;:38;;;;1550:47;;;;;;-1:-1:-1;;;;;1608:16:0;;;;;;;:9;:16;;;;;;;;1625:10;1608:28;;;;;;;;;:38;;;;;;;1657:16;;;:9;:16;;;;;;:26;;;;;;;1694:14;;;;;;;;;;:24;;;;;;:14;1734:28;;1640:6;;1734:28;;;;;;;;;;;;;-1:-1:-1;1780:4:0;1283:509;;;;;:::o;126:26::-;;;;;;:::o;2268:234::-;576:7;;;;575:8;567:17;;;;;;-1:-1:-1;;;;;653:10:0;:17;;;645:26;;;;;;-1:-1:-1;;;;;2357:10:0;2347:21;;;;;:9;:21;;;;;;:31;;;;2339:40;;;;;;2398:11;;:21;;;;2390:30;;;;;;-1:-1:-1;;;;;2441:10:0;2431:21;;;;;:9;:21;;;;;:31;;;;;;;2473:11;:21;;;;;;;;2268:234::o;161:45::-;;;;;;;;;;;;;:::o;378:27::-;;;;;;:::o;90:29::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;877:398;576:7;;963:12;;576:7;;575:8;567:17;;;;;;-1:-1:-1;;;;;653:10:0;:17;;;645:26;;;;;;-1:-1:-1;;;;;996:10:0;;;;988:19;;;;;;-1:-1:-1;;;;;1036:10:0;1026:21;;;;;:9;:21;;;;;;:31;;;;1018:40;;;;;;-1:-1:-1;;;;;1104:14:0;;;;;;:9;:14;;;;;;1077:23;;;:41;;1069:50;;;;;;-1:-1:-1;;;;;1140:10:0;1130:21;;;;;;:9;:21;;;;;;:31;;;;;;;1172:14;;;;;;;;;;:24;;;;;;:14;1212:33;;1155:6;;1212:33;;;;;;;;;;;;;-1:-1:-1;1263:4:0;877:398;;;;:::o;2192:68::-;489:5;;498:10;-1:-1:-1;;;;;489:19:0;;;:5;;;;;:19;481:28;;;;;;2237:7;:15;;-1:-1:-1;;2237:15:0;;;2192:68::o;213:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

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