Back to Home

Nectarium(NEP)

Token
0xb7eec0605dfe...2d4963c5e31e
HomesteadExact Bytecode Match
Deployed May 20, 2016 (9 years ago)Block 1,548,189

Standard Token 0.1 template with approveAndCall and correct transferFrom. One of 103 identical deployments.

Token Information

Token Name
Nectarium
Symbol
NEP
Decimals
16

Key Facts

Deployment Block
1,548,189
Deployment Date
May 20, 2016, 01:35 AM
Code Size
1.6 KB

Description

The ethereum.org standard token template (Token 0.1) with transferFrom correctly emitting Transfer(_from, _to, _value). Unlike the Poker Chips variant which has a bug emitting Transfer(msg.sender, ...), this version properly logs the token sender in transferFrom events.

Includes: name, symbol, decimals, totalSupply, balanceOf, allowance, transfer, transferFrom, approveAndCall.

Source Verified

SolidityExact bytecode match(1,680 bytes)
Compiler: v0.2.1

Exact runtime bytecode match. Native C++ solc v0.2.1 (webthree-umbrella v1.1.2), optimizer ON. 103 identical siblings. Correct transferFrom event (Transfer(_from,...) not Transfer(msg.sender,...)).

Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Token
Has ERC-20-like patterns

Homestead Era

The first planned hard fork. Removed the canary contract, adjusted gas costs.

Block span: 1,150,0001,919,999
March 14, 2016July 20, 2016

Bytecode Overview

Opcodes1,680
Unique Opcodes125
Jump Instructions79
Storage Operations32

Verified Source Available

Source verified through compiler archaeology and exact bytecode matching.

View Verification Proof
Show source code (Solidity)
contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }

contract MyToken {
    string public standard = "Token 0.1";
    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 public totalSupply;
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    event Transfer(address indexed from, address indexed to, uint256 value);

    function MyToken(uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol) {
        balanceOf[msg.sender] = initialSupply;
        totalSupply = initialSupply;
        name = tokenName;
        symbol = tokenSymbol;
        decimals = decimalUnits;
    }

    function transfer(address _to, uint256 _value) {
        if (balanceOf[msg.sender] < _value) throw;
        if (balanceOf[_to] + _value < balanceOf[_to]) throw;
        balanceOf[msg.sender] -= _value;
        balanceOf[_to] += _value;
        Transfer(msg.sender, _to, _value);
    }

    function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        tokenRecipient spender = tokenRecipient(_spender);
        spender.receiveApproval(msg.sender, _value, this, _extraData);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        if (balanceOf[_from] < _value) throw;
        if (balanceOf[_to] + _value < balanceOf[_to]) throw;
        if (_value > allowance[_from][msg.sender]) throw;
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        allowance[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
    }

    function () {
        throw;
    }
}

External Links