ETH Price: $2,333.22 (+2.66%)

Contract

0x488f61614d62506757119866AE7B02145970f159
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw146517482022-04-25 4:42:38876 days ago1650861758IN
0x488f6161...45970f159
0 ETH0.0039166640.54264093
Withdraw144980442022-04-01 3:47:43900 days ago1648784863IN
0x488f6161...45970f159
0 ETH0.0052424360.245423
Withdraw144967562022-03-31 22:57:37901 days ago1648767457IN
0x488f6161...45970f159
0 ETH0.0057016654.76786656
Withdraw144961612022-03-31 20:41:03901 days ago1648759263IN
0x488f6161...45970f159
0 ETH0.0033822338.87356484
Withdraw144949152022-03-31 16:02:08901 days ago1648742528IN
0x488f6161...45970f159
0 ETH0.0070150680.61619495
Withdraw144940262022-03-31 12:46:12901 days ago1648730772IN
0x488f6161...45970f159
0 ETH0.0034967233.58812726
Withdraw144924992022-03-31 7:09:22901 days ago1648710562IN
0x488f6161...45970f159
0 ETH0.0045455952.23735943
Withdraw144924082022-03-31 6:47:16901 days ago1648709236IN
0x488f6161...45970f159
0 ETH0.0030798835.39858426
Withdraw144923772022-03-31 6:39:20901 days ago1648708760IN
0x488f6161...45970f159
0 ETH0.0029471833.87337398
Withdraw144922162022-03-31 6:07:11901 days ago1648706831IN
0x488f6161...45970f159
0 ETH0.0028468243.85405566
Withdraw144920802022-03-31 5:32:11901 days ago1648704731IN
0x488f6161...45970f159
0 ETH0.0032583237.4442874
Withdraw144918852022-03-31 4:46:48901 days ago1648702008IN
0x488f6161...45970f159
0 ETH0.0029184933.53899987
Withdraw144918542022-03-31 4:40:01901 days ago1648701601IN
0x488f6161...45970f159
0 ETH0.0028019332.19953023
Withdraw144915512022-03-31 3:28:15901 days ago1648697295IN
0x488f6161...45970f159
0 ETH0.0021567329.45994536
Withdraw144915512022-03-31 3:28:15901 days ago1648697295IN
0x488f6161...45970f159
0 ETH0.0031190129.95994536
Withdraw144914232022-03-31 2:59:05901 days ago1648695545IN
0x488f6161...45970f159
0 ETH0.0035998736.74877147
Withdraw144913892022-03-31 2:52:26901 days ago1648695146IN
0x488f6161...45970f159
0 ETH0.0021924733.76786415
Withdraw144913852022-03-31 2:51:38901 days ago1648695098IN
0x488f6161...45970f159
0 ETH0.0021287935.05278934
Withdraw144913832022-03-31 2:50:49901 days ago1648695049IN
0x488f6161...45970f159
0 ETH0.0028695635.48855259
Withdraw144913562022-03-31 2:45:50901 days ago1648694750IN
0x488f6161...45970f159
0 ETH0.0044820646.38956446
Withdraw144912812022-03-31 2:28:09901 days ago1648693689IN
0x488f6161...45970f159
0 ETH0.0046230453.12745086
Withdraw144910222022-03-31 1:28:41901 days ago1648690121IN
0x488f6161...45970f159
0 ETH0.0025412429.20764116
Withdraw144910112022-03-31 1:27:13901 days ago1648690033IN
0x488f6161...45970f159
0 ETH0.0035287336.5225057
Withdraw144909872022-03-31 1:22:18901 days ago1648689738IN
0x488f6161...45970f159
0 ETH0.0030989129.76687967
Withdraw144908822022-03-31 1:01:50901 days ago1648688510IN
0x488f6161...45970f159
0 ETH0.0028901951.64205771
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ApeGenesisRewardPool2

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-29
*/

// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);

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

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


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;


/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using 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'
        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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// 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 generally not needed starting with Solidity 0.8, since 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. 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;
        }
    }
}


// File contracts/rewardPools/Incentivized_GenesisRewardPool.sol

