Contract 0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f

 
 
Txn Hash
Block
From
To
Value [Txn Fee]
0x107b844dab7694ac870341b807fd5e008e1a44368a3a15b71b6f9f77098b5a8494993242021-07-26 17:19:358 days 22 hrs ago0xcc14396dc87c91f48133767b48d37a11dd1f9314 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000306735
0x5f54390f1114936021bbed0c98a7974924f56e4edd84cdd47ff713039eafab6594992922021-07-26 17:17:598 days 22 hrs ago0xcc14396dc87c91f48133767b48d37a11dd1f9314 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.00045186
0x00baa65ed6f19c8525f0547366d6078df7f7c4fd13d50d0697470186e205d84a93047222021-07-19 22:05:2615 days 17 hrs ago0x36f9f04762985df3f6c646ee4caf269d8747ece8 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000346775
0xe8c96edd60a7999cf16291053c39a42bd4056f5c037fb0ac73ba30fc316df48691879052021-07-15 20:40:4419 days 18 hrs ago0x028f328c1e4ca62717b830db377ee1582bc1ece2 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.00045186
0xc33fed9f2ea0b763a5fb0d5b4b2416be71dbe1241a2920ad573900ae8f01741f91263032021-07-13 17:19:1221 days 22 hrs ago0x74232f8fa0c511c4a119c18583a8be8a13b30d84 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000421835
0x07160a717c55249799c2fd56ed272ea50aa131a8a65edbc29d2f0714de3b822491146652021-07-13 7:37:1822 days 7 hrs ago0xf73be1ba17b40b4f26f07896fb0e6a32b0bb393a IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0xa07716bd9233ef4d9818752e4392df172f23222c9798e00e085d06b4693e4a7090564832021-07-11 7:07:5424 days 8 hrs ago0x1c31784770b94f6e3da98599607f538f96b6e375 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x28f0d301567bd3814aba23f50f3f0d71e68f31b0bcc5a1e113d745e94d08153489362782021-07-07 2:55:3128 days 12 hrs ago0x53d04500bf5fbcdbbbe8cdf07ce37daf3c4669bc IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496775
0x880015b152ac405b3fcee02923b39b7db005a984fdc100332cfb08cf607f0dcc89260582021-07-06 18:24:1128 days 21 hrs ago0xbee621b8fe7668aa6651f49d9a5f40f02f5232e9 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000421715
0x5b6b6058a5e69e1cad55fa7d7085e8fb8bea8609e65d8c3184f64ff9467f71e885806742021-06-24 16:33:1240 days 22 hrs ago0x2cb8dfe4110564050d63f973f45226f4e9746379 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000421775
0x52599ab8ed7cdc528cde0e49f60c17515d352e896a4932a461a157602617bda384342452021-06-19 14:03:2046 days 1 hr ago0xd8155e3d7a3210626e42da48d5e07ee8ea4ce1b4 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000306675
0xaa9906b6fce55f507620ad9bef196e04896611593225092aae2c23037729ff6384342352021-06-19 14:02:4546 days 1 hr ago0xd8155e3d7a3210626e42da48d5e07ee8ea4ce1b4 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.00037686
0x61cfad5bfaac94a67e3e1afa24cc4f81bfcd6b467dbe175805862a8eeb3f72c382681832021-06-13 18:10:0351 days 21 hrs ago0xfa4ecad13b0a2514ad2141df9851d76d38a23dad IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x8b04eaca2ff7bea17623bc9e2c8ab978e4a79557cd24ec9fd66f796996fc507182539172021-06-13 6:09:2952 days 9 hrs ago0x9eb7bf29227c0a112149092ed3b710c69168babe IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000421655
0x6b97c88f506ea08eba36a5741e91cccbb5765a0e543ba58a33e8355a5539494e82172562021-06-11 23:27:0053 days 15 hrs ago0x7d316722a8ca4689876776f903e4c7f910f8bf67 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x77af6298f296bd952f4ab4e2c9b3509211b1626943c55b101ad7f8afe8ef857682056812021-06-11 13:44:5454 days 1 hr ago0x6d84c373cc19aa7cdaff5cc6953c79d29f7a160f IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x486720bd55fdc9836f5bf6aeb61cc17368bd69a40ade465b0933e3c129fb4c8782014712021-06-11 10:14:1854 days 5 hrs ago0x01aff2ace6ab86802b6e4977015822e0d858657e IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x4669aaff99790eafcb3b12633e09697621402db77626566cb74a189787c2f30481871712021-06-10 22:17:4954 days 17 hrs ago0x8d7cc8bef9efc60682562a6abea9475814742929 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000306735
0x441f66096b27e7a909d5c4abadbe25a2ea68df63d2ddf1be67be9cc91145c87681869592021-06-10 22:07:1354 days 17 hrs ago0x8d7cc8bef9efc60682562a6abea9475814742929 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.00045186
0xc34be213c0e051b6a807ca6e6a135a73471dd0b9679b131f54c65a70d727a23081863162021-06-10 21:35:0454 days 17 hrs ago0x81bd4e56dace0a71ee2e54df36c0fc36a209f9c8 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x3429d308fe094916edc0cd4c1dbbc9c66861c207d3c8311960a502e3177ee0fc81811632021-06-10 17:15:4654 days 22 hrs ago0x6c4dc8a4259ff4e76d9e313ef5bf88f87a82797c IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000421655
0x00401aae173b14bdff5cae0df07c87796ba8934eac24086451d3fc070e9430c881774492021-06-10 14:07:4455 days 1 hr ago0x350b8501c5df0cfbee0e4b9ccedd377219a1a008 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000496835
0x55b40e76947accccd8b6e71aa49d63964296ab82e7a104f8cc68c5110f3f7f6081534942021-06-09 18:06:1155 days 21 hrs ago0x3c07e374b8c910774918b5f31893940909abf512 IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000421835
0x4838cc295af4afce47bce2bb60f66d91447814a63c3d2731f6c12f93f467ede280896502021-06-07 12:45:4358 days 2 hrs ago0x339f3bfe66ae70d42514df6d7608f6922fd884df IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.000306735
0x52de545a1ecff20428ba55f35dda33567daf37eb5db45fc2af125f86a104c5c080896422021-06-07 12:45:1958 days 2 hrs ago0x339f3bfe66ae70d42514df6d7608f6922fd884df IN  0xc7f6055c9294a5bf033ae7b1c7fb46bdacb3d14f0 BNB0.00045186
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x91ed56d16ca749c6ee0ec6a5c3693a5ce479137d

