Contract 0x3ae713C662B8852D686e718E0762631A4CB84954

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x5e0b520d6aa24859323ec6cae472760e5bb9e6bf9ea93f284a5ff4b0c672cce684507632021-06-20 3:52:5518 mins ago0xd2aeb4a9fcae61a98214c03e8b45ffdf62463325 IN  HyperJump: MECHS Token0 BNB0.00022203
0x80c11cb41cbed7dd0b5c1bc99dac068c19aa8d7b61959b34a8a876841767dc0484502182021-06-20 3:25:4045 mins ago0xbda5c02bad9f2c9f51753d7bfa6983b86a64325e IN  HyperJump: MECHS Token0 BNB0.00022203
0x2d1bfaf4646d60da2f9397bd39f61c51dbbaf3ba5e22d7100777d96dda2a2ffd84497622021-06-20 3:02:521 hr 8 mins ago0xc9acd134251f1f9e0533ce321bda2eb813552ad8 IN  HyperJump: MECHS Token0 BNB0.00022203
0xd2e2d404907660d883f0f3596b84fade2b5707c3cba2b8da54734b2d1ea5191e84495272021-06-20 2:51:071 hr 20 mins ago0x7609f98a326a58705432ccad06e17f00c7c949b8 IN  HyperJump: MECHS Token0 BNB0.00022203
0x4d7e8a810e5aba634752adfa05448b6562ee9c7e6914c4d0166679b4de9421fe84493332021-06-20 2:41:251 hr 30 mins ago0xf688dd4ba6bda39203be70836fc620e2e83090f1 IN  HyperJump: MECHS Token0 BNB0.000266436
0x1a4cf3863755b5597484001852072d24505a9cf1a7b0cb22b6e18d0598f7cff784490992021-06-20 2:29:431 hr 41 mins ago0x84357ea96a6c0647138a3bf08b76e5fb6c6fe392 IN  HyperJump: MECHS Token0 BNB0.00022203
0x5de9a0104ed4b4d040e9770463db2cc384ed929028a48f7ade61fed827fea3f484487942021-06-20 2:14:281 hr 56 mins ago0xcd7e66528da258684dd4363f8e94838d550a9b0f IN  HyperJump: MECHS Token0 BNB0.00022203
0xe292e9ce02640b1cbd761a77f1a239ae54c4274254d11308656197028a0ec2fa84484482021-06-20 1:57:102 hrs 14 mins ago0xd95012f210e124bb847001dd4c1aa9423acd14ab IN  HyperJump: MECHS Token0 BNB0.00022203
0x9c6f33c85c241685bc46df1988bab3917ab9e2fadf8d2542c8d7cfa17353cac884484282021-06-20 1:56:102 hrs 15 mins ago0xd95012f210e124bb847001dd4c1aa9423acd14ab IN  HyperJump: MECHS Token0 BNB0.00022203
0xf084ca1d489576a5fdf2fb7726e8f055a90162d0ac370eecbe83878b4aadee5784483812021-06-20 1:53:492 hrs 17 mins ago0xf3d9285e4608af3fbb82f6be82536785fb9bf798 IN  HyperJump: MECHS Token0 BNB0.00022203
0x5e7f4eb8888ed55db77993a09adf4dbf1a386da512733d221e66e87fa062d3c384471592021-06-20 0:52:433 hrs 18 mins ago0xc056b0b86fd3955f2193c81ed5d01400b3eb2112 IN  HyperJump: MECHS Token0 BNB0.00022203
0xf5ec13a75559f2b2f2807c9ab449b7fdeb19b4245479815e3224eb2adbed7ee084471522021-06-20 0:52:223 hrs 19 mins ago0xf1cb27fc81081bc67c9d3ce177fe0f8934ce46fc IN  HyperJump: MECHS Token0 BNB0.00022203
0xc0b9bb16a810d0a36073dbf6afbdbc6df1181fc2b906bfec9909e03c9f00237184469372021-06-20 0:41:373 hrs 29 mins ago0x974333722a83766ad0f4427a8de1b78b0fdef24c IN  HyperJump: MECHS Token0 BNB0.00022203
0x30b2aa8c84a1a662500ff5a7f1866ff10e3d48624f2db752a4b047e92f54603184468202021-06-20 0:35:463 hrs 35 mins ago0x73ca6468a772c6b936aa0df9bc31f8b7d6c482df IN  HyperJump: MECHS Token0 BNB0.00022203
0xbbd40ebe463a1da598556acc1ec2959806f3097cf56cbab92f20f0e596393b3784468172021-06-20 0:35:373 hrs 35 mins ago0x73ca6468a772c6b936aa0df9bc31f8b7d6c482df IN  HyperJump: MECHS Token0 BNB0.00022203
0xe38e02c9e2c9f84b16b226d2bf2c03ace95df937f50ce9f9d8b9354beff2805884467822021-06-20 0:33:523 hrs 37 mins ago0x5585d5365f37671eecc0fdcac5a06bd1d176408e IN  HyperJump: MECHS Token0 BNB0.00022203
0x511d14df3e99467c3e85a44cde2d36bf3ad6b1c433c5a9a0463c714e3106197984467722021-06-20 0:33:223 hrs 38 mins ago0x82dc22715ae6d4fc05f23349358ef5b2db014cbb IN  HyperJump: MECHS Token0 BNB0.00022203
0x04402a313ef88f1906cd9b8b1b323d75bbb3a4bea8754752e7c80f907fb52b3884465822021-06-20 0:23:523 hrs 47 mins ago0x73fda8084ecc029bf030291207f49963ce07817d IN  HyperJump: MECHS Token0 BNB0.00022203
0x6d41090425e306f2584af4efab60c5ea2356d1dc15de74b6e6b3ccd112649c1c84465812021-06-20 0:23:493 hrs 47 mins ago0xc7078c3dc6909eead70bef223bff1abbf2f5af5c IN  HyperJump: MECHS Token0 BNB0.00022203
0x4bca7b94aa6847a57700f203e43a7c868d717eb6899585227ea40a9bf2f3029584464062021-06-20 0:15:043 hrs 56 mins ago0x46174a403488b1c6a267ee18a3ff37fb8d8b88e8 IN  HyperJump: MECHS Token0 BNB0.00022203
0x9eb2c7a266c68b0d60a530a1dac98f6d11bf82c3e02ab6d3cf6e61e482dbd18c84460562021-06-19 23:57:344 hrs 13 mins ago0x3aa0944947de812bb40ab9c85627fcfea10652c6 IN  HyperJump: MECHS Token0 BNB0.00022203
0x5c1a98f2c8a229f937f5b5152428244274eeaf4bbdfee283f39b4bb632a7c51784455562021-06-19 23:32:254 hrs 39 mins ago0xccaef3f0fa8d6d364e3f84d631bb114edc070bac IN  HyperJump: MECHS Token0 BNB0.00022203
0x2a64b11176298336d9999bf48c6330652ebf4bd6c5390c8184266f2a945ef61684452832021-06-19 23:18:464 hrs 52 mins ago0xdd0b51ed9691e547793d7c35cadd65a02fb97604 IN  HyperJump: MECHS Token0 BNB0.00022203
0x82cb65c40de3ec9f014e6c47ad4062386de7d09f52e9753166acaa29c62c9cc784452752021-06-19 23:18:224 hrs 53 mins ago0xdd0b51ed9691e547793d7c35cadd65a02fb97604 IN  HyperJump: MECHS Token0 BNB0.00022203
0xa3f334b0f7cb021341cdf4e58ab78db691efda35669534172b27711445d392d884451252021-06-19 23:10:525 hrs ago0x4c646366cb7de120ef8dceb903f08ea612835d7c IN  HyperJump: MECHS Token0 BNB0.00022203
[ Download CSV Export 

OVERVIEW

MECH is a non tradeable token created by harnessing 5 ALLOY per MECH which can be staked to earn ALLOY and other partner yield farm tokens in the HyperJump Universe.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x3646ea71945dd18183cb9618067cf6277a4b6d261b34ec5bec8a34ddc45b73c454713352021-03-07 11:59:42104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0x3646ea71945dd18183cb9618067cf6277a4b6d261b34ec5bec8a34ddc45b73c454713352021-03-07 11:59:42104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0x3646ea71945dd18183cb9618067cf6277a4b6d261b34ec5bec8a34ddc45b73c454713352021-03-07 11:59:42104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x88fe33dbc0f874e25d85c43ccb27cae300be1a420891be9d83710875582d83ff54713312021-03-07 11:59:30104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0xff587a209ac92f0d518c160109a0e81ab529b4f32ea0337456ec4709b537bfff54713312021-03-07 11:59:30104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0xff587a209ac92f0d518c160109a0e81ab529b4f32ea0337456ec4709b537bfff54713312021-03-07 11:59:30104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0xff587a209ac92f0d518c160109a0e81ab529b4f32ea0337456ec4709b537bfff54713312021-03-07 11:59:30104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0xff587a209ac92f0d518c160109a0e81ab529b4f32ea0337456ec4709b537bfff54713312021-03-07 11:59:30104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x0d6d692c46807a5d4165f58cd39e3c955a7d1f11520b9b66453dec29e3c126cf54713282021-03-07 11:59:21104 days 16 hrs ago 0x9fc01bbf65b405f6aec3f3abae20c14517b5260a HyperJump: MECHS Token0 BNB
0x0d6d692c46807a5d4165f58cd39e3c955a7d1f11520b9b66453dec29e3c126cf54713282021-03-07 11:59:21104 days 16 hrs ago 0x9fc01bbf65b405f6aec3f3abae20c14517b5260a HyperJump: MECHS Token0 BNB
0xdb4af4e59e22813899ccd1b515464c9e752273ac5050d41aab3ad3cbfc5e593954713182021-03-07 11:58:51104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0xdb4af4e59e22813899ccd1b515464c9e752273ac5050d41aab3ad3cbfc5e593954713182021-03-07 11:58:51104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0xdb4af4e59e22813899ccd1b515464c9e752273ac5050d41aab3ad3cbfc5e593954713182021-03-07 11:58:51104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0xdb4af4e59e22813899ccd1b515464c9e752273ac5050d41aab3ad3cbfc5e593954713182021-03-07 11:58:51104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x71a52ac5b5bef0b32f8182a627a0bf2afe3216bfa95e1f58374b5d9693f2289754713162021-03-07 11:58:45104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x71a52ac5b5bef0b32f8182a627a0bf2afe3216bfa95e1f58374b5d9693f2289754713162021-03-07 11:58:45104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0x71a52ac5b5bef0b32f8182a627a0bf2afe3216bfa95e1f58374b5d9693f2289754713162021-03-07 11:58:45104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0x71a52ac5b5bef0b32f8182a627a0bf2afe3216bfa95e1f58374b5d9693f2289754713162021-03-07 11:58:45104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x205e5b33bb315d0a67b873bce2bb09d9b8c29ba9a9bb776ad7502a093d1bf82554713152021-03-07 11:58:42104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x205e5b33bb315d0a67b873bce2bb09d9b8c29ba9a9bb776ad7502a093d1bf82554713152021-03-07 11:58:42104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0x205e5b33bb315d0a67b873bce2bb09d9b8c29ba9a9bb776ad7502a093d1bf82554713152021-03-07 11:58:42104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
0x205e5b33bb315d0a67b873bce2bb09d9b8c29ba9a9bb776ad7502a093d1bf82554713152021-03-07 11:58:42104 days 16 hrs ago 0x4f1818ff649498a2441ae1ad29ccf55a8e1c6250 HyperJump: MECHS Token0 BNB
0x797e72c1d705f8a6a8151af1c919fcf3b219612eb0c7a5cc36763546e474131b54713082021-03-07 11:58:21104 days 16 hrs ago 0xf4dd1c9676e0eff4dbd3179d28bd84d42a0ea7ea HyperJump: MECHS Token0 BNB
0x797e72c1d705f8a6a8151af1c919fcf3b219612eb0c7a5cc36763546e474131b54713082021-03-07 11:58:21104 days 16 hrs ago 0xf4dd1c9676e0eff4dbd3179d28bd84d42a0ea7ea HyperJump: MECHS Token0 BNB
0xd0feabc4311a12544c4da10cf689fbf7adbe1848e315e6b9e317e6a11fd535c554713032021-03-07 11:58:06104 days 16 hrs ago HyperJump: MECHS Token HyperJump: ALLOY Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HyperMechs

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-03-04
*/

// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

/**
 * @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) {
        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;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}


pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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);
}


pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
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);
            }
        }
    }
}


pragma solidity ^0.6.0;




/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: decreased allowance below zero'
        );
        _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(IBEP20 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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}


pragma solidity >=0.4.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

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

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


pragma solidity >=0.4.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


pragma solidity >=0.4.0;






/**
 * @dev Implementation of the {IBEP20} 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 {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-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 BEP20 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 {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    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 bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

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

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

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {BEP20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: 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 {BEP20-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(_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 {BEP20-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(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

        _balances[sender] = _balances[sender].sub(amount, 'BEP20: 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 {
        require(account != address(0), 'BEP20: 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 amount) internal {
        require(account != address(0), 'BEP20: burn from the zero address');

        _balances[account] = _balances[account].sub(amount, 'BEP20: 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 {
        require(owner != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

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

    /**
     * @dev Destroys `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,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance')
        );
    }
}

// File: contracts/HyperAlloy.sol

pragma solidity 0.6.12;


contract HyperAlloy is BEP20('HyperAlloy', 'ALLOY') {
    // burn counter
    uint256 private _burnTotal;

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner.
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }

    // burn logic
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
        _burnTotal = _burnTotal.add(amount);
    }

    // interactive burn logic
    function burnFrom(address account, uint256 amount) public {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(
            amount,
            'BEP20: burn amount exceeds allowance'
        );

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
        _burnTotal = _burnTotal.add(amount);
    }

    // view total burnt alloy
    function totalAlloyBurned() public view returns (uint256) {
        return _burnTotal;
    }
}

// File: contracts/HyperMechs.sol

pragma solidity 0.6.12;



contract HyperMechs is BEP20('HyperMechs', 'MECHS') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (HyperCity).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }

    function burn(address _from ,uint256 _amount) public onlyOwner {
        _burn(_from, _amount);
    }

    // HyperAlloy
    HyperAlloy public alloy;

    constructor(
        HyperAlloy _alloy
    ) public {
        alloy = _alloy;
    }

    // Safe alloy transfer function, just in case if rounding error causes pool to not have enough DRUGs.
    function safeAlloyTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 alloyBal = alloy.balanceOf(address(this));
        if (_amount > alloyBal) {
            alloy.transfer(_to, alloyBal);
        } else {
            alloy.transfer(_to, _amount);
        }
    }
}

// File: contracts/DrugsToken.sol

pragma solidity 0.6.12;


// Drugs
contract DrugsTokenV2 is BEP20('DrugsV2', 'DRUGS') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (OriginalGangster).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }
    // burn logic
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }
    // interactive burn logic
    function burnFrom(address account, uint256 amount) public {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(
            amount,
            'BEP20: burn amount exceeds allowance'
        );

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

// File: contracts/GunsToken.sol

pragma solidity 0.6.12;


// Get Dem Gats
contract GunsToken is BEP20('GunsToken', 'GUNS') {
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }
    
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }
    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(
            amount,
            'BEP20: burn amount exceeds allowance'
        );

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

// File: contracts/GangEast.sol

pragma solidity 0.6.12;



contract GangEast is BEP20('East Side Gangsters', 'EAST') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (GunDistributor).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }

    // The DRUGS TOKEN!
    GunsToken public guns;

    constructor(
        GunsToken _guns
    ) public {
        guns = _guns;
    }

    // burn from sender
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }

    // interactive burn
    function burnFrom(address account, uint256 amount) public {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(
            amount,
            'BEP20: burn amount exceeds allowance'
        );

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }

    // Safe guns transfer function
    function safeGunsTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 gunsBal = guns.balanceOf(address(this));
        if (_amount > gunsBal) {
            guns.transfer(_to, gunsBal);
        } else {
            guns.transfer(_to, _amount);
        }
    }

}

// File: contracts/GangWest.sol

pragma solidity 0.6.12;



contract GangWest is BEP20('West Side Gangsters', 'WEST') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (GunDistributor).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }

    // The DRUGS TOKEN!
    GunsToken public guns;

    constructor(
        GunsToken _guns
    ) public {
        guns = _guns;
    }

    // burns from sender
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }

    // interactive burn
    function burnFrom(address account, uint256 amount) public {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(
            amount,
            'BEP20: burn amount exceeds allowance'
        );

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

// File: contracts/HyperCity.sol

pragma solidity 0.6.12;











contract HyperCity is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of DRUGs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accAlloyPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accAlloyPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. DRUGs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that DRUGs distribution occurs.
        uint256 accAlloyPerShare; // Accumulated DRUGs per share, times 1e12. See below.
    }

    // Hyper Tokens
    HyperAlloy public alloy;
    HyperMechs public mechs;
    // Old Tokens
    DrugsTokenV2 public drugs;
    GunsToken public guns;
    // Gangs
    GangEast public east;
    GangWest public west;
    
    // farm parameters
    address public devAddr;
    address public lpFeeAddr;
    uint256 public alloyPerBlock;
    uint256 public BONUS_MULTIPLIER = 1;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when ALLOY mining starts.
    uint256 public startBlock;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);

    constructor(
        HyperAlloy _alloy,
        HyperMechs _mechs,
        DrugsTokenV2 _drugs,
        GunsToken _guns,
        GangEast _east,
        GangWest _west,
        address _devAddr,
        address _lpFeeAddr,
        uint256 _alloyPerBlock,
        uint256 _startBlock
    ) public {
        alloy = _alloy;
        mechs = _mechs;
        drugs = _drugs;
        guns = _guns;
        east = _east;
        west = _west;
        devAddr = _devAddr;
        lpFeeAddr = _lpFeeAddr;
        alloyPerBlock = _alloyPerBlock;
        startBlock = _startBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _alloy,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accAlloyPerShare: 0
        }));

        totalAllocPoint = 1000;

    }

    function updateMultiplier(uint256 multiplierNumber) public onlyOwner {
        BONUS_MULTIPLIER = multiplierNumber;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accAlloyPerShare: 0
        }));
        updateStakingPool();
    }

    // Update the given pool's ALLOY allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        if (prevAllocPoint != _allocPoint) {
            updateStakingPool();
        }
    }

    function updateStakingPool() internal {
        uint256 length = poolInfo.length;
        uint256 points = 0;
        for (uint256 pid = 1; pid < length; ++pid) {
            points = points.add(poolInfo[pid].allocPoint);
        }
        if (points != 0) {
            points = points.div(4);
            totalAllocPoint = totalAllocPoint.sub(poolInfo[0].allocPoint).add(points);
            poolInfo[0].allocPoint = points;
        }
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending DRUGs on frontend.
    function pendingAlloy(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accAlloyPerShare = pool.accAlloyPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 alloyReward = multiplier.mul(alloyPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accAlloyPerShare = accAlloyPerShare.add(alloyReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accAlloyPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }


    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 alloyReward = multiplier.mul(alloyPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        alloy.mint(devAddr, alloyReward.div(10));
        alloy.mint(address(mechs), alloyReward);
        pool.accAlloyPerShare = pool.accAlloyPerShare.add(alloyReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to HyperCity for ALLOY allocation.
    function deposit(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'deposit ALLOY by staking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accAlloyPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeAlloyTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            uint256 lpFee = _amount.div(100);
            uint256 afterFee = _amount.sub(lpFee);
            pool.lpToken.safeTransferFrom(address(msg.sender), address(lpFeeAddr), lpFee);
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), afterFee);
            user.amount = user.amount.add(afterFee);

            user.rewardDebt = user.amount.mul(pool.accAlloyPerShare).div(1e12);
            emit Deposit(msg.sender, _pid, afterFee);
        } else {
            user.rewardDebt = user.amount.mul(pool.accAlloyPerShare).div(1e12);
            emit Deposit(msg.sender, _pid, _amount);
        }
    }

    // Withdraw LP tokens from HyperCity.
    function withdraw(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'withdraw ALLOY by unstaking');
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");

        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accAlloyPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeAlloyTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accAlloyPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Exchange Drugs for Alloy
    function smeltDrugs(uint256 _amount) public {
        require(drugs.balanceOf(address(msg.sender)) >= _amount, 'not enough stash');
        require (_amount > 9, 'Enter a higher amount.');
        drugs.burnFrom(address(msg.sender), _amount);
        uint256 amountAfterRatio = _amount.div(10);
        alloy.mint(msg.sender, amountAfterRatio);
    }

    // Exchange Guns for Alloy
    function smeltGuns(uint256 _amount) public {
        require(guns.balanceOf(address(msg.sender)) >= _amount, 'not enough firepower');
        require (_amount > 9, 'Enter a higher amount.');
        guns.burnFrom(address(msg.sender), _amount);
        uint256 amountAfterRatio = _amount.div(10);
        alloy.mint(msg.sender, amountAfterRatio);
    }

    // Exchange East for Alloy
    function smeltEast(uint256 _amount) public {
        require(east.balanceOf(address(msg.sender)) >= _amount, 'not enough east');
        require (_amount > 9, 'Enter a higher amount.');
        east.burnFrom(address(msg.sender), _amount);
        uint256 amountAfterRatio = _amount.div(10);
        alloy.mint(msg.sender, amountAfterRatio);
    }

    // Exchange West for Alloy
    function smeltWest(uint256 _amount) public {
        require(west.balanceOf(address(msg.sender)) >= _amount, 'not enough west');
        require (_amount > 9, 'Enter a higher amount.');
        west.burnFrom(address(msg.sender), _amount);
        uint256 amountAfterRatio = _amount.div(10);
        alloy.mint(msg.sender, amountAfterRatio);
    }

    // Stake ALLOY tokens to HyperCity
    function enterMechs(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        updatePool(0);
        uint256 amountAfterRatio = _amount.div(5);
        uint256 sanitized = amountAfterRatio.mul(5);

        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accAlloyPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeAlloyTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), sanitized);
            user.amount = user.amount.add(sanitized);
        }
        user.rewardDebt = user.amount.mul(pool.accAlloyPerShare).div(1e12);
        
        mechs.mint(msg.sender, amountAfterRatio);
        emit Deposit(msg.sender, 0, sanitized);
    }

    // Withdraw ALLOY tokens from STAKING.
    function leaveMechs(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        require(user.amount >= _amount.mul(5), "you don't have enough mechs");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accAlloyPerShare).div(1e12).sub(user.rewardDebt);
        uint256 amountAfterRatio = _amount.mul(5);
        if(pending > 0) {
            safeAlloyTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(amountAfterRatio);
            pool.lpToken.safeTransfer(address(msg.sender), amountAfterRatio);
        }
        user.rewardDebt = user.amount.mul(pool.accAlloyPerShare).div(1e12);
        
        mechs.burn(msg.sender, _amount);
        emit Withdraw(msg.sender, 0, amountAfterRatio);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        require (_pid != 0, "Use leaveMechs");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

    // Safe alloy transfer function, just in case if rounding error causes pool to not have enough DRUGs.
    function safeAlloyTransfer(address _to, uint256 _amount) internal {
        mechs.safeAlloyTransfer(_to, _amount);
    }

    // Update dev address
    function dev(address _devAddr) public onlyOwner {
        devAddr = _devAddr;
    }
    // Update LP Fee Address
    function lpFeeAddress(address _lpFeeAddr) public onlyOwner {
        lpFeeAddr = _lpFeeAddr;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract HyperAlloy","name":"_alloy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alloy","outputs":[{"internalType":"contract HyperAlloy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"safeAlloyTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620015ba380380620015ba833981810160405260208110156200003757600080fd5b5051604080518082018252600a81526948797065724d6563687360b01b602082810191909152825180840190935260058352644d4543485360d81b908301529060006200008362000132565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000e290600490602085019062000136565b508051620000f890600590602084019062000136565b5050600680546001600160a01b0390931661010002610100600160a81b031960ff19909416601217939093169290921790915550620001d2565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200017957805160ff1916838001178555620001a9565b82800160010185558215620001a9579182015b82811115620001a95782518255916020019190600101906200018c565b50620001b7929150620001bb565b5090565b5b80821115620001b75760008155600101620001bc565b6113d880620001e26000396000f3fe608060405234801561001057600080fd5b506004361061016b5760003560e01c8063715018a6116100cd578063a0712d6811610081578063a9059cbb11610066578063a9059cbb14610400578063dd62ed3e1461042c578063f2fde38b1461045a5761016b565b8063a0712d68146103b7578063a457c2d7146103d45761016b565b80638da5cb5b116100b25780638da5cb5b1461037b57806395d89b41146103835780639dc29fac1461038b5761016b565b8063715018a61461036b578063893d20e8146103735761016b565b80632b0bbbb411610124578063395093511161010957806339509351146102ed57806340c10f191461031957806370a08231146103455761016b565b80632b0bbbb4146102a1578063313ce567146102cf5761016b565b8063095ea7b311610155578063095ea7b31461021157806318160ddd1461025157806323b872dd1461026b5761016b565b8062cbf8ab1461017057806306fdde0314610194575b600080fd5b610178610480565b604080516001600160a01b039092168252519081900360200190f35b61019c610494565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d65781810151838201526020016101be565b50505050905090810190601f1680156102035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023d6004803603604081101561022757600080fd5b506001600160a01b03813516906020013561052a565b604080519115158252519081900360200190f35b610259610547565b60408051918252519081900360200190f35b61023d6004803603606081101561028157600080fd5b506001600160a01b0381358116916020810135909116906040013561054d565b6102cd600480360360408110156102b757600080fd5b506001600160a01b0381351690602001356105d4565b005b6102d76107f9565b6040805160ff9092168252519081900360200190f35b61023d6004803603604081101561030357600080fd5b506001600160a01b038135169060200135610802565b6102cd6004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610850565b6102596004803603602081101561035b57600080fd5b50356001600160a01b03166108c8565b6102cd6108e3565b6101786109a4565b6101786109b3565b61019c6109c2565b6102cd600480360360408110156103a157600080fd5b506001600160a01b038135169060200135610a23565b61023d600480360360208110156103cd57600080fd5b5035610a97565b61023d600480360360408110156103ea57600080fd5b506001600160a01b038135169060200135610b1c565b61023d6004803603604081101561041657600080fd5b506001600160a01b038135169060200135610b84565b6102596004803603604081101561044257600080fd5b506001600160a01b0381358116916020013516610b98565b6102cd6004803603602081101561047057600080fd5b50356001600160a01b0316610bc3565b60065461010090046001600160a01b031681565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105205780601f106104f557610100808354040283529160200191610520565b820191906000526020600020905b81548152906001019060200180831161050357829003601f168201915b5050505050905090565b600061053e610537610c39565b8484610c3d565b50600192915050565b60035490565b600061055a848484610d29565b6105ca84610566610c39565b6105c5856040518060600160405280602881526020016112a8602891396001600160a01b038a166000908152600260205260408120906105a4610c39565b6001600160a01b031681526020810191909152604001600020549190610e7b565b610c3d565b5060019392505050565b6105dc610c39565b6000546001600160a01b0390811691161461063e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156106a757600080fd5b505afa1580156106bb573d6000803e3d6000fd5b505050506040513d60208110156106d157600080fd5b505190508082111561076b576006546040805163a9059cbb60e01b81526001600160a01b0386811660048301526024820185905291516101009093049091169163a9059cbb916044808201926020929091908290030181600087803b15801561073957600080fd5b505af115801561074d573d6000803e3d6000fd5b505050506040513d602081101561076357600080fd5b506107f49050565b6006546040805163a9059cbb60e01b81526001600160a01b0386811660048301526024820186905291516101009093049091169163a9059cbb916044808201926020929091908290030181600087803b1580156107c757600080fd5b505af11580156107db573d6000803e3d6000fd5b505050506040513d60208110156107f157600080fd5b50505b505050565b60065460ff1690565b600061053e61080f610c39565b846105c58560026000610820610c39565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610f12565b610858610c39565b6000546001600160a01b039081169116146108ba576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6108c48282610f73565b5050565b6001600160a01b031660009081526001602052604090205490565b6108eb610c39565b6000546001600160a01b0390811691161461094d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60006109ae6109b3565b905090565b6000546001600160a01b031690565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105205780601f106104f557610100808354040283529160200191610520565b610a2b610c39565b6000546001600160a01b03908116911614610a8d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6108c48282611059565b6000610aa1610c39565b6000546001600160a01b03908116911614610b03576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610b14610b0e610c39565b83610f73565b506001919050565b600061053e610b29610c39565b846105c5856040518060600160405280602581526020016113196025913960026000610b53610c39565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e7b565b600061053e610b91610c39565b8484610d29565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610bcb610c39565b6000546001600160a01b03908116911614610c2d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610c3681611149565b50565b3390565b6001600160a01b038316610c825760405162461bcd60e51b815260040180806020018281038252602481526020018061125e6024913960400191505060405180910390fd5b6001600160a01b038216610cc75760405162461bcd60e51b81526004018080602001828103825260228152602001806113816022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d6e5760405162461bcd60e51b81526004018080602001828103825260258152602001806112396025913960400191505060405180910390fd5b6001600160a01b038216610db35760405162461bcd60e51b81526004018080602001828103825260238152602001806112f66023913960400191505060405180910390fd5b610df0816040518060600160405280602681526020016112d0602691396001600160a01b0386166000908152600160205260409020549190610e7b565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610e1f9082610f12565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610f0a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ecf578181015183820152602001610eb7565b50505050905090810190601f168015610efc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f6c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610fce576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354610fdb9082610f12565b6003556001600160a01b0382166000908152600160205260409020546110019082610f12565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03821661109e5760405162461bcd60e51b815260040180806020018281038252602181526020018061133e6021913960400191505060405180910390fd5b6110db8160405180606001604052806022815260200161135f602291396001600160a01b0385166000908152600160205260409020549190610e7b565b6001600160a01b03831660009081526001602052604090205560035461110190826111f6565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03811661118e5760405162461bcd60e51b81526004018080602001828103825260268152602001806112826026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000610f6c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e7b56fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42455032303a206275726e2066726f6d20746865207a65726f206164647265737342455032303a206275726e20616d6f756e7420657863656564732062616c616e636542455032303a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220a8f85a79fbda1e265cfc7a5d890cc51cd7a6609324d61ba6f390678896f7a33e64736f6c634300060c00330000000000000000000000005ef5994fa33ff4eb6c82d51ee1dc145c546065bd

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

0000000000000000000000005ef5994fa33ff4eb6c82d51ee1dc145c546065bd

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005ef5994fa33ff4eb6c82d51ee1dc145c546065bd


Deployed ByteCode Sourcemap

34254:923:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34647:23;;;:::i;:::-;;;;-1:-1:-1;;;;;34647:23:0;;;;;;;;;;;;;;25270:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26757:161;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26757:161:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;25746:100;;;:::i;:::-;;;;;;;;;;;;;;;;27389:397;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27389:397:0;;;;;;;;;;;;;;;;;:::i;34881:293::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34881:293:0;;;;;;;;:::i;:::-;;25429:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28194:210;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28194:210:0;;;;;;;;:::i;34410:99::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34410:99:0;;;;;;;;:::i;25908:119::-;;;;;;;;;;;;;;;;-1:-1:-1;25908:119:0;-1:-1:-1;;;;;25908:119:0;;:::i;22231:140::-;;;:::i;25113:94::-;;;:::i;21589:79::-;;;:::i;25586:96::-;;;:::i;34517:103::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34517:103:0;;;;;;;;:::i;29435:130::-;;;;;;;;;;;;;;;;-1:-1:-1;29435:130:0;;:::i;28906:311::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28906:311:0;;;;;;;;:::i;26239:167::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26239:167:0;;;;;;;;:::i;26468:143::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26468:143:0;;;;;;;;;;:::i;22526:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22526:109:0;-1:-1:-1;;;;;22526:109:0;;:::i;34647:23::-;;;;;;-1:-1:-1;;;;;34647:23:0;;:::o;25270:92::-;25349:5;25342:12;;;;;;;;-1:-1:-1;;25342:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25316:13;;25342:12;;25349:5;;25342:12;;25349:5;25342:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25270:92;:::o;26757:161::-;26832:4;26849:39;26858:12;:10;:12::i;:::-;26872:7;26881:6;26849:8;:39::i;:::-;-1:-1:-1;26906:4:0;26757:161;;;;:::o;25746:100::-;25826:12;;25746:100;:::o;27389:397::-;27521:4;27538:36;27548:6;27556:9;27567:6;27538:9;:36::i;:::-;27585:171;27608:6;27629:12;:10;:12::i;:::-;27656:89;27694:6;27656:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27656:19:0;;;;;;:11;:19;;;;;;27676:12;:10;:12::i;:::-;-1:-1:-1;;;;;27656:33:0;;;;;;;;;;;;-1:-1:-1;27656:33:0;;;:89;:37;:89::i;:::-;27585:8;:171::i;:::-;-1:-1:-1;27774:4:0;27389:397;;;;;:::o;34881:293::-;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34985:5:::1;::::0;:30:::1;::::0;;;;;35009:4:::1;34985:30;::::0;::::1;::::0;;;-1:-1:-1;;34985:5:0::1;::::0;::::1;-1:-1:-1::0;;;;;34985:5:0::1;::::0;:15:::1;::::0;:30;;;;;::::1;::::0;;;;;;;;:5;:30;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;34985:30:0;;-1:-1:-1;35030:18:0;;::::1;35026:141;;;35065:5;::::0;:29:::1;::::0;;-1:-1:-1;;;35065:29:0;;-1:-1:-1;;;;;35065:29:0;;::::1;;::::0;::::1;::::0;;;;;;;;;:5:::1;::::0;;::::1;::::0;;::::1;::::0;:14:::1;::::0;:29;;;;;::::1;::::0;;;;;;;;;-1:-1:-1;35065:5:0;:29;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;35026:141:0::1;::::0;-1:-1:-1;35026:141:0::1;;35127:5;::::0;:28:::1;::::0;;-1:-1:-1;;;35127:28:0;;-1:-1:-1;;;;;35127:28:0;;::::1;;::::0;::::1;::::0;;;;;;;;;:5:::1;::::0;;::::1;::::0;;::::1;::::0;:14:::1;::::0;:28;;;;;::::1;::::0;;;;;;;;;-1:-1:-1;35127:5:0;:28;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;35026:141:0::1;21871:1;34881:293:::0;;:::o;25429:92::-;25504:9;;;;25429:92;:::o;28194:210::-;28274:4;28291:83;28300:12;:10;:12::i;:::-;28314:7;28323:50;28362:10;28323:11;:25;28335:12;:10;:12::i;:::-;-1:-1:-1;;;;;28323:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;28323:25:0;;;:34;;;;;;;;;;;:38;:50::i;34410:99::-;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34482:19:::1;34488:3;34493:7;34482:5;:19::i;:::-;34410:99:::0;;:::o;25908:119::-;-1:-1:-1;;;;;26001:18:0;25974:7;26001:18;;;:9;:18;;;;;;;25908:119::o;22231:140::-;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22330:1:::1;22314:6:::0;;22293:40:::1;::::0;-1:-1:-1;;;;;22314:6:0;;::::1;::::0;22293:40:::1;::::0;22330:1;;22293:40:::1;22361:1;22344:19:::0;;-1:-1:-1;;22344:19:0::1;::::0;;22231:140::o;25113:94::-;25165:7;25192;:5;:7::i;:::-;25185:14;;25113:94;:::o;21589:79::-;21627:7;21654:6;-1:-1:-1;;;;;21654:6:0;21589:79;:::o;25586:96::-;25667:7;25660:14;;;;;;;;-1:-1:-1;;25660:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25634:13;;25660:14;;25667:7;;25660:14;;25667:7;25660:14;;;;;;;;;;;;;;;;;;;;;;;;34517:103;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34591:21:::1;34597:5;34604:7;34591:5;:21::i;29435:130::-:0;29491:4;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29508:27:::1;29514:12;:10;:12::i;:::-;29528:6;29508:5;:27::i;:::-;-1:-1:-1::0;29553:4:0::1;29435:130:::0;;;:::o;28906:311::-;28991:4;29008:179;29031:12;:10;:12::i;:::-;29058:7;29080:96;29119:15;29080:96;;;;;;;;;;;;;;;;;:11;:25;29092:12;:10;:12::i;:::-;-1:-1:-1;;;;;29080:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;29080:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;26239:167::-;26317:4;26334:42;26344:12;:10;:12::i;:::-;26358:9;26369:6;26334:9;:42::i;26468:143::-;-1:-1:-1;;;;;26576:18:0;;;26549:7;26576:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;26468:143::o;22526:109::-;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22599:28:::1;22618:8;22599:18;:28::i;:::-;22526:109:::0;:::o;20212:98::-;20292:10;20212:98;:::o;32269:372::-;-1:-1:-1;;;;;32397:19:0;;32389:68;;;;-1:-1:-1;;;32389:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32476:21:0;;32468:68;;;;-1:-1:-1;;;32468:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32549:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;32601:32;;;;;;;;;;;;;;;;;32269:372;;;:::o;30055:505::-;-1:-1:-1;;;;;30187:20:0;;30179:70;;;;-1:-1:-1;;;30179:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30268:23:0;;30260:71;;;;-1:-1:-1;;;30260:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30364;30386:6;30364:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30364:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;30344:17:0;;;;;;;:9;:17;;;;;;:91;;;;30469:20;;;;;;;:32;;30494:6;30469:24;:32::i;:::-;-1:-1:-1;;;;;30446:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;30517:35;;;;;;;30446:20;;30517:35;;;;;;;;;;;;;30055:505;;;:::o;1806:226::-;1926:7;1962:12;1954:6;;;;1946:29;;;;-1:-1:-1;;;1946:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1998:5:0;;;1806:226::o;903:181::-;961:7;993:5;;;1017:6;;;;1009:46;;;;;-1:-1:-1;;;1009:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1075:1;903:181;-1:-1:-1;;;903:181:0:o;30841:308::-;-1:-1:-1;;;;;30917:21:0;;30909:65;;;;;-1:-1:-1;;;30909:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31002:12;;:24;;31019:6;31002:16;:24::i;:::-;30987:12;:39;-1:-1:-1;;;;;31058:18:0;;;;;;:9;:18;;;;;;:30;;31081:6;31058:22;:30::i;:::-;-1:-1:-1;;;;;31037:18:0;;;;;;:9;:18;;;;;;;;:51;;;;31104:37;;;;;;;31037:18;;;;31104:37;;;;;;;;;;30841:308;;:::o;31481:348::-;-1:-1:-1;;;;;31557:21:0;;31549:67;;;;-1:-1:-1;;;31549:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31650:68;31673:6;31650:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31650:18:0;;;;;;:9;:18;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;31629:18:0;;;;;;:9;:18;;;;;:89;31744:12;;:24;;31761:6;31744:16;:24::i;:::-;31729:12;:39;31784:37;;;;;;;;31810:1;;-1:-1:-1;;;;;31784:37:0;;;;;;;;;;;;31481:348;;:::o;22741:229::-;-1:-1:-1;;;;;22815:22:0;;22807:73;;;;-1:-1:-1;;;22807:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22917:6;;;22896:38;;-1:-1:-1;;;;;22896:38:0;;;;22917:6;;;22896:38;;;22945:6;:17;;-1:-1:-1;;22945:17:0;-1:-1:-1;;;;;22945:17:0;;;;;;;;;;22741:229::o;1367:136::-;1425:7;1452:43;1456:1;1459;1452:43;;;;;;;;;;;;;;;;;:3;:43::i

Swarm Source

ipfs://a8f85a79fbda1e265cfc7a5d890cc51cd7a6609324d61ba6f390678896f7a33e
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.