Contract 0xfb85f84805510035dbefe3582ca48c90583e551f

Contract Overview

Balance:
6.75 Ether

Token:
TxHash Block Age From To Value [TxFee]
0x08824769a8b25698af3bf71cc61149e4c8fdb7871244ce75a50f10c9e42d2709981983986 days 2 hrs ago0x8e99cf6e4858487782099dc9ddec9c447c3da581 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036697
0xe8de4dea85265d75b4c10d10354e826c2b76c97e59e5595c14a99074a8a9b823976267890 days 20 hrs ago0x4d1fc80ef1937bda5cfa699ae54ef703b3b2ae70 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036697
0xdc87c55cec3074bdb6631082ccf8d5bcd05ab9a7005487b6db07e479001a680f976264690 days 20 hrs ago0x8949016c2119261f220f9432ecfc17d50cca82f4 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036697
0x9dfa1674d187c06d43985b8a20a06d29a7cd21beb56ede9aa8697876af3bf320976264290 days 20 hrs ago0x8d5b9003893ab186198599ed98e1e211204742b7 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000027033
0x412c4bcc6d3f90966033f812c5d6918f05068bc76961d77f717bfe3db3422171976263490 days 20 hrs ago0x3aeed494d003cef9760b9680bd4a70f589c3ac05 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0x437786a085829d8921ff4dfb8993ea601d4e451086e664c14c3094de8cea527f976263390 days 20 hrs ago0x6f315a32a765b3980df639ebe2ef7ce005ae7502 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036697
0x6f47a2757886138891ef0ce8705c826ff85d20693b1b5e7cc2aa8523a457443d976262090 days 20 hrs ago0x8d5b9003893ab186198599ed98e1e211204742b7 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0xc5975324a2e39d1e560e7e31ed3122c91343977a06199cfd3fddcecafae45b81976261490 days 20 hrs ago0x3aeed494d003cef9760b9680bd4a70f589c3ac05 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0x1a82afa07981553911713005844fa23bcb82c415199acfa72958d52cb2c7adb2976259790 days 20 hrs ago0x3aeed494d003cef9760b9680bd4a70f589c3ac05 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0x85c9a8abf7649f7026ba23adb1fdfdd3828a483257563fdf91bfdf6e679911689440951119 days 7 hrs ago0x849b722ce5ea91f2ebaec5d5654a9e9debcd2c9f IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036761
0x4ddbdda45aa0f1610a74733453b3819adb71a11b563d765e677d75d30ce354599440894119 days 7 hrs ago0xe87e6d692e9138bb0fbdc7df4b50a4dfe2ec93ea IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036761
0xc6bc0b7e55899100afd73237258729fefe3adb4ed6769273ea14c153851258959440885119 days 7 hrs ago0x849b722ce5ea91f2ebaec5d5654a9e9debcd2c9f IN  0xfb85f84805510035dbefe3582ca48c90583e551f0.1 Ether0.000033704
0x042d685b68927c434cca623db1b4fd377d332ac4cf9e995626efc342f87c4baa9194415144 days 18 hrs ago0x30f1fa88fc3e3a507fadaece1175185502b28eb0 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036569
0xffda11153aa7292c83c048d12d003abc4c8d0f9ea96dab5b82ac602a5f8efa129189493145 days 7 hrs ago0xcbef7ecaccb6ea680b179a934a5940ea05b93842 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0.1 Ether0.000033704
0xe5bd683efcd64affccc3e1f140fefc1fbfb95df7eaa9745220f94822fea7e06b9189493145 days 7 hrs ago0x8103c5ed338b95b879a3bdd6722e73de9b607ff4 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0.5 Ether0.000033704
0x983d37c1609903921ab3a9fd5dbe391490dba223c80330332292122317cd3d729189454145 days 7 hrs ago0x25619be6207e383ccdf6601f68f8891969743bc2 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0xe230845a516ae0d0fe1319d9ca8c636cebda57434c61bbd55fc5e8000cd4601a9189453145 days 7 hrs ago0x1342ea4052fc1e6d680ac72305eda99ee469fe74 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0xc7834a36d098163b400e106875e9995d7f91608cac99ddce6129fe2c5b5b15aa9189449145 days 7 hrs ago0x8e99cf6e4858487782099dc9ddec9c447c3da581 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000021697
0x1a266b46ae111dd01ae81bb3ff1693c4e32806b23cd07adce25a394dc93df7fe9189445145 days 7 hrs ago0xe87e6d692e9138bb0fbdc7df4b50a4dfe2ec93ea IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0xa190b2cd7f0b0ff1fd5db5d8086c7b81fdbc5d3a7801fe2acdd368b28ae610989189444145 days 7 hrs ago0x8103c5ed338b95b879a3bdd6722e73de9b607ff4 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0x2382383d5ee6a5d8248e88a68801c88758243361af60b760f7d27931fc49cc059189443145 days 7 hrs ago0x8e99cf6e4858487782099dc9ddec9c447c3da581 IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000036697
0x55598c30bd746279fbe4448bfe625089cc5e168022ddedb4f4cb4ea4e4ebfc409189437145 days 7 hrs ago0xe87e6d692e9138bb0fbdc7df4b50a4dfe2ec93ea IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0xa6170906264ae8833916f69deb580d9f87fd3bf6652178b84e33c404b66f90639189435145 days 7 hrs ago0xe87e6d692e9138bb0fbdc7df4b50a4dfe2ec93ea IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0x1d9831b5edb6158c5d27dfadce32f8ede3ca751a40d9019fd6fd3f851cff4b289189432145 days 7 hrs ago0xe87e6d692e9138bb0fbdc7df4b50a4dfe2ec93ea IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
0x52199efe8e670a5ca4a765a4767c0ef1e3bbe98f0b006db4a38ae6bae8995b149189432145 days 7 hrs ago0xf33b19eeaecc13a379cf30449fce3ed4509c888d IN  0xfb85f84805510035dbefe3582ca48c90583e551f0 Ether0.000051697
[ Download CSV Export 

Latest 2 internal transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x018b572abae4e3353bc5650f1eb1d37e9af2c8ffe5e2e8c3ad0008bbe522ea356486664364 days 4 hrs ago0xfb85f84805510035dbefe3582ca48c90583e551f0x00be6a3a1cddb79d7422ef1c0123f45626eba9c513 Ether
0x6874c6d49ea37721921c2bdcf4530db4f40e7c4811f1bac9ec1dfd4bc7420d186486643364 days 4 hrs ago0xfb85f84805510035dbefe3582ca48c90583e551f0x00be6a3a1cddb79d7422ef1c0123f45626eba9c50.1 Ether
[ Download CSV Export 

Contract Source Code Verified (Exact Match)

Contract Name:
FunToken

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.19;

/**
 * The Owned contract ensures that only the creator (deployer) of a 
 * contract can perform certain tasks.
 */
contract Owned {
	address public owner = msg.sender;
	event OwnerChanged(address indexed old, address indexed current);
	modifier only_owner { require(msg.sender == owner); _; }
	function setOwner(address _newOwner) only_owner public { OwnerChanged(owner, _newOwner); owner = _newOwner; }
}

/**
 * See https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20_Token {
	// Triggered when tokens are transferred.
	event Transfer(address indexed _from, address indexed _to, uint256 _value);

	// Triggered whenever approve(address _spender, uint256 _value) is called.
	event Approval(address indexed _owner, address indexed _spender, uint256 _value);

	// Get the total token supply
	function totalSupply() constant returns (uint256 totalSupply);
	
	// Get the account balance of another account with address _owner
	function balanceOf(address _owner) constant returns (uint256 balance);
	
	// Send _value amount of tokens to address _to
	function transfer(address _to, uint256 _value) returns (bool success);
	
	// Send _value amount of tokens from address _from to address _to
	function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
	
	// 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 _value) returns (bool success);
	
	// Returns the amount which _spender is still allowed to withdraw from _owner
	function allowance(address _owner, address _spender) constant returns (uint256 remaining);
}

contract FunToken is ERC20_Token, Owned {
	mapping (address => uint256) public balances;
	mapping (address => mapping (address => uint256)) public allowance;
	uint public price;	// price per token. 
	uint256 supply;
	
	event PriceChanged(uint new_price);

	/**
	 * Prevent an account from behing 0x0
	 * @param addr Address to check
	 */
	modifier No0x(address addr) { 
		if (addr == 0x0) revert();
		_; 
	}

	/**
	 * A modifer to check validity of a balance for a transfer
	 * from an account to another.
	 * @param from  [description]
	 * @param to    [description]
	 * @param value [description]
	 */
	modifier ValidBalance(address from, address to, uint256 value) { 
		if (balances[from] < value) revert();                 // Check if the sender has enough
        if (balances[to] + value < balances[to]) revert();  // Check for overflows
		_; 
	}
	
	/**
	 * Constructor of FunToken
	 * @param _price Price for a token. 1 szabo or 1 finney would be good. That means 1 ETH = 1e6 tokens. 
	 */
	function FunToken (uint _price) {
		require(_price > 0);
		price = _price;
		supply = 0;
	}

	function () payable public  {
		uint nbTokens = msg.value / price;
		supply += nbTokens;
		balances[msg.sender] += nbTokens;
		Transfer(this, msg.sender, nbTokens);                 
	}
	
	function setPrice(uint _price) public only_owner{
		require(_price > 0);
		price = _price;
		PriceChanged(price);
	}


	function cashout() public only_owner{
		owner.transfer(this.balance);
	}

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

	/**
	 * Returns The balance of a given account
	 * @param addr Address of the account
	 * @return Balance
	 */
	function balanceOf(address addr) constant returns(uint256 balance) {
		return balances[addr];
	}
	
	/**
	 * Returns the amount which _spender is still allowed to withdraw from _owner
	 */
	function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
		return allowance[_owner][_spender];	
	}

	/**
	 * Send coins
	 * @param _to    	The recipient of tokens
	 * @param _value 	Amount of tokens to send 
	 */
	 function transfer(address _to, uint256 _value) No0x(_to) ValidBalance(msg.sender, _to, _value) 
	 returns (bool success) {                        
        balances[msg.sender] -= _value;                     // Subtract from the sender
        balances[_to] += _value;                            // Add the same to the recipient
        Transfer(msg.sender, _to, _value);                   // Notify anyone listening that this transfer took place
    	return true;
    }

    /**
     * Allow another contract to spend some tokens in your behalf
     * @param _spender 	Account that can take some of your tokens
     * @param _value   	Max amount of tokens the _spender account can take
     * @return {return}	Return true if the action succeeded
     */
    function approve(address _spender, uint256 _value) returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }  

    /**
     * A contract attempts to get the coins
     * @param _from     Address holding the tokens to transfer
     * @param _to       Account to send the coins to
     * @param _value	How many tokens     
     * @return {bool}   Whether the call was successful
     */
    function transferFrom(address _from, address _to, uint256 _value) No0x (_to) ValidBalance(_from, _to, _value)
    returns (bool success) {
        if (_value > allowance[_from][msg.sender]) revert();     // Check allowance
        balances[_from] -= _value;                           // Subtract from the sender
        balances[_to] += _value;                             // Add the same to the recipient
        allowance[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
    }
}

