Contract 0x57798acfdc584721edc761c698fe26f90b59ea3d 2

Txn Hash
Block
From
To
Value [Txn Fee]
0x4aae4c4ceefc36882625879318a15c1c4f35edb7060587202329e343b0ea2a29131916582021-07-28 22:19:1113 mins ago0x3fbd3df54ece58be3719647c9e5bca719ae5cbc4 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.058523794637
0xeefea0a4702c9bced5a7d7da4075abe54f1685b6f9db3c966bf618dabf6bf280131916172021-07-28 22:18:3613 mins ago0x1a4caa0a19f9b512a6bd1e97ef5e336dc500ce55 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.012083291624
0x7e40e42cdd74e24c3a12a6ca57484c9ff939a94fa91750e30b5280f5f0355f99131915462021-07-28 22:17:4314 mins ago0xf74bb1ea452ab51335f0a5409228dbcf44b922a0 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.032955108931
0xb9bf80a6b347d072cd1af08bd5be01b3f65229544ecd7154add1eb19b9bbb43e131915362021-07-28 22:17:3414 mins ago0xf74bb1ea452ab51335f0a5409228dbcf44b922a0 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.033215986398
0xbe09bc445294d4ac79fd0c7d4c2398aa65ff91c5614ff484f68afbb1cad9547f131911142021-07-28 22:11:1421 mins ago0x3fbd3df54ece58be3719647c9e5bca719ae5cbc4 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.059219610375
0x433af919f6a185173b960222b641b6c008de749b323c7f90642d8af7f6be3189131910662021-07-28 22:10:3021 mins ago0xaef12f22a9aea8e101bb07959bd94ced3a55d70f IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.068756375692
0xb0c59a95f6f322c112fef16787cae24bf2f80662f0e35d19867eace02df0ece8131908612021-07-28 22:07:4324 mins ago0x1a2fe590257bcc8028881c406c4ec45c44d719b0 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065368699351
0x7a546b4a8122241bda9d93c9e1f82d8f20f03ed44ec47650d4555eb2d04ef7f1131901802021-07-28 21:58:1734 mins ago0xe2e95bf55841b7c75708805a17a9098827767b1d IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.062509482709
0xbdb0d50e2af5f420887e934bd86b9abf2c0f20beddc0219ba503a2e5b5ca64a5131890082021-07-28 21:42:4149 mins ago0x8ef4da55cee19fb2c3a84b6e08a6a05b7a86526a IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.064020435338
0x9cc914f7fc6a98432dc579613e0e31520dd3cb43f345da9dbc37f7e238edb294131886362021-07-28 21:37:3254 mins ago0x015f9945f2925a84073f13ae761f4da3fd91f33e IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.068756375692
0x1c03273b3a89d7112e12ce8a20bfd22f7999ead3a7218b14f51c03a2662eedf7131880662021-07-28 21:29:391 hr 2 mins ago0x045617fe2b023634b153f779e0c161cc9d7ebdb9 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065726518888
0x98fcb44533d7745339275a5ad01ea2814c4237472f0d36262b2e055865617918131875992021-07-28 21:23:291 hr 8 mins ago0x66c12cc019b358137fc3f8527425328c39919716 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065212371972
0x3767987964f66cf244f53a895c2b03cbe8ad411174438a8250a3577e36bcca1b131875392021-07-28 21:22:391 hr 9 mins ago0x66c12cc019b358137fc3f8527425328c39919716 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065726518888
0x09336536055b52562966abb9c2fbc1c9bf8149f0e168c278237a81e4f2b68a94131874552021-07-28 21:21:321 hr 10 mins ago0x8a50236cf10b0a23401137069513cba969af8995 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065368699351
0x26f4e2ee580730747c9004e75f215e540c343b3caa623c39dee9b029c35f31bc131872392021-07-28 21:18:321 hr 13 mins ago0x94f21d7d808820e224448b82a2129e23b571827d IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.06521030457
0x69567bf139b92e639f1f06ebda06a838c4d985222e593c398bdade2d8dfec617131871832021-07-28 21:17:481 hr 14 mins ago0xa0d46e8afc5f400c852db8283ddc5b9252438a59 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065368699351
0xbdb0dcec1b56f75e41ae27adce2e62f8f96344a68500830b302053856cab5cca131869782021-07-28 21:14:581 hr 17 mins ago0x737d9c3086b7ec2080ebc4b9d30a16a1edcdf234 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.068756375692
0x64cba848c73a3b2831983479d0c19fbfade0851157d73ea6536b99839dd33579131867952021-07-28 21:12:191 hr 20 mins ago0xf859cfde97aaad13eb2c7daebcf68b9c63ab1bb4 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.068752399919
0xee943d1f58235506202e36e03232725b527419ec1e815caff96e92124f4e5a26131865962021-07-28 21:09:401 hr 22 mins ago0xf859cfde97aaad13eb2c7daebcf68b9c63ab1bb4 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.065726518888
0x31b6579b830612d4ce4cb1390381a53e2ab249db760eeb1cc67089e7caaca737131865632021-07-28 21:09:111 hr 23 mins ago0x5a81b38f189b23ffad763b90d75723d45d01c2d2 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.0312724
0x615090cb3790e679082bd53f5b9e1c5c5d558c59f6a9b7b25e4134f1b709a782131861622021-07-28 21:02:521 hr 29 mins ago0x972a2b2651c811834cd1d19a9506d876b87d4120 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.052960783883
0x779ce658a5de8c83667545f3fe9459f9eb5b04e31e6413210afcb826412a5b80131859752021-07-28 21:00:061 hr 32 mins ago0xd4d00a14d2d3181dbebeaf062933d150e9bafb27 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.038047504
0xf6f2a5ab821c3685a8571e71a47e5dc73063182b4cd0dc355e22565089304d5e131855932021-07-28 20:54:041 hr 38 mins ago0xf2a3f75d9277e8e4c2e6dee4742c30c1df1a28c8 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.0281847236
0x384af95f0d8d471a1b5630845c08ee94e9abc61c6cdb2f3f27bb0645e6589ab3131841612021-07-28 20:30:222 hrs 2 mins ago0x06a2415cc004a6d1fa02f5557a6c659c33fdd25e IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.0311856
0x75d77b28a9c93fc206fc4a0290be3a0ce94041d80d2dffe69570059f76821c83131840972021-07-28 20:29:272 hrs 3 mins ago0x32aa32b06fd0deba10fc80b8501ef8c536ec1178 IN  0x57798acfdc584721edc761c698fe26f90b59ea3d0 FTM0.03458768
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xeadba54aae70d846ca0c1e3839d41d07dd474d989ea34c5dc6c4f98e532b3f5353922032021-05-06 5:58:3583 days 16 hrs ago HyperJump: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

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

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 FtmScan.com on 2021-05-05
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        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);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity >=0.6.0 <0.8.0;




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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: 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(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. 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, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol

pragma solidity >=0.6.0 <0.8.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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity >=0.6.0 <0.8.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.
 */
abstract 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 virtual returns (address) {
        return _owner;
    }

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

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

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

// File: contracts/HyperPool.sol

pragma solidity 0.6.12;





contract HyperPoolV2 is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. 
    }

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

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

    // tokens per second
    uint256 public rewardPerSecond;

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

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

    constructor(
        IERC20 _mechs,
        IERC20 _rewardToken,
        uint256 _rewardPerSecond,
        uint256 _startTime,
        uint256 _bonusEndTime
    ) public {
        mechs = _mechs;
        rewardToken = _rewardToken;
        rewardPerSecond = _rewardPerSecond;
        startTime = _startTime;
        bonusEndTime = _bonusEndTime;

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

        totalAllocPoint = 1000;

    }

    // Return reward multiplier over the given _from to _to timestamp.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        if (_to <= bonusEndTime) {
            return _to.sub(_from);
        } else if (_from >= bonusEndTime) {
            return 0;
        } else {
            return bonusEndTime.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.timestamp > pool.lastRewardTime && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
            uint256 alloyReward = multiplier.mul(rewardPerSecond).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 of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
        uint256 alloyReward = multiplier.mul(rewardPerSecond).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accAlloyPerShare = pool.accAlloyPerShare.add(alloyReward.mul(1e12).div(lpSupply));
        pool.lastRewardTime = block.timestamp;
    }

    // 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 Time
    function updateEndTime(uint256 _endTime) public onlyOwner {
        bonusEndTime = _endTime;
    }

}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_mechs","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_bonusEndTime","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":"bonusEndTime","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 IERC20","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 IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accAlloyPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","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":"_endTime","type":"uint256"}],"name":"updateEndTime","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"}]

