BNB Price: $720.02 (+1.69%)
Gas: 1 GWei
 
Transaction Hash
Method
Block
From
To
Approve448795772024-12-14 23:41:5017 hrs ago1734219710IN
HyperJump: ALLOY Token
0 BNB0.000024241
Approve448204432024-12-12 22:24:282 days ago1734042268IN
HyperJump: ALLOY Token
0 BNB0.000072733
Approve448202162024-12-12 22:13:072 days ago1734041587IN
HyperJump: ALLOY Token
0 BNB0.000072733
Approve447910162024-12-11 21:52:553 days ago1733953975IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve446795112024-12-08 0:56:477 days ago1733619407IN
HyperJump: ALLOY Token
0 BNB0.000046521
Approve446449602024-12-06 20:09:108 days ago1733515750IN
HyperJump: ALLOY Token
0 BNB0.000046241
Approve446112252024-12-05 16:02:1010 days ago1733414530IN
HyperJump: ALLOY Token
0 BNB0.000046221
Approve445492112024-12-03 12:20:5612 days ago1733228456IN
HyperJump: ALLOY Token
0 BNB0.000072733
Approve445491982024-12-03 12:20:1712 days ago1733228417IN
HyperJump: ALLOY Token
0 BNB0.000072733
Approve445484082024-12-03 11:40:4712 days ago1733226047IN
HyperJump: ALLOY Token
0 BNB0.000046451
Transfer444758002024-11-30 23:10:1114 days ago1733008211IN
HyperJump: ALLOY Token
0 BNB0.000046841
Approve442629982024-11-23 13:49:2022 days ago1732369760IN
HyperJump: ALLOY Token
0 BNB0.000139583
Approve442137142024-11-21 20:44:5123 days ago1732221891IN
HyperJump: ALLOY Token
0 BNB0.000046521
Approve440263062024-11-15 8:34:1430 days ago1731659654IN
HyperJump: ALLOY Token
0 BNB0.000028861.1
Approve440263032024-11-15 8:34:0530 days ago1731659645IN
HyperJump: ALLOY Token
0 BNB0.000024481.01
Approve440155022024-11-14 23:34:0230 days ago1731627242IN
HyperJump: ALLOY Token
0 BNB0.000072733
Approve436282882024-11-01 12:40:3844 days ago1730464838IN
HyperJump: ALLOY Token
0 BNB0.000046451
Approve435784352024-10-30 19:07:5645 days ago1730315276IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve435784302024-10-30 19:07:4145 days ago1730315261IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve435060132024-10-28 6:46:4048 days ago1730098000IN
HyperJump: ALLOY Token
0 BNB0.000050871.1
Approve434674292024-10-26 22:37:2749 days ago1729982247IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve434674272024-10-26 22:37:2149 days ago1729982241IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve434674252024-10-26 22:37:1549 days ago1729982235IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve434674232024-10-26 22:37:0949 days ago1729982229IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
Approve434556452024-10-26 12:48:1550 days ago1729946895IN
HyperJump: ALLOY Token
0 BNB0.000026661.1
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
54713352021-03-07 11:59:421379 days ago1615118382
HyperJump: ALLOY Token
0 BNB
54713352021-03-07 11:59:421379 days ago1615118382
HyperJump: ALLOY Token
0 BNB
54713352021-03-07 11:59:421379 days ago1615118382
HyperJump: ALLOY Token
0 BNB
54713352021-03-07 11:59:421379 days ago1615118382
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713312021-03-07 11:59:301379 days ago1615118370
HyperJump: ALLOY Token
0 BNB
54713202021-03-07 11:58:571379 days ago1615118337
HyperJump: ALLOY Token
0 BNB
54713202021-03-07 11:58:571379 days ago1615118337
HyperJump: ALLOY Token
0 BNB
54713182021-03-07 11:58:511379 days ago1615118331
HyperJump: ALLOY Token
0 BNB
54713182021-03-07 11:58:511379 days ago1615118331
HyperJump: ALLOY Token
0 BNB
54713182021-03-07 11:58:511379 days ago1615118331
HyperJump: ALLOY Token
0 BNB
54713182021-03-07 11:58:511379 days ago1615118331
HyperJump: ALLOY Token
0 BNB
54713182021-03-07 11:58:511379 days ago1615118331
HyperJump: ALLOY Token
0 BNB
54713182021-03-07 11:58:511379 days ago1615118331
HyperJump: ALLOY Token
0 BNB
54713162021-03-07 11:58:451379 days ago1615118325
HyperJump: ALLOY Token
0 BNB
54713162021-03-07 11:58:451379 days ago1615118325
HyperJump: ALLOY Token
0 BNB
54713162021-03-07 11:58:451379 days ago1615118325
HyperJump: ALLOY Token
0 BNB
54713162021-03-07 11:58:451379 days ago1615118325
HyperJump: ALLOY Token
0 BNB
54713162021-03-07 11:58:451379 days ago1615118325
HyperJump: ALLOY Token
0 BNB
54713162021-03-07 11:58:451379 days ago1615118325
HyperJump: ALLOY Token
0 BNB
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HyperAlloy

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 Security Audit

