ETH Price: $3,404.85 (+4.50%)

Token

RARE (RARE)
 

Overview

Max Total Supply

99,000,000 RARE

Holders

265

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
13,000 RARE

Value
$0.00
0x3b39ae56bf873916b873234dc41208b754cbd30f
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:
RareToken

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-06-07
*/

pragma solidity ^0.4.9;

// ----------------------------------------------------------------------------------------------
// The new RARE token contract
//
// https://github.com/bokkypoobah/RAREPeperiumToken
//
// Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd 2017 for Michael C. The MIT Licence.
// ----------------------------------------------------------------------------------------------

contract Owned {
    address public owner;
    address public newOwner;
    event OwnershipTransferred(address indexed _from, address indexed _to);

    function Owned() {
        owner = msg.sender;
    }

    modifier onlyOwner {
        if (msg.sender != owner) throw;
        _;
    }

    function transferOwnership(address _newOwner) onlyOwner {
        newOwner = _newOwner;
    }

    function acceptOwnership() {
        if (msg.sender == newOwner) {
            OwnershipTransferred(owner, newOwner);
            owner = newOwner;
        }
    }
}


contract ERC20Token is Owned {
    string public symbol;
    string public name;
    uint8 public decimals;
    uint256 public totalSupply;

    // ------------------------------------------------------------------------
    // Balances for each account
    // ------------------------------------------------------------------------
    mapping (address => uint256) balances;

    // ------------------------------------------------------------------------
    // Owner of account approves the transfer of an amount to another account
    // ------------------------------------------------------------------------
    mapping (address => mapping (address => uint256)) allowed;

    // ------------------------------------------------------------------------
    // Events
    // ------------------------------------------------------------------------
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    // ------------------------------------------------------------------------
    // Constructor
    // ------------------------------------------------------------------------
    function ERC20Token(string _symbol, string _name, uint8 _decimals, uint256 _totalSupply) {
        symbol = _symbol;
        name = _name;
        decimals = _decimals;
        totalSupply = _totalSupply;
        balances[msg.sender] = _totalSupply;
    }

    // ------------------------------------------------------------------------
    // Get the account balance of another account with address _owner
    // ------------------------------------------------------------------------
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    // ------------------------------------------------------------------------
    // Transfer the balance from owner's account to another account
    // ------------------------------------------------------------------------
    function transfer(address _to, uint256 _amount) returns (bool success) {
        if (balances[msg.sender] >= _amount             // User has balance
            && _amount > 0                              // Non-zero transfer
            && balances[_to] + _amount > balances[_to]  // Overflow check
        ) {
            balances[msg.sender] -= _amount;
            balances[_to] += _amount;
            Transfer(msg.sender, _to, _amount);
            return true;
        } else {
            return false;
        }
    }

    // ------------------------------------------------------------------------
    // Allow _spender to withdraw from your account, multiple times, up to the
    // _value amount. If this function is called again it overwrites the
    // current allowance with _value.
    // ------------------------------------------------------------------------
    function approve(address _spender, uint256 _amount) returns (bool success) {
        allowed[msg.sender][_spender] = _amount;
        Approval(msg.sender, _spender, _amount);
        return true;
    }

    // ------------------------------------------------------------------------
    // Spender of tokens transfer an amount of tokens from the token owner's
    // balance to another account. The owner of the tokens must already
    // have approve(...)-d this transfer
    // ------------------------------------------------------------------------
    function transferFrom(
        address _from,
        address _to,
        uint256 _amount
    ) returns (bool success) {
        if (balances[_from] >= _amount                  // From a/c has balance
            && allowed[_from][msg.sender] >= _amount    // Transfer approved
            && _amount > 0                              // Non-zero transfer
            && balances[_to] + _amount > balances[_to]  // Overflow check
        ) {
            balances[_from] -= _amount;
            allowed[_from][msg.sender] -= _amount;
            balances[_to] += _amount;
            Transfer(_from, _to, _amount);
            return true;
        } else {
            return false;
        }
    }

    // ------------------------------------------------------------------------
    // Returns the amount of tokens approved by the owner that can be
    // transferred to the spender's account
    // ------------------------------------------------------------------------
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    // ------------------------------------------------------------------------
    // Don't accept ethers
    // ------------------------------------------------------------------------
    function () {
        throw;
    }
}


