ETH Price: $3,343.81 (-0.99%)

Contract

0x5B2490AF0ca06D56f356F4cDCbf78d1A847D5Cc6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Attack Pir115037232020-12-22 14:05:121461 days ago1608645912IN
0x5B2490AF...A847D5Cc6
0 ETH0.0019827742.00000145
Attack Pir114621512020-12-16 5:10:411468 days ago1608095441IN
0x5B2490AF...A847D5Cc6
0 ETH0.0168608964.8
Attack Pir114617102020-12-16 3:31:591468 days ago1608089519IN
0x5B2490AF...A847D5Cc6
0 ETH0.0183753592.6
Attack Pir114616302020-12-16 3:13:091468 days ago1608088389IN
0x5B2490AF...A847D5Cc6
0 ETH0.0131660650.6

Latest 24 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
115037232020-12-22 14:05:121461 days ago1608645912
0x5B2490AF...A847D5Cc6
0 ETH
115037232020-12-22 14:05:121461 days ago1608645912
0x5B2490AF...A847D5Cc6
0 ETH
115037232020-12-22 14:05:121461 days ago1608645912
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114621512020-12-16 5:10:411468 days ago1608095441
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114617102020-12-16 3:31:591468 days ago1608089519
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
114616302020-12-16 3:13:091468 days ago1608088389
0x5B2490AF...A847D5Cc6
0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DynamiteAttack

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-16
*/

/*
    Developed by TimeusLab
    https://timeus.org
*/

/*
    Developed by TimeusLab
    https://timeus.org
*/

pragma solidity ^0.6.0;


abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this;
        // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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);
}


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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        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-contracts/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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


