ETH Price: $3,443.38 (-0.99%)
Gas: 4 Gwei

Token

Simoleon (SIM)
 

Overview

Max Total Supply

100,000,000 SIM

Holders

569,432

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 2 Decimals)

Balance
10,000.1 SIM

Value
$0.00
0x4cc29dd2b01a3e0ed005c6e2deb5b3666e4c240c
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:
Simoleon

Compiler Version
v0.4.15+commit.bbb8e64f

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.8;

contract ERC20Interface {
    function totalSupply() public constant returns (uint256 supply);
    function balance() public constant returns (uint256);
    function balanceOf(address _owner) public constant returns (uint256);
    function transfer(address _to, uint256 _value) public returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
    function approve(address _spender, uint256 _value) public returns (bool success);
    function allowance(address _owner, address _spender) public 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 Simoleon is ERC20Interface {
    string public constant symbol = "SIM";
    string public constant name = "Simoleon";
    uint8 public constant decimals = 2;

    uint256 _totalSupply = 0;
    uint256 _airdropAmount = 1000000;
    uint256 _cutoff = _airdropAmount * 10000;

    mapping(address => uint256) balances;
    mapping(address => bool) initialized;

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

    function Simoleon() {
        initialized[msg.sender] = true;
        balances[msg.sender] = _airdropAmount * 1000;
        _totalSupply = balances[msg.sender];
    }

    function totalSupply() constant returns (uint256 supply) {
        return _totalSupply;
    }

    // What's my balance?
    function balance() constant returns (uint256) {
        return getBalance(msg.sender);
    }

    // What is the balance of a particular account?
    function balanceOf(address _address) constant returns (uint256) {
        return getBalance(_address);
    }

    // Transfer the balance from owner's account to another account
    function transfer(address _to, uint256 _amount) returns (bool success) {
        initialize(msg.sender);

        if (balances[msg.sender] >= _amount
            && _amount > 0) {
            initialize(_to);
            if (balances[_to] + _amount > balances[_to]) {

                balances[msg.sender] -= _amount;
                balances[_to] += _amount;

                Transfer(msg.sender, _to, _amount);

                return true;
            } else {
                return false;
            }
        } else {
            return false;
        }
    }

    // Send _value amount of tokens from address _from to address _to
    // The transferFrom method is used for a withdraw workflow, allowing contracts to send
    // tokens on your behalf, for example to "deposit" to a contract address and/or to charge
    // fees in sub-currencies; the command should fail unless the _from account has
    // deliberately authorized the sender of the message via some mechanism; we propose
    // these standardized APIs for approval:
    function transferFrom(address _from, address _to, uint256 _amount) returns (bool success) {
        initialize(_from);

        if (balances[_from] >= _amount
            && allowed[_from][msg.sender] >= _amount
            && _amount > 0) {
            initialize(_to);
            if (balances[_to] + _amount > balances[_to]) {

                balances[_from] -= _amount;
                allowed[_from][msg.sender] -= _amount;
                balances[_to] += _amount;

                Transfer(_from, _to, _amount);

                return true;
            } else {
                return false;
            }
        } 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;
    }

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

    // internal private functions
    function initialize(address _address) internal returns (bool success) {
        if (_totalSupply < _cutoff && !initialized[_address]) {
            initialized[_address] = true;
            balances[_address] = _airdropAmount;
            _totalSupply += _airdropAmount;
        }
        return true;
    }

    function getBalance(address _address) internal returns (uint256) {
        if (_totalSupply < _cutoff && !initialized[_address]) {
            return balances[_address] + _airdropAmount;
        }
        else {
            return balances[_address];
        }
    }
}

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":"supply","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":true,"inputs":[{"name":"_address","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"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":"balance","outputs":[{"name":"","type":"uint256"}],"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"},{"inputs":[],"payable":false,"type":"constructor"},{"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"}]

