ETH Price: $2,991.75 (+2.63%)
Gas: 13 Gwei

Token

ScamToken (SCAM)
 

Overview

Max Total Supply

1,440.955633711007896392 SCAM

Holders

29

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
Beacon Deposit Contract
Balance
0.010101010101010101 SCAM

Value
$0.00
0x00000000219ab540356cBB839Cbe05303d7705Fa
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:
ScamToken

Compiler Version
v0.4.10+commit.f0d539ae

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.10;

// scamtoken
// completely original and not copy pasted contract
// prince of nigeria and major tunde send their regards

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

contract ScamToken {
    address owner = msg.sender;

    bool public purchasingAllowed = false;

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
   // such code
    uint256 public totalContribution = 0;
    uint256 public totalBonusTokensIssued = 0;

    uint256 public totalSupply = 0;

    function name() constant returns (string) { return "ScamToken"; }
    function symbol() constant returns (string) { return "SCAM"; }
    function decimals() constant returns (uint8) { return 18; }
    // much wow
    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;
          
          // so scam  
            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];
        // my squanch is squanched
        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;
    }
    
    // wut
    function allowance(address _owner, address _spender) constant returns (uint256) {
        return allowed[_owner][_spender];
    }

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

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

        purchasingAllowed = true;
    }

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

        purchasingAllowed = false;
    }

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

        CloneToken token = CloneToken(_tokenContract);

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

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

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

        owner.transfer(msg.value);
        totalContribution += msg.value;

        uint256 tokensIssued = (msg.value * 100);

        if (msg.value >= 10 finney) {
            tokensIssued += totalContribution;

            bytes20 bonusHash = ripemd160(block.coinbase, block.number, block.timestamp);
            if (bonusHash[0] == 0) {
				// just deleted a bunch of shit lol hope it still works
                uint8 bonusMultiplier = 100;
                
                uint256 bonusTokensIssued = (msg.value * 100) * bonusMultiplier;
                tokensIssued += bonusTokensIssued;

                totalBonusTokensIssued += bonusTokensIssued;
            }
        }

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

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":"_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":true,"inputs":[],"name":"totalBonusTokensIssued","outputs":[{"name":"","type":"uint256"}],"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":false,"inputs":[{"name":"_tokenContract","type":"address"}],"name":"withdrawCloneTokens","outputs":[{"name":"","type":"bool"}],"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"},{"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"}]