library Address {
    /**
     * @dev Returns true if `account` is 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.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // 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 != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success,) = recipient.call{value : amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value : weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override 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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        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 `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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 virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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 virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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 virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _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 virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _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 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @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 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}


contract PiranhasToken is ERC20("Piranhas", "$PIR"), Ownable {

    bool public isTransferable = false;
    uint256 public minTotalSupply = 10000;

    // lists of addresses
    address[] public canTransfer;
    address[] public WithoutBurn;
    address[] public UniswapPairs;


    constructor (uint256 total) public {
        // mint new
        _mint(msg.sender, total.mul(10 ** 18));
        WithoutBurn.push(msg.sender);
    }

    function burn(uint256 _amount) public {
        _burn(msg.sender, _amount);
    }


    // override of default function
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        // check address
        bool isBurnable = IsBurnable(_msgSender(), recipient);

        // check if transfer is enabled
        require(isTransferable || !isBurnable, "PiranhasToken: Transfer disabled");

        if (isTransferable) {
            if (isBurnable && !isUniswapPair(_msgSender())) {
                _transferWithBurn(_msgSender(), recipient, amount, false);
                return true;
            } else {
                _transfer(_msgSender(), recipient, amount);
                return true;
            }
        } else if (!isBurnable) {
            _transfer(_msgSender(), recipient, amount);
            return true;
        } else {
            return false;
        }
    }


    // override of default function
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        // check address
        bool isBurnable = IsBurnable(sender, recipient);

        // check if transfer is enabled
        require(isTransferable || !isBurnable, "PiranhasToken: Transfer disabled");
        
        if(isUniswapPair(recipient) && isBurnable){
            _transferWithBurn(sender, recipient, amount, true);
            _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance"));
            return true;
        } else {
            // default implementation
            _transfer(sender, recipient, amount);
            _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance"));
            return true;
        }
    }
    
     // function for transfer with burn
    function _transferWithBurn(address sender, address recipient, uint256 amount, bool isTransferFrom) private returns (bool) {
        // divide amount in different parts
        uint256 burnPart = amount.div(100).mul(5);
        uint256 rewardPart = amount.div(100).mul(5);
        uint256 newAmount = amount.sub(burnPart).sub(rewardPart);

        // if it last burn than change it
        if (totalSupply().sub(burnPart) < minTotalSupply.mul(10 ** 18)) {
            burnPart = totalSupply().sub(minTotalSupply.mul(10 ** 18));
            newAmount = amount.sub(burnPart).sub(rewardPart);
        }

        _transfer(sender, address(this), rewardPart);
        
        
        if(isTransferFrom){
            _transfer(sender, recipient, amount);
        } else {
            _transfer(sender, recipient, newAmount);
        }

        if (burnPart != 0) {
            _burn(sender, burnPart);
        }
        return true;

    }

    // function for PiranhasGame which canWithdrawMoney
    function withdrawMoney(address from, address to, uint256 amount) public virtual returns (bool) {
        bool isInList = false;
        for (uint i = 0; i < canTransfer.length; i++) {
            if (canTransfer[i] == _msgSender()) {
                isInList = true;
            }
        }
        require(isInList, "PiranhasToken: Forbid action for this address");
        _transfer(from, to, amount);
        return true;
    }

    // read function which return if addres is in WithoutBurnList
    function IsBurnable(address sender, address recipient) public view returns (bool) {
        bool isBurnable = true;
        for (uint i = 0; i < WithoutBurn.length; i++) {
            if (WithoutBurn[i] == sender || WithoutBurn[i] == recipient) {
                isBurnable = false;
            }
        }
        return isBurnable;
    }
    
    // read function which return if addres is in WithoutBurnList
    function isUniswapPair(address sender) public view returns (bool) {
        bool isUniswap = false;
        for (uint i = 0; i < UniswapPairs.length; i++) {
            if (UniswapPairs[i] == sender) {
                isUniswap = true;
            }
        }
        return isUniswap;
    }


    /*
        Under all methods to control token, game
    */

    // add address to CanTransferList which can call withdrawMoney
    function addCanTransfer(address account) public onlyOwner {
        canTransfer.push(account);
    }

    // remover address from CanTransferList which can call withdrawMoney
    function removeCanTransfer(address account) public onlyOwner {
        address[] memory OldcanTransfer = canTransfer;
        delete canTransfer;
        for (uint256 i = 0; i < OldcanTransfer.length; i++) {
            if (OldcanTransfer[i] != account) {
                canTransfer.push(OldcanTransfer[i]);
            }
        }

    }

    // add address to WithoutBurn list
    function addWithoutBurn(address account) public onlyOwner {
        WithoutBurn.push(account);
    }

    // remove address to WithoutBurn list
    function removeWithoutBurn(address account) public onlyOwner {
        address[] memory OldWithoutBurn = WithoutBurn;
        delete WithoutBurn;
        for (uint256 i = 0; i < OldWithoutBurn.length; i++) {
            if (OldWithoutBurn[i] != account) {
                WithoutBurn.push(OldWithoutBurn[i]);
            }
        }
    }

    //enable/disable transfer
    function enableTransfer(bool state) public onlyOwner {
        isTransferable = state;
    }

    
    // add address to UniswapPairs list
    function addPair(address account) public onlyOwner {
        UniswapPairs.push(account);
    }

    // remove address to UniswapPairs list
    function removePair(address account) public onlyOwner {
        address[] memory OldUniswapPairs = UniswapPairs;
        delete UniswapPairs;
        for (uint256 i = 0; i < OldUniswapPairs.length; i++) {
            if (OldUniswapPairs[i] != account) {
                UniswapPairs.push(OldUniswapPairs[i]);
            }
        }
    }

}