606060405260008055620f42406001556402540be400600255341561002357600080fd5b5b600160a060020a0333166000908152600460209081526040808320805460ff1916600190811790915554600390925282206103e89091029081905590555b5b6107bf806100726000396000f300606060405236156100a15763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a6578063095ea7b31461013157806318160ddd1461016757806323b872dd1461018c578063313ce567146101c857806370a08231146101f157806395d89b4114610222578063a9059cbb146102ad578063b69ef8a8146102e3578063dd62ed3e14610308575b600080fd5b34156100b157600080fd5b6100b961033f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f65780820151818401525b6020016100dd565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013c57600080fd5b610153600160a060020a0360043516602435610376565b604051901515815260200160405180910390f35b341561017257600080fd5b61017a6103e3565b60405190815260200160405180910390f35b341561019757600080fd5b610153600160a060020a03600435811690602435166044356103ea565b604051901515815260200160405180910390f35b34156101d357600080fd5b6101db610526565b60405160ff909116815260200160405180910390f35b34156101fc57600080fd5b61017a600160a060020a036004351661052b565b60405190815260200160405180910390f35b341561022d57600080fd5b6100b961053e565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f65780820151818401525b6020016100dd565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102b857600080fd5b610153600160a060020a0360043516602435610575565b604051901515815260200160405180910390f35b34156102ee57600080fd5b61017a610664565b60405190815260200160405180910390f35b341561031357600080fd5b61017a600160a060020a0360043581169060243516610675565b60405190815260200160405180910390f35b60408051908101604052600881527f53696d6f6c656f6e000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b6000545b90565b60006103f5846106a2565b50600160a060020a0384166000908152600360205260409020548290108015906104465750600160a060020a0380851660009081526005602090815260408083203390941683529290522054829010155b80156104525750600082115b1561050d57610460836106a2565b50600160a060020a038316600090815260036020526040902054828101111561050d57600160a060020a0380851660008181526003602081815260408084208054899003905560058252808420338716855282528084208054899003905594881680845291905290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600161051e565b50600061051e565b61051e565b5060005b5b9392505050565b600281565b600061053682610718565b90505b919050565b60408051908101604052600381527f53494d0000000000000000000000000000000000000000000000000000000000602082015281565b6000610580336106a2565b50600160a060020a0333166000908152600360205260409020548290108015906105aa5750600082115b15610648576105b8836106a2565b50600160a060020a038316600090815260036020526040902054828101111561064857600160a060020a033381166000818152600360205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016103dd565b5060006103dd565b6103dd565b5060006103dd565b5b92915050565b600061066f33610718565b90505b90565b600160a060020a038083166000908152600560209081526040808320938516835292905220545b92915050565b60006002546000541080156106d05750600160a060020a03821660009081526004602052604090205460ff16155b1561070f57600160a060020a0382166000908152600460209081526040808320805460ff19166001908117909155546003909252822081905581540190555b5060015b919050565b60006002546000541080156107465750600160a060020a03821660009081526004602052604090205460ff16155b1561076e5750600154600160a060020a03821660009081526003602052604090205401610539565b50600160a060020a038116600090815260036020526040902054610539565b5b9190505600a165627a7a7230582095aafab785a3f773bb2026c1df2e67a47de43ef53c864f5af9d8c6ccc622c10e0029

Deployed Bytecode

0x606060405236156100a15763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a6578063095ea7b31461013157806318160ddd1461016757806323b872dd1461018c578063313ce567146101c857806370a08231146101f157806395d89b4114610222578063a9059cbb146102ad578063b69ef8a8146102e3578063dd62ed3e14610308575b600080fd5b34156100b157600080fd5b6100b961033f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f65780820151818401525b6020016100dd565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013c57600080fd5b610153600160a060020a0360043516602435610376565b604051901515815260200160405180910390f35b341561017257600080fd5b61017a6103e3565b60405190815260200160405180910390f35b341561019757600080fd5b610153600160a060020a03600435811690602435166044356103ea565b604051901515815260200160405180910390f35b34156101d357600080fd5b6101db610526565b60405160ff909116815260200160405180910390f35b34156101fc57600080fd5b61017a600160a060020a036004351661052b565b60405190815260200160405180910390f35b341561022d57600080fd5b6100b961053e565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f65780820151818401525b6020016100dd565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102b857600080fd5b610153600160a060020a0360043516602435610575565b604051901515815260200160405180910390f35b34156102ee57600080fd5b61017a610664565b60405190815260200160405180910390f35b341561031357600080fd5b61017a600160a060020a0360043581169060243516610675565b60405190815260200160405180910390f35b60408051908101604052600881527f53696d6f6c656f6e000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b6000545b90565b60006103f5846106a2565b50600160a060020a0384166000908152600360205260409020548290108015906104465750600160a060020a0380851660009081526005602090815260408083203390941683529290522054829010155b80156104525750600082115b1561050d57610460836106a2565b50600160a060020a038316600090815260036020526040902054828101111561050d57600160a060020a0380851660008181526003602081815260408084208054899003905560058252808420338716855282528084208054899003905594881680845291905290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600161051e565b50600061051e565b61051e565b5060005b5b9392505050565b600281565b600061053682610718565b90505b919050565b60408051908101604052600381527f53494d0000000000000000000000000000000000000000000000000000000000602082015281565b6000610580336106a2565b50600160a060020a0333166000908152600360205260409020548290108015906105aa5750600082115b15610648576105b8836106a2565b50600160a060020a038316600090815260036020526040902054828101111561064857600160a060020a033381166000818152600360205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016103dd565b5060006103dd565b6103dd565b5060006103dd565b5b92915050565b600061066f33610718565b90505b90565b600160a060020a038083166000908152600560209081526040808320938516835292905220545b92915050565b60006002546000541080156106d05750600160a060020a03821660009081526004602052604090205460ff16155b1561070f57600160a060020a0382166000908152600460209081526040808320805460ff19166001908117909155546003909252822081905581540190555b5060015b919050565b60006002546000541080156107465750600160a060020a03821660009081526004602052604090205460ff16155b1561076e5750600154600160a060020a03821660009081526003602052604090205401610539565b50600160a060020a038116600090815260036020526040902054610539565b5b9190505600a165627a7a7230582095aafab785a3f773bb2026c1df2e67a47de43ef53c864f5af9d8c6ccc622c10e0029

Swarm Source

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