Token migration announcement. DREP token contract has migrated to a new address.
ERC-20
Old Contract
Overview
Max Total Supply
10,000,000,000 DREP
Holders
1,479 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
85,754.667 DREPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DrepToken
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-06-25 */ pragma solidity ^0.4.18; 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
- 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":"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"}]
Contract Creation Code
606060405260408051908101604052600481527f44524550000000000000000000000000000000000000000000000000000000006020820152600090805161004b929160200190610110565b5060408051908101604052600481527f445245500000000000000000000000000000000000000000000000000000000060208201526001908051610093929160200190610110565b506002805460ff1916601217905560068054600160a860020a031916905534156100bc57600080fd5b6006805461010060a860020a03191661010033600160a060020a039081168202929092179283905560025460ff16600a0a6402540be4000260058190559204166000908152600360205260409020556101ab565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061015157805160ff191683800117855561017e565b8280016001018555821561017e579182015b8281111561017e578251825591602001919060010190610163565b5061018a92915061018e565b5090565b6101a891905b8082111561018a5760008155600101610194565b90565b610835806101ba6000396000f3006060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c957806307da68f514610153578063095ea7b31461016857806318160ddd1461019e57806323b872dd146101c3578063313ce567146101eb57806342966c681461021457806370a082311461022a57806375f12b211461024957806395d89b411461025c578063a9059cbb1461026f578063be9a655514610291578063dd62ed3e146102a4575b600080fd5b34156100d457600080fd5b6100dc6102c9565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610166610367565b005b341561017357600080fd5b61018a600160a060020a0360043516602435610396565b604051901515815260200160405180910390f35b34156101a957600080fd5b6101b1610462565b60405190815260200160405180910390f35b34156101ce57600080fd5b61018a600160a060020a0360043581169060243516604435610468565b34156101f657600080fd5b6101fe6105b3565b60405160ff909116815260200160405180910390f35b341561021f57600080fd5b6101666004356105bc565b341561023557600080fd5b6101b1600160a060020a0360043516610642565b341561025457600080fd5b61018a610654565b341561026757600080fd5b6100dc61065d565b341561027a57600080fd5b61018a600160a060020a03600435166024356106c8565b341561029c57600080fd5b6101666107c0565b34156102af57600080fd5b6101b1600160a060020a03600435811690602435166107ec565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b820191906000526020600020905b81548152906001019060200180831161034257829003601f168201915b505050505081565b60065433600160a060020a03908116610100909204161461038757600080fd5b6006805460ff19166001179055565b60065460009060ff16156103a957600080fd5b600160a060020a03331615156103be57600080fd5b8115806103ee5750600160a060020a03338116600090815260046020908152604080832093871683529290522054155b15156103f957600080fd5b600160a060020a03338116600081815260046020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60055481565b60065460009060ff161561047b57600080fd5b600160a060020a033316151561049057600080fd5b600160a060020a03831615156104a557600080fd5b600160a060020a038416600090815260036020526040902054829010156104cb57600080fd5b600160a060020a03831660009081526003602052604090205482810110156104f257600080fd5b600160a060020a03808516600090815260046020908152604080832033909416835292905220548290101561052657600080fd5b600160a060020a038085166000818152600460209081526040808320338616845282528083208054889003905583835260039091528082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60065460ff16156105cc57600080fd5b600160a060020a03331615156105e157600080fd5b600160a060020a0333166000908152600360205260409020548190101561060757600080fd5b6005548190101561061757600080fd5b600160a060020a03331660009081526003602052604090208054829003905560058054919091039055565b60036020526000908152604090205481565b60065460ff1681565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b60065460009060ff16156106db57600080fd5b600160a060020a03331615156106f057600080fd5b600160a060020a038316151561070557600080fd5b600160a060020a0333166000908152600360205260409020548290101561072b57600080fd5b600160a060020a038316600090815260036020526040902054828101101561075257600080fd5b600160a060020a033381166000818152600360205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60065433600160a060020a0390811661010090920416146107e057600080fd5b6006805460ff19169055565b6004602090815260009283526040808420909152908252902054815600a165627a7a7230582076408695845d438493078fa8616efc6a0e98e81b631135ad180fca79274323b30029
Deployed Bytecode
0x6060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c957806307da68f514610153578063095ea7b31461016857806318160ddd1461019e57806323b872dd146101c3578063313ce567146101eb57806342966c681461021457806370a082311461022a57806375f12b211461024957806395d89b411461025c578063a9059cbb1461026f578063be9a655514610291578063dd62ed3e146102a4575b600080fd5b34156100d457600080fd5b6100dc6102c9565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610166610367565b005b341561017357600080fd5b61018a600160a060020a0360043516602435610396565b604051901515815260200160405180910390f35b34156101a957600080fd5b6101b1610462565b60405190815260200160405180910390f35b34156101ce57600080fd5b61018a600160a060020a0360043581169060243516604435610468565b34156101f657600080fd5b6101fe6105b3565b60405160ff909116815260200160405180910390f35b341561021f57600080fd5b6101666004356105bc565b341561023557600080fd5b6101b1600160a060020a0360043516610642565b341561025457600080fd5b61018a610654565b341561026757600080fd5b6100dc61065d565b341561027a57600080fd5b61018a600160a060020a03600435166024356106c8565b341561029c57600080fd5b6101666107c0565b34156102af57600080fd5b6101b1600160a060020a03600435811690602435166107ec565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b820191906000526020600020905b81548152906001019060200180831161034257829003601f168201915b505050505081565b60065433600160a060020a03908116610100909204161461038757600080fd5b6006805460ff19166001179055565b60065460009060ff16156103a957600080fd5b600160a060020a03331615156103be57600080fd5b8115806103ee5750600160a060020a03338116600090815260046020908152604080832093871683529290522054155b15156103f957600080fd5b600160a060020a03338116600081815260046020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60055481565b60065460009060ff161561047b57600080fd5b600160a060020a033316151561049057600080fd5b600160a060020a03831615156104a557600080fd5b600160a060020a038416600090815260036020526040902054829010156104cb57600080fd5b600160a060020a03831660009081526003602052604090205482810110156104f257600080fd5b600160a060020a03808516600090815260046020908152604080832033909416835292905220548290101561052657600080fd5b600160a060020a038085166000818152600460209081526040808320338616845282528083208054889003905583835260039091528082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60065460ff16156105cc57600080fd5b600160a060020a03331615156105e157600080fd5b600160a060020a0333166000908152600360205260409020548190101561060757600080fd5b6005548190101561061757600080fd5b600160a060020a03331660009081526003602052604090208054829003905560058054919091039055565b60036020526000908152604090205481565b60065460ff1681565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561035f5780601f106103345761010080835404028352916020019161035f565b60065460009060ff16156106db57600080fd5b600160a060020a03331615156106f057600080fd5b600160a060020a038316151561070557600080fd5b600160a060020a0333166000908152600360205260409020548290101561072b57600080fd5b600160a060020a038316600090815260036020526040902054828101101561075257600080fd5b600160a060020a033381166000818152600360205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60065433600160a060020a0390811661010090920416146107e057600080fd5b6006805460ff19169055565b6004602090815260009283526040808420909152908252902054815600a165627a7a7230582076408695845d438493078fa8616efc6a0e98e81b631135ad180fca79274323b30029
Swarm Source
bzzr://76408695845d438493078fa8616efc6a0e98e81b631135ad180fca79274323b3
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.