contract PiranhasGame is Ownable {
    using SafeMath for uint256;

    PiranhasToken public pir;
    address public pirAddress;

    // white list of addresses
    address[] public WhiteList;
    address[] public AttacksContracts;

    // Game Stats
    uint256 public totalAttacks;
    uint256 public totalAttacksAmount;

    struct UserInfo {
        uint256 totalLocked;
        uint256[] amount;
        uint256[] unlockDate;
    }

    struct UserStats {
        uint256 totalAttacked;
        uint256 totalAttackedAmount;
        uint256 totalKilled;
        uint256 totalKilledAmount;
    }

    mapping(address => UserInfo) public usersInfo;
    mapping(address => UserStats) public usersStats;

    constructor (address _pir) public {
        pir = PiranhasToken(_pir);
        pirAddress = _pir;
        WhiteList.push(msg.sender);
        WhiteList.push(address(this));
    }
    
    /*
        All read functions 
    */

    function IsInWhiteList(address recipient) public view returns (bool) {
        bool isInWhiteList = false;
        for (uint i = 0; i < WhiteList.length; i++) {
            if (WhiteList[i] == recipient) {
                isInWhiteList = true;
                i = WhiteList.length;
            }
        }
        return isInWhiteList;
    }

    function IsAttackContract(address recipient) public view returns (bool) {
        bool isInAttackContract = false;
        for (uint i = 0; i < AttacksContracts.length; i++) {
            if (AttacksContracts[i] == recipient) {
                isInAttackContract = true;
                i = AttacksContracts.length;
            }
        }
        return isInAttackContract;
    }

    function userUnlocks(address player, uint number) public view returns (uint){
        UserInfo storage user = usersInfo[player];
        return user.unlockDate[number];
    }
    
    function userUnlocksAmount(address player, uint number) public view returns (uint){
        UserInfo storage user = usersInfo[player];
        return user.amount[number];
    }
    
    function totalUserLocks(address player) public view returns (uint){
        UserInfo storage user = usersInfo[player];
        return user.unlockDate.length;
    }

    function unlockedPir(address player) public view returns (uint){
        UserInfo storage user = usersInfo[player];
        uint256 currentTime = block.timestamp;
        uint256 freeTokens = 0;
        for (uint i = 0; i < user.unlockDate.length; i++) {
            if (user.unlockDate[i] <= currentTime) {
                freeTokens = freeTokens + user.amount[i];
            }
        }
        return freeTokens;
    }
    
    /*
        Attack function which save info from different AttacksContracts
    */

    function AddNewAttack(address user, uint256 amount, uint256 reward, uint256 timeLock, bool isKiller) public {
        require(!IsInWhiteList(msg.sender), "PiranhasGame: Not in WhiteList");
        UserInfo storage userInfo = usersInfo[user];
        UserStats storage userStats = usersStats[user];
        userInfo.totalLocked = userInfo.totalLocked.add(amount);
        userInfo.amount.push(amount);
        userInfo.unlockDate.push(timeLock);

        if (isKiller) {
            userStats.totalAttacked = userStats.totalAttacked.add(1);
            userStats.totalAttackedAmount = userStats.totalAttackedAmount.add(amount);
            totalAttacks = totalAttacks + 1;
            totalAttacksAmount = totalAttacksAmount.add(amount);
            if(pir.balanceOf(pirAddress) >= reward && reward != 0) {
                pir.withdrawMoney(pirAddress,user, reward);
            }
        } else {
            userStats.totalKilled = userStats.totalKilled.add(1);
            userStats.totalKilledAmount = userStats.totalKilledAmount.add(amount);
        }
        pir.withdrawMoney(user,address(this), amount);
    }

     /*
        Claim function that returned unlockedPir
    */
    function claimPir() public {
        uint unlockedAmount = unlockedPir(msg.sender);
        require(unlockedAmount > 0, "PiranhasGame: Amount must be bigger than zero");
        UserInfo storage user = usersInfo[msg.sender];

        uint256[] memory OldAmount = user.amount;
        uint256[] memory OldUnlockDate = user.unlockDate;

        delete user.amount;
        delete user.unlockDate;

        for (uint256 i = 0; i < OldUnlockDate.length; i++) {
            if (OldUnlockDate[i] > block.timestamp) {
                user.amount.push(OldAmount[i]);
                user.unlockDate.push(OldUnlockDate[i]);
            }
        }

        user.totalLocked = user.totalLocked.sub(unlockedAmount);
        pir.transfer(msg.sender, unlockedAmount);
    }
    
    /*
        Owner function for managing game
    */

    function addWhiteList(address account) public onlyOwner {
        WhiteList.push(account);
    }

    function addAttackContract(address account) public onlyOwner {
        AttacksContracts.push(account);
    }

    function removeWhiteList(address account) public onlyOwner {
        address[] memory OldWhiteList = WhiteList;
        delete WhiteList;
        for (uint256 i = 0; i < OldWhiteList.length; i++) {
            if (OldWhiteList[i] != account) {
                WhiteList.push(OldWhiteList[i]);
            }
        }
    }

    function removeAttackContract(address account) public onlyOwner {
        address[] memory OldAttacksContracts = AttacksContracts;
        delete AttacksContracts;
        for (uint256 i = 0; i < OldAttacksContracts.length; i++) {
            if (OldAttacksContracts[i] != account) {
                AttacksContracts.push(OldAttacksContracts[i]);
            }
        }
    }

}