pragma solidity 0.8.1;
// Note that this pool has no minter key of vApe (rewards).
// Instead, the governance will call vApe distributeReward method and send reward to this pool at the beginning.
contract ApeGenesisRewardPool2 {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;
    address public devFund;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many tokens the user has provided.
        uint256 rewardDebt; // Rewards already claimed by the user.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. Ape to distribute.
        uint256 lastRewardTime; // Last time that Ape distribution occurs.
        uint256 accApePerShare; // Accumulated Ape per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
    }

    IERC20 public ape;

    // Info of each pool.
    PoolInfo[] public poolInfo;

    // Info of each user that stakes LP 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 time when Ape mining starts.
    uint256 public poolStartTime;

    // The time when Ape mining ends.
    uint256 public poolEndTime;

    // Token distribution
    uint256 public apePerSecond = 0.104166667 ether; // 9000 Ape / (1days * 24hr * 60min * 60s)
    uint256 public runningTime = 1 days; // 3 days
    uint256 public constant TOTAL_REWARDS = 9000 ether;

    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);
    event RewardPaid(address indexed user, uint256 amount);

    constructor(
        address _ape,
        address _devFund,
        uint256 _poolStartTime
    ) {
        require(block.timestamp < _poolStartTime, "late");
        if (_ape != address(0)) ape = IERC20(_ape);
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        operator = msg.sender;
        devFund = _devFund;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "ApeGenesisPool: caller is not the operator");
        _;
    }

    function checkPoolDuplicate(IERC20 _token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].token != _token, "ApeGenesisPool: existing pool?");
        }
    }

    // Add a new token to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint256 _lastRewardTime
    ) public onlyOperator {
        checkPoolDuplicate(_token);
        if (_withUpdate) {
            massUpdatePools();
        }
        if (block.timestamp < poolStartTime) {
            // chef is sleeping
            if (_lastRewardTime == 0) {
                _lastRewardTime = poolStartTime;
            } else {
                if (_lastRewardTime < poolStartTime) {
                    _lastRewardTime = poolStartTime;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) {
                _lastRewardTime = block.timestamp;
            }
        }
        bool _isStarted =
        (_lastRewardTime <= poolStartTime) ||
        (_lastRewardTime <= block.timestamp);
        poolInfo.push(PoolInfo({
            token : _token,
            allocPoint : _allocPoint,
            lastRewardTime : _lastRewardTime,
            accApePerShare : 0,
            isStarted : _isStarted
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's Ape allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(
                _allocPoint
            );
        }
        pool.allocPoint = _allocPoint;
    }

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime >= poolEndTime) {
            if (_fromTime >= poolEndTime) return 0;
            if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(apePerSecond);
            return poolEndTime.sub(_fromTime).mul(apePerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(apePerSecond);
            return _toTime.sub(_fromTime).mul(apePerSecond);
        }
    }

    // View function to see pending Ape on frontend.
    function pendingAPE(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accApePerShare = pool.accApePerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _apeReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accApePerShare = accApePerShare.add(_apeReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accApePerShare).div(1e18).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;
        }
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (tokenSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _apeReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accApePerShare = pool.accApePerShare.add(_apeReward.mul(1e18).div(tokenSupply));
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user.amount.mul(pool.accApePerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeApeTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            uint256 depositFee = _amount.mul(25).div(10000); // 0.25% fee
            pool.token.safeTransferFrom(_sender, devFund, depositFee);

            uint256 remaining = _amount-depositFee;
            pool.token.safeTransferFrom(_sender, address(this), remaining);
            user.amount = user.amount.add(remaining);
        }
        user.rewardDebt = user.amount.mul(pool.accApePerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user.amount.mul(pool.accApePerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeApeTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accApePerShare).div(1e18);
        emit Withdraw(_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];
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.token.safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe Ape transfer function, just in case if rounding error causes pool to not have enough Apes.
    function safeApeTransfer(address _to, uint256 _amount) internal {
        uint256 _apeBalance = ape.balanceOf(address(this));
        if (_apeBalance > 0) {
            if (_amount > _apeBalance) {
                ape.safeTransfer(_to, _apeBalance);
            } else {
                ape.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
        if (block.timestamp < poolEndTime + 30 days) {
            // do not allow to drain core token (Ape or lps) if less than 30 days after pool ends
            require(_token != ape, "ape");
            uint256 length = poolInfo.length;
            for (uint256 pid = 0; pid < length; ++pid) {
                PoolInfo storage pool = poolInfo[pid];
                require(_token != pool.token, "pool.token");
            }
        }
        _token.safeTransfer(to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_ape","type":"address"},{"internalType":"address","name":"_devFund","type":"address"},{"internalType":"uint256","name":"_poolStartTime","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","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":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ape","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingAPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","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":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accApePerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"}]

6080604052600060055567017213081ff8ae00600855620151806009553480156200002957600080fd5b50604051620019c7380380620019c78339810160408190526200004c916200010d565b804210620000775760405162461bcd60e51b81526004016200006e906200014d565b60405180910390fd5b6001600160a01b03831615620000a357600280546001600160a01b0319166001600160a01b0385161790555b6006819055600954620000b790826200016b565b6007555060008054336001600160a01b031991821617909155600180549091166001600160a01b03929092169190911790555062000190565b80516001600160a01b03811681146200010857600080fd5b919050565b60008060006060848603121562000122578283fd5b6200012d84620000f0565b92506200013d60208501620000f0565b9150604084015190509250925092565b6020808252600490820152636c61746560e01b604082015260600190565b600082198211156200018b57634e487b7160e01b81526011600452602481fd5b500190565b61182780620001a06000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80635f96dc11116100b857806393f1a40b1161007c57806393f1a40b14610255578063943f013d1461027657806396805e541461027e578063a2ea6d7314610291578063b3ab15fb14610299578063e2bbb158146102ac57610142565b80635f96dc1114610222578063630b5ba11461022a5780636e271dd5146102325780637868142a1461023a57806379babd2c1461024d57610142565b80634390d2a81161010a5780634390d2a8146101b9578063441a3e70146101ce57806351eb05a6146101e15780635312ea8e146101f457806354575af414610207578063570ca7351461021a57610142565b806309cf6091146101475780631526fe271461016557806317caf6f1146101895780631ab06ee514610191578063231f0c6a146101a6575b600080fd5b61014f6102bf565b60405161015c91906116ec565b60405180910390f35b6101786101733660046113a0565b6102cd565b60405161015c9594939291906114d4565b61014f61031b565b6101a461019f366004611446565b610321565b005b61014f6101b4366004611446565b6103cd565b6101c1610492565b60405161015c9190611483565b6101a46101dc366004611446565b6104a1565b6101a46101ef3660046113a0565b61064f565b6101a46102023660046113a0565b6107cb565b6101a461021536600461135f565b610886565b6101c1610993565b61014f6109a2565b6101a46109a8565b61014f6109d3565b61014f6102483660046113d0565b6109d9565b6101c1610b56565b6102686102633660046113d0565b610b65565b60405161015c9291906116f5565b61014f610b89565b6101a461028c3660046113ff565b610b8f565b61014f610d6d565b6101a46102a7366004611327565b610d73565b6101a46102ba366004611446565b610dbf565b6901e7e4171bf4d3a0000081565b600381815481106102dd57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60055481565b6000546001600160a01b031633146103545760405162461bcd60e51b815260040161034b906115d8565b60405180910390fd5b61035c6109a8565b60006003838154811061037f57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201600481015490915060ff16156103c6576103c2826103bc8360010154600554610f8f90919063ffffffff16565b90610fa2565b6005555b6001015550565b60008183106103de5750600061048c565b60075482106104465760075483106103f85750600061048c565b600654831161042b5761042460085461041e600654600754610f8f90919063ffffffff16565b90610fae565b905061048c565b61042460085461041e85600754610f8f90919063ffffffff16565b60065482116104575750600061048c565b600654831161047b5761042460085461041e60065485610f8f90919063ffffffff16565b6008546104249061041e8486610f8f565b92915050565b6001546001600160a01b031681565b60003390506000600384815481106104c957634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922080546005909202909201925084111561051b5760405162461bcd60e51b815260040161034b90611659565b6105248561064f565b6000610561826001015461055b670de0b6b3a764000061055587600301548760000154610fae90919063ffffffff16565b90610fba565b90610f8f565b905080156105b5576105738482610fc6565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516105ac91906116ec565b60405180910390a25b84156105df5781546105c79086610f8f565b825582546105df906001600160a01b03168587611086565b600383015482546105fd91670de0b6b3a76400009161055591610fae565b826001018190555085846001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688760405161063f91906116ec565b60405180910390a3505050505050565b60006003828154811061067257634e487b7160e01b600052603260045260246000fd5b906000526020600020906005020190508060020154421161069357506107c8565b80546040516370a0823160e01b81526000916001600160a01b0316906370a08231906106c3903090600401611483565b60206040518083038186803b1580156106db57600080fd5b505afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071391906113b8565b9050806107275750426002909101556107c8565b600482015460ff166107585760048201805460ff1916600190811790915582015460055461075491610fa2565b6005555b600554156107bf5760006107708360020154426103cd565b90506000610791600554610555866001015485610fae90919063ffffffff16565b90506107b76107ac8461055584670de0b6b3a7640000610fae565b600386015490610fa2565b600385015550505b50426002909101555b50565b6000600382815481106107ee57634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600482526040808520338087529352842080548582556001820195909555600590930201805490945091929161083e916001600160a01b03919091169083611086565b83336001600160a01b03167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05958360405161087891906116ec565b60405180910390a350505050565b6000546001600160a01b031633146108b05760405162461bcd60e51b815260040161034b906115d8565b6007546108c09062278d00611703565b42101561097a576002546001600160a01b03848116911614156108f55760405162461bcd60e51b815260040161034b906116cf565b60035460005b818110156109775760006003828154811061092657634e487b7160e01b600052603260045260246000fd5b6000918252602090912060059091020180549091506001600160a01b03878116911614156109665760405162461bcd60e51b815260040161034b906115b4565b506109708161179d565b90506108fb565b50505b61098e6001600160a01b0384168284611086565b505050565b6000546001600160a01b031681565b60065481565b60035460005b818110156109cf576109bf8161064f565b6109c88161179d565b90506109ae565b5050565b60075481565b600080600384815481106109fd57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600480835260408086206001600160a01b03808b16885294528086206003600590960290930194850154855491516370a0823160e01b815295975092959294929316916370a0823191610a5f91309101611483565b60206040518083038186803b158015610a7757600080fd5b505afa158015610a8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aaf91906113b8565b9050836002015442118015610ac357508015155b15610b20576000610ad88560020154426103cd565b90506000610af9600554610555886001015485610fae90919063ffffffff16565b9050610b1b610b148461055584670de0b6b3a7640000610fae565b8590610fa2565b935050505b610b4b836001015461055b670de0b6b3a7640000610555868860000154610fae90919063ffffffff16565b979650505050505050565b6002546001600160a01b031681565b60046020908152600092835260408084209091529082529020805460019091015482565b60095481565b6000546001600160a01b03163314610bb95760405162461bcd60e51b815260040161034b906115d8565b610bc2836110dc565b8115610bd057610bd06109a8565b600654421015610bfc5780610be85750600654610bf7565b600654811015610bf757506006545b610c10565b801580610c0857504281105b15610c105750425b600060065482111580610c235750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260038054600181018255945295517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590940293840180546001600160a01b031916919096161790945594517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f909201805460ff191692151592909217909155909150610d6657600554610d629086610fa2565b6005555b5050505050565b60085481565b6000546001600160a01b03163314610d9d5760405162461bcd60e51b815260040161034b906115d8565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000339050600060038481548110610de757634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922060059091029091019150610e218561064f565b805415610eaf576000610e59826001015461055b670de0b6b3a764000061055587600301548760000154610fae90919063ffffffff16565b90508015610ead57610e6b8482610fc6565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610ea491906116ec565b60405180910390a25b505b8315610f20576000610ec8612710610555876019610fae565b6001548454919250610ee9916001600160a01b03908116918791168461115d565b6000610ef5828761175a565b8454909150610f0f906001600160a01b031686308461115d565b8254610f1b9082610fa2565b835550505b60038201548154610f3e91670de0b6b3a76400009161055591610fae565b816001018190555084836001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1586604051610f8091906116ec565b60405180910390a35050505050565b6000610f9b828461175a565b9392505050565b6000610f9b8284611703565b6000610f9b828461173b565b6000610f9b828461171b565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610ff7903090600401611483565b60206040518083038186803b15801561100f57600080fd5b505afa158015611023573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104791906113b8565b9050801561098e57808211156110735760025461106e906001600160a01b03168483611086565b61098e565b60025461098e906001600160a01b031684845b61098e8363a9059cbb60e01b84846040516024016110a59291906114bb565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611184565b60035460005b8181101561098e57826001600160a01b03166003828154811061111557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201546001600160a01b0316141561114d5760405162461bcd60e51b815260040161034b90611537565b6111568161179d565b90506110e2565b61117e846323b872dd60e01b8585856040516024016110a593929190611497565b50505050565b60006111d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112139092919063ffffffff16565b80519091501561098e57808060200190518101906111f79190611343565b61098e5760405162461bcd60e51b815260040161034b90611685565b6060611222848460008561122a565b949350505050565b60608247101561124c5760405162461bcd60e51b815260040161034b9061156e565b611255856112df565b6112715760405162461bcd60e51b815260040161034b90611622565b600080866001600160a01b0316858760405161128d9190611467565b60006040518083038185875af1925050503d80600081146112ca576040519150601f19603f3d011682016040523d82523d6000602084013e6112cf565b606091505b5091509150610b4b8282866112ee565b6001600160a01b03163b151590565b606083156112fd575081610f9b565b82511561130d5782518084602001fd5b8160405162461bcd60e51b815260040161034b9190611504565b600060208284031215611338578081fd5b8135610f9b816117ce565b600060208284031215611354578081fd5b8151610f9b816117e3565b600080600060608486031215611373578182fd5b833561137e816117ce565b9250602084013591506040840135611395816117ce565b809150509250925092565b6000602082840312156113b1578081fd5b5035919050565b6000602082840312156113c9578081fd5b5051919050565b600080604083850312156113e2578182fd5b8235915060208301356113f4816117ce565b809150509250929050565b60008060008060808587031215611414578081fd5b843593506020850135611426816117ce565b92506040850135611436816117e3565b9396929550929360600135925050565b60008060408385031215611458578182fd5b50508035926020909101359150565b60008251611479818460208701611771565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039590951685526020850193909352604084019190915260608301521515608082015260a00190565b6000602082528251806020840152611523816040850160208701611771565b601f01601f19169190910160400192915050565b6020808252601e908201527f41706547656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252600a90820152693837b7b6173a37b5b2b760b11b604082015260600190565b6020808252602a908201527f41706547656e65736973506f6f6c3a2063616c6c6572206973206e6f74207468604082015269329037b832b930ba37b960b11b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526003908201526261706560e81b604082015260600190565b90815260200190565b918252602082015260400190565b60008219821115611716576117166117b8565b500190565b60008261173657634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611755576117556117b8565b500290565b60008282101561176c5761176c6117b8565b500390565b60005b8381101561178c578181015183820152602001611774565b8381111561117e5750506000910152565b60006000198214156117b1576117b16117b8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146107c857600080fd5b80151581146107c857600080fdfea264697066735822122004a0f9b077bd88fd995c702d05d0c7976dd27fc161cfb2cc9c848217a0dbe01864736f6c63430008010033000000000000000000000000917b78b76ca7fd68e9b6e4b1ebfcb13cc0fb4650000000000000000000000000fe16fb55aca52422f769823728127025a389b6f90000000000000000000000000000000000000000000000000000000062439d80

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80635f96dc11116100b857806393f1a40b1161007c57806393f1a40b14610255578063943f013d1461027657806396805e541461027e578063a2ea6d7314610291578063b3ab15fb14610299578063e2bbb158146102ac57610142565b80635f96dc1114610222578063630b5ba11461022a5780636e271dd5146102325780637868142a1461023a57806379babd2c1461024d57610142565b80634390d2a81161010a5780634390d2a8146101b9578063441a3e70146101ce57806351eb05a6146101e15780635312ea8e146101f457806354575af414610207578063570ca7351461021a57610142565b806309cf6091146101475780631526fe271461016557806317caf6f1146101895780631ab06ee514610191578063231f0c6a146101a6575b600080fd5b61014f6102bf565b60405161015c91906116ec565b60405180910390f35b6101786101733660046113a0565b6102cd565b60405161015c9594939291906114d4565b61014f61031b565b6101a461019f366004611446565b610321565b005b61014f6101b4366004611446565b6103cd565b6101c1610492565b60405161015c9190611483565b6101a46101dc366004611446565b6104a1565b6101a46101ef3660046113a0565b61064f565b6101a46102023660046113a0565b6107cb565b6101a461021536600461135f565b610886565b6101c1610993565b61014f6109a2565b6101a46109a8565b61014f6109d3565b61014f6102483660046113d0565b6109d9565b6101c1610b56565b6102686102633660046113d0565b610b65565b60405161015c9291906116f5565b61014f610b89565b6101a461028c3660046113ff565b610b8f565b61014f610d6d565b6101a46102a7366004611327565b610d73565b6101a46102ba366004611446565b610dbf565b6901e7e4171bf4d3a0000081565b600381815481106102dd57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60055481565b6000546001600160a01b031633146103545760405162461bcd60e51b815260040161034b906115d8565b60405180910390fd5b61035c6109a8565b60006003838154811061037f57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201600481015490915060ff16156103c6576103c2826103bc8360010154600554610f8f90919063ffffffff16565b90610fa2565b6005555b6001015550565b60008183106103de5750600061048c565b60075482106104465760075483106103f85750600061048c565b600654831161042b5761042460085461041e600654600754610f8f90919063ffffffff16565b90610fae565b905061048c565b61042460085461041e85600754610f8f90919063ffffffff16565b60065482116104575750600061048c565b600654831161047b5761042460085461041e60065485610f8f90919063ffffffff16565b6008546104249061041e8486610f8f565b92915050565b6001546001600160a01b031681565b60003390506000600384815481106104c957634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922080546005909202909201925084111561051b5760405162461bcd60e51b815260040161034b90611659565b6105248561064f565b6000610561826001015461055b670de0b6b3a764000061055587600301548760000154610fae90919063ffffffff16565b90610fba565b90610f8f565b905080156105b5576105738482610fc6565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516105ac91906116ec565b60405180910390a25b84156105df5781546105c79086610f8f565b825582546105df906001600160a01b03168587611086565b600383015482546105fd91670de0b6b3a76400009161055591610fae565b826001018190555085846001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688760405161063f91906116ec565b60405180910390a3505050505050565b60006003828154811061067257634e487b7160e01b600052603260045260246000fd5b906000526020600020906005020190508060020154421161069357506107c8565b80546040516370a0823160e01b81526000916001600160a01b0316906370a08231906106c3903090600401611483565b60206040518083038186803b1580156106db57600080fd5b505afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071391906113b8565b9050806107275750426002909101556107c8565b600482015460ff166107585760048201805460ff1916600190811790915582015460055461075491610fa2565b6005555b600554156107bf5760006107708360020154426103cd565b90506000610791600554610555866001015485610fae90919063ffffffff16565b90506107b76107ac8461055584670de0b6b3a7640000610fae565b600386015490610fa2565b600385015550505b50426002909101555b50565b6000600382815481106107ee57634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600482526040808520338087529352842080548582556001820195909555600590930201805490945091929161083e916001600160a01b03919091169083611086565b83336001600160a01b03167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05958360405161087891906116ec565b60405180910390a350505050565b6000546001600160a01b031633146108b05760405162461bcd60e51b815260040161034b906115d8565b6007546108c09062278d00611703565b42101561097a576002546001600160a01b03848116911614156108f55760405162461bcd60e51b815260040161034b906116cf565b60035460005b818110156109775760006003828154811061092657634e487b7160e01b600052603260045260246000fd5b6000918252602090912060059091020180549091506001600160a01b03878116911614156109665760405162461bcd60e51b815260040161034b906115b4565b506109708161179d565b90506108fb565b50505b61098e6001600160a01b0384168284611086565b505050565b6000546001600160a01b031681565b60065481565b60035460005b818110156109cf576109bf8161064f565b6109c88161179d565b90506109ae565b5050565b60075481565b600080600384815481106109fd57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600480835260408086206001600160a01b03808b16885294528086206003600590960290930194850154855491516370a0823160e01b815295975092959294929316916370a0823191610a5f91309101611483565b60206040518083038186803b158015610a7757600080fd5b505afa158015610a8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aaf91906113b8565b9050836002015442118015610ac357508015155b15610b20576000610ad88560020154426103cd565b90506000610af9600554610555886001015485610fae90919063ffffffff16565b9050610b1b610b148461055584670de0b6b3a7640000610fae565b8590610fa2565b935050505b610b4b836001015461055b670de0b6b3a7640000610555868860000154610fae90919063ffffffff16565b979650505050505050565b6002546001600160a01b031681565b60046020908152600092835260408084209091529082529020805460019091015482565b60095481565b6000546001600160a01b03163314610bb95760405162461bcd60e51b815260040161034b906115d8565b610bc2836110dc565b8115610bd057610bd06109a8565b600654421015610bfc5780610be85750600654610bf7565b600654811015610bf757506006545b610c10565b801580610c0857504281105b15610c105750425b600060065482111580610c235750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260038054600181018255945295517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590940293840180546001600160a01b031916919096161790945594517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f909201805460ff191692151592909217909155909150610d6657600554610d629086610fa2565b6005555b5050505050565b60085481565b6000546001600160a01b03163314610d9d5760405162461bcd60e51b815260040161034b906115d8565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000339050600060038481548110610de757634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922060059091029091019150610e218561064f565b805415610eaf576000610e59826001015461055b670de0b6b3a764000061055587600301548760000154610fae90919063ffffffff16565b90508015610ead57610e6b8482610fc6565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610ea491906116ec565b60405180910390a25b505b8315610f20576000610ec8612710610555876019610fae565b6001548454919250610ee9916001600160a01b03908116918791168461115d565b6000610ef5828761175a565b8454909150610f0f906001600160a01b031686308461115d565b8254610f1b9082610fa2565b835550505b60038201548154610f3e91670de0b6b3a76400009161055591610fae565b816001018190555084836001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1586604051610f8091906116ec565b60405180910390a35050505050565b6000610f9b828461175a565b9392505050565b6000610f9b8284611703565b6000610f9b828461173b565b6000610f9b828461171b565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610ff7903090600401611483565b60206040518083038186803b15801561100f57600080fd5b505afa158015611023573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104791906113b8565b9050801561098e57808211156110735760025461106e906001600160a01b03168483611086565b61098e565b60025461098e906001600160a01b031684845b61098e8363a9059cbb60e01b84846040516024016110a59291906114bb565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611184565b60035460005b8181101561098e57826001600160a01b03166003828154811061111557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201546001600160a01b0316141561114d5760405162461bcd60e51b815260040161034b90611537565b6111568161179d565b90506110e2565b61117e846323b872dd60e01b8585856040516024016110a593929190611497565b50505050565b60006111d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112139092919063ffffffff16565b80519091501561098e57808060200190518101906111f79190611343565b61098e5760405162461bcd60e51b815260040161034b90611685565b6060611222848460008561122a565b949350505050565b60608247101561124c5760405162461bcd60e51b815260040161034b9061156e565b611255856112df565b6112715760405162461bcd60e51b815260040161034b90611622565b600080866001600160a01b0316858760405161128d9190611467565b60006040518083038185875af1925050503d80600081146112ca576040519150601f19603f3d011682016040523d82523d6000602084013e6112cf565b606091505b5091509150610b4b8282866112ee565b6001600160a01b03163b151590565b606083156112fd575081610f9b565b82511561130d5782518084602001fd5b8160405162461bcd60e51b815260040161034b9190611504565b600060208284031215611338578081fd5b8135610f9b816117ce565b600060208284031215611354578081fd5b8151610f9b816117e3565b600080600060608486031215611373578182fd5b833561137e816117ce565b9250602084013591506040840135611395816117ce565b809150509250925092565b6000602082840312156113b1578081fd5b5035919050565b6000602082840312156113c9578081fd5b5051919050565b600080604083850312156113e2578182fd5b8235915060208301356113f4816117ce565b809150509250929050565b60008060008060808587031215611414578081fd5b843593506020850135611426816117ce565b92506040850135611436816117e3565b9396929550929360600135925050565b60008060408385031215611458578182fd5b50508035926020909101359150565b60008251611479818460208701611771565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039590951685526020850193909352604084019190915260608301521515608082015260a00190565b6000602082528251806020840152611523816040850160208701611771565b601f01601f19169190910160400192915050565b6020808252601e908201527f41706547656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252600a90820152693837b7b6173a37b5b2b760b11b604082015260600190565b6020808252602a908201527f41706547656e65736973506f6f6c3a2063616c6c6572206973206e6f74207468604082015269329037b832b930ba37b960b11b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526003908201526261706560e81b604082015260600190565b90815260200190565b918252602082015260400190565b60008219821115611716576117166117b8565b500190565b60008261173657634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611755576117556117b8565b500290565b60008282101561176c5761176c6117b8565b500390565b60005b8381101561178c578181015183820152602001611774565b8381111561117e5750506000910152565b60006000198214156117b1576117b16117b8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146107c857600080fd5b80151581146107c857600080fdfea264697066735822122004a0f9b077bd88fd995c702d05d0c7976dd27fc161cfb2cc9c848217a0dbe01864736f6c63430008010033

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

000000000000000000000000917b78b76ca7fd68e9b6e4b1ebfcb13cc0fb4650000000000000000000000000fe16fb55aca52422f769823728127025a389b6f90000000000000000000000000000000000000000000000000000000062439d80

-----Decoded View---------------
Arg [0] : _ape (address): 0x917B78b76CA7fD68e9B6E4b1EBFCb13Cc0FB4650
Arg [1] : _devFund (address): 0xFe16fb55aCA52422F769823728127025A389B6F9
Arg [2] : _poolStartTime (uint256): 1648598400

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000917b78b76ca7fd68e9b6e4b1ebfcb13cc0fb4650
Arg [1] : 000000000000000000000000fe16fb55aca52422f769823728127025a389b6f9
Arg [2] : 0000000000000000000000000000000000000000000000000000000062439d80


Deployed Bytecode Sourcemap

22724:10775:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24210:50;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23594:26;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;23839:34::-;;;:::i;26813:353::-;;;;;;:::i;:::-;;:::i;:::-;;27243:649;;;;;;:::i;:::-;;:::i;22879:22::-;;;:::i;:::-;;;;;;;:::i;31054:807::-;;;;;;:::i;:::-;;:::i;29056:904::-;;;;;;:::i;:::-;;:::i;31932:377::-;;;;;;:::i;:::-;;:::i;32895:601::-;;;;;;:::i;:::-;;:::i;22849:23::-;;;:::i;23923:28::-;;;:::i;28800:180::-;;;:::i;23999:26::-;;;:::i;27954:763::-;;;;;;:::i;:::-;;:::i;23541:17::-;;;:::i;23678:64::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;24158:35::-;;;:::i;25443:1275::-;;;;;;:::i;:::-;;:::i;24061:47::-;;;:::i;32786:101::-;;;;;;:::i;:::-;;:::i;29992:1029::-;;;;;;:::i;:::-;;:::i;24210:50::-;24250:10;24210:50;:::o;23594:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23594:26:0;;;;-1:-1:-1;23594:26:0;;;;;;;:::o;23839:34::-;;;;:::o;26813:353::-;25008:8;;-1:-1:-1;;;;;25008:8:0;25020:10;25008:22;25000:77;;;;-1:-1:-1;;;25000:77:0;;;;;;;:::i;:::-;;;;;;;;;26892:17:::1;:15;:17::i;:::-;26920:21;26944:8;26953:4;26944:14;;;;;;-1:-1:-1::0;;;26944:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26973;::::0;::::1;::::0;26944;;-1:-1:-1;26973:14:0::1;;26969:150;;;27022:85;27081:11;27022:36;27042:4;:15;;;27022;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:85::i;:::-;27004:15;:103:::0;26969:150:::1;27129:15;;:29:::0;-1:-1:-1;26813:353:0:o;27243:649::-;27328:7;27365;27352:9;:20;27348:34;;-1:-1:-1;27381:1:0;27374:8;;27348:34;27408:11;;27397:7;:22;27393:492;;27453:11;;27440:9;:24;27436:38;;-1:-1:-1;27473:1:0;27466:8;;27436:38;27506:13;;27493:9;:26;27489:87;;27528:48;27563:12;;27528:30;27544:13;;27528:11;;:15;;:30;;;;:::i;:::-;:34;;:48::i;:::-;27521:55;;;;27489:87;27598:44;27629:12;;27598:26;27614:9;27598:11;;:15;;:26;;;;:::i;27393:492::-;27690:13;;27679:7;:24;27675:38;;-1:-1:-1;27712:1:0;27705:8;;27675:38;27745:13;;27732:9;:26;27728:83;;27767:44;27798:12;;27767:26;27779:13;;27767:7;:11;;:26;;;;:::i;27728:83::-;27860:12;;27833:40;;:22;:7;27845:9;27833:11;:22::i;27393:492::-;27243:649;;;;:::o;22879:22::-;;;-1:-1:-1;;;;;22879:22:0;;:::o;31054:807::-;31121:15;31139:10;31121:28;;31160:21;31184:8;31193:4;31184:14;;;;;;-1:-1:-1;;;31184:14:0;;;;;;;;;;;;;;;;;31233;;;:8;:14;;;;;;-1:-1:-1;;;;;31233:23:0;;;;;;;;;31275:11;;31184:14;;;;;;;;-1:-1:-1;31275:22:0;-1:-1:-1;31275:22:0;31267:53;;;;-1:-1:-1;;;31267:53:0;;;;;;;:::i;:::-;31331:16;31342:4;31331:10;:16::i;:::-;31358;31377:67;31428:4;:15;;;31377:46;31418:4;31377:36;31393:4;:19;;;31377:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;31358:86;-1:-1:-1;31459:12:0;;31455:128;;31488:34;31504:7;31513:8;31488:15;:34::i;:::-;31553:7;-1:-1:-1;;;;;31542:29:0;;31562:8;31542:29;;;;;;:::i;:::-;;;;;;;;31455:128;31597:11;;31593:138;;31639:11;;:24;;31655:7;31639:15;:24::i;:::-;31625:38;;31678:10;;:41;;-1:-1:-1;;;;;31678:10:0;31702:7;31711;31678:23;:41::i;:::-;31775:19;;;;31759:11;;:46;;31800:4;;31759:36;;:15;:36::i;:46::-;31741:4;:15;;:64;;;;31839:4;31830:7;-1:-1:-1;;;;;31821:32:0;;31845:7;31821:32;;;;;;:::i;:::-;;;;;;;;31054:807;;;;;;:::o;29056:904::-;29108:21;29132:8;29141:4;29132:14;;;;;;-1:-1:-1;;;29132:14:0;;;;;;;;;;;;;;;;;;;29108:38;;29180:4;:19;;;29161:15;:38;29157:77;;29216:7;;;29157:77;29266:10;;:35;;-1:-1:-1;;;29266:35:0;;29244:19;;-1:-1:-1;;;;;29266:10:0;;:20;;:35;;29295:4;;29266:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29244:57;-1:-1:-1;29316:16:0;29312:107;;-1:-1:-1;29371:15:0;29349:19;;;;:37;29401:7;;29312:107;29434:14;;;;;;29429:138;;29465:14;;;:21;;-1:-1:-1;;29465:21:0;29482:4;29465:21;;;;;;29539:15;;;29519;;:36;;:19;:36::i;:::-;29501:15;:54;29429:138;29581:15;;:19;29577:328;;29617:24;29644:56;29663:4;:19;;;29684:15;29644:18;:56::i;:::-;29617:83;;29715:18;29736:58;29778:15;;29736:37;29757:4;:15;;;29736:16;:20;;:37;;;;:::i;:58::-;29715:79;-1:-1:-1;29831:62:0;29855:37;29880:11;29855:20;29715:79;29870:4;29855:14;:20::i;:37::-;29831:19;;;;;:23;:62::i;:::-;29809:19;;;:84;-1:-1:-1;;29577:328:0;-1:-1:-1;29937:15:0;29915:19;;;;:37;29056:904;;:::o;31932:377::-;31991:21;32015:8;32024:4;32015:14;;;;;;-1:-1:-1;;;32015:14:0;;;;;;;;;;;;;;;;;32064;;;:8;:14;;;;;;32079:10;32064:26;;;;;;;32119:11;;32141:15;;;-1:-1:-1;32167:15:0;;:19;;;;32015:14;;;;;32197:10;;32015:14;;-1:-1:-1;32064:26:0;;32119:11;32197:44;;-1:-1:-1;;;;;32197:10:0;;;;;32119:11;32197:23;:44::i;:::-;32287:4;32275:10;-1:-1:-1;;;;;32257:44:0;;32293:7;32257:44;;;;;;:::i;:::-;;;;;;;;31932:377;;;;:::o;32895:601::-;25008:8;;-1:-1:-1;;;;;25008:8:0;25020:10;25008:22;25000:77;;;;-1:-1:-1;;;25000:77:0;;;;;;;:::i;:::-;33031:11:::1;::::0;:21:::1;::::0;33045:7:::1;33031:21;:::i;:::-;33013:15;:39;33009:438;;;33186:3;::::0;-1:-1:-1;;;;;33176:13:0;;::::1;33186:3:::0;::::1;33176:13;;33168:29;;;;-1:-1:-1::0;;;33168:29:0::1;;;;;;;:::i;:::-;33229:8;:15:::0;33212:14:::1;33259:177;33287:6;33281:3;:12;33259:177;;;33321:21;33345:8;33354:3;33345:13;;;;;;-1:-1:-1::0;;;33345:13:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;33395:10:::0;;33345:13;;-1:-1:-1;;;;;;33385:20:0;;::::1;33395:10:::0;::::1;33385:20;;33377:43;;;;-1:-1:-1::0;;;33377:43:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;33295:5:0::1;::::0;::::1;:::i;:::-;;;33259:177;;;;33009:438;;33457:31;-1:-1:-1::0;;;;;33457:19:0;::::1;33477:2:::0;33481:6;33457:19:::1;:31::i;:::-;32895:601:::0;;;:::o;22849:23::-;;;-1:-1:-1;;;;;22849:23:0;;:::o;23923:28::-;;;;:::o;28800:180::-;28862:8;:15;28845:14;28888:85;28916:6;28910:3;:12;28888:85;;;28946:15;28957:3;28946:10;:15::i;:::-;28924:5;;;:::i;:::-;;;28888:85;;;;28800:180;:::o;23999:26::-;;;;:::o;27954:763::-;28026:7;28046:21;28070:8;28079:4;28070:14;;;;;;-1:-1:-1;;;28070:14:0;;;;;;;;;;;;;;;;;28119;;;:8;:14;;;;;;;-1:-1:-1;;;;;28119:21:0;;;;;;;;;;28176:19;28070:14;;;;;;;28176:19;;;;28228:10;;:35;;-1:-1:-1;;;28228:35:0;;28070:14;;-1:-1:-1;28119:21:0;;28176:19;;28070:14;;28228:10;;:20;;:35;;28257:4;;28228:35;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;28206:57;;28296:4;:19;;;28278:15;:37;:57;;;;-1:-1:-1;28319:16:0;;;28278:57;28274:356;;;28352:24;28379:56;28398:4;:19;;;28419:15;28379:18;:56::i;:::-;28352:83;;28450:18;28471:58;28513:15;;28471:37;28492:4;:15;;;28471:16;:20;;:37;;;;:::i;:58::-;28450:79;-1:-1:-1;28561:57:0;28580:37;28605:11;28580:20;28450:79;28595:4;28580:14;:20::i;:37::-;28561:14;;:18;:57::i;:::-;28544:74;;28274:356;;;28647:62;28693:4;:15;;;28647:41;28683:4;28647:31;28663:14;28647:4;:11;;;:15;;:31;;;;:::i;:62::-;28640:69;27954:763;-1:-1:-1;;;;;;;27954:763:0:o;23541:17::-;;;-1:-1:-1;;;;;23541:17:0;;:::o;23678:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24158:35::-;;;;:::o;25443:1275::-;25008:8;;-1:-1:-1;;;;;25008:8:0;25020:10;25008:22;25000:77;;;;-1:-1:-1;;;25000:77:0;;;;;;;:::i;:::-;25609:26:::1;25628:6;25609:18;:26::i;:::-;25650:11;25646:61;;;25678:17;:15;:17::i;:::-;25739:13;;25721:15;:31;25717:534;;;25806:20:::0;25802:243:::1;;-1:-1:-1::0;25865:13:0::1;::::0;25802:243:::1;;;25941:13;;25923:15;:31;25919:111;;;-1:-1:-1::0;25997:13:0::1;::::0;25919:111:::1;25717:534;;;26113:20:::0;;;:57:::1;;;26155:15;26137;:33;26113:57;26109:131;;;-1:-1:-1::0;26209:15:0::1;26109:131;26261:15;26308:13;;26289:15;:32;;26288:83;;;;26355:15;26336;:34;;26288:83;26396:210;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;26396:210:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;26396:210:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;26382:8:::1;:225:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;26382:225:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26382:225:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;26396:210;;-1:-1:-1;26618:93:0::1;;26667:15;::::0;:32:::1;::::0;26687:11;26667:19:::1;:32::i;:::-;26649:15;:50:::0;26618:93:::1;25088:1;25443:1275:::0;;;;:::o;24061:47::-;;;;:::o;32786:101::-;25008:8;;-1:-1:-1;;;;;25008:8:0;25020:10;25008:22;25000:77;;;;-1:-1:-1;;;25000:77:0;;;;;;;:::i;:::-;32859:8:::1;:20:::0;;-1:-1:-1;;;;;;32859:20:0::1;-1:-1:-1::0;;;;;32859:20:0;;;::::1;::::0;;;::::1;::::0;;32786:101::o;29992:1029::-;30058:15;30076:10;30058:28;;30097:21;30121:8;30130:4;30121:14;;;;;;-1:-1:-1;;;30121:14:0;;;;;;;;;;;;;;;;;30170;;;:8;:14;;;;;;-1:-1:-1;;;;;30170:23:0;;;;;;;;;30121:14;;;;;;;;-1:-1:-1;30204:16:0;30179:4;30204:10;:16::i;:::-;30235:11;;:15;30231:288;;30267:16;30286:67;30337:4;:15;;;30286:46;30327:4;30286:36;30302:4;:19;;;30286:4;:11;;;:15;;:36;;;;:::i;:67::-;30267:86;-1:-1:-1;30372:12:0;;30368:140;;30405:34;30421:7;30430:8;30405:15;:34::i;:::-;30474:7;-1:-1:-1;;;;;30463:29:0;;30483:8;30463:29;;;;;;:::i;:::-;;;;;;;;30368:140;30231:288;;30533:11;;30529:363;;30561:18;30582:26;30602:5;30582:15;:7;30594:2;30582:11;:15::i;:26::-;30673:7;;30636:10;;30561:47;;-1:-1:-1;30636:57:0;;-1:-1:-1;;;;;30636:10:0;;;;30664:7;;30673;30561:47;30636:27;:57::i;:::-;30710:17;30730:18;30738:10;30730:7;:18;:::i;:::-;30763:10;;30710:38;;-1:-1:-1;30763:62:0;;-1:-1:-1;;;;;30763:10:0;30791:7;30808:4;30710:38;30763:27;:62::i;:::-;30854:11;;:26;;30870:9;30854:15;:26::i;:::-;30840:40;;-1:-1:-1;;30529:363:0;30936:19;;;;30920:11;;:46;;30961:4;;30920:36;;:15;:36::i;:46::-;30902:4;:15;;:64;;;;30999:4;30990:7;-1:-1:-1;;;;;30982:31:0;;31005:7;30982:31;;;;;;:::i;:::-;;;;;;;;29992:1029;;;;;:::o;18671:98::-;18729:7;18756:5;18760:1;18756;:5;:::i;:::-;18749:12;18671:98;-1:-1:-1;;;18671:98:0:o;18290:::-;18348:7;18375:5;18379:1;18375;:5;:::i;19028:98::-;19086:7;19113:5;19117:1;19113;:5;:::i;19427:98::-;19485:7;19512:5;19516:1;19512;:5;:::i;32421:357::-;32518:3;;:28;;-1:-1:-1;;;32518:28:0;;32496:19;;-1:-1:-1;;;;;32518:3:0;;:13;;:28;;32540:4;;32518:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32496:50;-1:-1:-1;32561:15:0;;32557:214;;32607:11;32597:7;:21;32593:167;;;32639:3;;:34;;-1:-1:-1;;;;;32639:3:0;32656;32661:11;32639:16;:34::i;:::-;32593:167;;;32714:3;;:30;;-1:-1:-1;;;;;32714:3:0;32731;32736:7;12126:211;12243:86;12263:5;12293:23;;;12318:2;12322:5;12270:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;12270:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;12270:58:0;-1:-1:-1;;;;;;12270:58:0;;;;;;;;;;12243:19;:86::i;25105:260::-;25190:8;:15;25173:14;25216:142;25244:6;25238:3;:12;25216:142;;;25305:6;-1:-1:-1;;;;;25282:29:0;:8;25291:3;25282:13;;;;;;-1:-1:-1;;;25282:13:0;;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;25282:19:0;:29;;25274:72;;;;-1:-1:-1;;;25274:72:0;;;;;;;:::i;:::-;25252:5;;;:::i;:::-;;;25216:142;;12345:248;12489:96;12509:5;12539:27;;;12568:4;12574:2;12578:5;12516:68;;;;;;;;;;:::i;12489:96::-;12345:248;;;;:::o;14699:716::-;15123:23;15149:69;15177:4;15149:69;;;;;;;;;;;;;;;;;15157:5;-1:-1:-1;;;;;15149:27:0;;;:69;;;;;:::i;:::-;15233:17;;15123:95;;-1:-1:-1;15233:21:0;15229:179;;15330:10;15319:30;;;;;;;;;;;;:::i;:::-;15311:85;;;;-1:-1:-1;;;15311:85:0;;;;;;;:::i;6900:229::-;7037:12;7069:52;7091:6;7099:4;7105:1;7108:12;7069:21;:52::i;:::-;7062:59;6900:229;-1:-1:-1;;;;6900:229:0:o;8020:510::-;8190:12;8248:5;8223:21;:30;;8215:81;;;;-1:-1:-1;;;8215:81:0;;;;;;;:::i;:::-;8315:18;8326:6;8315:10;:18::i;:::-;8307:60;;;;-1:-1:-1;;;8307:60:0;;;;;;;:::i;:::-;8381:12;8395:23;8422:6;-1:-1:-1;;;;;8422:11:0;8441:5;8448:4;8422:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8380:73;;;;8471:51;8488:7;8497:10;8509:12;8471:16;:51::i;4155:326::-;-1:-1:-1;;;;;4450:19:0;;:23;;;4155:326::o;10706:712::-;10856:12;10885:7;10881:530;;;-1:-1:-1;10916:10:0;10909:17;;10881:530;11030:17;;:21;11026:374;;11228:10;11222:17;11289:15;11276:10;11272:2;11268:19;11261:44;11176:148;11371:12;11364:20;;-1:-1:-1;;;11364:20:0;;;;;;;;:::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:257::-;;398:2;386:9;377:7;373:23;369:32;366:2;;;419:6;411;404:22;366:2;456:9;450:16;475:30;499:5;475:30;:::i;540:483::-;;;;699:2;687:9;678:7;674:23;670:32;667:2;;;720:6;712;705:22;667:2;764:9;751:23;783:33;810:5;783:33;:::i;:::-;835:5;-1:-1:-1;887:2:1;872:18;;859:32;;-1:-1:-1;943:2:1;928:18;;915:32;956:35;915:32;956:35;:::i;:::-;1010:7;1000:17;;;657:366;;;;;:::o;1028:190::-;;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;-1:-1:-1;1189:23:1;;1098:120;-1:-1:-1;1098:120:1:o;1223:194::-;;1346:2;1334:9;1325:7;1321:23;1317:32;1314:2;;;1367:6;1359;1352:22;1314:2;-1:-1:-1;1395:16:1;;1304:113;-1:-1:-1;1304:113:1:o;1422:327::-;;;1551:2;1539:9;1530:7;1526:23;1522:32;1519:2;;;1572:6;1564;1557:22;1519:2;1613:9;1600:23;1590:33;;1673:2;1662:9;1658:18;1645:32;1686:33;1713:5;1686:33;:::i;:::-;1738:5;1728:15;;;1509:240;;;;;:::o;1754:546::-;;;;;1927:3;1915:9;1906:7;1902:23;1898:33;1895:2;;;1949:6;1941;1934:22;1895:2;1990:9;1977:23;1967:33;;2050:2;2039:9;2035:18;2022:32;2063:33;2090:5;2063:33;:::i;:::-;2115:5;-1:-1:-1;2172:2:1;2157:18;;2144:32;2185;2144;2185;:::i;:::-;1885:415;;;;-1:-1:-1;2236:7:1;;2290:2;2275:18;2262:32;;-1:-1:-1;;1885:415:1:o;2305:258::-;;;2434:2;2422:9;2413:7;2409:23;2405:32;2402:2;;;2455:6;2447;2440:22;2402:2;-1:-1:-1;;2483:23:1;;;2553:2;2538:18;;;2525:32;;-1:-1:-1;2392:171:1:o;2568:274::-;;2735:6;2729:13;2751:53;2797:6;2792:3;2785:4;2777:6;2773:17;2751:53;:::i;:::-;2820:16;;;;;2705:137;-1:-1:-1;;2705:137:1:o;2847:203::-;-1:-1:-1;;;;;3011:32:1;;;;2993:51;;2981:2;2966:18;;2948:102::o;3055:375::-;-1:-1:-1;;;;;3313:15:1;;;3295:34;;3365:15;;;;3360:2;3345:18;;3338:43;3412:2;3397:18;;3390:34;;;;3245:2;3230:18;;3212:218::o;3435:274::-;-1:-1:-1;;;;;3627:32:1;;;;3609:51;;3691:2;3676:18;;3669:34;3597:2;3582:18;;3564:145::o;3935:512::-;-1:-1:-1;;;;;4219:32:1;;;;4201:51;;4283:2;4268:18;;4261:34;;;;4326:2;4311:18;;4304:34;;;;4369:2;4354:18;;4347:34;4425:14;4418:22;4412:3;4397:19;;4390:51;4188:3;4173:19;;4155:292::o;4452:383::-;;4601:2;4590:9;4583:21;4633:6;4627:13;4676:6;4671:2;4660:9;4656:18;4649:34;4692:66;4751:6;4746:2;4735:9;4731:18;4726:2;4718:6;4714:15;4692:66;:::i;:::-;4819:2;4798:15;-1:-1:-1;;4794:29:1;4779:45;;;;4826:2;4775:54;;4573:262;-1:-1:-1;;4573:262:1:o;4840:354::-;5042:2;5024:21;;;5081:2;5061:18;;;5054:30;5120:32;5115:2;5100:18;;5093:60;5185:2;5170:18;;5014:180::o;5199:402::-;5401:2;5383:21;;;5440:2;5420:18;;;5413:30;5479:34;5474:2;5459:18;;5452:62;-1:-1:-1;;;5545:2:1;5530:18;;5523:36;5591:3;5576:19;;5373:228::o;5606:334::-;5808:2;5790:21;;;5847:2;5827:18;;;5820:30;-1:-1:-1;;;5881:2:1;5866:18;;5859:40;5931:2;5916:18;;5780:160::o;5945:406::-;6147:2;6129:21;;;6186:2;6166:18;;;6159:30;6225:34;6220:2;6205:18;;6198:62;-1:-1:-1;;;6291:2:1;6276:18;;6269:40;6341:3;6326:19;;6119:232::o;6356:353::-;6558:2;6540:21;;;6597:2;6577:18;;;6570:30;6636:31;6631:2;6616:18;;6609:59;6700:2;6685:18;;6530:179::o;6714:342::-;6916:2;6898:21;;;6955:2;6935:18;;;6928:30;-1:-1:-1;;;6989:2:1;6974:18;;6967:48;7047:2;7032:18;;6888:168::o;7061:406::-;7263:2;7245:21;;;7302:2;7282:18;;;7275:30;7341:34;7336:2;7321:18;;7314:62;-1:-1:-1;;;7407:2:1;7392:18;;7385:40;7457:3;7442:19;;7235:232::o;7472:326::-;7674:2;7656:21;;;7713:1;7693:18;;;7686:29;-1:-1:-1;;;7746:2:1;7731:18;;7724:33;7789:2;7774:18;;7646:152::o;7803:177::-;7949:25;;;7937:2;7922:18;;7904:76::o;7985:248::-;8159:25;;;8215:2;8200:18;;8193:34;8147:2;8132:18;;8114:119::o;8238:128::-;;8309:1;8305:6;8302:1;8299:13;8296:2;;;8315:18;;:::i;:::-;-1:-1:-1;8351:9:1;;8286:80::o;8371:217::-;;8437:1;8427:2;;-1:-1:-1;;;8462:31:1;;8516:4;8513:1;8506:15;8544:4;8469:1;8534:15;8427:2;-1:-1:-1;8573:9:1;;8417:171::o;8593:168::-;;8699:1;8695;8691:6;8687:14;8684:1;8681:21;8676:1;8669:9;8662:17;8658:45;8655:2;;;8706:18;;:::i;:::-;-1:-1:-1;8746:9:1;;8645:116::o;8766:125::-;;8834:1;8831;8828:8;8825:2;;;8839:18;;:::i;:::-;-1:-1:-1;8876:9:1;;8815:76::o;8896:258::-;8968:1;8978:113;8992:6;8989:1;8986:13;8978:113;;;9068:11;;;9062:18;9049:11;;;9042:39;9014:2;9007:10;8978:113;;;9109:6;9106:1;9103:13;9100:2;;;-1:-1:-1;;9144:1:1;9126:16;;9119:27;8949:205::o;9159:135::-;;-1:-1:-1;;9219:17:1;;9216:2;;;9239:18;;:::i;:::-;-1:-1:-1;9286:1:1;9275:13;;9206:88::o;9299:127::-;9360:10;9355:3;9351:20;9348:1;9341:31;9391:4;9388:1;9381:15;9415:4;9412:1;9405:15;9431:133;-1:-1:-1;;;;;9508:31:1;;9498:42;;9488:2;;9554:1;9551;9544:12;9569:120;9657:5;9650:13;9643:21;9636:5;9633:32;9623:2;;9679:1;9676;9669:12

Swarm Source

ipfs://04a0f9b077bd88fd995c702d05d0c7976dd27fc161cfb2cc9c848217a0dbe018

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.