6080604052600060065534801561001557600080fd5b506040516115ef3803806115ef833981810160405260a081101561003857600080fd5b5080516020820151604083015160608401516080909401519293919290919060006100616101d1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039687166001600160a01b03199182168117835560028054978916978316979097179096556003949094556007839055600891909155604080516080810182529485526103e86020860181815291860193845260006060870181815260048054958601815591829052965193027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101805494909816939095169290921790955593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e909101556006556101d5565b3390565b61140b806101e46000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c80638da5cb5b116100cd578063db2e21bc11610081578063f2fde38b11610066578063f2fde38b14610329578063f40f0f521461034f578063f7c618c1146103755761016c565b8063db2e21bc14610319578063ee1a6295146103215761016c565b80638f10369a116100b25780638f10369a146102ec578063aa8ea80a146102f4578063b6b55f25146102fc5761016c565b80638da5cb5b146102a55780638dbb1e3a146102c95761016c565b806351eb05a6116101245780636ab3846b116101095780636ab3846b14610278578063715018a61461029557806378e979251461029d5761016c565b806351eb05a614610253578063630b5ba1146102705761016c565b80631959a002116101555780631959a002146101d85780632e1a7d4d146102175780633279beab146102365761016c565b80631526fe271461017157806317caf6f1146101be575b600080fd5b61018e6004803603602081101561018757600080fd5b503561037d565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101c66103be565b60408051918252519081900360200190f35b6101fe600480360360208110156101ee57600080fd5b50356001600160a01b03166103c4565b6040805192835260208301919091528051918290030190f35b6102346004803603602081101561022d57600080fd5b50356103dd565b005b6102346004803603602081101561024c57600080fd5b503561054d565b6102346004803603602081101561026957600080fd5b50356106a5565b6102346107d4565b6102346004803603602081101561028e57600080fd5b50356107f7565b610234610870565b6101c661093b565b6102ad610941565b604080516001600160a01b039092168252519081900360200190f35b6101c6600480360360408110156102df57600080fd5b5080359060200135610950565b6101c6610990565b6102ad610996565b6102346004803603602081101561031257600080fd5b50356109a5565b610234610aba565b6101c6610b4d565b6102346004803603602081101561033f57600080fd5b50356001600160a01b0316610b53565b6101c66004803603602081101561036557600080fd5b50356001600160a01b0316610c74565b6102ad610dcc565b6004818154811061038a57fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60065481565b6005602052600090815260409020805460019091015482565b600060046000815481106103ed57fe5b6000918252602080832033845260059091526040909220805460049092029092019250831115610464576040805162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b61046e60006106a5565b60006104a882600101546104a264e8d4a5100061049c87600301548760000154610ddb90919063ffffffff16565b90610e3b565b90610ea2565b905080156104c7576002546104c7906001600160a01b03163383610eff565b83156104f15781546104d99085610ea2565b825582546104f1906001600160a01b03163386610eff565b6003830154825461050c9164e8d4a510009161049c91610ddb565b600183015560408051858152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250505050565b610555610f84565b6001600160a01b0316610566610941565b6001600160a01b0316146105c1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561060c57600080fd5b505afa158015610620573d6000803e3d6000fd5b505050506040513d602081101561063657600080fd5b5051811061068b576040805162461bcd60e51b815260206004820152601060248201527f6e6f7420656e6f75676820746f6b656e00000000000000000000000000000000604482015290519081900360640190fd5b6002546106a2906001600160a01b03163383610eff565b50565b6000600482815481106106b457fe5b90600052602060002090600402019050806002015442116106d557506106a2565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561071f57600080fd5b505afa158015610733573d6000803e3d6000fd5b505050506040513d602081101561074957600080fd5b505190508061075f5750426002909101556106a2565b600061076f836002015442610950565b9050600061079c60065461049c866001015461079660035487610ddb90919063ffffffff16565b90610ddb565b90506107bf6107b48461049c8464e8d4a51000610ddb565b600386015490610f88565b60038501555050426002909201919091555050565b60045460005b818110156107f3576107eb816106a5565b6001016107da565b5050565b6107ff610f84565b6001600160a01b0316610810610941565b6001600160a01b03161461086b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600855565b610878610f84565b6001600160a01b0316610889610941565b6001600160a01b0316146108e4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60075481565b6000546001600160a01b031690565b6000600854821161096c576109658284610ea2565b905061098a565b600854831061097d5750600061098a565b6008546109659084610ea2565b92915050565b60035481565b6001546001600160a01b031681565b600060046000815481106109b557fe5b600091825260208083203384526005909152604083206004909202019250906109dd906106a5565b805415610a33576000610a1282600101546104a264e8d4a5100061049c87600301548760000154610ddb90919063ffffffff16565b90508015610a3157600254610a31906001600160a01b03163383610eff565b505b8215610a5f578154610a50906001600160a01b0316333086610fe2565b8054610a5c9084610f88565b81555b60038201548154610a7a9164e8d4a510009161049c91610ddb565b600182015560408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b60006004600081548110610aca57fe5b600091825260208083203380855260059092526040909320805460049093029093018054909450610b08926001600160a01b03919091169190610eff565b600080825560018201819055604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a25050565b60085481565b610b5b610f84565b6001600160a01b0316610b6c610941565b6001600160a01b031614610bc7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c0c5760405162461bcd60e51b815260040180806020018281038252602681526020018061133f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000806004600081548110610c8557fe5b600091825260208083206001600160a01b03878116855260058352604080862060049586029093016003810154815483516370a0823160e01b81523098810198909852925191985093969395939491909216926370a082319260248083019392829003018186803b158015610cf957600080fd5b505afa158015610d0d573d6000803e3d6000fd5b505050506040513d6020811015610d2357600080fd5b5051600285015490915042118015610d3a57508015155b15610d9a576000610d4f856002015442610950565b90506000610d7660065461049c886001015461079660035487610ddb90919063ffffffff16565b9050610d95610d8e8461049c8464e8d4a51000610ddb565b8590610f88565b935050505b610dc283600101546104a264e8d4a5100061049c868860000154610ddb90919063ffffffff16565b9695505050505050565b6002546001600160a01b031681565b600082610dea5750600061098a565b82820282848281610df757fe5b0414610e345760405162461bcd60e51b815260040180806020018281038252602181526020018061138b6021913960400191505060405180910390fd5b9392505050565b6000808211610e91576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610e9a57fe5b049392505050565b600082821115610ef9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f7f908490611070565b505050565b3390565b600082820183811015610e34576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261106a908590611070565b50505050565b60606110c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111219092919063ffffffff16565b805190915015610f7f578080602001905160208110156110e457600080fd5b5051610f7f5760405162461bcd60e51b815260040180806020018281038252602a8152602001806113ac602a913960400191505060405180910390fd5b60606111308484600085611138565b949350505050565b6060824710156111795760405162461bcd60e51b81526004018080602001828103825260268152602001806113656026913960400191505060405180910390fd5b61118285611294565b6111d3576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106112125780518252601f1990920191602091820191016111f3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611274576040519150601f19603f3d011682016040523d82523d6000602084013e611279565b606091505b509150915061128982828661129a565b979650505050505050565b3b151590565b606083156112a9575081610e34565b8251156112b95782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113035781810151838201526020016112eb565b50505050905090810190601f1680156113305780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220417e04e2af84dd1bcf6e2a81137ecef108ca9032dd3f5297442a14877704602c64736f6c634300060c003300000000000000000000000085c85647e1a79c2b8bc3ed2b6a1dde326eec66c5000000000000000000000000b3654dc3d10ea7645f8319668e8f54d2574fbdc800000000000000000000000000000000000000000000000000049d146f5b3e00000000000000000000000000000000000000000000000000000000006092498c00000000000000000000000000000000000000000000000000000000609f788c