606060405260008054600160a060020a03191633600160a060020a03161760a060020a60ff021916815560038190556004819055600555341561003e57fe5b5b610ba28061004e6000396000f300606060405236156100ca5763ffffffff60e060020a60003504166306fdde03811461028f578063095ea7b31461031f5780630dcf4b8f1461035257806318160ddd1461037457806323b872dd14610396578063313ce567146103cf57806364acdb77146103f557806370a08231146104075780638f5809961461043557806395d89b411461044757806398b01fe3146104d7578063a9059cbb146104f9578063c59d48471461052c578063d690629514610564578063da040c0f14610594578063dd62ed3e146105b8575b61028d5b6000600060006000600060149054906101000a900460ff1615156100f25760006000fd5b3415156100fe57610287565b60008054604051600160a060020a03909116913480156108fc02929091818181858888f19350505050151561012f57fe5b6003805434908101909155606481029450662386f26fc100009010610224576003548401935060034143426000604051602001526040518084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182815260200193505050506020604051808303816000866161da5a03f115156101b957fe5b5050604051516c010000000000000000000000000292508260005b1a60f860020a027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916600060f860020a021415610224575050600480546127103402908101909155918201916064905b5b6005805485019055600160a060020a033381166000818152600160209081526040918290208054890190558151888152915192933016927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35b50505050565b005b341561029757fe5b61029f6105ec565b6040805160208082528351818301528351919283929083019185019080838382156102e5575b8051825260208311156102e557601f1990920191602091820191016102c5565b505050905090810190601f1680156103115780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032757fe5b61033e600160a060020a036004351660243561062d565b604080519115158252519081900360200190f35b341561035a57fe5b6103626106d6565b60408051918252519081900360200190f35b341561037c57fe5b6103626106dc565b60408051918252519081900360200190f35b341561039e57fe5b61033e600160a060020a03600435811690602435166044356106e2565b604080519115158252519081900360200190f35b34156103d757fe5b6103df610812565b6040805160ff9092168252519081900360200190f35b34156103fd57fe5b61028d610818565b005b341561040f57fe5b610362600160a060020a0360043516610855565b60408051918252519081900360200190f35b341561043d57fe5b61028d610874565b005b341561044f57fe5b61029f6108b7565b6040805160208082528351818301528351919283929083019185019080838382156102e5575b8051825260208311156102e557601f1990920191602091820191016102c5565b505050905090810190601f1680156103115780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104df57fe5b6103626108f8565b60408051918252519081900360200190f35b341561050157fe5b61033e600160a060020a03600435166024356108fe565b604080519115158252519081900360200190f35b341561053457fe5b61053c6109e1565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b341561056c57fe5b61033e600160a060020a03600435166109fe565b604080519115158252519081900360200190f35b341561059c57fe5b61033e610b27565b604080519115158252519081900360200190f35b34156105c057fe5b610362600160a060020a0360043581169060243516610b37565b60408051918252519081900360200190f35b6105f4610b64565b5060408051808201909152600981527f5363616d546f6b656e000000000000000000000000000000000000000000000060208201525b90565b600081158015906106625750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b1561066f575060006106d0565b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60035481565b60055481565b6000808080808060643610156106f85760006000fd5b8615156107085760009550610805565b50505050600160a060020a03858116600090815260016020818152604080842054600283528185203387168652835281852054958a16855292909152909120549092508483118015918684111591878201919091119083906107675750815b8015610771575080155b1561080057600160a060020a03808916600081815260016020908152604080832080548d0190558d851680845281842080548e90039055600283528184203390961684529482529182902080548c9003905581518b815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a360019550610805565b600095505b5b50505050509392505050565b60125b90565b60005433600160a060020a039081169116146108345760006000fd5b6000805474ff0000000000000000000000000000000000000000191690555b565b600160a060020a0381166000908152600160205260409020545b919050565b60005433600160a060020a039081169116146108905760006000fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790555b565b6108bf610b64565b5060408051808201909152600481527f5343414d0000000000000000000000000000000000000000000000000000000060208201525b90565b60045481565b600080808060443610156109125760006000fd5b84151561092257600093506109d7565b505050600160a060020a033381166000908152600160205260408082205492861682529020548382108015918086011090829061095d575080155b156109d257600160a060020a03338116600081815260016020908152604080832080548b90039055938a168083529184902080548a0190558351898152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600193506109d7565b600093505b5b50505092915050565b60035460055460045460005460a060020a900460ff165b90919293565b600080548190819033600160a060020a03908116911614610a1f5760006000fd5b83915081600160a060020a03166370a08231306000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1515610a8257fe5b60325a03f11515610a8f57fe5b505060408051805160008054602093840182905284517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0391821660048201526024810184905294519296508716945063a9059cbb936044808201949392918390030190829087803b1515610b0957fe5b60325a03f11515610b1657fe5b5050604051519350505b5050919050565b60005460a060020a900460ff1681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b604080516020810190915260008152905600a165627a7a72305820b8904dcd90352988d83e49853574845366136e875409bc8cfc50e9735d5262400029

Deployed Bytecode

