Contract 0xacaca07e398d4946ad12232f40f255230e73ca72

Contract Overview

Balance:
0 FTM

FTM Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0xcf2beecbaf855c571285af8725ea2519b7a2c0c1141f5afd0a95b19afc15f744104677662021-06-23 22:02:283 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0140495157
0x817a56f682221c10c8b78e64b1a736b5a2f216c07708e11d04595dfd0f14cf68104674872021-06-23 21:58:177 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0110153472
0x96a6edb776b14120cae34ae550e2ed1b6cc191f1f2a915ccd07c55e6de911833104674872021-06-23 21:58:177 mins ago0x6ddea10d708f79e84e82f94f48bdb42fbacbd2d9 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.010898394
0x5d4085d8f60600df9f23924d80eb955115b6844aa92adba6cb0ce3b90e4efbb5104674662021-06-23 21:57:557 mins ago0xf255fe0c3ec6bbf7968aafc487be359cb3e6f3c7 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.012428394
0x9c50dc0b535e28d58b47ca81334630fc76c9d461ab515ce68b44a5dd69d9d04f104674212021-06-23 21:57:058 mins ago0xf255fe0c3ec6bbf7968aafc487be359cb3e6f3c7 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01333438392
0x1977dd007c5f2b567ce028df56780a11b1970551654c0997205b2aba5424a148104672832021-06-23 21:54:5410 mins ago0x43807db75e5d111df3452bbd0d5bd0880f065413 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01297426856
0x0b46a7b7f5905695d990ebffc532286dafc3371b9e256037b73dd9ecb5190008104672782021-06-23 21:54:4910 mins ago0x43807db75e5d111df3452bbd0d5bd0880f065413 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0119699492
0xcc5d56650729831da58c78ac187721567f7b7a5eaa757a684071f84fe3c68197104672742021-06-23 21:54:4710 mins ago0x43807db75e5d111df3452bbd0d5bd0880f065413 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01333326588
0x6ed9311823b9f310a67910379b09d4f0bdb7eccc60ea3afcd3e8e130b793c1c5104672712021-06-23 21:54:4410 mins ago0x43807db75e5d111df3452bbd0d5bd0880f065413 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0119699492
0xb43ab74c6c0f47e18f71dbff64a50b82de034f5adb1183de0c02c2bf85cbccaf104672332021-06-23 21:54:0811 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.014666592468
0xb34d60105e89c365576bb1a1d5243e13ce9a61e4cbf83949f75c3854d8c93299104671962021-06-23 21:53:2712 mins ago0xe5f008411335787f4d92213a1c3d854b08df3e4f IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01333385152
0x80253fe4cd97c7e31b11fa438253f60f6e6a8dfe5c76b5bfc1002c5a8cc98cc8104671382021-06-23 21:52:3313 mins ago0x97dbf5dfedcbd104372f08da2bf6476a9b454aca IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01226905152
0x1b6963dc053d985a3cbeb827cceaf7167f961e26947b7cb84e6b29f902d5be9a104669692021-06-23 21:49:4715 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.014666592468
0x8ddd31fead14d67ce31df2eba78d844dd59ea2e6bcdc2965122c5e9367a69e6b104669682021-06-23 21:49:4615 mins ago0xe97cc071f3e3ef654f2c9395b99dbc8c1902b16a IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01333385152
0xf955deb0a01306297b2f97bb6f4d38716f26edc37b2293734ef10ce931f8e4b9104669242021-06-23 21:49:0616 mins ago0x1c74e6e85bf53f1b6c56465e1a5f7bf56c3ebcb7 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01333385152
0xa2f6904f68daa4c18df46293332acd4df18480c7770ed66d062f5bbeb9072b1c104667492021-06-23 21:46:1719 mins ago0xf70c70667b28310d7d91338796a32f3a93f14f92 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.01333385152
0x114e630d30b0e1955700f7ecb1c6533963801da4a220c6f9855194577fb57e34104667062021-06-23 21:45:3919 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.014666592468
0x31bfb139952ee4720ebb1f7d78f338fc2aafe16715561dd3664ceff584075039104665842021-06-23 21:43:2722 mins ago0xdcbf721551a937768537458c61005f1cbecb043c IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0120963942
0x0cd37cfafec07ca9cc0233343dcc8912f414b797f83290eb70187fc48c6a6951104664842021-06-23 21:41:4723 mins ago0xd028babbdc15949aaa35587f95f9e96c7d49417d IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.012772848
0x4f362e554d4aede89a3e47ce33c9a1f39a83cdbe20057742c3f42c969743e12b104664692021-06-23 21:41:3423 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0140495157
0x296dde5cba7b25907962cfa03aa965c7d9b0e5b73e937b80a36d2768ec23845b104662692021-06-23 21:38:2927 mins ago0x9f529edcec5fbc53b890e2f21003af1384528bc8 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.012772848
0x39ff223ed077df6a992ae360f6e8fbddfc04b904eb772e96b3d37420cb3b9748104662052021-06-23 21:37:2828 mins ago0x3071e467f055540dec4dd8c2470727c90d897984 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.0140495157
0x179d5b8e09779c164cf404bf9b7fc425efb0cb0c462344544e3574109127e3dd104660852021-06-23 21:35:2430 mins ago0x04e5f00835eacecba7a183d98c84626def54091b IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.014190634128
0x3c959bb4074959001e8d6d290991b181cd7b81dcb99d5bbb455412d59e28a78a104659852021-06-23 21:33:3332 mins ago0x07595ac47605551754786d28086875bc0d654608 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.011126123943
0x6c31d142bc475d7f2f67b1dbd6f106bdf42a9d65fe80b5a37b050829e3d69b8d104659852021-06-23 21:33:3332 mins ago0x3fc6c5707f34f93a7e1bd283dd6120e5ce2e2ef8 IN  0xacaca07e398d4946ad12232f40f255230e73ca720 FTM0.014190634128
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x1d67097a5e880d24aded23b4a572edcec357024540b2bb761b1324b17ad3d1d544949772021-04-28 5:35:4756 days 16 hrs ago 0x95478c4f7d22d1048f46100001c2c69d2ba57380  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpookyIFO

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2021-04-28
*/

