ETH Price: $3,212.85 (+1.31%)

Contract

0x28F4AE3275f38015c6e6EeeFd9288A2D7Bc7D023
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer65587652018-10-21 21:51:182215 days ago1540158678IN
0x28F4AE32...D7Bc7D023
0 ETH0.000053821.46875
Transfer64081222018-09-27 8:50:372240 days ago1538038237IN
0x28F4AE32...D7Bc7D023
0 ETH0.0003994510.9
Approve62844832018-09-06 21:22:242260 days ago1536268944IN
0x28F4AE32...D7Bc7D023
0 ETH0.000137023
Transfer62562222018-09-02 3:55:532265 days ago1535860553IN
0x28F4AE32...D7Bc7D023
0 ETH0.0015025241
Transfer62562092018-09-02 3:54:002265 days ago1535860440IN
0x28F4AE32...D7Bc7D023
0 ETH0.00127141
Transfer62561452018-09-02 3:37:542265 days ago1535859474IN
0x28F4AE32...D7Bc7D023
0 ETH0.000181315
Transfer From62561452018-09-02 3:37:542265 days ago1535859474IN
0x28F4AE32...D7Bc7D023
0 ETH0.0005167120.2
Transfer62553652018-09-02 0:23:262265 days ago1535847806IN
0x28F4AE32...D7Bc7D023
0 ETH0.000112772.2
Transfer60552122018-07-30 4:27:532299 days ago1532924873IN
0x28F4AE32...D7Bc7D023
0.01 ETH0.00007771
0x60c0604060542432018-07-30 0:36:052299 days ago1532910965IN
 Create: ClassicVolkswagen
0 ETH0.000894121

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
60552122018-07-30 4:27:532299 days ago1532924873
0x28F4AE32...D7Bc7D023
0.01 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ClassicVolkswagen

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.24;

contract Token {

    /// @return total amount of tokens
    function totalSupply() constant returns (uint256 supply) {}

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) constant returns (uint256 balance) {}

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) returns (bool success) {}

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}

    /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of wei to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) returns (bool success) {}

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}

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

}

contract StandardToken is Token {

    function transfer(address _to, uint256 _value) returns (bool success) {
        //Default assumes totalSupply can't be over max (2^256 - 1).
        //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap.
        //Replace the if with this one instead.
        //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
        if (balances[msg.sender] >= _value && _value > 0) {
            balances[msg.sender] -= _value;
            balances[_to] += _value;
            Transfer(msg.sender, _to, _value);
            return true;
        } else { return false; }
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        //same as above. Replace this line with the following if you want to protect against wrapping uints.
        //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
        if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
            balances[_to] += _value;
            balances[_from] -= _value;
            allowed[_from][msg.sender] -= _value;
            Transfer(_from, _to, _value);
            return true;
        } else { return false; }
    }

    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
    uint256 public totalSupply;
}

contract ClassicVolkswagen is StandardToken { // CHANGE THIS. Update the contract name.

    /* Public variables of the token */

    /*
    NOTE:
    The following variables are OPTIONAL vanities. One does not have to include them.
    They allow one to customise the token contract & in no way influences the core functionality.
    Some wallets/interfaces might not even bother to look at this information.
    */
    string public name;                  
    uint8 public decimals;                
    string public symbol;                
    string public version = 'H1.0';
    uint256 public unitsOneEthCanBuy;    
    uint256 public totalEthInWei;         
    address public fundsWallet;           

    // This is a constructor function
    // which means the following function name has to match the contract name declared above
    function ClassicVolkswagen() {
        balances[msg.sender] = 300000000000000000000000000;      
        totalSupply = 30000000000000000000000000;               
        name = "Classic Volkswagen";                                   
        decimals = 18;                                        
        symbol = "CVN";                                       
        unitsOneEthCanBuy = 10000;                        
        fundsWallet = msg.sender;                             
    }

    function() public payable{
        totalEthInWei = totalEthInWei + msg.value;
        uint256 amount = msg.value * unitsOneEthCanBuy;
        require(balances[fundsWallet] >= amount);

        balances[fundsWallet] = balances[fundsWallet] - amount;
        balances[msg.sender] = balances[msg.sender] + amount;

        Transfer(fundsWallet, msg.sender, amount); // Broadcast a message to the blockchain

        //Transfer ether to fundsWallet
        fundsWallet.transfer(msg.value);                             
    }

    /* Approves and then calls the receiving contract */
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);

        //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn't have to include a contract in here just for this.
        //receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData)
        //it is assumed that when does this that the call *should* succeed, otherwise one would use vanilla approve instead.
        if(!_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData)) { throw; }
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","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":true,"inputs":[],"name":"fundsWallet","outputs":[{"name":"","type":"address"}],"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":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"unitsOneEthCanBuy","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthInWei","outputs":[{"name":"","type":"uint256"}],"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":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","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"}]

60c0604052600460808190527f48312e300000000000000000000000000000000000000000000000000000000060a090815261003e916006919061012b565b5034801561004b57600080fd5b5033600090815260208181526040918290206af8277896582678ac00000090556a18d0bf423c03d8de000000600255815180830190925260128083527f436c617373696320566f6c6b73776167656e0000000000000000000000000000929091019182526100bb9160039161012b565b506004805460ff191660121790556040805180820190915260038082527f43564e0000000000000000000000000000000000000000000000000000000000602090920191825261010d9160059161012b565b5061271060075560098054600160a060020a031916331790556101c6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061016c57805160ff1916838001178555610199565b82800160010185558215610199579182015b8281111561019957825182559160200191906001019061017e565b506101a59291506101a9565b5090565b6101c391905b808211156101a557600081556001016101af565b90565b610993806101d56000396000f3006080604052600436106100b65763ffffffff60e060020a60003504166306fdde038114610197578063095ea7b31461022157806318160ddd146102595780632194f3a21461028057806323b872dd146102b1578063313ce567146102db57806354fd4d501461030657806365f2bc2e1461031b57806370a0823114610330578063933ba4131461035157806395d89b4114610366578063a9059cbb1461037b578063cae9ca511461039f578063dd62ed3e14610408575b6008805434908101909155600754600954600160a060020a03166000908152602081905260409020549102908111156100ee57600080fd5b60098054600160a060020a0390811660009081526020818152604080832080548790039055338084529281902080548701905593548451868152945192949316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600954604051600160a060020a03909116903480156108fc02916000818181858888f19350505050158015610193573d6000803e3d6000fd5b5050005b3480156101a357600080fd5b506101ac61042f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e65781810151838201526020016101ce565b50505050905090810190601f1680156102135780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561022d57600080fd5b50610245600160a060020a03600435166024356104bd565b604080519115158252519081900360200190f35b34801561026557600080fd5b5061026e610524565b60408051918252519081900360200190f35b34801561028c57600080fd5b5061029561052a565b60408051600160a060020a039092168252519081900360200190f35b3480156102bd57600080fd5b50610245600160a060020a0360043581169060243516604435610539565b3480156102e757600080fd5b506102f0610624565b6040805160ff9092168252519081900360200190f35b34801561031257600080fd5b506101ac61062d565b34801561032757600080fd5b5061026e610688565b34801561033c57600080fd5b5061026e600160a060020a036004351661068e565b34801561035d57600080fd5b5061026e6106a9565b34801561037257600080fd5b506101ac6106af565b34801561038757600080fd5b50610245600160a060020a036004351660243561070a565b3480156103ab57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610245948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107a19650505050505050565b34801561041457600080fd5b5061026e600160a060020a036004358116906024351661093c565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b505050505081565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60025481565b600954600160a060020a031681565b600160a060020a03831660009081526020819052604081205482118015906105845750600160a060020a03841660009081526001602090815260408083203384529091529020548211155b80156105905750600082115b1561061957600160a060020a0380841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600161061d565b5060005b9392505050565b60045460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b55780601f1061048a576101008083540402835291602001916104b5565b60075481565b600160a060020a031660009081526020819052604090205490565b60085481565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b55780601f1061048a576101008083540402835291602001916104b5565b3360009081526020819052604081205482118015906107295750600082115b15610799573360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600161051e565b50600061051e565b336000818152600160209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a383600160a060020a031660405180807f72656365697665417070726f76616c28616464726573732c75696e743235362c81526020017f616464726573732c627974657329000000000000000000000000000000000000815250602e019050604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b838110156108e15781810151838201526020016108c9565b50505050905090810190601f16801561090e5780820380516001836020036101000a031916815260200191505b509450505050506000604051808303816000875af192505050151561093257600080fd5b5060019392505050565b600160a060020a039182166000908152600160209081526040808320939094168252919091522054905600a165627a7a7230582005875ef2fb3f9466655cca13b4c4f019b70ff2ad3e8ad66eae5063227794615b0029