0x606060405236156100ca5763ffffffff60e060020a60003504166306fdde03811461028f578063095ea7b31461031f5780630dcf4b8f1461035257806318160ddd1461037457806323b872dd14610396578063313ce567146103cf57806364acdb77146103f557806370a08231146104075780638f5809961461043557806395d89b411461044757806398b01fe3146104d7578063a9059cbb146104f9578063c59d48471461052c578063d690629514610564578063da040c0f14610594578063dd62ed3e146105b8575b61028d5b6000600060006000600060149054906101000a900460ff1615156100f25760006000fd5b3415156100fe57610287565b60008054604051600160a060020a03909116913480156108fc02929091818181858888f19350505050151561012f57fe5b6003805434908101909155606481029450662386f26fc100009010610224576003548401935060034143426000604051602001526040518084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182815260200193505050506020604051808303816000866161da5a03f115156101b957fe5b5050604051516c010000000000000000000000000292508260005b1a60f860020a027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916600060f860020a021415610224575050600480546127103402908101909155918201916064905b5b6005805485019055600160a060020a033381166000818152600160209081526040918290208054890190558151888152915192933016927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35b50505050565b005b341561029757fe5b61029f6105ec565b6040805160208082528351818301528351919283929083019185019080838382156102e5575b8051825260208311156102e557601f1990920191602091820191016102c5565b505050905090810190601f1680156103115780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032757fe5b61033e600160a060020a036004351660243561062d565b604080519115158252519081900360200190f35b341561035a57fe5b6103626106d6565b60408051918252519081900360200190f35b341561037c57fe5b6103626106dc565b60408051918252519081900360200190f35b341561039e57fe5b61033e600160a060020a03600435811690602435166044356106e2565b604080519115158252519081900360200190f35b34156103d757fe5b6103df610812565b6040805160ff9092168252519081900360200190f35b34156103fd57fe5b61028d610818565b005b341561040f57fe5b610362600160a060020a0360043516610855565b60408051918252519081900360200190f35b341561043d57fe5b61028d610874565b005b341561044f57fe5b61029f6108b7565b6040805160208082528351818301528351919283929083019185019080838382156102e5575b8051825260208311156102e557601f1990920191602091820191016102c5565b505050905090810190601f1680156103115780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104df57fe5b6103626108f8565b60408051918252519081900360200190f35b341561050157fe5b61033e600160a060020a03600435166024356108fe565b604080519115158252519081900360200190f35b341561053457fe5b61053c6109e1565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b341561056c57fe5b61033e600160a060020a03600435166109fe565b604080519115158252519081900360200190f35b341561059c57fe5b61033e610b27565b604080519115158252519081900360200190f35b34156105c057fe5b610362600160a060020a0360043581169060243516610b37565b60408051918252519081900360200190f35b6105f4610b64565b5060408051808201909152600981527f5363616d546f6b656e000000000000000000000000000000000000000000000060208201525b90565b600081158015906106625750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b1561066f575060006106d0565b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60035481565b60055481565b6000808080808060643610156106f85760006000fd5b8615156107085760009550610805565b50505050600160a060020a03858116600090815260016020818152604080842054600283528185203387168652835281852054958a16855292909152909120549092508483118015918684111591878201919091119083906107675750815b8015610771575080155b1561080057600160a060020a03808916600081815260016020908152604080832080548d0190558d851680845281842080548e90039055600283528184203390961684529482529182902080548c9003905581518b815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a360019550610805565b600095505b5b50505050509392505050565b60125b90565b60005433600160a060020a039081169116146108345760006000fd5b6000805474ff0000000000000000000000000000000000000000191690555b565b600160a060020a0381166000908152600160205260409020545b919050565b60005433600160a060020a039081169116146108905760006000fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790555b565b6108bf610b64565b5060408051808201909152600481527f5343414d0000000000000000000000000000000000000000000000000000000060208201525b90565b60045481565b600080808060443610156109125760006000fd5b84151561092257600093506109d7565b505050600160a060020a033381166000908152600160205260408082205492861682529020548382108015918086011090829061095d575080155b156109d257600160a060020a03338116600081815260016020908152604080832080548b90039055938a168083529184902080548a0190558351898152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600193506109d7565b600093505b5b50505092915050565b60035460055460045460005460a060020a900460ff165b90919293565b600080548190819033600160a060020a03908116911614610a1f5760006000fd5b83915081600160a060020a03166370a08231306000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1515610a8257fe5b60325a03f11515610a8f57fe5b505060408051805160008054602093840182905284517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0391821660048201526024810184905294519296508716945063a9059cbb936044808201949392918390030190829087803b1515610b0957fe5b60325a03f11515610b1657fe5b5050604051519350505b5050919050565b60005460a060020a900460ff1681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b604080516020810190915260008152905600a165627a7a72305820b8904dcd90352988d83e49853574845366136e875409bc8cfc50e9735d5262400029

Swarm Source

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