Contract 0xc84552187ddCAaCa33145E1103ca21101241aFFe

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf5fc7f6940c044f0fb882dda63c6a1a0effdd79e6bff783b7f16194c9d4dad3fTransfer88673912021-07-04 17:05:22202 days 15 hrs ago0x2e8b26ce8ef46d5199d9e13a74e2bfde4fade180 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.026 BNB0.00041379
0xf4955eab5b6536bf5cea270e24d111579610f187853156d4be24be273702a830Transfer88672702021-07-04 16:59:18202 days 15 hrs ago0xdb2be92ebac73101a23f6a5871fecb709ed56c26 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.04 BNB0.00033879
0x19a32679fbded8b9c10ecfcf4d245adb24c30b55b2b7734cc21fb44bfaf6185dTransfer88648092021-07-04 14:56:08202 days 17 hrs ago0xdb2be92ebac73101a23f6a5871fecb709ed56c26 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.01 BNB0.00041379
0xd65dd4d828c86daf5abe3adedd8c4d829f8923724351fdbdfa05508956d788a1Buy Tokens87744842021-07-01 10:58:14205 days 21 hrs ago0xb8e164659c569bb17d03958266312a4fc5f31e88 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.05 BNB0.0004171
0x9a5d45feab325b9b9b695af7cd51f6ab5577e561db70229c647324e1aaccc0e2Buy Tokens87744342021-07-01 10:55:31205 days 21 hrs ago0xb8e164659c569bb17d03958266312a4fc5f31e88 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.05 BNB0.0004171
0xbe24dc83cd3c9a3e1dc7bda87b1c7b88ddd0ae7c603e0089661a65cc2e4c0ea7Buy Tokens87740372021-07-01 10:34:47205 days 22 hrs ago0xb8e164659c569bb17d03958266312a4fc5f31e88 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.05 BNB0.0004171
0x44d5f0bf8b130a6ca81047aa4bda3842ff86fc0c1cef630a4714492b7a3684aaBuy Tokens87739932021-07-01 10:32:35205 days 22 hrs ago0xb8e164659c569bb17d03958266312a4fc5f31e88 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.05 BNB0.0004171
0x6d1218e344c7d17cde3d4e91ecac0f3a3a6fd9d31a9f6fa8b1c227c43b4520e9Buy Tokens80922982021-06-07 14:58:08229 days 17 hrs ago0xb8e164659c569bb17d03958266312a4fc5f31e88 IN  0xc84552187ddcaaca33145e1103ca21101241affe0.02 BNB0.0004921
[ Download CSV Export 
Latest 9 internal transactions
Parent Txn Hash Block From To Value
0xf5fc7f6940c044f0fb882dda63c6a1a0effdd79e6bff783b7f16194c9d4dad3f88673912021-07-04 17:05:22202 days 15 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.026 BNB
0xf4955eab5b6536bf5cea270e24d111579610f187853156d4be24be273702a83088672702021-07-04 16:59:18202 days 15 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.04 BNB
0x19a32679fbded8b9c10ecfcf4d245adb24c30b55b2b7734cc21fb44bfaf6185d88648092021-07-04 14:56:08202 days 17 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.01 BNB
0xd65dd4d828c86daf5abe3adedd8c4d829f8923724351fdbdfa05508956d788a187744842021-07-01 10:58:14205 days 21 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.05 BNB
0x9a5d45feab325b9b9b695af7cd51f6ab5577e561db70229c647324e1aaccc0e287744342021-07-01 10:55:31205 days 21 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.05 BNB
0xbe24dc83cd3c9a3e1dc7bda87b1c7b88ddd0ae7c603e0089661a65cc2e4c0ea787740372021-07-01 10:34:47205 days 22 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.05 BNB
0x44d5f0bf8b130a6ca81047aa4bda3842ff86fc0c1cef630a4714492b7a3684aa87739932021-07-01 10:32:35205 days 22 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.05 BNB
0x6d1218e344c7d17cde3d4e91ecac0f3a3a6fd9d31a9f6fa8b1c227c43b4520e980922982021-06-07 14:58:08229 days 17 hrs ago 0xc84552187ddcaaca33145e1103ca21101241affe0xb8e164659c569bb17d03958266312a4fc5f31e880.02 BNB
0xa4bf03df01562c141c8e9ed99ff3fdfed2a6ea6540e6dc5236c2a1587e16137280912282021-06-07 14:04:37229 days 18 hrs ago 0x8cf9fb705ddd8ef2b34a65ae1b8b436d6d2b3978  Contract Creation0 BNB
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x54e9c08860b79E878AFCA5e07617a00D7B1b2a23

Contract Name:
CrowdsaleBluemoon

Compiler Version
v0.5.7+commit.6da8b019

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-06-02
*/

/**

WPSmartContracts.com

Blockchain Made Easy

http://wpsmartcontracts.com/

*/

pragma solidity ^0.5.7;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is IERC20 {

    using SafeMath for uint256;

    /*
    NOTE:
    The following variables are OPTIONAL vanities. One does not have to include them.
    They allow one to customise the token contract & in no way influences the core functionality.
    Some wallets/interfaces might not even bother to look at this information.
    */
    string public name;                   //fancy name: eg Simon Bucks
    uint8 public decimals;                //How many decimals to show.
    string public symbol;                 //An identifier: eg SBX

    constructor(string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol) public {
        name = _tokenName;                                   // Set the name for display purposes
        decimals = _decimalUnits;                            // Amount of decimals for display purposes
        symbol = _tokenSymbol;                               // Set the symbol for display purposes
    }

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `value`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount);
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

     /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 value) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        _totalSupply = _totalSupply.sub(value);
        _balances[account] = _balances[account].sub(value);
        emit Transfer(account, address(0), value);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    /**
     * @dev Destoys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount));
    }
}

contract MinterRole {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(msg.sender);
    }

    modifier onlyMinter() {
        require(isMinter(msg.sender), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(msg.sender);
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

/**
 * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},
 * which have permission to mint (create) new tokens as they see fit.
 *
 * At construction, the deployer of the contract is the only minter.
 */