contract Dynamite is ERC20("Dynamite", "DYN"), Ownable {

    address[] public canTransfer;

    constructor() public {
        canTransfer.push(msg.sender);
    }

    modifier Transferable {
        require(IsTransferable(msg.sender), "Dynamite: is not allowed");
        _;
    }

    function mint(address _to, uint256 _amount) public Transferable {
        _mint(_to, _amount);
    }

    function burnFrom(address _from, uint256 _amount) public Transferable {
        _burn(_from, _amount);
    }

    function transfer(address recipient, uint256 amount) public Transferable virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        return true;
    }


    /*
        Read functions
    */
    function IsTransferable(address recipient) public view returns (bool) {
        bool IsTransferable = false;
        for (uint i = 0; i < canTransfer.length; i++) {
            if (canTransfer[i] == recipient) {
                IsTransferable = true;
                i = canTransfer.length;
            }
        }
        return IsTransferable;
    }

    /*
        Owner methods
    */

    function addCanTransfer(address account) public onlyOwner {
        canTransfer.push(account);
    }

    function removeCanTransfer(address account) public onlyOwner {
        address[] memory OldcanTransfer = canTransfer;
        delete canTransfer;
        for (uint256 i = 0; i < OldcanTransfer.length; i++) {
            if (OldcanTransfer[i] != account) {
                canTransfer.push(OldcanTransfer[i]);
            }
        }
    }
}