Contract ABI

[{"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":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","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":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"cashout","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"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":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_price","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"new_price","type":"uint256"}],"name":"PriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"old","type":"address"},{"indexed":true,"name":"current","type":"address"}],"name":"OwnerChanged","type":"event"},{"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

606060405260008054600160a060020a03191633600160a060020a0316179055341561002a57600080fd5b604051602080610783833981016040528080519150506000811161004d57600080fd5b600355600060045561071f806100646000396000f3006060604052600436106100b95763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461013557806313af40351461016b57806318160ddd1461018c57806323b872dd146101b157806327e235e3146101d957806370a08231146101f857806384054d3d146102175780638da5cb5b1461022a57806391b7f5ed14610259578063a035b1fe1461026f578063a9059cbb14610282578063dd62ed3e146102a4575b6000600354348115156100c857fe5b60048054929091049182019055600160a060020a03338116600081815260016020526040908190208054850190559293509130909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a350005b341561014057600080fd5b610157600160a060020a03600435166024356102c9565b604051901515815260200160405180910390f35b341561017657600080fd5b61018a600160a060020a0360043516610335565b005b341561019757600080fd5b61019f6103bb565b60405190815260200160405180910390f35b34156101bc57600080fd5b610157600160a060020a03600435811690602435166044356103c1565b34156101e457600080fd5b61019f600160a060020a03600435166104f1565b341561020357600080fd5b61019f600160a060020a0360043516610503565b341561022257600080fd5b61018a61051e565b341561023557600080fd5b61023d610574565b604051600160a060020a03909116815260200160405180910390f35b341561026457600080fd5b61018a600435610583565b341561027a57600080fd5b61019f6105e6565b341561028d57600080fd5b610157600160a060020a03600435166024356105ec565b34156102af57600080fd5b61019f600160a060020a03600435811690602435166106c8565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005433600160a060020a0390811691161461035057600080fd5b600054600160a060020a0380831691167fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c60405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60045490565b600082600160a060020a03811615156103d957600080fd5b600160a060020a0385166000908152600160205260409020548590859085908190101561040557600080fd5b600160a060020a038216600090815260016020526040902054818101101561042c57600080fd5b600160a060020a038089166000908152600260209081526040808320339094168352929052205486111561045f57600080fd5b600160a060020a03808916600081815260016020908152604080832080548c900390558b851680845281842080548d01905584845260028352818420339096168452949091529081902080548a900390557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9089905190815260200160405180910390a3506001979650505050505050565b60016020526000908152604090205481565b600160a060020a031660009081526001602052604090205490565b60005433600160a060020a0390811691161461053957600080fd5b600054600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19350505050151561057257600080fd5b565b600054600160a060020a031681565b60005433600160a060020a0390811691161461059e57600080fd5b600081116105ab57600080fd5b60038190557fa6dc15bdb68da224c66db4b3838d9a2b205138e8cff6774e57d0af91e196d6228160405190815260200160405180910390a150565b60035481565b600082600160a060020a038116151561060457600080fd5b33600160a060020a038116600090815260016020526040902054859085908190101561062f57600080fd5b600160a060020a038216600090815260016020526040902054818101101561065657600080fd5b600160a060020a0333811660008181526001602052604080822080548b90039055928a168082529083902080548a019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9089905190815260200160405180910390a35060019695505050505050565b600160a060020a039182166000908152600260209081526040808320939094168252919091522054905600a165627a7a72305820043ee5124ad7511f4e9027d177ad751ff4e6af09c4ab45ec6f8c842345715b27002900000000000000000000000000000000000000000000000000038d7ea4c68000

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000038d7ea4c68000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000038d7ea4c68000

Swarm Source

bzzr://043ee5124ad7511f4e9027d177ad751ff4e6af09c4ab45ec6f8c842345715b27
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward