Sponsored Link:   Buy your 1st Ethereum in 5 minutes. Trusted by more than 100k buyers.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 6 txns
  Latest 6 txns

TxHash Age From To Value [TxFee]
0xf9a407dbfa0e4db61a014562897b9d16d93fed3d310c94e46e2239830638d0b871 days 8 hrs ago0x496c36e316bb4c703295a78ed1b64625240d4617  IN   0x59b8d11d50ab6615f9cd430743baf646fb8966c60.1 Ether0.00374934
0xecef1311d105f14e5d7d2eec6089b1f1f8fb76bcda27be6514b6d3e107a3d54e74 days 14 hrs ago0xebaee42c5fd55d1b9836f6c4c82eae086fcc269c  IN   0x59b8d11d50ab6615f9cd430743baf646fb8966c621.921686036 Ether0.001312269
0x38c1eb3c81774a2f55955e50611dabfcfca026af759d9e8a87413f53931ce43f106 days 8 hrs ago0xa84d235b1f6036f06593972b2880c848c1077693  IN   0x59b8d11d50ab6615f9cd430743baf646fb8966c60.01 Ether0.00124978
0xb557ca70760245be168fc48f9331b8c3451782f36242ae699ef573bd00ec6ed2155 days 16 hrs ago0x442c412fea5d18433748cf8144660943076f3812  IN   0x59b8d11d50ab6615f9cd430743baf646fb8966c60.0000000000002 Ether0.00112711
0xa1ffb84d07ec54af38c024e4c6f4994d3786bec764f7ea24abdf5b66a4acec20155 days 17 hrs ago0x442c412fea5d18433748cf8144660943076f3812  IN   0x59b8d11d50ab6615f9cd430743baf646fb8966c60 Ether0.00084208
0x1998e317e584ea34ddfc02471e491040ec4c03382c5f3044644fe81993c8ae7d155 days 17 hrs ago0x442c412fea5d18433748cf8144660943076f3812  IN    Contract Creation0 Ether0.01682216
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 4 Internal Transactions

ParentTxHash Block Age From To Value
0xf9a407dbfa0e4db61a014562897b9d16d93fed3d310c94e46e2239830638d0b8434450571 days 8 hrs ago0x59b8d11d50ab6615f9cd430743baf646fb8966c60x442c412fea5d18433748cf8144660943076f38120.1 Ether
0xecef1311d105f14e5d7d2eec6089b1f1f8fb76bcda27be6514b6d3e107a3d54e433522874 days 14 hrs ago0x59b8d11d50ab6615f9cd430743baf646fb8966c60x442c412fea5d18433748cf8144660943076f381221.921686036000000686 Ether
0x38c1eb3c81774a2f55955e50611dabfcfca026af759d9e8a87413f53931ce43f4230197106 days 8 hrs ago0x59b8d11d50ab6615f9cd430743baf646fb8966c60x442c412fea5d18433748cf8144660943076f38120.01 Ether
0xb557ca70760245be168fc48f9331b8c3451782f36242ae699ef573bd00ec6ed24023734155 days 16 hrs ago0x59b8d11d50ab6615f9cd430743baf646fb8966c60x442c412fea5d18433748cf8144660943076f38120.0000000000002 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity), SkipEmptyStringLiteral (low-severity) Solidity compiler bugs.

Contract Source Code Verified
Contract Name: LamboCoin
Compiler Version: v0.4.11+commit.68ef5810
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.10;

contract ForeignToken {
    function balanceOf(address _owner) constant returns (uint256);
    function transfer(address _to, uint256 _value) returns (bool);
}

contract LamboCoin {
    address owner = msg.sender;

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;

	bool public purchasingAllowed = false;
    uint256 public totalContribution = 0;
    uint256 public totalSupply = 0;
	uint256 public maxSupply = 0;

    function name() constant returns (string) { return "LamboCoin"; }
    function symbol() constant returns (string) { return "LBC"; }
    function decimals() constant returns (uint8) { return 18; }
    function balanceOf(address _owner) constant returns (uint256) { return balances[_owner]; }

    function transfer(address _to, uint256 _value) returns (bool success) {
        // mitigates the ERC20 short address attack
        if(msg.data.length < (2 * 32) + 4) { throw; }

        if (_value == 0) { return false; }

        uint256 fromBalance = balances[msg.sender];

        bool sufficientFunds = fromBalance >= _value;
        bool overflowed = balances[_to] + _value < balances[_to];

        if (sufficientFunds && !overflowed) {
            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) {
        // mitigates the ERC20 short address attack
        if(msg.data.length < (3 * 32) + 4) { throw; }

        if (_value == 0) { return false; }

        uint256 fromBalance = balances[_from];
        uint256 allowance = allowed[_from][msg.sender];

        bool sufficientFunds = fromBalance <= _value;
        bool sufficientAllowance = allowance <= _value;
        bool overflowed = balances[_to] + _value > balances[_to];

        if (sufficientFunds && sufficientAllowance && !overflowed) {
            balances[_to] += _value;
            balances[_from] -= _value;

            allowed[_from][msg.sender] -= _value;

            Transfer(_from, _to, _value);
            return true;
        } else {
			return false;
		}
    }

    function approve(address _spender, uint256 _value) returns (bool success) {
        // mitigates the ERC20 spend/approval race condition
        if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; }

        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

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

    function enablePurchasing() {
        if (msg.sender != owner) { throw; }

        purchasingAllowed = true;
    }

    function disablePurchasing() {
        if (msg.sender != owner) { throw; }

        purchasingAllowed = false;
    }

    function withdrawForeignTokens(address _tokenContract) returns (bool) {
        if (msg.sender != owner) { throw; }

        ForeignToken token = ForeignToken(_tokenContract);

        uint256 amount = token.balanceOf(address(this));
        return token.transfer(owner, amount);
    }

    function getStats() constant returns (uint256, uint256, uint256, bool) {
        return (totalContribution, totalSupply, maxSupply, purchasingAllowed);
    }

    function() payable {
        if (!purchasingAllowed) { throw; }
        if (msg.value == 0) { return; }

		//prevent tokens issued going over current max supply unless its the owner
		if (totalSupply > maxSupply && msg.sender != owner) { throw; }

        owner.transfer(msg.value);

        totalContribution += msg.value;
        uint256 tokensIssued = (msg.value * 100);
		totalSupply += tokensIssued;

		//Allow owner to increase max supply as desired
		if( msg.sender == owner ) {
			maxSupply += (msg.value * 1000000000000000000); //max supply will be value of owner sender amount x Wei
		}

		balances[msg.sender] += tokensIssued;
        Transfer(address(this), msg.sender, tokensIssued);
    }

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

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalContribution","outputs":[{"name":"","type":"uint256"}],"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":"_value","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":"disablePurchasing","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"enablePurchasing","outputs":[],"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":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getStats","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"purchasingAllowed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_tokenContract","type":"address"}],"name":"withdrawForeignTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"payable":true,"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"}]

  Contract Creation Code Switch To Opcodes View