contract RareToken is ERC20Token {
    // ------------------------------------------------------------------------
    // 100,000,000 tokens that will be populated by the fill, 8 decimal places
    // ------------------------------------------------------------------------
    function RareToken() ERC20Token ("RARE", "RARE", 8, 0) {
    }

    function burnTokens(uint256 value) onlyOwner {
        if (balances[owner] < value) throw;
        balances[owner] -= value;
        totalSupply -= value;
        Transfer(owner, 0, value);
    }

    // ------------------------------------------------------------------------
    // Fill - to populate tokens from the old token contract
    // ------------------------------------------------------------------------
    // From https://github.com/BitySA/whetcwithdraw/tree/master/daobalance
    bool public sealed;
    // The compiler will warn that this constant does not match the address checksum
    uint256 constant D160 = 0x010000000000000000000000000000000000000000;
    // The 160 LSB is the address of the balance
    // The 96 MSB is the balance of that address.
    function fill(uint256[] data) onlyOwner {
        if (sealed) throw;
        for (uint256 i = 0; i < data.length; i++) {
            address account = address(data[i] & (D160-1));
            uint256 amount = data[i] / D160;
            // Prevent duplicates
            if (balances[account] == 0) {
                balances[account] = amount;
                totalSupply += amount;
                Transfer(0x0, account, amount);
            }
        }
    }

    // ------------------------------------------------------------------------
    // After sealing, no more filling is possible
    // ------------------------------------------------------------------------
    function seal() onlyOwner {
        if (sealed) throw;
        sealed = true;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"seal","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"burnTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"}],"name":"fill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sealed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":false,"type":"fallback"},{"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":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6060604052341561000c57fe5b5b604060405190810160405280600481526020017f5241524500000000000000000000000000000000000000000000000000000000815250604060405190810160405280600481526020017f5241524500000000000000000000000000000000000000000000000000000000815250600860005b5b60008054600160a060020a03191633600160a060020a03161790555b83516100b09060029060208701906100ff565b5082516100c49060039060208601906100ff565b506004805460ff191660ff8416179055600581905533600160a060020a031660009081526006602052604090208190555b505050505b61019f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014057805160ff191683800117855561016d565b8280016001018555821561016d579182015b8281111561016d578251825591602001919060010190610152565b5b5061017a92915061017e565b5090565b61019c91905b8082111561017a5760008155600101610184565b5090565b90565b610b70806101ae6000396000f300606060405236156100ee5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610104578063095ea7b31461019457806318160ddd146101c757806323b872dd146101e9578063313ce567146102225780633fb27b85146102485780636d1b229d1461025a57806370a082311461026f57806379ba50971461029d578063884b5dc2146102af5780638da5cb5b1461030457806395d89b4114610330578063a9059cbb146103c0578063d4ee1d90146103f3578063dd62ed3e1461041f578063e4b203ef14610453578063f2fde38b14610477575b34156100f657fe5b6101025b60006000fd5b565b005b341561010c57fe5b610114610495565b60408051602080825283518183015283519192839290830191850190808383821561015a575b80518252602083111561015a57601f19909201916020918201910161013a565b505050905090810190601f1680156101865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019c57fe5b6101b3600160a060020a0360043516602435610523565b604080519115158252519081900360200190f35b34156101cf57fe5b6101d761058e565b60408051918252519081900360200190f35b34156101f157fe5b6101b3600160a060020a0360043581169060243516604435610594565b604080519115158252519081900360200190f35b341561022a57fe5b61023261069c565b6040805160ff9092168252519081900360200190f35b341561025057fe5b6101026106a5565b005b341561026257fe5b6101026004356106e3565b005b341561027757fe5b6101d7600160a060020a036004351661077d565b60408051918252519081900360200190f35b34156102a557fe5b61010261079c565b005b34156102b757fe5b61010260048080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061082395505050505050565b005b341561030c57fe5b61031461093d565b60408051600160a060020a039092168252519081900360200190f35b341561033857fe5b61011461094c565b60408051602080825283518183015283519192839290830191850190808383821561015a575b80518252602083111561015a57601f19909201916020918201910161013a565b505050905090810190601f1680156101865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103c857fe5b6101b3600160a060020a03600435166024356109d7565b604080519115158252519081900360200190f35b34156103fb57fe5b610314610a96565b60408051600160a060020a039092168252519081900360200190f35b341561042757fe5b6101d7600160a060020a0360043581169060243516610aa5565b60408051918252519081900360200190f35b341561045b57fe5b6101b3610ad2565b604080519115158252519081900360200190f35b341561047f57fe5b610102600160a060020a0360043516610adb565b005b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051b5780601f106104f05761010080835404028352916020019161051b565b820191906000526020600020905b8154815290600101906020018083116104fe57829003601f168201915b505050505081565b600160a060020a03338116600081815260076020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60055481565b600160a060020a0383166000908152600660205260408120548290108015906105e45750600160a060020a0380851660009081526007602090815260408083203390941683529290522054829010155b80156105f05750600082115b80156106155750600160a060020a038316600090815260066020526040902054828101115b1561069057600160a060020a0380851660008181526006602081815260408084208054899003905560078252808420338716855282528084208054899003905594881680845291815291849020805487019055835186815293519093600080516020610b2583398151915292908290030190a3506001610694565b5060005b5b9392505050565b60045460ff1681565b60005433600160a060020a039081169116146106c15760006000fd5b60085460ff16156106d25760006000fd5b6008805460ff191660011790555b5b565b60005433600160a060020a039081169116146106ff5760006000fd5b60008054600160a060020a0316815260066020526040902054819010156107265760006000fd5b60008054600160a060020a03908116825260066020908152604080842080548690039055600580548690039055835481518681529151931692600080516020610b25833981519152929181900390910190a35b5b50565b600160a060020a0381166000908152600660205260409020545b919050565b60015433600160a060020a03908116911614156101005760015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039092169190911790555b5b565b600080548190819033600160a060020a039081169116146108445760006000fd5b60085460ff16156108555760006000fd5b600092505b8351831015610935578351600160a060020a039085908590811061087a57fe5b906020019060200201511691507401000000000000000000000000000000000000000084848151811015156108ab57fe5b906020019060200201518115156108be57fe5b600160a060020a0384166000908152600660205260409020549190049150151561092957600160a060020a0382166000818152600660209081526040808320859055600580548601905580518581529051600080516020610b25833981519152929181900390910190a35b5b60019092019161085a565b5b5b50505050565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561051b5780601f106104f05761010080835404028352916020019161051b565b820191906000526020600020905b8154815290600101906020018083116104fe57829003601f168201915b505050505081565b600160a060020a033316600090815260066020526040812054829010801590610a005750600082115b8015610a255750600160a060020a038316600090815260066020526040902054828101115b15610a8757600160a060020a0333811660008181526006602090815260408083208054889003905593871680835291849020805487019055835186815293519193600080516020610b25833981519152929081900390910190a3506001610588565b506000610588565b5b92915050565b600154600160a060020a031681565b600160a060020a038083166000908152600760209081526040808320938516835292905220545b92915050565b60085460ff1681565b60005433600160a060020a03908116911614610af75760006000fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820c45ef2478142f2f1ed956ae9aae5ebcbd87e38a80f348f9483e2076642c4d9fb0029

Deployed Bytecode

0x606060405236156100ee5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610104578063095ea7b31461019457806318160ddd146101c757806323b872dd146101e9578063313ce567146102225780633fb27b85146102485780636d1b229d1461025a57806370a082311461026f57806379ba50971461029d578063884b5dc2146102af5780638da5cb5b1461030457806395d89b4114610330578063a9059cbb146103c0578063d4ee1d90146103f3578063dd62ed3e1461041f578063e4b203ef14610453578063f2fde38b14610477575b34156100f657fe5b6101025b60006000fd5b565b005b341561010c57fe5b610114610495565b60408051602080825283518183015283519192839290830191850190808383821561015a575b80518252602083111561015a57601f19909201916020918201910161013a565b505050905090810190601f1680156101865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019c57fe5b6101b3600160a060020a0360043516602435610523565b604080519115158252519081900360200190f35b34156101cf57fe5b6101d761058e565b60408051918252519081900360200190f35b34156101f157fe5b6101b3600160a060020a0360043581169060243516604435610594565b604080519115158252519081900360200190f35b341561022a57fe5b61023261069c565b6040805160ff9092168252519081900360200190f35b341561025057fe5b6101026106a5565b005b341561026257fe5b6101026004356106e3565b005b341561027757fe5b6101d7600160a060020a036004351661077d565b60408051918252519081900360200190f35b34156102a557fe5b61010261079c565b005b34156102b757fe5b61010260048080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061082395505050505050565b005b341561030c57fe5b61031461093d565b60408051600160a060020a039092168252519081900360200190f35b341561033857fe5b61011461094c565b60408051602080825283518183015283519192839290830191850190808383821561015a575b80518252602083111561015a57601f19909201916020918201910161013a565b505050905090810190601f1680156101865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103c857fe5b6101b3600160a060020a03600435166024356109d7565b604080519115158252519081900360200190f35b34156103fb57fe5b610314610a96565b60408051600160a060020a039092168252519081900360200190f35b341561042757fe5b6101d7600160a060020a0360043581169060243516610aa5565b60408051918252519081900360200190f35b341561045b57fe5b6101b3610ad2565b604080519115158252519081900360200190f35b341561047f57fe5b610102600160a060020a0360043516610adb565b005b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051b5780601f106104f05761010080835404028352916020019161051b565b820191906000526020600020905b8154815290600101906020018083116104fe57829003601f168201915b505050505081565b600160a060020a03338116600081815260076020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60055481565b600160a060020a0383166000908152600660205260408120548290108015906105e45750600160a060020a0380851660009081526007602090815260408083203390941683529290522054829010155b80156105f05750600082115b80156106155750600160a060020a038316600090815260066020526040902054828101115b1561069057600160a060020a0380851660008181526006602081815260408084208054899003905560078252808420338716855282528084208054899003905594881680845291815291849020805487019055835186815293519093600080516020610b2583398151915292908290030190a3506001610694565b5060005b5b9392505050565b60045460ff1681565b60005433600160a060020a039081169116146106c15760006000fd5b60085460ff16156106d25760006000fd5b6008805460ff191660011790555b5b565b60005433600160a060020a039081169116146106ff5760006000fd5b60008054600160a060020a0316815260066020526040902054819010156107265760006000fd5b60008054600160a060020a03908116825260066020908152604080842080548690039055600580548690039055835481518681529151931692600080516020610b25833981519152929181900390910190a35b5b50565b600160a060020a0381166000908152600660205260409020545b919050565b60015433600160a060020a03908116911614156101005760015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039092169190911790555b5b565b600080548190819033600160a060020a039081169116146108445760006000fd5b60085460ff16156108555760006000fd5b600092505b8351831015610935578351600160a060020a039085908590811061087a57fe5b906020019060200201511691507401000000000000000000000000000000000000000084848151811015156108ab57fe5b906020019060200201518115156108be57fe5b600160a060020a0384166000908152600660205260409020549190049150151561092957600160a060020a0382166000818152600660209081526040808320859055600580548601905580518581529051600080516020610b25833981519152929181900390910190a35b5b60019092019161085a565b5b5b50505050565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561051b5780601f106104f05761010080835404028352916020019161051b565b820191906000526020600020905b8154815290600101906020018083116104fe57829003601f168201915b505050505081565b600160a060020a033316600090815260066020526040812054829010801590610a005750600082115b8015610a255750600160a060020a038316600090815260066020526040902054828101115b15610a8757600160a060020a0333811660008181526006602090815260408083208054889003905593871680835291849020805487019055835186815293519193600080516020610b25833981519152929081900390910190a3506001610588565b506000610588565b5b92915050565b600154600160a060020a031681565b600160a060020a038083166000908152600760209081526040808320938516835292905220545b92915050565b60085460ff1681565b60005433600160a060020a03908116911614610af75760006000fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820c45ef2478142f2f1ed956ae9aae5ebcbd87e38a80f348f9483e2076642c4d9fb0029

Swarm Source

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