Contract Name:
HyperPoolV2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

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

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

// File: traphouse-lib/contracts/token/BEP20/IBEP20.sol

// SPDX-License-Identifier: GPL-3.0-or-later

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.6.12;






contract HyperPoolV2 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.
    }

    // 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.
    }

    // The ALLOY TOKEN!
    IBEP20 public mechs;
    IBEP20 public rewardToken;

    // ALLOY tokens created per block.
    uint256 public rewardPerBlock;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    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;
    // The block number when ALLOY mining ends.
    uint256 public bonusEndBlock;

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

    constructor(
        IBEP20 _mechs,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock
    ) public {
        mechs = _mechs;
        rewardToken = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;

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

        totalAllocPoint = 1000;

    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        if (_to <= bonusEndBlock) {
            return _to.sub(_from);
        } else if (_from >= bonusEndBlock) {
            return 0;
        } else {
            return bonusEndBlock.sub(_from);
        }
    }

    // View function to see pending Reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[_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 drugsReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accAlloyPerShare = accAlloyPerShare.add(drugsReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accAlloyPerShare).div(1e12).sub(user.rewardDebt);
    }

    // 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 drugsReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accAlloyPerShare = pool.accAlloyPerShare.add(drugsReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

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


    // Stake MECHS tokens to HyperPool
    function deposit(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accAlloyPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                rewardToken.safeTransfer(address(msg.sender), pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accAlloyPerShare).div(1e12);

        emit Deposit(msg.sender, _amount);
    }

    // Withdraw MECHS tokens from STAKING.
    function withdraw(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accAlloyPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            rewardToken.safeTransfer(address(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, _amount);
    }

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

    // Withdraw reward. EMERGENCY ONLY.
    function emergencyRewardWithdraw(uint256 _amount) public onlyOwner {
        require(_amount < rewardToken.balanceOf(address(this)), 'not enough token');
        rewardToken.safeTransfer(address(msg.sender), _amount);
    }
    
    // Update Pool End Block
    function updateEndBlock(uint256 _endBlock) public onlyOwner {
        bonusEndBlock = _endBlock;
    }

}

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_mechs","type":"address"},{"internalType":"contract IBEP20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mechs","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accAlloyPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"name":"updateEndBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060065534801561001557600080fd5b50604051611605380380611605833981810160405260a081101561003857600080fd5b5080516020820151604083015160608401516080909401519293919290919060006100616101d1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039687166001600160a01b03199182168117835560028054978916978316979097179096556003949094556007839055600891909155604080516080810182529485526103e86020860181815291860193845260006060870181815260048054958601815591829052965193027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101805494909816939095169290921790955593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e909101556006556101d5565b3390565b611421806101e46000396000f3fe608060405234801561001057600080fd5b506004361061016b5760003560e01c8063715018a6116100cd578063b6b55f2511610081578063f2fde38b11610066578063f2fde38b14610328578063f40f0f521461034e578063f7c618c1146103745761016b565b8063b6b55f2514610303578063db2e21bc146103205761016b565b80638da5cb5b116100b25780638da5cb5b146102b45780638dbb1e3a146102d8578063aa8ea80a146102fb5761016b565b8063715018a6146102a45780638ae39cac146102ac5761016b565b80632e1a7d4d1161012457806348cd4cb11161010957806348cd4cb11461027757806351eb05a61461027f578063630b5ba11461029c5761016b565b80632e1a7d4d1461023d5780633279beab1461025a5761016b565b806317caf6f11161015557806317caf6f1146101dc5780631959a002146101f65780631aed6553146102355761016b565b80626f0231146101705780631526fe271461018f575b600080fd5b61018d6004803603602081101561018657600080fd5b503561037c565b005b6101ac600480360360208110156101a557600080fd5b50356103eb565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101e461042c565b60408051918252519081900360200190f35b61021c6004803603602081101561020c57600080fd5b50356001600160a01b0316610432565b6040805192835260208301919091528051918290030190f35b6101e461044b565b61018d6004803603602081101561025357600080fd5b5035610451565b61018d6004803603602081101561027057600080fd5b50356105c1565b6101e461070f565b61018d6004803603602081101561029557600080fd5b5035610715565b61018d610844565b61018d610867565b6101e4610928565b6102bc61092e565b604080516001600160a01b039092168252519081900360200190f35b6101e4600480360360408110156102ee57600080fd5b508035906020013561093d565b6102bc61097d565b61018d6004803603602081101561031957600080fd5b503561098c565b61018d610aa1565b61018d6004803603602081101561033e57600080fd5b50356001600160a01b0316610b34565b6101e46004803603602081101561036457600080fd5b50356001600160a01b0316610ba7565b6102bc610cff565b610384610d0e565b6000546001600160a01b039081169116146103e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600855565b600481815481106103f857fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60065481565b6005602052600090815260409020805460019091015482565b60085481565b6000600460008154811061046157fe5b60009182526020808320338452600590915260409092208054600490920290920192508311156104d8576040805162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6104e26000610715565b600061051c826001015461051664e8d4a5100061051087600301548760000154610d1290919063ffffffff16565b90610d72565b90610db4565b9050801561053b5760025461053b906001600160a01b03163383610df6565b831561056557815461054d9085610db4565b82558254610565906001600160a01b03163386610df6565b600383015482546105809164e8d4a510009161051091610d12565b600183015560408051858152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250505050565b6105c9610d0e565b6000546001600160a01b0390811691161461062b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561067657600080fd5b505afa15801561068a573d6000803e3d6000fd5b505050506040513d60208110156106a057600080fd5b505181106106f5576040805162461bcd60e51b815260206004820152601060248201527f6e6f7420656e6f75676820746f6b656e00000000000000000000000000000000604482015290519081900360640190fd5b60025461070c906001600160a01b03163383610df6565b50565b60075481565b60006004828154811061072457fe5b9060005260206000209060040201905080600201544311610745575061070c565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561078f57600080fd5b505afa1580156107a3573d6000803e3d6000fd5b505050506040513d60208110156107b957600080fd5b50519050806107cf57504360029091015561070c565b60006107df83600201544361093d565b9050600061080c600654610510866001015461080660035487610d1290919063ffffffff16565b90610d12565b905061082f610824846105108464e8d4a51000610d12565b600386015490610e7b565b60038501555050436002909201919091555050565b60045460005b818110156108635761085b81610715565b60010161084a565b5050565b61086f610d0e565b6000546001600160a01b039081169116146108d1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60035481565b6000546001600160a01b031690565b60006008548211610959576109528284610db4565b9050610977565b600854831061096a57506000610977565b6008546109529084610db4565b92915050565b6001546001600160a01b031681565b6000600460008154811061099c57fe5b600091825260208083203384526005909152604083206004909202019250906109c490610715565b805415610a1a5760006109f9826001015461051664e8d4a5100061051087600301548760000154610d1290919063ffffffff16565b90508015610a1857600254610a18906001600160a01b03163383610df6565b505b8215610a46578154610a37906001600160a01b0316333086610ed5565b8054610a439084610e7b565b81555b60038201548154610a619164e8d4a510009161051091610d12565b600182015560408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b60006004600081548110610ab157fe5b600091825260208083203380855260059092526040909320805460049093029093018054909450610aef926001600160a01b03919091169190610df6565b600080825560018201819055604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a25050565b610b3c610d0e565b6000546001600160a01b03908116911614610b9e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61070c81610f63565b6000806004600081548110610bb857fe5b600091825260208083206001600160a01b03878116855260058352604080862060049586029093016003810154815483516370a0823160e01b81523098810198909852925191985093969395939491909216926370a082319260248083019392829003018186803b158015610c2c57600080fd5b505afa158015610c40573d6000803e3d6000fd5b505050506040513d6020811015610c5657600080fd5b5051600285015490915043118015610c6d57508015155b15610ccd576000610c8285600201544361093d565b90506000610ca9600654610510886001015461080660035487610d1290919063ffffffff16565b9050610cc8610cc1846105108464e8d4a51000610d12565b8590610e7b565b935050505b610cf5836001015461051664e8d4a51000610510868860000154610d1290919063ffffffff16565b9695505050505050565b6002546001600160a01b031681565b3390565b600082610d2157506000610977565b82820282848281610d2e57fe5b0414610d6b5760405162461bcd60e51b81526004018080602001828103825260218152602001806113cb6021913960400191505060405180910390fd5b9392505050565b6000610d6b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611010565b6000610d6b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110b2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610e7690849061110c565b505050565b600082820183811015610d6b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610f5d90859061110c565b50505050565b6001600160a01b038116610fa85760405162461bcd60e51b81526004018080602001828103825260268152602001806113a56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000818361109c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611061578181015183820152602001611049565b50505050905090810190601f16801561108e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816110a857fe5b0495945050505050565b600081848411156111045760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611061578181015183820152602001611049565b505050900390565b6060611161826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111bd9092919063ffffffff16565b805190915015610e765780806020019051602081101561118057600080fd5b5051610e765760405162461bcd60e51b815260040180806020018281038252602a81526020018061137b602a913960400191505060405180910390fd5b60606111cc84846000856111d4565b949350505050565b60606111df85611341565b611230576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061126f5780518252601f199092019160209182019101611250565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112d1576040519150601f19603f3d011682016040523d82523d6000602084013e6112d6565b606091505b509150915081156112ea5791506111cc9050565b8051156112fa5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611061578181015183820152602001611049565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906111cc57505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212202f03d3e73a228dfc839d124399d629f97eb0ced7c4eb882eb5c02bdda32fa22564736f6c634300060c00330000000000000000000000003ae713c662b8852d686e718e0762631a4cb84954000000000000000000000000b1b17dff66d75b29d34f0bf8622c406d8219b5070000000000000000000000000000000000000000000000000005f297690d0e0000000000000000000000000000000000000000000000000000000000005b1b510000000000000000000000000000000000000000000000000000000000676951