Contract ABI

[{"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":[{"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":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAlloyBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60806040523480156200001157600080fd5b506040518060400160405280600a8152602001694879706572416c6c6f7960b01b81525060405180604001604052806005815260200164414c4c4f5960d81b815250600062000065620000f060201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000c4906004906020850190620000f4565b508051620000da906005906020840190620000f4565b50506006805460ff191660121790555062000190565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200013757805160ff191683800117855562000167565b8280016001018555821562000167579182015b82811115620001675782518255916020019190600101906200014a565b506200017592915062000179565b5090565b5b808211156200017557600081556001016200017a565b6111d580620001a06000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c806371b47ec8116100cd578063a0712d6811610081578063a9059cbb11610066578063a9059cbb146103f2578063dd62ed3e1461041e578063f2fde38b1461044c5761016c565b8063a0712d68146103a9578063a457c2d7146103c65761016c565b8063893d20e8116100b2578063893d20e8146103755780638da5cb5b1461039957806395d89b41146103a15761016c565b806371b47ec81461034157806379cc6790146103495761016c565b8063395093511161012457806342966c681161010957806342966c68146102f657806370a0823114610313578063715018a6146103395761016c565b8063395093511461029c57806340c10f19146102c85761016c565b806318160ddd1161015557806318160ddd1461022e57806323b872dd14610248578063313ce5671461027e5761016c565b806306fdde0314610171578063095ea7b3146101ee575b600080fd5b610179610472565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b357818101518382015260200161019b565b50505050905090810190601f1680156101e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021a6004803603604081101561020457600080fd5b506001600160a01b038135169060200135610508565b604080519115158252519081900360200190f35b610236610525565b60408051918252519081900360200190f35b61021a6004803603606081101561025e57600080fd5b506001600160a01b0381358116916020810135909116906040013561052b565b6102866105b2565b6040805160ff9092168252519081900360200190f35b61021a600480360360408110156102b257600080fd5b506001600160a01b0381351690602001356105bb565b6102f4600480360360408110156102de57600080fd5b506001600160a01b038135169060200135610609565b005b6102f46004803603602081101561030c57600080fd5b5035610681565b6102366004803603602081101561032957600080fd5b50356001600160a01b03166106a5565b6102f46106c0565b610236610781565b6102f46004803603604081101561035f57600080fd5b506001600160a01b038135169060200135610787565b61037d6107f1565b604080516001600160a01b039092168252519081900360200190f35b61037d610800565b61017961080f565b61021a600480360360208110156103bf57600080fd5b5035610870565b61021a600480360360408110156103dc57600080fd5b506001600160a01b0381351690602001356108f5565b61021a6004803603604081101561040857600080fd5b506001600160a01b03813516906020013561095d565b6102366004803603604081101561043457600080fd5b506001600160a01b0381358116916020013516610971565b6102f46004803603602081101561046257600080fd5b50356001600160a01b031661099c565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b820191906000526020600020905b8154815290600101906020018083116104e157829003601f168201915b5050505050905090565b600061051c610515610a12565b8484610a16565b50600192915050565b60035490565b6000610538848484610b02565b6105a884610544610a12565b6105a385604051806060016040528060288152602001611081602891396001600160a01b038a16600090815260026020526040812090610582610a12565b6001600160a01b031681526020810191909152604001600020549190610c54565b610a16565b5060019392505050565b60065460ff1690565b600061051c6105c8610a12565b846105a385600260006105d9610a12565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610ceb565b610611610a12565b6000546001600160a01b03908116911614610673576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61067d8282610d4c565b5050565b61069261068c610a12565b82610e32565b60075461069f9082610ceb565b60075550565b6001600160a01b031660009081526001602052604090205490565b6106c8610a12565b6000546001600160a01b0390811691161461072a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60075490565b60006107be8260405180606001604052806024815260200161115a602491396107b7866107b2610a12565b610971565b9190610c54565b90506107d2836107cc610a12565b83610a16565b6107dc8383610e32565b6007546107e99083610ceb565b600755505050565b60006107fb610800565b905090565b6000546001600160a01b031690565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b600061087a610a12565b6000546001600160a01b039081169116146108dc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6108ed6108e7610a12565b83610d4c565b506001919050565b600061051c610902610a12565b846105a3856040518060600160405280602581526020016110f2602591396002600061092c610a12565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610c54565b600061051c61096a610a12565b8484610b02565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6109a4610a12565b6000546001600160a01b03908116911614610a06576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610a0f81610f22565b50565b3390565b6001600160a01b038316610a5b5760405162461bcd60e51b81526004018080602001828103825260248152602001806110376024913960400191505060405180910390fd5b6001600160a01b038216610aa05760405162461bcd60e51b815260040180806020018281038252602281526020018061117e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610b475760405162461bcd60e51b81526004018080602001828103825260258152602001806110126025913960400191505060405180910390fd5b6001600160a01b038216610b8c5760405162461bcd60e51b81526004018080602001828103825260238152602001806110cf6023913960400191505060405180910390fd5b610bc9816040518060600160405280602681526020016110a9602691396001600160a01b0386166000908152600160205260409020549190610c54565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610bf89082610ceb565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ce35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ca8578181015183820152602001610c90565b50505050905090810190601f168015610cd55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610d45576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610da7576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354610db49082610ceb565b6003556001600160a01b038216600090815260016020526040902054610dda9082610ceb565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610e775760405162461bcd60e51b81526004018080602001828103825260218152602001806111176021913960400191505060405180910390fd5b610eb481604051806060016040528060228152602001611138602291396001600160a01b0385166000908152600160205260409020549190610c54565b6001600160a01b038316600090815260016020526040902055600354610eda9082610fcf565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038116610f675760405162461bcd60e51b815260040180806020018281038252602681526020018061105b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000610d4583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c5456fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42455032303a206275726e2066726f6d20746865207a65726f206164647265737342455032303a206275726e20616d6f756e7420657863656564732062616c616e636542455032303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636542455032303a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220b0989de52c04101baccc185133449f20db5352f713da41be3f7215207a3a53d364736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061016c5760003560e01c806371b47ec8116100cd578063a0712d6811610081578063a9059cbb11610066578063a9059cbb146103f2578063dd62ed3e1461041e578063f2fde38b1461044c5761016c565b8063a0712d68146103a9578063a457c2d7146103c65761016c565b8063893d20e8116100b2578063893d20e8146103755780638da5cb5b1461039957806395d89b41146103a15761016c565b806371b47ec81461034157806379cc6790146103495761016c565b8063395093511161012457806342966c681161010957806342966c68146102f657806370a0823114610313578063715018a6146103395761016c565b8063395093511461029c57806340c10f19146102c85761016c565b806318160ddd1161015557806318160ddd1461022e57806323b872dd14610248578063313ce5671461027e5761016c565b806306fdde0314610171578063095ea7b3146101ee575b600080fd5b610179610472565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b357818101518382015260200161019b565b50505050905090810190601f1680156101e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021a6004803603604081101561020457600080fd5b506001600160a01b038135169060200135610508565b604080519115158252519081900360200190f35b610236610525565b60408051918252519081900360200190f35b61021a6004803603606081101561025e57600080fd5b506001600160a01b0381358116916020810135909116906040013561052b565b6102866105b2565b6040805160ff9092168252519081900360200190f35b61021a600480360360408110156102b257600080fd5b506001600160a01b0381351690602001356105bb565b6102f4600480360360408110156102de57600080fd5b506001600160a01b038135169060200135610609565b005b6102f46004803603602081101561030c57600080fd5b5035610681565b6102366004803603602081101561032957600080fd5b50356001600160a01b03166106a5565b6102f46106c0565b610236610781565b6102f46004803603604081101561035f57600080fd5b506001600160a01b038135169060200135610787565b61037d6107f1565b604080516001600160a01b039092168252519081900360200190f35b61037d610800565b61017961080f565b61021a600480360360208110156103bf57600080fd5b5035610870565b61021a600480360360408110156103dc57600080fd5b506001600160a01b0381351690602001356108f5565b61021a6004803603604081101561040857600080fd5b506001600160a01b03813516906020013561095d565b6102366004803603604081101561043457600080fd5b506001600160a01b0381358116916020013516610971565b6102f46004803603602081101561046257600080fd5b50356001600160a01b031661099c565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b820191906000526020600020905b8154815290600101906020018083116104e157829003601f168201915b5050505050905090565b600061051c610515610a12565b8484610a16565b50600192915050565b60035490565b6000610538848484610b02565b6105a884610544610a12565b6105a385604051806060016040528060288152602001611081602891396001600160a01b038a16600090815260026020526040812090610582610a12565b6001600160a01b031681526020810191909152604001600020549190610c54565b610a16565b5060019392505050565b60065460ff1690565b600061051c6105c8610a12565b846105a385600260006105d9610a12565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610ceb565b610611610a12565b6000546001600160a01b03908116911614610673576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61067d8282610d4c565b5050565b61069261068c610a12565b82610e32565b60075461069f9082610ceb565b60075550565b6001600160a01b031660009081526001602052604090205490565b6106c8610a12565b6000546001600160a01b0390811691161461072a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60075490565b60006107be8260405180606001604052806024815260200161115a602491396107b7866107b2610a12565b610971565b9190610c54565b90506107d2836107cc610a12565b83610a16565b6107dc8383610e32565b6007546107e99083610ceb565b600755505050565b60006107fb610800565b905090565b6000546001600160a01b031690565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b600061087a610a12565b6000546001600160a01b039081169116146108dc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6108ed6108e7610a12565b83610d4c565b506001919050565b600061051c610902610a12565b846105a3856040518060600160405280602581526020016110f2602591396002600061092c610a12565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610c54565b600061051c61096a610a12565b8484610b02565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6109a4610a12565b6000546001600160a01b03908116911614610a06576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610a0f81610f22565b50565b3390565b6001600160a01b038316610a5b5760405162461bcd60e51b81526004018080602001828103825260248152602001806110376024913960400191505060405180910390fd5b6001600160a01b038216610aa05760405162461bcd60e51b815260040180806020018281038252602281526020018061117e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610b475760405162461bcd60e51b81526004018080602001828103825260258152602001806110126025913960400191505060405180910390fd5b6001600160a01b038216610b8c5760405162461bcd60e51b81526004018080602001828103825260238152602001806110cf6023913960400191505060405180910390fd5b610bc9816040518060600160405280602681526020016110a9602691396001600160a01b0386166000908152600160205260409020549190610c54565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610bf89082610ceb565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ce35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ca8578181015183820152602001610c90565b50505050905090810190601f168015610cd55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610d45576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610da7576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354610db49082610ceb565b6003556001600160a01b038216600090815260016020526040902054610dda9082610ceb565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610e775760405162461bcd60e51b81526004018080602001828103825260218152602001806111176021913960400191505060405180910390fd5b610eb481604051806060016040528060228152602001611138602291396001600160a01b0385166000908152600160205260409020549190610c54565b6001600160a01b038316600090815260016020526040902055600354610eda9082610fcf565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038116610f675760405162461bcd60e51b815260040180806020018281038252602681526020018061105b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000610d4583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c5456fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42455032303a206275726e2066726f6d20746865207a65726f206164647265737342455032303a206275726e20616d6f756e7420657863656564732062616c616e636542455032303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636542455032303a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220b0989de52c04101baccc185133449f20db5352f713da41be3f7215207a3a53d364736f6c634300060c0033

Deployed Bytecode Sourcemap

33182:1000:0:-: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;25429:92::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28194:210;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28194:210:0;;;;;;;;:::i;33382:99::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33382:99:0;;;;;;;;:::i;:::-;;33508:129;;;;;;;;;;;;;;;;-1:-1:-1;33508:129:0;;:::i;25908:119::-;;;;;;;;;;;;;;;;-1:-1:-1;25908:119:0;-1:-1:-1;;;;;25908:119:0;;:::i;22231:140::-;;;:::i;34085:94::-;;;:::i;33676:370::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33676:370:0;;;;;;;;:::i;25113:94::-;;;:::i;:::-;;;;-1:-1:-1;;;;;25113:94:0;;;;;;;;;;;;;;21589:79;;;:::i;25586:96::-;;;:::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;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;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;33382:99::-;21811:12;:10;:12::i;:::-;21801:6;;-1:-1:-1;;;;;21801:6:0;;;:22;;;21793:67;;;;;-1:-1:-1;;;21793:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33454:19:::1;33460:3;33465:7;33454:5;:19::i;:::-;33382:99:::0;;:::o;33508:129::-;33556:27;33562:12;:10;:12::i;:::-;33576:6;33556:5;:27::i;:::-;33607:10;;:22;;33622:6;33607:14;:22::i;:::-;33594:10;:35;-1:-1:-1;33508:129: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;34085:94::-;34161:10;;34085:94;:::o;33676:370::-;33745:26;33774:121;33825:6;33774:121;;;;;;;;;;;;;;;;;:32;33784:7;33793:12;:10;:12::i;:::-;33774:9;:32::i;:::-;:36;:121;:36;:121::i;:::-;33745:150;;33908:51;33917:7;33926:12;:10;:12::i;:::-;33940:18;33908:8;:51::i;:::-;33970:22;33976:7;33985:6;33970:5;:22::i;:::-;34016:10;;:22;;34031:6;34016:14;:22::i;:::-;34003:10;:35;-1:-1:-1;;;33676:370:0: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;;;;;;;;;;;;;;;;;;;;;;;;29435:130;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://b0989de52c04101baccc185133449f20db5352f713da41be3f7215207a3a53d3

Block Transaction Gas Used Reward
view all blocks produced
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
View All Validatorset

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

OVERVIEW

ALLOY is the yield farming token of the HyperJump Ecosystem that allows users to not only stake using MECHs for more ALLOY but also for other partner tokens on the farm at the very same time. ALLOY is constantly being purchased and burned out of existence.

Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.