contract DynamiteAttack is Ownable {
    using SafeMath for uint256;

    PiranhasToken public pir;
    PiranhasGame public gameContract;
    Dynamite public dyn;

    uint256 public OneDay = 86400;

    // game parameters
    uint256 public KilledLockDays = 14;
    uint256 public killPerAttack = 150;

    uint minAmount = 1;

    struct UserInfo {
        uint256 totalLocked;
        uint256[] amount;
        uint256[] unlockDate;
    }

    mapping(address => UserInfo) public userInfo;


    constructor (PiranhasToken _pir, PiranhasGame _gameContract, Dynamite _dyn) public {
        pir = _pir;
        gameContract = _gameContract;
        dyn = _dyn;
    }


    function AttackPir(address killed,uint256 amountDNMT) public {
        address killer = msg.sender;
        require(!gameContract.IsInWhiteList(killed), "DynamiteAttack: Attack on this address forbidden");
        require(pir.balanceOf(killed)>0, "DynamiteAttack: Killed balance is empty");
        require(dyn.balanceOf(msg.sender)>minAmount, "DynamiteAttack: Smaller Than min");
        require(dyn.balanceOf(msg.sender)>= amountDNMT, "DynamiteAttack: Not enough balance");
        require(killer != killed, "DynamiteAttack: Can't attack yourself");

        uint256 killedBalance = pir.balanceOf(killed);
        uint256 amount = killPerAttack.mul(10**18).mul(amountDNMT);

        if(amount > killedBalance){
            amount = killedBalance;
        }

        uint256 killedUnlockDate = block.timestamp.add(OneDay.mul(KilledLockDays));
        dyn.burnFrom(msg.sender,amountDNMT.mul(10**18));
        gameContract.AddNewAttack(killed, amount, 0, killedUnlockDate, false);
    }


    function changeRules(uint _killedDays, uint _killPerAttack, uint _minAmount) public onlyOwner {
        KilledLockDays = _killedDays;
        killPerAttack = _killPerAttack;
        minAmount = _minAmount;
    }


}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract PiranhasToken","name":"_pir","type":"address"},{"internalType":"contract PiranhasGame","name":"_gameContract","type":"address"},{"internalType":"contract Dynamite","name":"_dyn","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"killed","type":"address"},{"internalType":"uint256","name":"amountDNMT","type":"uint256"}],"name":"AttackPir","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"KilledLockDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OneDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_killedDays","type":"uint256"},{"internalType":"uint256","name":"_killPerAttack","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"}],"name":"changeRules","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dyn","outputs":[{"internalType":"contract Dynamite","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameContract","outputs":[{"internalType":"contract PiranhasGame","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"killPerAttack","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pir","outputs":[{"internalType":"contract PiranhasToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"totalLocked","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405262015180600455600e6005556096600655600160075534801561002657600080fd5b506040516114643803806114648339818101604052606081101561004957600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050600061007e6101e760201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506101ef565b600033905090565b611266806101fe6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b146101fd578063b5a1e68014610231578063b6af6c8e1461024f578063cb15111214610283578063d3f33009146102a1578063f2fde38b146102d5576100b4565b80631959a002146100b95780632a920307146101115780633a75d5a21461015f5780635b8eed08146101a15780635d57792e146101bf578063715018a6146101f3575b600080fd5b6100fb600480360360208110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610319565b6040518082815260200191505060405180910390f35b61015d6004803603604081101561012757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610337565b005b61019f6004803603606081101561017557600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610b15565b005b6101a9610bf7565b6040518082815260200191505060405180910390f35b6101c7610bfd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101fb610c23565b005b610205610da9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610239610dd2565b6040518082815260200191505060405180910390f35b610257610dd8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61028b610dfe565b6040518082815260200191505060405180910390f35b6102a9610e04565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610317600480360360208110156102eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e2a565b005b60086020528060005260406000206000915090508060000154905081565b6000339050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c63516e4846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156103c557600080fd5b505afa1580156103d9573d6000803e3d6000fd5b505050506040513d60208110156103ef57600080fd5b810190808051906020019092919050505015610456576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806112016030913960400191505060405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156104e157600080fd5b505afa1580156104f5573d6000803e3d6000fd5b505050506040513d602081101561050b57600080fd5b810190808051906020019092919050505011610572576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806111946027913960400191505060405180910390fd5b600754600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105fe57600080fd5b505afa158015610612573d6000803e3d6000fd5b505050506040513d602081101561062857600080fd5b8101908080519060200190929190505050116106ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f44796e616d69746541747461636b3a20536d616c6c6572205468616e206d696e81525060200191505060405180910390fd5b81600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561073657600080fd5b505afa15801561074a573d6000803e3d6000fd5b505050506040513d602081101561076057600080fd5b810190808051906020019092919050505010156107c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806111726022913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561084d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806111dc6025913960400191505060405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108d857600080fd5b505afa1580156108ec573d6000803e3d6000fd5b505050506040513d602081101561090257600080fd5b81019080805190602001909291905050509050600061094684610938670de0b6b3a764000060065461103590919063ffffffff16565b61103590919063ffffffff16565b905081811115610954578190505b600061097f61097060055460045461103590919063ffffffff16565b426110bb90919063ffffffff16565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc6790336109db670de0b6b3a76400008961103590919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015610a2e57600080fd5b505af1158015610a42573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166364671561878460008560006040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001821515815260200195505050505050600060405180830381600087803b158015610af557600080fd5b505af1158015610b09573d6000803e3d6000fd5b50505050505050505050565b610b1d611143565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bdd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b826005819055508160068190555080600781905550505050565b60065481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c2b611143565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ceb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e32611143565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ef2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061114c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008083141561104857600090506110b5565b600082840290508284828161105957fe5b04146110b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806111bb6021913960400191505060405180910390fd5b809150505b92915050565b600080828401905083811015611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60003390509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737344796e616d69746541747461636b3a204e6f7420656e6f7567682062616c616e636544796e616d69746541747461636b3a204b696c6c65642062616c616e636520697320656d707479536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744796e616d69746541747461636b3a2043616e27742061747461636b20796f757273656c6644796e616d69746541747461636b3a2041747461636b206f6e2074686973206164647265737320666f7262696464656ea26469706673582212208ba28a34d2f32f7f2de97dc633a79d5f6d1b6fd22920b5fb44224041b6e2b8c464736f6c634300060c00330000000000000000000000000e3c91ed7d966ff1f7b58ab739a55e3c4473cd270000000000000000000000002cf44288f96532bed4a08b37e079165c9abaffb2000000000000000000000000e8c54bad6e1ff1860f734eb34df50d5fcc1457c5

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b146101fd578063b5a1e68014610231578063b6af6c8e1461024f578063cb15111214610283578063d3f33009146102a1578063f2fde38b146102d5576100b4565b80631959a002146100b95780632a920307146101115780633a75d5a21461015f5780635b8eed08146101a15780635d57792e146101bf578063715018a6146101f3575b600080fd5b6100fb600480360360208110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610319565b6040518082815260200191505060405180910390f35b61015d6004803603604081101561012757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610337565b005b61019f6004803603606081101561017557600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610b15565b005b6101a9610bf7565b6040518082815260200191505060405180910390f35b6101c7610bfd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101fb610c23565b005b610205610da9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610239610dd2565b6040518082815260200191505060405180910390f35b610257610dd8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61028b610dfe565b6040518082815260200191505060405180910390f35b6102a9610e04565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610317600480360360208110156102eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e2a565b005b60086020528060005260406000206000915090508060000154905081565b6000339050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c63516e4846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156103c557600080fd5b505afa1580156103d9573d6000803e3d6000fd5b505050506040513d60208110156103ef57600080fd5b810190808051906020019092919050505015610456576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806112016030913960400191505060405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156104e157600080fd5b505afa1580156104f5573d6000803e3d6000fd5b505050506040513d602081101561050b57600080fd5b810190808051906020019092919050505011610572576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806111946027913960400191505060405180910390fd5b600754600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105fe57600080fd5b505afa158015610612573d6000803e3d6000fd5b505050506040513d602081101561062857600080fd5b8101908080519060200190929190505050116106ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f44796e616d69746541747461636b3a20536d616c6c6572205468616e206d696e81525060200191505060405180910390fd5b81600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561073657600080fd5b505afa15801561074a573d6000803e3d6000fd5b505050506040513d602081101561076057600080fd5b810190808051906020019092919050505010156107c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806111726022913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561084d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806111dc6025913960400191505060405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108d857600080fd5b505afa1580156108ec573d6000803e3d6000fd5b505050506040513d602081101561090257600080fd5b81019080805190602001909291905050509050600061094684610938670de0b6b3a764000060065461103590919063ffffffff16565b61103590919063ffffffff16565b905081811115610954578190505b600061097f61097060055460045461103590919063ffffffff16565b426110bb90919063ffffffff16565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc6790336109db670de0b6b3a76400008961103590919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015610a2e57600080fd5b505af1158015610a42573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166364671561878460008560006040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001821515815260200195505050505050600060405180830381600087803b158015610af557600080fd5b505af1158015610b09573d6000803e3d6000fd5b50505050505050505050565b610b1d611143565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bdd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b826005819055508160068190555080600781905550505050565b60065481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c2b611143565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ceb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e32611143565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ef2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061114c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008083141561104857600090506110b5565b600082840290508284828161105957fe5b04146110b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806111bb6021913960400191505060405180910390fd5b809150505b92915050565b600080828401905083811015611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60003390509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737344796e616d69746541747461636b3a204e6f7420656e6f7567682062616c616e636544796e616d69746541747461636b3a204b696c6c65642062616c616e636520697320656d707479536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744796e616d69746541747461636b3a2043616e27742061747461636b20796f757273656c6644796e616d69746541747461636b3a2041747461636b206f6e2074686973206164647265737320666f7262696464656ea26469706673582212208ba28a34d2f32f7f2de97dc633a79d5f6d1b6fd22920b5fb44224041b6e2b8c464736f6c634300060c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000e3c91ed7d966ff1f7b58ab739a55e3c4473cd270000000000000000000000002cf44288f96532bed4a08b37e079165c9abaffb2000000000000000000000000e8c54bad6e1ff1860f734eb34df50d5fcc1457c5

-----Decoded View---------------
Arg [0] : _pir (address): 0x0e3c91eD7D966fF1F7B58aB739A55E3c4473Cd27
Arg [1] : _gameContract (address): 0x2Cf44288f96532BeD4a08b37e079165c9ABaFfb2
Arg [2] : _dyn (address): 0xE8c54BAD6E1ff1860f734EB34Df50D5Fcc1457c5

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e3c91ed7d966ff1f7b58ab739a55e3c4473cd27
Arg [1] : 0000000000000000000000002cf44288f96532bed4a08b37e079165c9abaffb2
Arg [2] : 000000000000000000000000e8c54bad6e1ff1860f734eb34df50d5fcc1457c5


Deployed Bytecode Sourcemap

39641:1940:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40109:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;40346:1003;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;41359:215;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;39919:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;39718:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;15143:148;;;:::i;:::-;;14501:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;39878:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;39788:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;39816:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;39749:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;15446:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;40109:44;;;;;;;;;;;;;;;;;;;;;;:::o;40346:1003::-;40418:14;40435:10;40418:27;;40465:12;;;;;;;;;;;:26;;;40492:6;40465:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40464:35;40456:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40593:1;40571:3;;;;;;;;;;;:13;;;40585:6;40571:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;40563:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40683:9;;40657:3;;;;;;;;;;;:13;;;40671:10;40657:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:35;40649:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40776:10;40748:3;;;;;;;;;;;:13;;;40762:10;40748:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:38;;40740:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40854:6;40844:16;;:6;:16;;;;40836:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40915:21;40939:3;;;;;;;;;;;:13;;;40953:6;40939:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40915:45;;40971:14;40988:41;41018:10;40988:25;41006:6;40988:13;;:17;;:25;;;;:::i;:::-;:29;;:41;;;;:::i;:::-;40971:58;;41054:13;41045:6;:22;41042:75;;;41092:13;41083:22;;41042:75;41129:24;41156:47;41176:26;41187:14;;41176:6;;:10;;:26;;;;:::i;:::-;41156:15;:19;;:47;;;;:::i;:::-;41129:74;;41214:3;;;;;;;;;;;:12;;;41227:10;41238:22;41253:6;41238:10;:14;;:22;;;;:::i;:::-;41214:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41272:12;;;;;;;;;;;:25;;;41298:6;41306;41314:1;41317:16;41335:5;41272:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40346:1003;;;;;;:::o;41359:215::-;14723:12;:10;:12::i;:::-;14713:22;;:6;;;;;;;;;;:22;;;14705:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41481:11:::1;41464:14;:28;;;;41519:14;41503:13;:30;;;;41556:10;41544:9;:22;;;;41359:215:::0;;;:::o;39919:34::-;;;;:::o;39718:24::-;;;;;;;;;;;;;:::o;15143:148::-;14723:12;:10;:12::i;:::-;14713:22;;:6;;;;;;;;;;:22;;;14705:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15250:1:::1;15213:40;;15234:6;::::0;::::1;;;;;;;;15213:40;;;;;;;;;;;;15281:1;15264:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;15143:148::o:0;14501:79::-;14539:7;14566:6;;;;;;;;;;;14559:13;;14501:79;:::o;39878:34::-;;;;:::o;39788:19::-;;;;;;;;;;;;;:::o;39816:29::-;;;;:::o;39749:32::-;;;;;;;;;;;;;:::o;15446:244::-;14723:12;:10;:12::i;:::-;14713:22;;:6;;;;;;;;;;:22;;;14705:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15555:1:::1;15535:22;;:8;:22;;;;15527:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15645:8;15616:38;;15637:6;::::0;::::1;;;;;;;;15616:38;;;;;;;;;;;;15674:8;15665:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;15446:244:::0;:::o;4807:471::-;4865:7;5115:1;5110;:6;5106:47;;;5140:1;5133:8;;;;5106:47;5165:9;5181:1;5177;:5;5165:17;;5210:1;5205;5201;:5;;;;;;:10;5193:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5269:1;5262:8;;;4807:471;;;;;:::o;3453:181::-;3511:7;3531:9;3547:1;3543;:5;3531:17;;3572:1;3567;:6;;3559:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3625:1;3618:8;;;3453:181;;;;:::o;186:106::-;239:15;274:10;267:17;;186:106;:::o

Swarm Source

ipfs://8ba28a34d2f32f7f2de97dc633a79d5f6d1b6fd22920b5fb44224041b6e2b8c4

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.