Deployed ByteCode Sourcemap

23084:6777:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29752:104;;;;;;;;;;;;;;;;-1:-1:-1;29752:104:0;;:::i;:::-;;24006:26;;;;;;;;;;;;;;;;-1:-1:-1;24006:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;24006:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24228:34;;;:::i;:::-;;;;;;;;;;;;;;;;24088:45;;;;;;;;;;;;;;;;-1:-1:-1;24088:45:0;-1:-1:-1;;;;;24088:45:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24401:28;;;:::i;28306:729::-;;;;;;;;;;;;;;;;-1:-1:-1;28306:729:0;;:::i;29484:226::-;;;;;;;;;;;;;;;;-1:-1:-1;29484:226:0;;:::i;24320:25::-;;;:::i;26509:691::-;;;;;;;;;;;;;;;;-1:-1:-1;26509:691:0;;:::i;27283:180::-;;;:::i;22301:140::-;;;:::i;23941:29::-;;;:::i;21659:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;21659:79:0;;;;;;;;;;;;;;25315:306;;;;;;;;;;;;;;;;-1:-1:-1;25315:306:0;;;;;;;:::i;23841:19::-;;;:::i;27513:741::-;;;;;;;;;;;;;;;;-1:-1:-1;27513:741:0;;:::i;29106:329::-;;;:::i;22596:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22596:109:0;-1:-1:-1;;;;;22596:109:0;;:::i;25686:747::-;;;;;;;;;;;;;;;;-1:-1:-1;25686:747:0;-1:-1:-1;;;;;25686:747:0;;:::i;23867:25::-;;;:::i;29752:104::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29823:13:::1;:25:::0;29752:104::o;24006:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24006:26:0;;;;-1:-1:-1;24006:26:0;;;:::o;24228:34::-;;;;:::o;24088:45::-;;;;;;;;;;;;;;;;;;;:::o;24401:28::-;;;;:::o;28306:729::-;28359:21;28383:8;28392:1;28383:11;;;;;;;;;;;;;;;;28438:10;28429:20;;:8;:20;;;;;;;28468:11;;28383;;;;;;;;-1:-1:-1;28468:22:0;-1:-1:-1;28468:22:0;28460:53;;;;;-1:-1:-1;;;28460:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28524:13;28535:1;28524:10;:13::i;:::-;28548:15;28566:69;28619:4;:15;;;28566:48;28609:4;28566:38;28582:4;:21;;;28566:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:69::i;:::-;28548:87;-1:-1:-1;28649:11:0;;28646:97;;28677:11;;:54;;-1:-1:-1;;;;;28677:11:0;28710:10;28723:7;28677:24;:54::i;:::-;28756:11;;28753:151;;28798:11;;:24;;28814:7;28798:15;:24::i;:::-;28784:38;;28837:12;;:55;;-1:-1:-1;;;;;28837:12:0;28871:10;28884:7;28837:25;:55::i;:::-;28948:21;;;;28932:11;;:48;;28975:4;;28932:38;;:15;:38::i;:48::-;28914:15;;;:66;28998:29;;;;;;;;29007:10;;28998:29;;;;;;;;;;28306:729;;;;:::o;29484:226::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29580:11:::1;::::0;:36:::1;::::0;;-1:-1:-1;;;29580:36:0;;29610:4:::1;29580:36;::::0;::::1;::::0;;;-1:-1:-1;;;;;29580:11:0;;::::1;::::0;:21:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;;:11;:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;29580:36:0;29570:46;::::1;29562:75;;;::::0;;-1:-1:-1;;;29562:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;29648:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;29648:11:0::1;29681:10;29694:7:::0;29648:24:::1;:54::i;:::-;29484:226:::0;:::o;24320:25::-;;;;:::o;26509:691::-;26561:21;26585:8;26594:4;26585:14;;;;;;;;;;;;;;;;;;26561:38;;26630:4;:20;;;26614:12;:36;26610:75;;26667:7;;;26610:75;26714:12;;:37;;;-1:-1:-1;;;26714:37:0;;26745:4;26714:37;;;;;;26695:16;;-1:-1:-1;;;;;26714:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26714:37:0;;-1:-1:-1;26766:13:0;26762:102;;-1:-1:-1;26819:12:0;26796:20;;;;:35;26846:7;;26762:102;26874:18;26895:49;26909:4;:20;;;26931:12;26895:13;:49::i;:::-;26874:70;;26955:19;26977:72;27033:15;;26977:51;27012:4;:15;;;26977:30;26992:14;;26977:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:72::-;26955:94;-1:-1:-1;27084:62:0;27110:35;27136:8;27110:21;26955:94;27126:4;27110:15;:21::i;:35::-;27084:21;;;;;:25;:62::i;:::-;27060:21;;;:86;-1:-1:-1;;27180:12:0;27157:20;;;;:35;;;;-1:-1:-1;26509:691:0;:::o;27283:180::-;27345:8;:15;27328:14;27371:85;27399:6;27393:3;:12;27371:85;;;27429:15;27440:3;27429:10;:15::i;:::-;27407:5;;27371:85;;;;27283:180;:::o;22301:140::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22400:1:::1;22384:6:::0;;22363:40:::1;::::0;-1:-1:-1;;;;;22384:6:0;;::::1;::::0;22363:40:::1;::::0;22400:1;;22363:40:::1;22431:1;22414:19:::0;;-1:-1:-1;;22414:19:0::1;::::0;;22301:140::o;23941:29::-;;;;:::o;21659:79::-;21697:7;21724:6;-1:-1:-1;;;;;21724:6:0;21659:79;:::o;25315:306::-;25387:7;25418:13;;25411:3;:20;25407:207;;25455:14;:3;25463:5;25455:7;:14::i;:::-;25448:21;;;;25407:207;25500:13;;25491:5;:22;25487:127;;-1:-1:-1;25537:1:0;25530:8;;25487:127;25578:13;;:24;;25596:5;25578:17;:24::i;25487:127::-;25315:306;;;;:::o;23841:19::-;;;-1:-1:-1;;;;;23841:19:0;;:::o;27513:741::-;27565:21;27589:8;27598:1;27589:11;;;;;;;;;;;;;;;;27644:10;27635:20;;:8;:20;;;;;;27589:11;;;;;;-1:-1:-1;27635:20:0;27666:13;;:10;:13::i;:::-;27694:11;;:15;27690:254;;27726:15;27744:69;27797:4;:15;;;27744:48;27787:4;27744:38;27760:4;:21;;;27744:4;:11;;;:15;;:38;;;;:::i;:69::-;27726:87;-1:-1:-1;27831:11:0;;27828:105;;27863:11;;:54;;-1:-1:-1;;;;;27863:11:0;27896:10;27909:7;27863:24;:54::i;:::-;27690:254;;27957:11;;27954:170;;27985:12;;:74;;-1:-1:-1;;;;;27985:12:0;28023:10;28044:4;28051:7;27985:29;:74::i;:::-;28088:11;;:24;;28104:7;28088:15;:24::i;:::-;28074:38;;27954:170;28168:21;;;;28152:11;;:48;;28195:4;;28152:38;;:15;:38::i;:48::-;28134:15;;;:66;28218:28;;;;;;;;28226:10;;28218:28;;;;;;;;;;27513:741;;;:::o;29106:329::-;29153:21;29177:8;29186:1;29177:11;;;;;;;;;;;;;;;;29232:10;29223:20;;;:8;:20;;;;;;;29301:11;;29177;;;;;;;29254:12;;29177:11;;-1:-1:-1;29254:59:0;;-1:-1:-1;;;;;29254:12:0;;;;;29232:10;29254:25;:59::i;:::-;29338:1;29324:15;;;29350;;;:19;;;29385:42;;;;;;;29403:10;;29385:42;;;;;;;;;;29106:329;;:::o;22596:109::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22669:28:::1;22688:8;22669:18;:28::i;25686:747::-:0;25747:7;25767:21;25791:8;25800:1;25791:11;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25837:15:0;;;;;:8;:15;;;;;;25791:11;;;;;;;25890:21;;;;25941:12;;:37;;-1:-1:-1;;;25941:37:0;;25972:4;25941:37;;;;;;;;;25791:11;;-1:-1:-1;25837:15:0;;25890:21;;25791:11;;25941:12;;;;;:22;;:37;;;;;25791:11;25941:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25941:37:0;26008:20;;;;25941:37;;-1:-1:-1;25993:12:0;:35;:52;;;;-1:-1:-1;26032:13:0;;;25993:52;25989:355;;;26062:18;26083:49;26097:4;:20;;;26119:12;26083:13;:49::i;:::-;26062:70;;26147:19;26169:72;26225:15;;26169:51;26204:4;:15;;;26169:30;26184:14;;26169:10;:14;;:30;;;;:::i;:72::-;26147:94;-1:-1:-1;26275:57:0;26296:35;26322:8;26296:21;26147:94;26312:4;26296:15;:21::i;:35::-;26275:16;;:20;:57::i;:::-;26256:76;;25989:355;;;26361:64;26409:4;:15;;;26361:43;26399:4;26361:33;26377:16;26361:4;:11;;;:15;;:33;;;;:::i;:64::-;26354:71;25686:747;-1:-1:-1;;;;;;25686:747:0:o;23867:25::-;;;-1:-1:-1;;;;;23867:25:0;;:::o;20282:98::-;20362:10;20282:98;:::o;2256:471::-;2314:7;2559:6;2555:47;;-1:-1:-1;2589:1:0;2582:8;;2555:47;2626:5;;;2630:1;2626;:5;:1;2650:5;;;;;:10;2642:56;;;;-1:-1:-1;;;2642:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2718:1;2256:471;-1:-1:-1;;;2256:471:0:o;3203:132::-;3261:7;3288:39;3292:1;3295;3288:39;;;;;;;;;;;;;;;;;:3;:39::i;1332:136::-;1390:7;1417:43;1421:1;1424;1417:43;;;;;;;;;;;;;;;;;:3;:43::i;16213:211::-;16357:58;;;-1:-1:-1;;;;;16357:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16380:23;16357:58;;;16330:86;;16350:5;;16330:19;:86::i;:::-;16213:211;;;:::o;868:181::-;926:7;958:5;;;982:6;;;;974:46;;;;;-1:-1:-1;;;974:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;16432:248;16603:68;;;-1:-1:-1;;;;;16603:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16626:27;16603:68;;;16576:96;;16596:5;;16576:19;:96::i;:::-;16432:248;;;;:::o;22811:229::-;-1:-1:-1;;;;;22885:22:0;;22877:73;;;;-1:-1:-1;;;22877:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22987:6;;;22966:38;;-1:-1:-1;;;;;22966:38:0;;;;22987:6;;;22966:38;;;23015:6;:17;;-1:-1:-1;;23015:17:0;-1:-1:-1;;;;;23015:17:0;;;;;;;;;;22811:229::o;3831:312::-;3951:7;3986:12;3979:5;3971:28;;;;-1:-1:-1;;;3971:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4010:9;4026:1;4022;:5;;;;;;;3831:312;-1:-1:-1;;;;;3831:312:0:o;1771:226::-;1891:7;1927:12;1919:6;;;;1911:29;;;;-1:-1:-1;;;1911:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1963:5:0;;;1771:226::o;18748:774::-;19172:23;19198:69;19226:4;19198:69;;;;;;;;;;;;;;;;;19206:5;-1:-1:-1;;;;;19198:27:0;;;:69;;;;;:::i;:::-;19282:17;;19172:95;;-1:-1:-1;19282:21:0;19278:237;;19437:10;19426:30;;;;;;;;;;;;;;;-1:-1:-1;19426:30:0;19418:85;;;;-1:-1:-1;;;19418:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13104:230;13241:12;13273:53;13296:6;13304:4;13310:1;13313:12;13273:22;:53::i;:::-;13266:60;13104:230;-1:-1:-1;;;;13104:230:0:o;14592:1020::-;14765:12;14798:18;14809:6;14798:10;:18::i;:::-;14790:60;;;;;-1:-1:-1;;;14790:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14924:12;14938:23;14965:6;-1:-1:-1;;;;;14965:11:0;14984:8;14994:4;14965:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14965:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14923:76;;;;15014:7;15010:595;;;15045:10;-1:-1:-1;15038:17:0;;-1:-1:-1;15038:17:0;15010:595;15159:17;;:21;15155:439;;15422:10;15416:17;15483:15;15470:10;15466:2;15462:19;15455:44;15370:148;15558:20;;-1:-1:-1;;;15558:20:0;;;;;;;;;;;;;;;;;15565:12;;15558:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9967:641;10027:4;10508:20;;10338:66;10557:23;;;;;;:42;;-1:-1:-1;;10584:15:0;;;10549:51;-1:-1:-1;;9967:641:0:o

Swarm Source

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