// SPDX-License-Identifier: MIT
pragma solidity ^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);
}

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

/**
 * @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 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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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");
        }
    }
}

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

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

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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).
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

/*
 * @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 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) {
        return msg.sender;
    }

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

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


/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}


/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;
    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                block.chainid,
                address(this)
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }
}


// This version of ERC20Permit is from OpenZeppelin as of commit
// https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5171e46c47bd6be781aa92315944ca37126d4a73


/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping (address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override {
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(
            abi.encode(
                _PERMIT_TYPEHASH,
                owner,
                spender,
                value,
                _useNonce(owner),
                deadline
            )
        );

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}


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

contract SpookyToken is ERC20Permit, Ownable {

    constructor() ERC20("SpookyToken", "BOO") ERC20Permit("SpookyToken")
    {

    }

    uint256 constant private _maxTotalSupply = 13666000e18; // 13,666,000 max spooks

    function mint(address _to, uint256 _amount) public onlyOwner {
        require(totalSupply() + _amount <= _maxTotalSupply, "ERC20: minting more then MaxTotalSupply");

        _mint(_to, _amount);
        _moveDelegates(address(0), _to, _amount);
    }


    // Returns maximum total supply of the token
    function getMaxTotalSupply() external pure returns (uint256) {
        return _maxTotalSupply;
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    // A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    // A record of states for signing / validating signatures
    //mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);
    

    function transferFrom(address sender, address recipient, uint256 amount) 
    public virtual override returns (bool)
    {
        bool result = super.transferFrom(sender, recipient, amount); // Call parent hook
        _moveDelegates(sender, recipient, amount);

        return result;
    }

    function transfer(address recipient, uint256 amount) 
    public virtual override returns (bool)
    {
        bool result = super.transfer(recipient, amount); // Call parent hook
        _moveDelegates(_msgSender(), recipient, amount);

        return result;
    }

    /**
     * @param delegator The address to get delegates for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "SPOOK::delegateBySig: invalid signature");
        require(nonce == _useNonce(signatory), "SPOOK::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "SPOOK::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "SPOOK::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying SPOOKs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld - amount;
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld + amount;
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "SPOOK::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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



}

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

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

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

    // such a spooky token!
    SpookyToken public boo;

    // boo tokens created per block.
    uint256 public booPerSecond;

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

    uint256 public endTime;

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

    constructor(
        SpookyToken _boo,
        uint256 _booPerSecond,
        uint256 _startTime
    ) {
        boo = _boo;
        booPerSecond = _booPerSecond;
        startTime = _startTime;
        endTime = _startTime + 13 weeks;
    }

    function changeEndTime(uint32 addSeconds) external onlyOwner {
        endTime += addSeconds;
    }

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

    // Good practice to update pools without messing up the contract
    function setBooPerSecond(uint256 _booPerSecond) external onlyOwner {

        // This MUST be done or pool rewards will be calculated with new boo per second
        // This could unfairly punish small pools that dont have frequent deposits/withdraws/harvests
        massUpdatePools(); 

        booPerSecond = _booPerSecond;
    }

    function checkForDuplicate(IERC20 _Token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 _pid = 0; _pid < length; _pid++) {
            require(poolInfo[_pid].Token != _Token, "add: pool already exists!!!!");
        }
    }

    // Add a new token to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IERC20 _Token) external onlyOwner {

        checkForDuplicate(_Token); // ensure you cant add duplicate pools

        massUpdatePools();

        uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            Token: _Token,
            allocPoint: _allocPoint,
            stakingTokenTotalAmount: 0,
            lastRewardTime: lastRewardTime,
            accBOOPerShare: 0
        }));
    }

    // Update the given pool's boo allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint) external onlyOwner {

        massUpdatePools();

        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        _from = _from > startTime ? _from : startTime;
        if (_from > endTime || _to < startTime) {
            return 0;
        }
        if (_to > endTime) {
            return endTime - _from;
        }
        return _to - _from;
    }

    // View function to see pending BOOs on frontend.
    function pendingBOO(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBOOPerShare = pool.accBOOPerShare;
        
        if (block.timestamp > pool.lastRewardTime && pool.stakingTokenTotalAmount != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
            uint256 booReward = multiplier.mul(booPerSecond).mul(pool.allocPoint).div(totalAllocPoint);
            accBOOPerShare = accBOOPerShare.add(booReward.mul(1e12).div(pool.stakingTokenTotalAmount));
        }
        return user.amount.mul(accBOOPerShare).div(1e12).sub(user.rewardDebt);
    }

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

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }

        if (pool.stakingTokenTotalAmount == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
        uint256 booReward = multiplier.mul(booPerSecond).mul(pool.allocPoint).div(totalAllocPoint);

        pool.accBOOPerShare = pool.accBOOPerShare.add(booReward.mul(1e12).div(pool.stakingTokenTotalAmount));
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit tokens to IFO for boo allocation.
    function deposit(uint256 _pid, uint256 _amount) public {

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        updatePool(_pid);

        uint256 pending = user.amount.mul(pool.accBOOPerShare).div(1e12).sub(user.rewardDebt);

        user.amount = user.amount.add(_amount);
        pool.stakingTokenTotalAmount += _amount;
        user.rewardDebt = user.amount.mul(pool.accBOOPerShare).div(1e12);

        if(pending > 0) {
            safeBOOTransfer(msg.sender, pending);
        }
        pool.Token.safeTransferFrom(address(msg.sender), address(this), _amount);

        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {  
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdraw: not good");

        updatePool(_pid);

        uint256 pending = user.amount.mul(pool.accBOOPerShare).div(1e12).sub(user.rewardDebt);

        user.amount = user.amount.sub(_amount);
        pool.stakingTokenTotalAmount -= _amount;
        user.rewardDebt = user.amount.mul(pool.accBOOPerShare).div(1e12);

        if(pending > 0) {
            safeBOOTransfer(msg.sender, pending);
        }
        pool.Token.safeTransfer(address(msg.sender), _amount);
        
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint oldUserAmount = user.amount;
        pool.stakingTokenTotalAmount -= user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        pool.Token.safeTransfer(address(msg.sender), oldUserAmount);
        emit EmergencyWithdraw(msg.sender, _pid, oldUserAmount);

    }

    // Safe boo transfer function, just in case if rounding error causes pool to not have enough BOOs.
    function safeBOOTransfer(address _to, uint256 _amount) internal {
        uint256 booBal = boo.balanceOf(address(this));
        if (_amount > booBal) {
            boo.transfer(_to, booBal);
        } else {
            boo.transfer(_to, _amount);
        }
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract SpookyToken","name":"_boo","type":"address"},{"internalType":"uint256","name":"_booPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"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":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_Token","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"boo","outputs":[{"internalType":"contract SpookyToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"booPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"addSeconds","type":"uint32"}],"name":"changeEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBOO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"Token","type":"address"},{"internalType":"uint256","name":"stakingTokenTotalAmount","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accBOOPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_booPerSecond","type":"uint256"}],"name":"setBooPerSecond","outputs":[],"stateMutability":"nonpayable","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":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"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":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405260006005553480156200001657600080fd5b5060405162001f0838038062001f088339810160408190526200003991620000d4565b600062000045620000d0565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03851617905560028290556080819052620000c3816277f88062000117565b600655506200013c915050565b3390565b600080600060608486031215620000e9578283fd5b83516001600160a01b038116811462000100578384fd5b602085015160409095015190969495509392505050565b600082198211156200013757634e487b7160e01b81526011600452602481fd5b500190565b608051611d8d6200017b600039600081816105380152818161055f01528181610c3701528181610c7901528181610ca00152610cd50152611d8d6000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063630b5ba1116100d85780638f990b8b1161008c578063cf42947b11610066578063cf42947b146102d1578063e2bbb158146102e4578063f2fde38b146102f757610182565b80638f990b8b1461029557806393f1a40b1461029d578063a279b07f146102be57610182565b806378e97925116100bd57806378e97925146102725780638da5cb5b1461027a5780638dbb1e3a1461028257610182565b8063630b5ba114610262578063715018a61461026a57610182565b80633197cbb61161013a5780634b3df200116101145780634b3df2001461022757806351eb05a61461023c5780635312ea8e1461024f57610182565b80633197cbb6146101f9578063441a3e701461020157806349f0c2961461021457610182565b806317caf6f11161016b57806317caf6f1146101c95780631ab06ee5146101d15780632b8bbbe8146101e657610182565b8063081e3eda146101875780631526fe27146101a5575b600080fd5b61018f61030a565b60405161019c9190611be5565b60405180910390f35b6101b86101b336600461181e565b610310565b60405161019c959493929190611968565b61018f610368565b6101e46101df36600461188f565b61036e565b005b6101e46101f436600461187d565b6104b0565b61018f6106d7565b6101e461020f36600461188f565b6106dd565b6101e461022236600461181e565b610895565b61022f610915565b60405161019c91906118f0565b6101e461024a36600461181e565b610931565b6101e461025d36600461181e565b610a22565b6101e4610b28565b6101e4610b53565b61018f610c35565b61022f610c59565b61018f61029036600461188f565b610c75565b61018f610d36565b6102b06102ab36600461184e565b610d3c565b60405161019c929190611bee565b61018f6102cc36600461184e565b610d60565b6101e46102df3660046118b0565b610e9a565b6101e46102f236600461188f565b610f2d565b6101e46103053660046117e2565b611090565b60035490565b6003818154811061032057600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909185565b60055481565b6103766111dd565b73ffffffffffffffffffffffffffffffffffffffff16610394610c59565b73ffffffffffffffffffffffffffffffffffffffff16146103ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611ae5565b60405180910390fd5b6103f2610b28565b806003838154811061042d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600502016002015460055461044c9190611c8a565b6104569190611bfc565b6005819055508060038381548110610497577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201600201819055505050565b6104b86111dd565b73ffffffffffffffffffffffffffffffffffffffff166104d6610c59565b73ffffffffffffffffffffffffffffffffffffffff1614610523576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611ae5565b61052c816111e1565b610534610b28565b60007f00000000000000000000000000000000000000000000000000000000000000004211610583577f0000000000000000000000000000000000000000000000000000000000000000610585565b425b60055490915061059590846112b6565b60059081556040805160a08101825273ffffffffffffffffffffffffffffffffffffffff94851681526000602082018181529282019687526060820194855260808201818152600380546001810182559252915193027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81018054949096167fffffffffffffffffffffffff000000000000000000000000000000000000000090941693909317909455517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d840155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f90910155565b60065481565b600060038381548110610719577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020808320868452600482526040808520338652909252922080546005909202909201925083111561077c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611b51565b61078584610931565b60006107bf82600101546107b964e8d4a510006107b3876004015487600001546112c290919063ffffffff16565b906112ce565b906112da565b82549091506107ce90856112da565b82556001830180548591906000906107e7908490611c8a565b9091555050600483015482546108079164e8d4a51000916107b3916112c2565b6001830155801561081c5761081c33826112e6565b825461083f9073ffffffffffffffffffffffffffffffffffffffff1633866114f7565b843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040516108869190611be5565b60405180910390a35050505050565b61089d6111dd565b73ffffffffffffffffffffffffffffffffffffffff166108bb610c59565b73ffffffffffffffffffffffffffffffffffffffff1614610908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611ae5565b610910610b28565b600255565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60006003828154811061096d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020190508060030154421161098e5750610a1f565b60018101546109a35742600390910155610a1f565b60006109b3826003015442610c75565b905060006109e06005546107b385600201546109da600254876112c290919063ffffffff16565b906112c2565b9050610a10610a0584600101546107b364e8d4a51000856112c290919063ffffffff16565b6004850154906112b6565b60048401555050426003909101555b50565b600060038281548110610a5e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832085845260048252604080852033865290925290832080546005939093029091016001810180549195509193839291610aa1908490611c8a565b9091555050600080835560018301558254610ad39073ffffffffffffffffffffffffffffffffffffffff1633836114f7565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583604051610b1a9190611be5565b60405180910390a350505050565b60035460005b81811015610b4f57610b3f81610931565b610b4881611ccd565b9050610b2e565b5050565b610b5b6111dd565b73ffffffffffffffffffffffffffffffffffffffff16610b79610c59565b73ffffffffffffffffffffffffffffffffffffffff1614610bc6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611ae5565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60007f00000000000000000000000000000000000000000000000000000000000000008311610cc4577f0000000000000000000000000000000000000000000000000000000000000000610cc6565b825b9250600654831180610cf757507f000000000000000000000000000000000000000000000000000000000000000082105b15610d0457506000610d30565b600654821115610d235782600654610d1c9190611c8a565b9050610d30565b610d2d8383611c8a565b90505b92915050565b60025481565b60046020908152600092835260408084209091529082529020805460019091015482565b60008060038481548110610d9d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083208784526004808352604080862073ffffffffffffffffffffffffffffffffffffffff8a168752909352919093206005909202909201918201546003830154929350909142118015610dfb5750600183015415155b15610e68576000610e10846003015442610c75565b90506000610e376005546107b387600201546109da600254876112c290919063ffffffff16565b9050610e63610e5c86600101546107b364e8d4a51000856112c290919063ffffffff16565b84906112b6565b925050505b610e9082600101546107b964e8d4a510006107b38587600001546112c290919063ffffffff16565b9695505050505050565b610ea26111dd565b73ffffffffffffffffffffffffffffffffffffffff16610ec0610c59565b73ffffffffffffffffffffffffffffffffffffffff1614610f0d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611ae5565b8063ffffffff1660066000828254610f259190611bfc565b909155505050565b600060038381548110610f69577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020808320868452600482526040808520338652909252922060059091029091019150610f9a84610931565b6000610fc882600101546107b964e8d4a510006107b3876004015487600001546112c290919063ffffffff16565b8254909150610fd790856112b6565b8255600183018054859190600090610ff0908490611bfc565b9091555050600483015482546110109164e8d4a51000916107b3916112c2565b600183015580156110255761102533826112e6565b82546110499073ffffffffffffffffffffffffffffffffffffffff16333087611598565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040516108869190611be5565b6110986111dd565b73ffffffffffffffffffffffffffffffffffffffff166110b6610c59565b73ffffffffffffffffffffffffffffffffffffffff1614611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611ae5565b73ffffffffffffffffffffffffffffffffffffffff8116611150576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e1906119f4565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b60035460005b818110156112b1578273ffffffffffffffffffffffffffffffffffffffff1660038281548110611240577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091206005909102015473ffffffffffffffffffffffffffffffffffffffff16141561129f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611aae565b806112a981611ccd565b9150506111e7565b505050565b6000610d2d8284611bfc565b6000610d2d8284611c4d565b6000610d2d8284611c14565b6000610d2d8284611c8a565b6001546040517f70a0823100000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319061133d9030906004016118f0565b60206040518083038186803b15801561135557600080fd5b505afa158015611369573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138d9190611836565b905080821115611447576001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb906113ef9086908590600401611942565b602060405180830381600087803b15801561140957600080fd5b505af115801561141d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144191906117fe565b506112b1565b6001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb9061149f9086908690600401611942565b602060405180830381600087803b1580156114b957600080fd5b505af11580156114cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f191906117fe565b50505050565b6112b18363a9059cbb60e01b8484604051602401611516929190611942565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526115b9565b6114f1846323b872dd60e01b85858560405160240161151693929190611911565b600061161b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661166f9092919063ffffffff16565b8051909150156112b1578080602001905181019061163991906117fe565b6112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611b88565b606061167e8484600085611688565b90505b9392505050565b6060824710156116c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611a51565b6116cd85611789565b611703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e190611b1a565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161172c91906118d4565b60006040518083038185875af1925050503d8060008114611769576040519150601f19603f3d011682016040523d82523d6000602084013e61176e565b606091505b509150915061177e82828661178f565b979650505050505050565b3b151590565b6060831561179e575081611681565b8251156117ae5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e191906119a3565b6000602082840312156117f3578081fd5b813561168181611d35565b60006020828403121561180f578081fd5b81518015158114611681578182fd5b60006020828403121561182f578081fd5b5035919050565b600060208284031215611847578081fd5b5051919050565b60008060408385031215611860578081fd5b82359150602083013561187281611d35565b809150509250929050565b60008060408385031215611860578182fd5b600080604083850312156118a1578182fd5b50508035926020909101359150565b6000602082840312156118c1578081fd5b813563ffffffff81168114611681578182fd5b600082516118e6818460208701611ca1565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff959095168552602085019390935260408401919091526060830152608082015260a00190565b60006020825282518060208401526119c2816040850160208701611ca1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f6164643a20706f6f6c20616c7265616479206578697374732121212100000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526012908201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b90815260200190565b918252602082015260400190565b60008219821115611c0f57611c0f611d06565b500190565b600082611c48577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c8557611c85611d06565b500290565b600082821015611c9c57611c9c611d06565b500390565b60005b83811015611cbc578181015183820152602001611ca4565b838111156114f15750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611cff57611cff611d06565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a1f57600080fdfea26469706673582212202d7860e52de6cbe56d8ae8841482a02fd15488e05a2ca40a9b95aa783372a63b64736f6c63430008000033000000000000000000000000841fad6eae12c286d1fd18d1d525dffa75c7effe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000608819ea

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

000000000000000000000000841fad6eae12c286d1fd18d1d525dffa75c7effe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000608819ea

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000841fad6eae12c286d1fd18d1d525dffa75c7effe
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000000000608819ea


Deployed ByteCode Sourcemap

60107:9019:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62666:95;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;61647:26;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;61887:34::-;;;:::i;64190:243::-;;;;;;:::i;:::-;;:::i;:::-;;63525:570;;;;;;:::i;:::-;;:::i;62018:22::-;;;:::i;67447:761::-;;;;;;:::i;:::-;;:::i;62839:339::-;;;;;;:::i;:::-;;:::i;61515:22::-;;;:::i;:::-;;;;;;;:::i;65986:666::-;;;;;;:::i;:::-;;:::i;68279:461::-;;;;;;:::i;:::-;;:::i;65730:180::-;;;:::i;49841:148::-;;;:::i;61975:34::-;;;:::i;49190:87::-;;;:::i;64509:337::-;;;;;;:::i;:::-;;:::i;61584:27::-;;;:::i;61726:66::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;64909:738::-;;;;;;:::i;:::-;;:::i;62557:101::-;;;;;;:::i;:::-;;:::i;66710:704::-;;;;;;:::i;:::-;;:::i;50144:244::-;;;;;;:::i;:::-;;:::i;62666:95::-;62738:8;:15;62666:95;:::o;61647:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61647:26:0;;;;;:::o;61887:34::-;;;;:::o;64190:243::-;49421:12;:10;:12::i;:::-;49410:23;;:7;:5;:7::i;:::-;:23;;;49402:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;64270:17:::1;:15;:17::i;:::-;64364:11;64336:8;64345:4;64336:14;;;;;;;;;;;;;;;;;;;;;;;;;;:25;;;64318:15;;:43;;;;:::i;:::-;:57;;;;:::i;:::-;64300:15;:75;;;;64414:11;64386:8;64395:4;64386:14;;;;;;;;;;;;;;;;;;;;;;;;;;:25;;:39;;;;64190:243:::0;;:::o;63525:570::-;49421:12;:10;:12::i;:::-;49410:23;;:7;:5;:7::i;:::-;:23;;;49402:68;;;;;;;;;;;;:::i;:::-;63606:25:::1;63624:6;63606:17;:25::i;:::-;63683:17;:15;:17::i;:::-;63713:22;63756:9;63738:15;:27;:57;;63786:9;63738:57;;;63768:15;63738:57;63824:15;::::0;63713:82;;-1:-1:-1;63824:32:0::1;::::0;63844:11;63824:19:::1;:32::i;:::-;63806:15;:50:::0;;;63881:205:::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;63881:205:0::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;63867:8:::1;:220:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;63525:570::o;62018:22::-;;;;:::o;67447:761::-;67516:21;67540:8;67549:4;67540:14;;;;;;;;;;;;;;;;;;;;;;;;67589;;;:8;:14;;;;;;67604:10;67589:26;;;;;;;67636:11;;67540:14;;;;;;;;-1:-1:-1;67636:22:0;-1:-1:-1;67636:22:0;67628:53;;;;;;;;;;;;:::i;:::-;67694:16;67705:4;67694:10;:16::i;:::-;67723:15;67741:67;67792:4;:15;;;67741:46;67782:4;67741:36;67757:4;:19;;;67741:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;67835:11;;67723:85;;-1:-1:-1;67835:24:0;;67851:7;67835:15;:24::i;:::-;67821:38;;67870:28;;;:39;;67902:7;;67870:28;67821:11;;67870:39;;67902:7;;67870:39;:::i;:::-;;;;-1:-1:-1;;67954:19:0;;;;67938:11;;:46;;67979:4;;67938:36;;:15;:36::i;:46::-;67920:15;;;:64;68000:11;;67997:79;;68028:36;68044:10;68056:7;68028:15;:36::i;:::-;68086:10;;:53;;:10;;68118;68131:7;68086:23;:53::i;:::-;68186:4;68174:10;68165:35;;;68192:7;68165:35;;;;;;:::i;:::-;;;;;;;;67447:761;;;;;:::o;62839:339::-;49421:12;:10;:12::i;:::-;49410:23;;:7;:5;:7::i;:::-;:23;;;49402:68;;;;;;;;;;;;:::i;:::-;63111:17:::1;:15;:17::i;:::-;63142:12;:28:::0;62839:339::o;61515:22::-;;;;;;:::o;65986:666::-;66038:21;66062:8;66071:4;66062:14;;;;;;;;;;;;;;;;;;;;;;;;;;66038:38;;66110:4;:19;;;66091:15;:38;66087:77;;66146:7;;;66087:77;66180:28;;;;66176:124;;66252:15;66230:19;;;;:37;66282:7;;66176:124;66310:18;66331:51;66345:4;:19;;;66366:15;66331:13;:51::i;:::-;66310:72;;66393:17;66413:70;66467:15;;66413:49;66446:4;:15;;;66413:28;66428:12;;66413:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:70::-;66393:90;;66518:78;66542:53;66566:4;:28;;;66542:19;66556:4;66542:9;:13;;:19;;;;:::i;:53::-;66518:19;;;;;:23;:78::i;:::-;66496:19;;;:100;-1:-1:-1;;66629:15:0;66607:19;;;;:37;65986:666;;:::o;68279:461::-;68338:21;68362:8;68371:4;68362:14;;;;;;;;;;;;;;;;;;;;;;;;68411;;;:8;:14;;;;;;68426:10;68411:26;;;;;;;;68471:11;;68362:14;;;;;;;;68493:28;;;:43;;68362:14;;-1:-1:-1;68411:26:0;;68471:11;;68493:28;:43;;68471:11;;68493:43;:::i;:::-;;;;-1:-1:-1;;68561:1:0;68547:15;;;68573;;;:19;68605:10;;:59;;:10;;68637;68650:13;68605:23;:59::i;:::-;68710:4;68698:10;68680:50;;;68716:13;68680:50;;;;;;:::i;:::-;;;;;;;;68279:461;;;;:::o;65730:180::-;65792:8;:15;65775:14;65818:85;65846:6;65840:3;:12;65818:85;;;65876:15;65887:3;65876:10;:15::i;:::-;65854:5;;;:::i;:::-;;;65818:85;;;;65730:180;:::o;49841:148::-;49421:12;:10;:12::i;:::-;49410:23;;:7;:5;:7::i;:::-;:23;;;49402:68;;;;;;;;;;;;:::i;:::-;49948:1:::1;49932:6:::0;;49911:40:::1;::::0;::::1;49932:6:::0;;::::1;::::0;49911:40:::1;::::0;49948:1;;49911:40:::1;49979:1;49962:19:::0;;;::::1;::::0;;49841:148::o;61975:34::-;;;:::o;49190:87::-;49236:7;49263:6;;;49190:87;:::o;64509:337::-;64581:7;64617:9;64609:5;:17;:37;;64637:9;64609:37;;;64629:5;64609:37;64601:45;;64669:7;;64661:5;:15;:34;;;;64686:9;64680:3;:15;64661:34;64657:75;;;-1:-1:-1;64719:1:0;64712:8;;64657:75;64752:7;;64746:3;:13;64742:68;;;64793:5;64783:7;;:15;;;;:::i;:::-;64776:22;;;;64742:68;64827:11;64833:5;64827:3;:11;:::i;:::-;64820:18;;64509:337;;;;;:::o;61584:27::-;;;;:::o;61726:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;64909:738::-;64981:7;65001:21;65025:8;65034:4;65025:14;;;;;;;;;;;;;;;;;;;;;;;;65074;;;:8;:14;;;;;;;:21;;;;;;;;;;;;65025:14;;;;;;;65131:19;;;;65193;;;;65025:14;;-1:-1:-1;65074:21:0;;65175:15;:37;:74;;;;-1:-1:-1;65216:28:0;;;;:33;;65175:74;65171:389;;;65266:18;65287:51;65301:4;:19;;;65322:15;65287:13;:51::i;:::-;65266:72;;65353:17;65373:70;65427:15;;65373:49;65406:4;:15;;;65373:28;65388:12;;65373:10;:14;;:28;;;;:::i;:70::-;65353:90;;65475:73;65494:53;65518:4;:28;;;65494:19;65508:4;65494:9;:13;;:19;;;;:::i;:53::-;65475:14;;:18;:73::i;:::-;65458:90;;65171:389;;;65577:62;65623:4;:15;;;65577:41;65613:4;65577:31;65593:14;65577:4;:11;;;:15;;:31;;;;:::i;:62::-;65570:69;64909:738;-1:-1:-1;;;;;;64909:738:0:o;62557:101::-;49421:12;:10;:12::i;:::-;49410:23;;:7;:5;:7::i;:::-;:23;;;49402:68;;;;;;;;;;;;:::i;:::-;62640:10:::1;62629:21;;:7;;:21;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;62557:101:0:o;66710:704::-;66778:21;66802:8;66811:4;66802:14;;;;;;;;;;;;;;;;;;;;;;;;66851;;;:8;:14;;;;;;66866:10;66851:26;;;;;;;66802:14;;;;;;;;-1:-1:-1;66890:16:0;66860:4;66890:10;:16::i;:::-;66919:15;66937:67;66988:4;:15;;;66937:46;66978:4;66937:36;66953:4;:19;;;66937:4;:11;;;:15;;:36;;;;:::i;:67::-;67031:11;;66919:85;;-1:-1:-1;67031:24:0;;67047:7;67031:15;:24::i;:::-;67017:38;;67066:28;;;:39;;67098:7;;67066:28;67017:11;;67066:39;;67098:7;;67066:39;:::i;:::-;;;;-1:-1:-1;;67150:19:0;;;;67134:11;;:46;;67175:4;;67134:36;;:15;:36::i;:46::-;67116:15;;;:64;67196:11;;67193:79;;67224:36;67240:10;67252:7;67224:15;:36::i;:::-;67282:10;;:72;;:10;;67318;67339:4;67346:7;67282:27;:72::i;:::-;67392:4;67380:10;67372:34;;;67398:7;67372:34;;;;;;:::i;50144:244::-;49421:12;:10;:12::i;:::-;49410:23;;:7;:5;:7::i;:::-;:23;;;49402:68;;;;;;;;;;;;:::i;:::-;50233:22:::1;::::0;::::1;50225:73;;;;;;;;;;;;:::i;:::-;50335:6;::::0;;50314:38:::1;::::0;::::1;::::0;;::::1;::::0;50335:6;::::1;::::0;50314:38:::1;::::0;::::1;50363:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;50144:244::o;21973:98::-;22053:10;21973:98;:::o;63186:261::-;63270:8;:15;63253:14;63296:144;63326:6;63319:4;:13;63296:144;;;63389:6;63365:30;;:8;63374:4;63365:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:20;;;:30;;63357:71;;;;;;;;;;;;:::i;:::-;63334:6;;;;:::i;:::-;;;;63296:144;;;;63186:261;;:::o;17144:98::-;17202:7;17229:5;17233:1;17229;:5;:::i;17882:98::-;17940:7;17967:5;17971:1;17967;:5;:::i;18281:98::-;18339:7;18366:5;18370:1;18366;:5;:::i;17525:98::-;17583:7;17610:5;17614:1;17610;:5;:::i;68852:271::-;68944:3;;:28;;;;;68927:14;;68944:3;;;:13;;:28;;68966:4;;68944:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68927:45;;68997:6;68987:7;:16;68983:133;;;69020:3;;:25;;;;;:3;;;;;:12;;:25;;69033:3;;69038:6;;69020:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;68983:133;;;69078:3;;:26;;;;;:3;;;;;:12;;:26;;69091:3;;69096:7;;69078:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;68852:271;;;:::o;11241:177::-;11324:86;11344:5;11374:23;;;11399:2;11403:5;11351:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11324:19;:86::i;11426:205::-;11527:96;11547:5;11577:27;;;11606:4;11612:2;11616:5;11554:68;;;;;;;;;;:::i;13675:761::-;14099:23;14125:69;14153:4;14125:69;;;;;;;;;;;;;;;;;14133:5;14125:27;;;;:69;;;;;:::i;:::-;14209:17;;14099:95;;-1:-1:-1;14209:21:0;14205:224;;14351:10;14340:30;;;;;;;;;;;;:::i;:::-;14332:85;;;;;;;;;;;;:::i;6374:195::-;6477:12;6509:52;6531:6;6539:4;6545:1;6548:12;6509:21;:52::i;:::-;6502:59;;6374:195;;;;;;:::o;7426:530::-;7553:12;7611:5;7586:21;:30;;7578:81;;;;;;;;;;;;:::i;:::-;7678:18;7689:6;7678:10;:18::i;:::-;7670:60;;;;;;;;;;;;:::i;:::-;7804:12;7818:23;7845:6;:11;;7865:5;7873:4;7845:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7803:75;;;;7896:52;7914:7;7923:10;7935:12;7896:17;:52::i;:::-;7889:59;7426:530;-1:-1:-1;;;;;;;7426:530:0:o;3456:422::-;3823:20;3862:8;;;3456:422::o;9966:742::-;10081:12;10110:7;10106:595;;;-1:-1:-1;10141:10:0;10134:17;;10106:595;10255:17;;:21;10251:439;;10518:10;10512:17;10579:15;10566:10;10562:2;10558:19;10551:44;10466:148;10661:12;10654:20;;;;;;;;;;;:::i;14:259:1:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:33;237:5;210:33;:::i;278:297::-;;398:2;386:9;377:7;373:23;369:32;366:2;;;419:6;411;404:22;366:2;456:9;450:16;509:5;502:13;495:21;488:5;485:32;475:2;;536:6;528;521:22;580:190;;692:2;680:9;671:7;667:23;663:32;660:2;;;713:6;705;698:22;660:2;-1:-1:-1;741:23:1;;650:120;-1:-1:-1;650:120:1:o;775:194::-;;898:2;886:9;877:7;873:23;869:32;866:2;;;919:6;911;904:22;866:2;-1:-1:-1;947:16:1;;856:113;-1:-1:-1;856:113:1:o;974:327::-;;;1103:2;1091:9;1082:7;1078:23;1074:32;1071:2;;;1124:6;1116;1109:22;1071:2;1165:9;1152:23;1142:33;;1225:2;1214:9;1210:18;1197:32;1238:33;1265:5;1238:33;:::i;:::-;1290:5;1280:15;;;1061:240;;;;;:::o;1306:340::-;;;1448:2;1436:9;1427:7;1423:23;1419:32;1416:2;;;1469:6;1461;1454:22;1651:258;;;1780:2;1768:9;1759:7;1755:23;1751:32;1748:2;;;1801:6;1793;1786:22;1748:2;-1:-1:-1;;1829:23:1;;;1899:2;1884:18;;;1871:32;;-1:-1:-1;1738:171:1:o;1914:296::-;;2025:2;2013:9;2004:7;2000:23;1996:32;1993:2;;;2046:6;2038;2031:22;1993:2;2090:9;2077:23;2140:10;2133:5;2129:22;2122:5;2119:33;2109:2;;2171:6;2163;2156:22;2215:274;;2382:6;2376:13;2398:53;2444:6;2439:3;2432:4;2424:6;2420:17;2398:53;:::i;:::-;2467:16;;;;;2352:137;-1:-1:-1;;2352:137:1:o;2494:226::-;2670:42;2658:55;;;;2640:74;;2628:2;2613:18;;2595:125::o;2725:398::-;2937:42;3006:15;;;2988:34;;3058:15;;;;3053:2;3038:18;;3031:43;3105:2;3090:18;;3083:34;;;;2915:2;2900:18;;2882:241::o;3128:297::-;3332:42;3320:55;;;;3302:74;;3407:2;3392:18;;3385:34;3290:2;3275:18;;3257:168::o;3430:525::-;3732:42;3720:55;;;;3702:74;;3807:2;3792:18;;3785:34;;;;3850:2;3835:18;;3828:34;;;;3893:2;3878:18;;3871:34;3936:3;3921:19;;3914:35;3689:3;3674:19;;3656:299::o;4211:442::-;;4360:2;4349:9;4342:21;4392:6;4386:13;4435:6;4430:2;4419:9;4415:18;4408:34;4451:66;4510:6;4505:2;4494:9;4490:18;4485:2;4477:6;4473:15;4451:66;:::i;:::-;4569:2;4557:15;4574:66;4553:88;4538:104;;;;4644:2;4534:113;;4332:321;-1:-1:-1;;4332:321:1:o;4658:402::-;4860:2;4842:21;;;4899:2;4879:18;;;4872:30;4938:34;4933:2;4918:18;;4911:62;5009:8;5004:2;4989:18;;4982:36;5050:3;5035:19;;4832:228::o;5065:402::-;5267:2;5249:21;;;5306:2;5286:18;;;5279:30;5345:34;5340:2;5325:18;;5318:62;5416:8;5411:2;5396:18;;5389:36;5457:3;5442:19;;5239:228::o;5472:352::-;5674:2;5656:21;;;5713:2;5693:18;;;5686:30;5752;5747:2;5732:18;;5725:58;5815:2;5800:18;;5646:178::o;5829:356::-;6031:2;6013:21;;;6050:18;;;6043:30;6109:34;6104:2;6089:18;;6082:62;6176:2;6161:18;;6003:182::o;6190:353::-;6392:2;6374:21;;;6431:2;6411:18;;;6404:30;6470:31;6465:2;6450:18;;6443:59;6534:2;6519:18;;6364:179::o;6548:342::-;6750:2;6732:21;;;6789:2;6769:18;;;6762:30;6828:20;6823:2;6808:18;;6801:48;6881:2;6866:18;;6722:168::o;6895:406::-;7097:2;7079:21;;;7136:2;7116:18;;;7109:30;7175:34;7170:2;7155:18;;7148:62;7246:12;7241:2;7226:18;;7219:40;7291:3;7276:19;;7069:232::o;7306:177::-;7452:25;;;7440:2;7425:18;;7407:76::o;7488:248::-;7662:25;;;7718:2;7703:18;;7696:34;7650:2;7635:18;;7617:119::o;7741:128::-;;7812:1;7808:6;7805:1;7802:13;7799:2;;;7818:18;;:::i;:::-;-1:-1:-1;7854:9:1;;7789:80::o;7874:274::-;;7940:1;7930:2;;7975:77;7972:1;7965:88;8076:4;8073:1;8066:15;8104:4;8101:1;8094:15;7930:2;-1:-1:-1;8133:9:1;;7920:228::o;8153:::-;;8319:1;8251:66;8247:74;8244:1;8241:81;8236:1;8229:9;8222:17;8218:105;8215:2;;;8326:18;;:::i;:::-;-1:-1:-1;8366:9:1;;8205:176::o;8386:125::-;;8454:1;8451;8448:8;8445:2;;;8459:18;;:::i;:::-;-1:-1:-1;8496:9:1;;8435:76::o;8516:258::-;8588:1;8598:113;8612:6;8609:1;8606:13;8598:113;;;8688:11;;;8682:18;8669:11;;;8662:39;8634:2;8627:10;8598:113;;;8729:6;8726:1;8723:13;8720:2;;;-1:-1:-1;;8764:1:1;8746:16;;8739:27;8569:205::o;8779:195::-;;8849:66;8842:5;8839:77;8836:2;;;8919:18;;:::i;:::-;-1:-1:-1;8966:1:1;8955:13;;8826:148::o;8979:184::-;9031:77;9028:1;9021:88;9128:4;9125:1;9118:15;9152:4;9149:1;9142:15;9168:156;9256:42;9249:5;9245:54;9238:5;9235:65;9225:2;;9314:1;9311;9304:12

Swarm Source

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