Deployed ByteCode Sourcemap

25435:6725:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26318:26;;;;;;;;;;;;;;;;-1:-1:-1;26318:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;26318:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26540:34;;;:::i;:::-;;;;;;;;;;;;;;;;26400:45;;;;;;;;;;;;;;;;-1:-1:-1;26400:45:0;-1:-1:-1;;;;;26400:45:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;30610:729;;;;;;;;;;;;;;;;-1:-1:-1;30610:729:0;;:::i;:::-;;31788:226;;;;;;;;;;;;;;;;-1:-1:-1;31788:226:0;;:::i;28804:700::-;;;;;;;;;;;;;;;;-1:-1:-1;28804:700:0;;:::i;29587:180::-;;;:::i;32055:100::-;;;;;;;;;;;;;;;;-1:-1:-1;32055:100:0;;:::i;24810:148::-;;;:::i;26624:24::-;;;:::i;24159:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;24159:87:0;;;;;;;;;;;;;;27608:303;;;;;;;;;;;;;;;;-1:-1:-1;27608:303:0;;;;;;;:::i;26252:30::-;;;:::i;26166:19::-;;;:::i;29817:741::-;;;;;;;;;;;;;;;;-1:-1:-1;29817:741:0;;:::i;31410:329::-;;;:::i;26696:27::-;;;:::i;25113:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25113:244:0;-1:-1:-1;;;;;25113:244:0;;:::i;27976:752::-;;;;;;;;;;;;;;;;-1:-1:-1;27976:752:0;-1:-1:-1;;;;;27976:752:0;;:::i;26192:25::-;;;:::i;26318:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26318:26:0;;;;-1:-1:-1;26318:26:0;;;:::o;26540:34::-;;;;:::o;26400:45::-;;;;;;;;;;;;;;;;;;;:::o;30610:729::-;30663:21;30687:8;30696:1;30687:11;;;;;;;;;;;;;;;;30742:10;30733:20;;:8;:20;;;;;;;30772:11;;30687;;;;;;;;-1:-1:-1;30772:22:0;-1:-1:-1;30772:22:0;30764:53;;;;;-1:-1:-1;;;30764:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30828:13;30839:1;30828:10;:13::i;:::-;30852:15;30870:69;30923:4;:15;;;30870:48;30913:4;30870:38;30886:4;:21;;;30870:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:69::i;:::-;30852:87;-1:-1:-1;30953:11:0;;30950:97;;30981:11;;:54;;-1:-1:-1;;;;;30981:11:0;31014:10;31027:7;30981:24;:54::i;:::-;31060:11;;31057:151;;31102:11;;:24;;31118:7;31102:15;:24::i;:::-;31088:38;;31141:12;;:55;;-1:-1:-1;;;;;31141:12:0;31175:10;31188:7;31141:25;:55::i;:::-;31252:21;;;;31236:11;;:48;;31279:4;;31236:38;;:15;:38::i;:48::-;31218:15;;;:66;31302:29;;;;;;;;31311:10;;31302:29;;;;;;;;;;30610:729;;;;:::o;31788:226::-;24390:12;:10;:12::i;:::-;-1:-1:-1;;;;;24379:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24379:23:0;;24371:68;;;;;-1:-1:-1;;;24371:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31884:11:::1;::::0;:36:::1;::::0;;-1:-1:-1;;;31884:36:0;;31914:4:::1;31884:36;::::0;::::1;::::0;;;-1:-1:-1;;;;;31884: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;31884:36:0;31874:46;::::1;31866:75;;;::::0;;-1:-1:-1;;;31866:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;31952:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;31952:11:0::1;31985:10;31998:7:::0;31952:24:::1;:54::i;:::-;31788:226:::0;:::o;28804:700::-;28856:21;28880:8;28889:4;28880:14;;;;;;;;;;;;;;;;;;28856:38;;28928:4;:19;;;28909:15;:38;28905:77;;28964:7;;;28905:77;29011:12;;:37;;;-1:-1:-1;;;29011:37:0;;29042:4;29011:37;;;;;;28992:16;;-1:-1:-1;;;;;29011:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29011:37:0;;-1:-1:-1;29063:13:0;29059:104;;-1:-1:-1;29115:15:0;29093:19;;;;:37;29145:7;;29059:104;29173:18;29194:51;29208:4;:19;;;29229:15;29194:13;:51::i;:::-;29173:72;;29256:19;29278:73;29335:15;;29278:52;29314:4;:15;;;29278:31;29293:15;;29278:10;:14;;:31;;;;:::i;:::-;:35;;:52::i;:73::-;29256:95;-1:-1:-1;29386:62:0;29412:35;29438:8;29412:21;29256:95;29428:4;29412:15;:21::i;:35::-;29386:21;;;;;:25;:62::i;:::-;29362:21;;;:86;-1:-1:-1;;29481:15:0;29459:19;;;;:37;;;;-1:-1:-1;28804:700:0;:::o;29587:180::-;29649:8;:15;29632:14;29675:85;29703:6;29697:3;:12;29675:85;;;29733:15;29744:3;29733:10;:15::i;:::-;29711:5;;29675:85;;;;29587:180;:::o;32055:100::-;24390:12;:10;:12::i;:::-;-1:-1:-1;;;;;24379:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24379:23:0;;24371:68;;;;;-1:-1:-1;;;24371:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32124:12:::1;:23:::0;32055:100::o;24810:148::-;24390:12;:10;:12::i;:::-;-1:-1:-1;;;;;24379:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24379:23:0;;24371:68;;;;;-1:-1:-1;;;24371:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24917:1:::1;24901:6:::0;;24880:40:::1;::::0;-1:-1:-1;;;;;24901:6:0;;::::1;::::0;24880:40:::1;::::0;24917:1;;24880:40:::1;24948:1;24931:19:::0;;-1:-1:-1;;24931:19:0::1;::::0;;24810:148::o;26624:24::-;;;;:::o;24159:87::-;24205:7;24232:6;-1:-1:-1;;;;;24232:6:0;24159:87;:::o;27608:303::-;27680:7;27711:12;;27704:3;:19;27700:204;;27747:14;:3;27755:5;27747:7;:14::i;:::-;27740:21;;;;27700:204;27792:12;;27783:5;:21;27779:125;;-1:-1:-1;27828:1:0;27821:8;;27779:125;27869:12;;:23;;27886:5;27869:16;:23::i;27779:125::-;27608:303;;;;:::o;26252:30::-;;;;:::o;26166:19::-;;;-1:-1:-1;;;;;26166:19:0;;:::o;29817:741::-;29869:21;29893:8;29902:1;29893:11;;;;;;;;;;;;;;;;29948:10;29939:20;;:8;:20;;;;;;29893:11;;;;;;-1:-1:-1;29939:20:0;29970:13;;:10;:13::i;:::-;29998:11;;:15;29994:254;;30030:15;30048:69;30101:4;:15;;;30048:48;30091:4;30048:38;30064:4;:21;;;30048:4;:11;;;:15;;:38;;;;:::i;:69::-;30030:87;-1:-1:-1;30135:11:0;;30132:105;;30167:11;;:54;;-1:-1:-1;;;;;30167:11:0;30200:10;30213:7;30167:24;:54::i;:::-;29994:254;;30261:11;;30258:170;;30289:12;;:74;;-1:-1:-1;;;;;30289:12:0;30327:10;30348:4;30355:7;30289:29;:74::i;:::-;30392:11;;:24;;30408:7;30392:15;:24::i;:::-;30378:38;;30258:170;30472:21;;;;30456:11;;:48;;30499:4;;30456:38;;:15;:38::i;:48::-;30438:15;;;:66;30522:28;;;;;;;;30530:10;;30522:28;;;;;;;;;;29817:741;;;:::o;31410:329::-;31457:21;31481:8;31490:1;31481:11;;;;;;;;;;;;;;;;31536:10;31527:20;;;:8;:20;;;;;;;31605:11;;31481;;;;;;;31558:12;;31481:11;;-1:-1:-1;31558:59:0;;-1:-1:-1;;;;;31558:12:0;;;;;31536:10;31558:25;:59::i;:::-;31642:1;31628:15;;;31654;;;:19;;;31689:42;;;;;;;31707:10;;31689:42;;;;;;;;;;31410:329;;:::o;26696:27::-;;;;:::o;25113:244::-;24390:12;:10;:12::i;:::-;-1:-1:-1;;;;;24379:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24379:23:0;;24371:68;;;;;-1:-1:-1;;;24371:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25202:22:0;::::1;25194:73;;;;-1:-1:-1::0;;;25194:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25304:6;::::0;;25283:38:::1;::::0;-1:-1:-1;;;;;25283:38:0;;::::1;::::0;25304:6;::::1;::::0;25283:38:::1;::::0;::::1;25332:6;:17:::0;;-1:-1:-1;;25332:17:0::1;-1:-1:-1::0;;;;;25332:17:0;;;::::1;::::0;;;::::1;::::0;;25113:244::o;27976:752::-;28037:7;28057:21;28081:8;28090:1;28081:11;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28127:15:0;;;;;:8;:15;;;;;;28081:11;;;;;;;28180:21;;;;28231:12;;:37;;-1:-1:-1;;;28231:37:0;;28262:4;28231:37;;;;;;;;;28081:11;;-1:-1:-1;28127:15:0;;28180:21;;28081:11;;28231:12;;;;;:22;;:37;;;;;28081:11;28231:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28231:37:0;28301:19;;;;28231:37;;-1:-1:-1;28283:15:0;:37;:54;;;;-1:-1:-1;28324:13:0;;;28283:54;28279:360;;;28354:18;28375:51;28389:4;:19;;;28410:15;28375:13;:51::i;:::-;28354:72;;28441:19;28463:73;28520:15;;28463:52;28499:4;:15;;;28463:31;28478:15;;28463:10;:14;;:31;;;;:::i;:73::-;28441:95;-1:-1:-1;28570:57:0;28591:35;28617:8;28591:21;28441:95;28607:4;28591:15;:21::i;:35::-;28570:16;;:20;:57::i;:::-;28551:76;;28279:360;;;28656:64;28704:4;:15;;;28656:43;28694:4;28656:33;28672:16;28656:4;:11;;;:15;;:33;;;;:::i;:64::-;28649:71;27976:752;-1:-1:-1;;;;;;27976:752:0:o;26192:25::-;;;-1:-1:-1;;;;;26192:25:0;;:::o;6514:220::-;6572:7;6596:6;6592:20;;-1:-1:-1;6611:1:0;6604:8;;6592:20;6635:5;;;6639:1;6635;:5;:1;6659:5;;;;;:10;6651:56;;;;-1:-1:-1;;;6651:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6725:1;6514:220;-1:-1:-1;;;6514:220:0:o;7212:153::-;7270:7;7302:1;7298;:5;7290:44;;;;;-1:-1:-1;;;7290:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7356:1;7352;:5;;;;;;;7212:153;-1:-1:-1;;;7212:153:0:o;6097:158::-;6155:7;6188:1;6183;:6;;6175:49;;;;;-1:-1:-1;;;6175:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6242:5:0;;;6097:158::o;18993:177::-;19103:58;;;-1:-1:-1;;;;;19103:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19126:23;19103:58;;;19076:86;;19096:5;;19076:19;:86::i;:::-;18993:177;;;:::o;22698:106::-;22786:10;22698:106;:::o;5635:179::-;5693:7;5725:5;;;5749:6;;;;5741:46;;;;;-1:-1:-1;;;5741:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;19178:205;19306:68;;;-1:-1:-1;;;;;19306:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19329:27;19306:68;;;19279:96;;19299:5;;19279:19;:96::i;:::-;19178:205;;;;:::o;21298:761::-;21722:23;21748:69;21776:4;21748:69;;;;;;;;;;;;;;;;;21756:5;-1:-1:-1;;;;;21748:27:0;;;:69;;;;;:::i;:::-;21832:17;;21722:95;;-1:-1:-1;21832:21:0;21828:224;;21974:10;21963:30;;;;;;;;;;;;;;;-1:-1:-1;21963:30:0;21955:85;;;;-1:-1:-1;;;21955:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13990:195;14093:12;14125:52;14147:6;14155:4;14161:1;14164:12;14125:21;:52::i;:::-;14118:59;13990:195;-1:-1:-1;;;;13990:195:0:o;15042:530::-;15169:12;15227:5;15202:21;:30;;15194:81;;;;-1:-1:-1;;;15194:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15294:18;15305:6;15294:10;:18::i;:::-;15286:60;;;;;-1:-1:-1;;;15286:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15420:12;15434:23;15461:6;-1:-1:-1;;;;;15461:11:0;15481:5;15489:4;15461:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15461:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15419:75;;;;15512:52;15530:7;15539:10;15551:12;15512:17;:52::i;:::-;15505:59;15042:530;-1:-1:-1;;;;;;;15042:530:0:o;11072:422::-;11439:20;11478:8;;;11072:422::o;17582:742::-;17697:12;17726:7;17722:595;;;-1:-1:-1;17757:10:0;17750:17;;17722:595;17871:17;;:21;17867:439;;18134:10;18128:17;18195:15;18182:10;18178:2;18174:19;18167:44;18082:148;18277:12;18270:20;;-1:-1:-1;;;18270:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://417e04e2af84dd1bcf6e2a81137ecef108ca9032dd3f5297442a14877704602c
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.