ETH Price: $2,418.33 (+1.69%)

Token

MBCash (MBCASH)
 

Overview

Max Total Supply

21,000,000 MBCASH

Holders

567 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
55 MBCASH

Value
$0.00
0xcb09dd548fd9791c7e7ab425adb1b1577b8431aa
Loading...
Loading
Loading...
Loading
Loading...
Loading

ICO Information

ICO Start Date : Sep 3rd, 2018  
ICO End Date : Sep 30th, 2018
Total Cap : 25000
ICO Price  : 0.00005 ETH
Country : Pakistan

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MBCash

Compiler Version
v0.4.24-nightly.2018.5.16+commit.7f965c86

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.19;

interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }

contract MBCash {
    // Public variables of the token
    string public name = "MBCash";
    string public symbol = "MBCASH";
    uint8 public decimals = 18;
    // 18 decimals is the strongly suggested default
    uint256 public totalSupply;
    uint256 public MBCashSupply = 21000000;
    uint256 public buyPrice = 55000;
    address public creator;
    // This creates an array with all balances
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    // This generates a public event on the blockchain that will notify clients
    event Transfer(address indexed from, address indexed to, uint256 value);
    event FundTransfer(address backer, uint amount, bool isContribution);
    
    
    /**
     * Constrctor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    function MBCash() public {
        totalSupply = MBCashSupply * 10 ** uint256(decimals);  // Update total supply with the decimal amount
        balanceOf[msg.sender] = totalSupply;    // Give MBCASHNet Mint the total created tokens
        creator = msg.sender;
    }
    /**
     * Internal transfer, only can be called by this contract
     */
    function _transfer(address _from, address _to, uint _value) internal {
        // Prevent transfer to 0x0 address. Use burn() instead
        require(_to != 0x0);
        // Check if the sender has enough
        require(balanceOf[_from] >= _value);
        // Check for overflows
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        // Subtract from the sender
        balanceOf[_from] -= _value;
        // Add the same to the recipient
        balanceOf[_to] += _value;
        Transfer(_from, _to, _value);
      
    }

    /**
     * Transfer tokens
     *
     * Send `_value` tokens to `_to` from your account
     *
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transfer(address _to, uint256 _value) public {
        _transfer(msg.sender, _to, _value);
    }

    
    
    /// @notice Buy tokens from contract by sending ether
    function () payable internal {
        uint amount = msg.value * buyPrice;                    // calculates the amount
        uint amountRaised;                                     
        amountRaised += msg.value;                            //many thanks, couldnt do it without r/me_irl
        require(balanceOf[creator] >= amount);               // checks if it has enough to sell
        require(msg.value < 10**17);                        // so any person who wants to put more then 0.1 ETH has time to think about what they are doing
        balanceOf[msg.sender] += amount;                  // adds the amount to buyer's balance
        balanceOf[creator] -= amount;                        // sends ETH to MBCashNet Mint
        Transfer(creator, msg.sender, amount);               // execute an event reflecting the change
        creator.transfer(amountRaised);
    }

 }

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MBCashSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","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":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]

60c0604052600660808190527f4d4243617368000000000000000000000000000000000000000000000000000060a090815261003e91600091906100eb565b506040805180820190915260068082527f4d424341534800000000000000000000000000000000000000000000000000006020909201918252610083916001916100eb565b506002805460ff191660121790556301406f4060045561d6d86005553480156100ab57600080fd5b5060025460045460ff909116600a0a0260038190553360008181526007602052604090209190915560068054600160a060020a0319169091179055610186565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012c57805160ff1916838001178555610159565b82800160010185558215610159579182015b8281111561015957825182559160200191906001019061013e565b50610165929150610169565b5090565b61018391905b80821115610165576000815560010161016f565b90565b610593806101956000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461019057806306fdde03146101c157806318160ddd1461024b578063313ce567146102725780635d705fe21461029d57806370a08231146102b25780638620410b146102d357806395d89b41146102e8578063a9059cbb146102fd578063dd62ed3e14610323575b600554600654600160a060020a03166000908152600760205260409020543491820291908211156100d357600080fd5b67016345785d8a000034106100e757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561018b573d6000803e3d6000fd5b505050005b34801561019c57600080fd5b506101a561034a565b60408051600160a060020a039092168252519081900360200190f35b3480156101cd57600080fd5b506101d6610359565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b506102606103e7565b60408051918252519081900360200190f35b34801561027e57600080fd5b506102876103ed565b6040805160ff9092168252519081900360200190f35b3480156102a957600080fd5b506102606103f6565b3480156102be57600080fd5b50610260600160a060020a03600435166103fc565b3480156102df57600080fd5b5061026061040e565b3480156102f457600080fd5b506101d6610414565b34801561030957600080fd5b50610321600160a060020a036004351660243561046e565b005b34801561032f57600080fd5b50610260600160a060020a036004358116906024351661047d565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b820191906000526020600020905b8154815290600101906020018083116103c257829003601f168201915b505050505081565b60035481565b60025460ff1681565b60045481565b60076020526000908152604090205481565b60055481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b61047933838361049a565b5050565b600860209081526000928352604080842090915290825290205481565b600160a060020a03821615156104af57600080fd5b600160a060020a0383166000908152600760205260409020548111156104d457600080fd5b600160a060020a03821660009081526007602052604090205481810110156104fb57600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a72305820f7f9ad4ca21636869bea5de1ee0d061a1f104583890aa6cb0d6d9ebe6106bb240029

Deployed Bytecode

0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461019057806306fdde03146101c157806318160ddd1461024b578063313ce567146102725780635d705fe21461029d57806370a08231146102b25780638620410b146102d357806395d89b41146102e8578063a9059cbb146102fd578063dd62ed3e14610323575b600554600654600160a060020a03166000908152600760205260409020543491820291908211156100d357600080fd5b67016345785d8a000034106100e757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561018b573d6000803e3d6000fd5b505050005b34801561019c57600080fd5b506101a561034a565b60408051600160a060020a039092168252519081900360200190f35b3480156101cd57600080fd5b506101d6610359565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b506102606103e7565b60408051918252519081900360200190f35b34801561027e57600080fd5b506102876103ed565b6040805160ff9092168252519081900360200190f35b3480156102a957600080fd5b506102606103f6565b3480156102be57600080fd5b50610260600160a060020a03600435166103fc565b3480156102df57600080fd5b5061026061040e565b3480156102f457600080fd5b506101d6610414565b34801561030957600080fd5b50610321600160a060020a036004351660243561046e565b005b34801561032f57600080fd5b50610260600160a060020a036004358116906024351661047d565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b820191906000526020600020905b8154815290600101906020018083116103c257829003601f168201915b505050505081565b60035481565b60025460ff1681565b60045481565b60076020526000908152604090205481565b60055481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b61047933838361049a565b5050565b600860209081526000928352604080842090915290825290205481565b600160a060020a03821615156104af57600080fd5b600160a060020a0383166000908152600760205260409020548111156104d457600080fd5b600160a060020a03821660009081526007602052604090205481810110156104fb57600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a72305820f7f9ad4ca21636869bea5de1ee0d061a1f104583890aa6cb0d6d9ebe6106bb240029

Swarm Source

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