contract ERC20Mintable is ERC20, MinterRole {
    /**
     * @dev See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the {MinterRole}.
     */
    constructor (string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol,
        address initialAccount, uint256 initialBalance) public
        ERC20(_tokenName, _decimalUnits, _tokenSymbol)
    {
        _mint(initialAccount, initialBalance);
    }

    function mint(address account, uint256 amount) public onlyMinter returns (bool) {
        _mint(account, amount);
        return true;
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    // counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * IMPORTANT: It is unsafe to assume that an address for which this
     * function returns false is an externally-owned account (EOA) and not a
     * contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.
        
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * @title Crowdsale
 * @dev Crowdsale is a base contract for managing a token crowdsale,
 * allowing investors to purchase tokens with ether. This contract implements
 * such functionality in its most fundamental form and can be extended to provide additional
 * functionality and/or custom behavior.
 * The external interface represents the basic interface for purchasing tokens, and conforms
 * the base architecture for crowdsales. It is *not* intended to be modified / overridden.
 * The internal interface conforms the extensible and modifiable surface of crowdsales. Override
 * the methods to add functionality. Consider using 'super' where appropriate to concatenate
 * behavior.
 */
contract Crowdsale is ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // The token being sold
    IERC20 private _token;

    // Address where funds are collected
    address payable private _wallet;

    // How many token units a buyer gets per wei.
    // The rate is the conversion between wei and the smallest and indivisible token unit.
    // So, if you are using a rate of 1 with a ERC20Detailed token with 3 decimals called TOK
    // 1 wei will give you 1 unit, or 0.001 TOK.
    uint256 private _rate;

    // Amount of wei raised
    uint256 private _weiRaised;

    /**
     * Event for token purchase logging
     * @param purchaser who paid for the tokens
     * @param beneficiary who got the tokens
     * @param value weis paid for purchase
     * @param amount amount of tokens purchased
     */
    event TokensPurchased(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount);

    /**
     * @param rate Number of token units a buyer gets per wei
     * @dev The rate is the conversion between wei and the smallest and indivisible
     * token unit. So, if you are using a rate of 1 with a ERC20Detailed token
     * with 3 decimals called TOK, 1 wei will give you 1 unit, or 0.001 TOK.
     * @param wallet Address where collected funds will be forwarded to
     * @param token Address of the token being sold
     */
    constructor (uint256 rate, address payable wallet, IERC20 token) public {
        require(rate > 0, "Crowdsale: rate is 0");
        require(wallet != address(0), "Crowdsale: wallet is the zero address");
        require(address(token) != address(0), "Crowdsale: token is the zero address");

        _rate = rate;
        _wallet = wallet;
        _token = token;
    }

    /**
     * @dev fallback function ***DO NOT OVERRIDE***
     * Note that other contracts will transfer funds with a base gas stipend
     * of 2300, which is not enough to call buyTokens. Consider calling
     * buyTokens directly when purchasing tokens from a contract.
     */
    function () external payable {
        buyTokens(msg.sender);
    }

    /**
     * @return the token being sold.
     */
    function token() public view returns (IERC20) {
        return _token;
    }

    /**
     * @return the address where funds are collected.
     */
    function wallet() public view returns (address payable) {
        return _wallet;
    }

    /**
     * @return the number of token units a buyer gets per wei.
     */
    function rate() public view returns (uint256) {
        return _rate;
    }

    /**
     * @return the amount of wei raised.
     */
    function weiRaised() public view returns (uint256) {
        return _weiRaised;
    }

    /**
     * @dev low level token purchase ***DO NOT OVERRIDE***
     * This function has a non-reentrancy guard, so it shouldn't be called by
     * another `nonReentrant` function.
     * @param beneficiary Recipient of the token purchase
     */
    function buyTokens(address beneficiary) public nonReentrant payable {
        uint256 weiAmount = msg.value;
        _preValidatePurchase(beneficiary, weiAmount);

        // calculate token amount to be created
        uint256 tokens = _getTokenAmount(weiAmount);

        // update state
        _weiRaised = _weiRaised.add(weiAmount);

        _processPurchase(beneficiary, tokens);
        emit TokensPurchased(msg.sender, beneficiary, weiAmount, tokens);

        _updatePurchasingState(beneficiary, weiAmount);

        _forwardFunds();
        _postValidatePurchase(beneficiary, weiAmount);
    }

    /**
     * @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met.
     * Use `super` in contracts that inherit from Crowdsale to extend their validations.
     * Example from CappedCrowdsale.sol's _preValidatePurchase method:
     *     super._preValidatePurchase(beneficiary, weiAmount);
     *     require(weiRaised().add(weiAmount) <= cap);
     * @param beneficiary Address performing the token purchase
     * @param weiAmount Value in wei involved in the purchase
     */
    function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view {
        require(beneficiary != address(0), "Crowdsale: beneficiary is the zero address");
        require(weiAmount != 0, "Crowdsale: weiAmount is 0");
    }

    /**
     * @dev Validation of an executed purchase. Observe state and use revert statements to undo rollback when valid
     * conditions are not met.
     * @param beneficiary Address performing the token purchase
     * @param weiAmount Value in wei involved in the purchase
     */
    function _postValidatePurchase(address beneficiary, uint256 weiAmount) internal view {
        // solhint-disable-previous-line no-empty-blocks
    }

    /**
     * @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends
     * its tokens.
     * @param beneficiary Address performing the token purchase
     * @param tokenAmount Number of tokens to be emitted
     */
    function _deliverTokens(address beneficiary, uint256 tokenAmount) internal {
        _token.safeTransfer(beneficiary, tokenAmount);
    }

    /**
     * @dev Executed when a purchase has been validated and is ready to be executed. Doesn't necessarily emit/send
     * tokens.
     * @param beneficiary Address receiving the tokens
     * @param tokenAmount Number of tokens to be purchased
     */
    function _processPurchase(address beneficiary, uint256 tokenAmount) internal {
        _deliverTokens(beneficiary, tokenAmount);
    }

    /**
     * @dev Override for extensions that require an internal state to check for validity (current user contributions,
     * etc.)
     * @param beneficiary Address receiving the tokens
     * @param weiAmount Value in wei involved in the purchase
     */
    function _updatePurchasingState(address beneficiary, uint256 weiAmount) internal {
        // solhint-disable-previous-line no-empty-blocks
    }

    /**
     * @dev Override to extend the way in which ether is converted to tokens.
     * @param weiAmount Value in wei to be converted into tokens
     * @return Number of tokens that can be purchased with the specified _weiAmount
     */
    function _getTokenAmount(uint256 weiAmount) internal view returns (uint256) {
        return weiAmount.mul(_rate);
    }

    /**
     * @dev Determines how ETH is stored/forwarded on purchases.
     */
    function _forwardFunds() internal {
        _wallet.transfer(msg.value);
    }
}

/**
 * @title MintedCrowdsale
 * @dev Extension of Crowdsale contract whose tokens are minted in each purchase.
 * Token ownership should be transferred to MintedCrowdsale for minting.
 */
contract MintedCrowdsale is Crowdsale {
    /**
     * @dev Overrides delivery by minting tokens upon purchase.
     * @param beneficiary Token purchaser
     * @param tokenAmount Number of tokens to be minted
     */
    function _deliverTokens(address beneficiary, uint256 tokenAmount) internal {
        // Potentially dangerous assumption about the type of the token.
        require(
            ERC20Mintable(address(token())).mint(beneficiary, tokenAmount),
                "MintedCrowdsale: minting failed"
        );
    }
}

/**
 * @title CappedCrowdsale
 * @dev Crowdsale with a limit for total contributions.
 */
contract CappedCrowdsale is Crowdsale {
    using SafeMath for uint256;

    uint256 private _cap;

    bool private _cappedActive;

    /**
     * @dev Constructor, takes maximum amount of wei accepted in the crowdsale.
     * @param cap Max amount of wei to be contributed
     */
    constructor (bool _active, uint256 cap) public {

        // set if capped is active or not
        _setCappedActive(_active);

        // validate only if capped
        if (_active) {
            require(cap > 0, "CappedCrowdsale: cap is 0");
        }
        _cap = cap;

    }

    /**
     * @return the cap of the crowdsale.
     */
    function cap() public view returns (uint256) {
        return _cap;
    }

    /**
     * @dev Checks whether the cap has been reached.
     * @return Whether the cap was reached
     */
    function capReached() public view returns (bool) {
        return weiRaised() >= _cap;
    }

    /**
     * @dev Extend parent behavior requiring purchase to respect the funding cap.
     * @param beneficiary Token purchaser
     * @param weiAmount Amount of wei contributed
     */
    function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view {
        super._preValidatePurchase(beneficiary, weiAmount);
        if (_cappedActive) {
            require(weiRaised().add(weiAmount) <= _cap, "CappedCrowdsale: cap exceeded");
        }
    }

    /**
     * Activate or deactivate capped functionality on contract creation
     */
    function _setCappedActive(bool _active) internal {
        _cappedActive = _active;
    }

}

/**
 * @title TimedCrowdsale
 * @dev Crowdsale accepting contributions only within a time frame.
 */
contract TimedCrowdsale is Crowdsale {
    using SafeMath for uint256;

    uint256 private _openingTime;
    uint256 private _closingTime;

    bool private _timedActive;

    /**
     * Event for crowdsale extending
     * @param newClosingTime new closing time
     * @param prevClosingTime old closing time
     */
    event TimedCrowdsaleExtended(uint256 prevClosingTime, uint256 newClosingTime);

    /**
     * @dev Reverts if not in crowdsale time range.
     */
    modifier onlyWhileOpen {
        // limit timed activity only if timed flag is active
        if (_timedActive) {
            require(isOpen(), "TimedCrowdsale: not open");
        }
        _;
    }

    /**
     * @dev Constructor, takes crowdsale opening and closing times.
     * @param openingTime Crowdsale opening time
     * @param closingTime Crowdsale closing time
     */
    constructor (bool isTimed, uint256 openingTime, uint256 closingTime) public {

        // set flag
        _setTimedActive(isTimed);

        // validate times only if active
        if (isTimed) {

            // solhint-disable-next-line not-rely-on-time
            require(openingTime >= block.timestamp, "TimedCrowdsale: opening time is before current time");
            // solhint-disable-next-line max-line-length
            require(closingTime > openingTime, "TimedCrowdsale: opening time is not before closing time");

        }

        _openingTime = openingTime;
        _closingTime = closingTime;
    }

    /**
     * @return the crowdsale opening time.
     */
    function openingTime() public view returns (uint256) {
        return _openingTime;
    }

    /**
     * @return the crowdsale closing time.
     */
    function closingTime() public view returns (uint256) {
        return _closingTime;
    }

    /**
     * @return true if the crowdsale is open, false otherwise.
     */
    function isOpen() public view returns (bool) {
        // solhint-disable-next-line not-rely-on-time
        return block.timestamp >= _openingTime && block.timestamp <= _closingTime;
    }

    /**
     * @dev Checks whether the period in which the crowdsale is open has already elapsed.
     * @return Whether crowdsale period has elapsed
     */
    function hasClosed() public view returns (bool) {
        // solhint-disable-next-line not-rely-on-time
        return block.timestamp > _closingTime;
    }

    /**
     * @dev Extend parent behavior requiring to be within contributing period.
     * @param beneficiary Token purchaser
     * @param weiAmount Amount of wei contributed
     */
    function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal onlyWhileOpen view {
        super._preValidatePurchase(beneficiary, weiAmount);
    }

    /**
     * @dev Extend crowdsale.
     * @param newClosingTime Crowdsale closing time
     */
    function _extendTime(uint256 newClosingTime) internal {
        require(!hasClosed(), "TimedCrowdsale: already closed");
        // solhint-disable-next-line max-line-length
        require(newClosingTime > _closingTime, "TimedCrowdsale: new closing time is before current closing time");

        emit TimedCrowdsaleExtended(_closingTime, newClosingTime);
        _closingTime = newClosingTime;
    }

    /**
     * @dev Options to activate or deactivate Timed ability
     */
    function _setTimedActive(bool _active) internal {
        _timedActive = _active;
    }

}

contract CrowdsaleBluemoon is MintedCrowdsale, CappedCrowdsale, TimedCrowdsale {

    constructor (uint256 rate, address payable wallet, ERC20Mintable token,
        bool _isCapped, uint256 _cap,
        bool _isTimed, uint256 _openingTime, uint256 _closingTime
    ) public
        Crowdsale(rate, wallet, token)
        CappedCrowdsale(_isCapped, _cap)
        TimedCrowdsale(_isTimed, _openingTime, _closingTime)
    {
        // solhint-disable-previous-line no-empty-blocks
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"hasClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOpen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"closingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"capReached","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"openingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"rate","type":"uint256"},{"name":"wallet","type":"address"},{"name":"token","type":"address"},{"name":"_isCapped","type":"bool"},{"name":"_cap","type":"uint256"},{"name":"_isTimed","type":"bool"},{"name":"_openingTime","type":"uint256"},{"name":"_closingTime","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"prevClosingTime","type":"uint256"},{"indexed":false,"name":"newClosingTime","type":"uint256"}],"name":"TimedCrowdsaleExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"purchaser","type":"address"},{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"TokensPurchased","type":"event"}]

608060405234801561001057600080fd5b5060405161010080610fef833981018060405261010081101561003257600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505082828287878c8c8c60016000819055506000831161010f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f43726f776473616c653a2072617465206973203000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610195576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610fca6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561021b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610fa66024913960400191505060405180910390fd5b8260038190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506102b68261042160201b60201c565b81156103335760008111610332576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f43617070656443726f776473616c653a2063617020697320300000000000000081525060200191505060405180910390fd5b5b80600581905550505061034b8361043e60201b60201c565b821561040357428210156103aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526033815260200180610f3c6033913960400191505060405180910390fd5b818111610402576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180610f6f6037913960400191505060405180910390fd5b5b8160078190555080600881905550505050505050505050505061045b565b80600660006101000a81548160ff02191690831515021790555050565b80600960006101000a81548160ff02191690831515021790555050565b610ad28061046a6000396000f3fe60806040526004361061009c5760003560e01c80634b6753bc116100645780634b6753bc146101865780634f935945146101b1578063521eb273146101e0578063b7a8807c14610237578063ec8ac4d814610262578063fc0c546a146102a65761009c565b80631515bc2b146100a75780632c4e722e146100d6578063355274ea146101015780634042b66f1461012c57806347535d7b14610157575b6100a5336102fd565b005b3480156100b357600080fd5b506100bc61045a565b604051808215151515815260200191505060405180910390f35b3480156100e257600080fd5b506100eb610466565b6040518082815260200191505060405180910390f35b34801561010d57600080fd5b50610116610470565b6040518082815260200191505060405180910390f35b34801561013857600080fd5b5061014161047a565b6040518082815260200191505060405180910390f35b34801561016357600080fd5b5061016c610484565b604051808215151515815260200191505060405180910390f35b34801561019257600080fd5b5061019b61049f565b6040518082815260200191505060405180910390f35b3480156101bd57600080fd5b506101c66104a9565b604051808215151515815260200191505060405180910390f35b3480156101ec57600080fd5b506101f56104bd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024357600080fd5b5061024c6104e7565b6040518082815260200191505060405180910390f35b6102a46004803603602081101561027857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102fd565b005b3480156102b257600080fd5b506102bb6104f1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160008082825401925050819055506000805490506000349050610322838261051b565b600061032d826105b9565b9050610344826004546105d790919063ffffffff16565b600481905550610354848261065f565b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f6faf93231a456e552dbc9961f58d9713ee4f2e69d15f1975b050ef0911053a7b8484604051808381526020018281526020019250505060405180910390a36103cb848361066d565b6103d3610671565b6103dd84836106dc565b50506000548114610456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60006008544211905090565b6000600354905090565b6000600554905090565b6000600454905090565b6000600754421015801561049a57506008544211155b905090565b6000600854905090565b60006005546104b661047a565b1015905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600754905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900460ff16156105ab57610538610484565b6105aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f54696d656443726f776473616c653a206e6f74206f70656e000000000000000081525060200191505060405180910390fd5b5b6105b582826106e0565b5050565b60006105d06003548361079590919063ffffffff16565b9050919050565b600080828401905083811015610655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b610669828261081b565b5050565b5050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156106d9573d6000803e3d6000fd5b50565b5050565b6106ea828261095a565b600660009054906101000a900460ff16156107915760055461071c8261070e61047a565b6105d790919063ffffffff16565b1115610790576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f43617070656443726f776473616c653a2063617020657863656564656400000081525060200191505060405180910390fd5b5b5050565b6000808314156107a85760009050610815565b60008284029050828482816107b957fe5b0414610810576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610a5c6021913960400191505060405180910390fd5b809150505b92915050565b6108236104f1565b73ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156108a957600080fd5b505af11580156108bd573d6000803e3d6000fd5b505050506040513d60208110156108d357600080fd5b8101908080519060200190929190505050610956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4d696e74656443726f776473616c653a206d696e74696e67206661696c65640081525060200191505060405180910390fd5b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156109e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180610a7d602a913960400191505060405180910390fd5b6000811415610a57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f43726f776473616c653a20776569416d6f756e7420697320300000000000000081525060200191505060405180910390fd5b505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743726f776473616c653a2062656e656669636961727920697320746865207a65726f2061646472657373a165627a7a723058203f0e7b5ec7a7ec9238bd53ee1656c7b2fd1494dc40ef4c469172329645ddf795002954696d656443726f776473616c653a206f70656e696e672074696d65206973206265666f72652063757272656e742074696d6554696d656443726f776473616c653a206f70656e696e672074696d65206973206e6f74206265666f726520636c6f73696e672074696d6543726f776473616c653a20746f6b656e20697320746865207a65726f206164647265737343726f776473616c653a2077616c6c657420697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bf112617bf6de09aa276249356a74e456226fe4e000000000000000000000000a2182a7ed365d11f436dd3339e2dafebbc42b46000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

38662:500:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27930:21;27940:10;27930:9;:21::i;:::-;38662:500;37433:159;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37433:159:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;28361:77;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28361:77:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34046:75;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34046:75:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28506:87;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28506:87:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37071:192;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37071:192:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;36890:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36890:91:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34245:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34245:94:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;28182:89;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28182:89:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;36729:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36729:91:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28858:620;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;28858:620:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;28023:78;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28023:78:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;28858:620;19551:1;19534:13;;:18;;;;;;;;;;;19563:20;19586:13;;19563:36;;28937:17;28957:9;28937:29;;28977:44;28998:11;29011:9;28977:20;:44::i;:::-;29083:14;29100:26;29116:9;29100:15;:26::i;:::-;29083:43;;29177:25;29192:9;29177:10;;:14;;:25;;;;:::i;:::-;29164:10;:38;;;;29215:37;29232:11;29245:6;29215:16;:37::i;:::-;29296:11;29268:59;;29284:10;29268:59;;;29309:9;29320:6;29268:59;;;;;;;;;;;;;;;;;;;;;;;;29340:46;29363:11;29376:9;29340:22;:46::i;:::-;29399:15;:13;:15::i;:::-;29425:45;29447:11;29460:9;29425:21;:45::i;:::-;19610:1;;19646:13;;19630:12;:29;19622:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28858:620;;:::o;37433:159::-;37475:4;37572:12;;37554:15;:30;37547:37;;37433:159;:::o;28361:77::-;28398:7;28425:5;;28418:12;;28361:77;:::o;34046:75::-;34082:7;34109:4;;34102:11;;34046:75;:::o;28506:87::-;28548:7;28575:10;;28568:17;;28506:87;:::o;37071:192::-;37110:4;37208:12;;37189:15;:31;;:66;;;;;37243:12;;37224:15;:31;;37189:66;37182:73;;37071:192;:::o;36890:91::-;36934:7;36961:12;;36954:19;;36890:91;:::o;34245:94::-;34288:4;34327;;34312:11;:9;:11::i;:::-;:19;;34305:26;;34245:94;:::o;28182:89::-;28221:15;28256:7;;;;;;;;;;;28249:14;;28182:89;:::o;36729:91::-;36773:7;36800:12;;36793:19;;36729:91;:::o;28023:78::-;28061:6;28087;;;;;;;;;;;28080:13;;28023:78;:::o;37792:167::-;35724:12;;;;;;;;;;;35720:90;;;35761:8;:6;:8::i;:::-;35753:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35720:90;37901:50;37928:11;37941:9;37901:26;:50::i;:::-;37792:167;;:::o;32249:122::-;32316:7;32343:20;32357:5;;32343:9;:13;;:20;;;;:::i;:::-;32336:27;;32249:122;;;:::o;4739:181::-;4797:7;4817:9;4833:1;4829;:5;4817:17;;4858:1;4853;:6;;4845:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4911:1;4904:8;;;4739:181;;;;:::o;31432:136::-;31520:40;31535:11;31548;31520:14;:40::i;:::-;31432:136;;:::o;31846:147::-;;;:::o;32463:80::-;32508:7;;;;;;;;;;;:16;;:27;32525:9;32508:27;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32508:27:0;32463:80::o;30580:151::-;;;:::o;34542:285::-;34637:50;34664:11;34677:9;34637:26;:50::i;:::-;34702:13;;;;;;;;;;;34698:122;;;34770:4;;34740:26;34756:9;34740:11;:9;:11::i;:::-;:15;;:26;;;;:::i;:::-;:34;;34732:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34698:122;34542:285;;:::o;5630:470::-;5688:7;5937:1;5932;:6;5928:47;;;5962:1;5955:8;;;;5928:47;5987:9;6003:1;5999;:5;5987:17;;6032:1;6027;6023;:5;;;;;;:10;6015:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6091:1;6084:8;;;5630:470;;;;;:::o;32972:315::-;33176:7;:5;:7::i;:::-;33154:36;;;33191:11;33204;33154:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33154:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33154:62:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;33154:62:0;;;;;;;;;;;;;;;;33132:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32972:315;;:::o;30031:246::-;30157:1;30134:25;;:11;:25;;;;30126:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30238:1;30225:9;:14;;30217:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30031:246;;:::o

Swarm Source

bzzr://3f0e7b5ec7a7ec9238bd53ee1656c7b2fd1494dc40ef4c469172329645ddf795
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.