Deployed Bytecode

0x6080604052600436106100b65763ffffffff60e060020a60003504166306fdde038114610197578063095ea7b31461022157806318160ddd146102595780632194f3a21461028057806323b872dd146102b1578063313ce567146102db57806354fd4d501461030657806365f2bc2e1461031b57806370a0823114610330578063933ba4131461035157806395d89b4114610366578063a9059cbb1461037b578063cae9ca511461039f578063dd62ed3e14610408575b6008805434908101909155600754600954600160a060020a03166000908152602081905260409020549102908111156100ee57600080fd5b60098054600160a060020a0390811660009081526020818152604080832080548790039055338084529281902080548701905593548451868152945192949316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600954604051600160a060020a03909116903480156108fc02916000818181858888f19350505050158015610193573d6000803e3d6000fd5b5050005b3480156101a357600080fd5b506101ac61042f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e65781810151838201526020016101ce565b50505050905090810190601f1680156102135780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561022d57600080fd5b50610245600160a060020a03600435166024356104bd565b604080519115158252519081900360200190f35b34801561026557600080fd5b5061026e610524565b60408051918252519081900360200190f35b34801561028c57600080fd5b5061029561052a565b60408051600160a060020a039092168252519081900360200190f35b3480156102bd57600080fd5b50610245600160a060020a0360043581169060243516604435610539565b3480156102e757600080fd5b506102f0610624565b6040805160ff9092168252519081900360200190f35b34801561031257600080fd5b506101ac61062d565b34801561032757600080fd5b5061026e610688565b34801561033c57600080fd5b5061026e600160a060020a036004351661068e565b34801561035d57600080fd5b5061026e6106a9565b34801561037257600080fd5b506101ac6106af565b34801561038757600080fd5b50610245600160a060020a036004351660243561070a565b3480156103ab57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610245948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107a19650505050505050565b34801561041457600080fd5b5061026e600160a060020a036004358116906024351661093c565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b505050505081565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60025481565b600954600160a060020a031681565b600160a060020a03831660009081526020819052604081205482118015906105845750600160a060020a03841660009081526001602090815260408083203384529091529020548211155b80156105905750600082115b1561061957600160a060020a0380841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600161061d565b5060005b9392505050565b60045460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b55780601f1061048a576101008083540402835291602001916104b5565b60075481565b600160a060020a031660009081526020819052604090205490565b60085481565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b55780601f1061048a576101008083540402835291602001916104b5565b3360009081526020819052604081205482118015906107295750600082115b15610799573360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600161051e565b50600061051e565b336000818152600160209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a383600160a060020a031660405180807f72656365697665417070726f76616c28616464726573732c75696e743235362c81526020017f616464726573732c627974657329000000000000000000000000000000000000815250602e019050604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b838110156108e15781810151838201526020016108c9565b50505050905090810190601f16801561090e5780820380516001836020036101000a031916815260200191505b509450505050506000604051808303816000875af192505050151561093257600080fd5b5060019392505050565b600160a060020a039182166000908152600160209081526040808320939094168252919091522054905600a165627a7a7230582005875ef2fb3f9466655cca13b4c4f019b70ff2ad3e8ad66eae5063227794615b0029

Swarm Source

bzzr://05875ef2fb3f9466655cca13b4c4f019b70ff2ad3e8ad66eae5063227794615b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.