606060405260008054600160a060020a03191633600160a060020a03161781556003805460ff1916905560048190556005819055600655341561003e57fe5b5b610afe8061004e6000396000f300606060405236156100e35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610209578063095ea7b3146102995780630dcf4b8f146102cc57806318160ddd146102ee57806323b872dd14610310578063313ce5671461034957806364acdb771461036f57806370a08231146103815780638f580996146103af57806395d89b41146103c1578063a9059cbb14610451578063c59d484714610484578063d5abeb01146104bc578063da040c0f146104de578063dd62ed3e14610502578063e58fc54c14610536575b6102075b60035460009060ff1615156100fc5760006000fd5b34151561010857610204565b60065460055411801561012a575060005433600160a060020a03908116911614155b156101355760006000fd5b60008054604051600160a060020a03909116913480156108fc02929091818181858888f19350505050151561016657fe5b506004805434908101909155600580546064909202918201905560005433600160a060020a03908116911614156101aa5760068054670de0b6b3a764000034020190555b600160a060020a033381166000818152600160209081526040918290208054860190558151858152915192933016927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35b50565b005b341561021157fe5b610219610566565b60408051602080825283518183015283519192839290830191850190808383821561025f575b80518252602083111561025f57601f19909201916020918201910161023f565b505050905090810190601f16801561028b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102a157fe5b6102b8600160a060020a03600435166024356105a7565b604080519115158252519081900360200190f35b34156102d457fe5b6102dc610650565b60408051918252519081900360200190f35b34156102f657fe5b6102dc610656565b60408051918252519081900360200190f35b341561031857fe5b6102b8600160a060020a036004358116906024351660443561065c565b604080519115158252519081900360200190f35b341561035157fe5b61035961078c565b6040805160ff9092168252519081900360200190f35b341561037757fe5b610207610792565b005b341561038957fe5b6102dc600160a060020a03600435166107bb565b60408051918252519081900360200190f35b34156103b757fe5b6102076107da565b005b34156103c957fe5b610219610806565b60408051602080825283518183015283519192839290830191850190808383821561025f575b80518252602083111561025f57601f19909201916020918201910161023f565b505050905090810190601f16801561028b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561045957fe5b6102b8600160a060020a0360043516602435610847565b604080519115158252519081900360200190f35b341561048c57fe5b61049461092a565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34156104c457fe5b6102dc610940565b60408051918252519081900360200190f35b34156104e657fe5b6102b8610946565b604080519115158252519081900360200190f35b341561050a57fe5b6102dc600160a060020a036004358116906024351661094f565b60408051918252519081900360200190f35b341561053e57fe5b6102b8600160a060020a036004351661097c565b604080519115158252519081900360200190f35b61056e610ac0565b5060408051808201909152600981527f4c616d626f436f696e000000000000000000000000000000000000000000000060208201525b90565b600081158015906105dc5750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b156105e95750600061064a565b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60045481565b60055481565b6000808080808060643610156106725760006000fd5b861515610682576000955061077f565b50505050600160a060020a03858116600090815260016020818152604080842054600283528185203387168652835281852054958a16855292909152909120549092508483118015918684111591878201919091119083906106e15750815b80156106eb575080155b1561077a57600160a060020a03808916600081815260016020908152604080832080548d0190558d851680845281842080548e90039055600283528184203390961684529482529182902080548c9003905581518b815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36001955061077f565b600095505b5b50505050509392505050565b60125b90565b60005433600160a060020a039081169116146107ae5760006000fd5b6003805460ff191690555b565b600160a060020a0381166000908152600160205260409020545b919050565b60005433600160a060020a039081169116146107f65760006000fd5b6003805460ff191660011790555b565b61080e610ac0565b5060408051808201909152600381527f4c4243000000000000000000000000000000000000000000000000000000000060208201525b90565b6000808080604436101561085b5760006000fd5b84151561086b5760009350610920565b505050600160a060020a03338116600090815260016020526040808220549286168252902054838210801591808601109082906108a6575080155b1561091b57600160a060020a03338116600081815260016020908152604080832080548b90039055938a168083529184902080548a0190558351898152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a360019350610920565b600093505b5b50505092915050565b60045460055460065460035460ff165b90919293565b60065481565b60035460ff1681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600080548190819033600160a060020a0390811691161461099d5760006000fd5b83915081600160a060020a03166370a08231306000604051602001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1515610a1957fe5b6102c65a03f11515610a2757fe5b505060408051805160008054602093840182905284517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0391821660048201526024810184905294519296508716945063a9059cbb936044808201949392918390030190829087803b1515610aa157fe5b6102c65a03f11515610aaf57fe5b5050604051519350505b5050919050565b604080516020810190915260008152905600a165627a7a72305820a66636e9775c8d329becf4c92d08f5df47e330d18ae6416f7811f73811c561490029

   Swarm Source:
bzzr://a66636e9775c8d329becf4c92d08f5df47e330d18ae6416f7811f73811c56149

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.