ETH Price: $3,308.49 (-0.14%)
 
Transaction Hash
Method
Block
From
To
Withdraw145980782022-04-16 18:47:57998 days ago1650134877IN
0x225482a0...e016E137C
0 ETH0.0046967337.93559422
Withdraw145978692022-04-16 18:01:08998 days ago1650132068IN
0x225482a0...e016E137C
0 ETH0.0030849727.51516202
Deposit145971852022-04-16 15:38:19999 days ago1650123499IN
0x225482a0...e016E137C
0 ETH0.0041304221.11344421
Withdraw145925052022-04-15 22:00:18999 days ago1650060018IN
0x225482a0...e016E137C
0 ETH0.0059729242.04807311
Withdraw145924942022-04-15 21:58:17999 days ago1650059897IN
0x225482a0...e016E137C
0 ETH0.0064651447.08054514
Withdraw145924922022-04-15 21:57:59999 days ago1650059879IN
0x225482a0...e016E137C
0 ETH0.0069109750.47124322
Withdraw145924922022-04-15 21:57:59999 days ago1650059879IN
0x225482a0...e016E137C
0 ETH0.0068043350.47124322
Withdraw145924842022-04-15 21:56:23999 days ago1650059783IN
0x225482a0...e016E137C
0 ETH0.0070412758.675361
Withdraw145924832022-04-15 21:55:53999 days ago1650059753IN
0x225482a0...e016E137C
0 ETH0.0088022952.50678672
Emergency Withdr...145917422022-04-15 19:01:03999 days ago1650049263IN
0x225482a0...e016E137C
0 ETH0.0069940276.48253399
Deposit145917322022-04-15 18:58:45999 days ago1650049125IN
0x225482a0...e016E137C
0 ETH0.0064215457.25858093
Emergency Withdr...145913022022-04-15 17:30:41999 days ago1650043841IN
0x225482a0...e016E137C
0 ETH0.0032303942.31258991
Deposit145910892022-04-15 16:45:48999 days ago1650041148IN
0x225482a0...e016E137C
0 ETH0.0161330884.53634498
Withdraw145910762022-04-15 16:41:46999 days ago1650040906IN
0x225482a0...e016E137C
0 ETH0.0053901648.83147996
Withdraw145910682022-04-15 16:40:44999 days ago1650040844IN
0x225482a0...e016E137C
0 ETH0.0075667860.45158209
Withdraw145910532022-04-15 16:37:05999 days ago1650040625IN
0x225482a0...e016E137C
0 ETH0.0103224265.32851602
Withdraw145909132022-04-15 16:08:281000 days ago1650038908IN
0x225482a0...e016E137C
0 ETH0.0076159859.08991641
Withdraw145909122022-04-15 16:08:231000 days ago1650038903IN
0x225482a0...e016E137C
0 ETH0.0082257659.30319052
Deposit145909032022-04-15 16:05:281000 days ago1650038728IN
0x225482a0...e016E137C
0 ETH0.0055971549.90773899
Deposit145908832022-04-15 16:01:301000 days ago1650038490IN
0x225482a0...e016E137C
0 ETH0.0099587648.99687195
Deposit145908652022-04-15 15:58:491000 days ago1650038329IN
0x225482a0...e016E137C
0 ETH0.0062924263.21887729
Deposit145908622022-04-15 15:57:441000 days ago1650038264IN
0x225482a0...e016E137C
0 ETH0.0070436856.00717754
Deposit145881792022-04-15 5:49:191000 days ago1650001759IN
0x225482a0...e016E137C
0 ETH0.0033600826.71734537
Withdraw145871762022-04-15 2:01:251000 days ago1649988085IN
0x225482a0...e016E137C
0 ETH0.002794832.14785021
Withdraw145871482022-04-15 1:55:081000 days ago1649987708IN
0x225482a0...e016E137C
0 ETH0.0022465425.84131969
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:
GldmGenesisRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-04-12
*/

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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


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



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


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



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

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

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

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

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

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

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


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



pragma solidity >=0.6.0 <0.8.0;



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

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

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

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

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/distribution/GldmGenesisRewardPool.sol



pragma solidity 0.6.12;



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

    // governance
    address public operator;
    address public feeAddress1;
    address public feeAddress2;
    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

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

    IERC20 public gldm;

    // 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 GLDM mining starts.
    uint256 public poolStartTime;

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

    // MAINNET
    uint256 public gldmPerSecond = 0.0072338 ether; // 2500 GLDM / (24h * 60min * 60s)
    uint256 public runningTime = 4 days; // 4 days
    uint256 public constant TOTAL_REWARDS = 2500 ether;
    // END MAINNET

    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 _gldm,
        address _feeAddress1,
        address _feeAddress2,
        uint256 _poolStartTime
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        require(_feeAddress1 != address(0), "Invalid address");
        require(_feeAddress2 != address(0), "Invalid address");

        if (_gldm != address(0)) gldm = IERC20(_gldm);
        feeAddress1 = _feeAddress1;
        feeAddress2 = _feeAddress2;
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "GldmGenesisPool: 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, "GldmGenesisPool: 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, accGldmPerShare: 0, isStarted: _isStarted}));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's GLDM 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(gldmPerSecond);
            return poolEndTime.sub(_fromTime).mul(gldmPerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(gldmPerSecond);
            return _toTime.sub(_fromTime).mul(gldmPerSecond);
        }
    }

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

    // Deposit LP 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.accGldmPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeGldmTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            user.amount = user.amount.add(_amount);

            uint256 depositFee = _amount.div(130);
            pool.token.safeTransfer(feeAddress1, depositFee);
            user.amount = user.amount.sub(depositFee);
            depositFee = _amount.div(70);
            pool.token.safeTransfer(feeAddress2, depositFee);
            user.amount = user.amount.sub(depositFee);
        }
            user.rewardDebt = user.amount.mul(pool.accGldmPerShare).div(1e18);
            emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP 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.accGldmPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeGldmTransfer(_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.accGldmPerShare).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 GLDM transfer function, just in case if rounding error causes pool to not have enough GLDMs.
    function safeGldmTransfer(address _to, uint256 _amount) internal {
        uint256 _gldmBalance = gldm.balanceOf(address(this));
        if (_gldmBalance > 0) {
            if (_amount > _gldmBalance) {
                gldm.safeTransfer(_to, _gldmBalance);
            } else {
                gldm.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 + 90 days) {
            // do not allow to drain core token (GLDM or lps) if less than 90 days after pool ends
            require(_token != gldm, "gldm");
            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":"_gldm","type":"address"},{"internalType":"address","name":"_feeAddress1","type":"address"},{"internalType":"address","name":"_feeAddress2","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":[{"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":"feeAddress1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"gldm","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gldmPerSecond","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":"pendingGLDM","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":"accGldmPerShare","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"}]

608060405260006006556619b31a4f60500060095562054600600a5534801561002757600080fd5b506040516119df3803806119df8339818101604052608081101561004a57600080fd5b508051602082015160408301516060909301519192909142811161009e576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b0383166100eb576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b6001600160a01b038216610138576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b6001600160a01b0384161561016357600380546001600160a01b0319166001600160a01b0386161790555b600180546001600160a01b039485166001600160a01b0319918216179091556002805493909416928116929092179092556007829055600a54909101600855600080549091163317905550611822806101bd6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80635f96dc11116100c3578063b3ab15fb1161007c578063b3ab15fb1461036e578063bbb2cd0114610394578063db3f77ec1461039c578063e2bbb158146103c8578063eacd2d13146103eb578063eb78f95e146103f35761014d565b80635f96dc11146102cf578063630b5ba1146102d75780636e271dd5146102df57806393f1a40b146102e7578063943f013d1461032c57806396805e54146103345761014d565b8063231f0c6a11610115578063231f0c6a14610211578063441a3e701461023457806351eb05a6146102575780635312ea8e1461027457806354575af414610291578063570ca735146102c75761014d565b806309cf6091146101525780631526fe271461016c57806317caf6f1146101c05780631ab06ee5146101c85780631b3b8b79146101ed575b600080fd5b61015a6103fb565b60408051918252519081900360200190f35b6101896004803603602081101561018257600080fd5b5035610408565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61015a610453565b6101eb600480360360408110156101de57600080fd5b5080359060200135610459565b005b6101f5610507565b604080516001600160a01b039092168252519081900360200190f35b61015a6004803603604081101561022757600080fd5b5080359060200135610516565b6101eb6004803603604081101561024a57600080fd5b50803590602001356105db565b6101eb6004803603602081101561026d57600080fd5b503561079a565b6101eb6004803603602081101561028a57600080fd5b50356108f8565b6101eb600480360360608110156102a757600080fd5b506001600160a01b03813581169160208101359160409091013516610991565b6101f5610ad9565b61015a610ae8565b6101eb610aee565b61015a610b11565b610313600480360360408110156102fd57600080fd5b50803590602001356001600160a01b0316610b17565b6040805192835260208301919091528051918290030190f35b61015a610b3b565b6101eb6004803603608081101561034a57600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b41565b6101eb6004803603602081101561038457600080fd5b50356001600160a01b0316610d3e565b61015a610da9565b61015a600480360360408110156103b257600080fd5b50803590602001356001600160a01b0316610daf565b6101eb600480360360408110156103de57600080fd5b5080359060200135610f0c565b6101f56110ef565b6101f56110fe565b68878678326eac90000081565b6004818154811061041557fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60065481565b6000546001600160a01b031633146104a25760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b6104aa610aee565b6000600483815481106104b957fe5b60009182526020909120600590910201600481015490915060ff1615610500576104fc826104f6836001015460065461110d90919063ffffffff16565b9061116a565b6006555b6001015550565b6001546001600160a01b031681565b6000818310610527575060006105d5565b600854821061058f576008548310610541575060006105d5565b60075483116105745761056d60095461056760075460085461110d90919063ffffffff16565b906111cb565b90506105d5565b61056d6009546105678560085461110d90919063ffffffff16565b60075482116105a0575060006105d5565b60075483116105c45761056d6009546105676007548561110d90919063ffffffff16565b60095461056d90610567848661110d565b92915050565b60003390506000600484815481106105ef57fe5b60009182526020808320878452600580835260408086206001600160a01b038916875290935291909320805492909102909201925084111561066d576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106768561079a565b60006106b382600101546106ad670de0b6b3a76400006106a7876003015487600001546111cb90919063ffffffff16565b90611224565b9061110d565b90508015610705576106c5848261128b565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561072f578154610717908661110d565b8255825461072f906001600160a01b03168587611341565b6003830154825461074d91670de0b6b3a7640000916106a7916111cb565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b6000600482815481106107a957fe5b90600052602060002090600502019050806002015442116107ca57506108f5565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561081457600080fd5b505afa158015610828573d6000803e3d6000fd5b505050506040513d602081101561083e57600080fd5b50519050806108545750426002909101556108f5565b600482015460ff166108855760048201805460ff191660019081179091558201546006546108819161116a565b6006555b600654156108ec57600061089d836002015442610516565b905060006108be6006546106a78660010154856111cb90919063ffffffff16565b90506108e46108d9846106a784670de0b6b3a76400006111cb565b60038601549061116a565b600385015550505b50426002909101555b50565b60006004828154811061090757fe5b60009182526020808320858452600580835260408086203380885294528520805486825560018201969096559302018054909450919291610954916001600160a01b039091169083611341565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109da5760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b6008546276a70001421015610ac0576003546001600160a01b0384811691161415610a35576040805162461bcd60e51b81526020600480830191909152602482015263676c646d60e01b604482015290519081900360640190fd5b60045460005b81811015610abd57600060048281548110610a5257fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610ab4576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a3b565b50505b610ad46001600160a01b0384168284611341565b505050565b6000546001600160a01b031681565b60075481565b60045460005b81811015610b0d57610b058161079a565b600101610af4565b5050565b60085481565b60056020908152600092835260408084209091529082529020805460019091015482565b600a5481565b6000546001600160a01b03163314610b8a5760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b610b9383611393565b8115610ba157610ba1610aee565b600754421015610bcd5780610bb95750600754610bc8565b600754811015610bc857506007545b610be1565b801580610bd957504281105b15610be15750425b600060075482111580610bf45750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260048054600181018255945295517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590940293840180546001600160a01b031916919096161790945594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e84015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909201805460ff191692151592909217909155909150610d3757600654610d33908661116a565b6006555b5050505050565b6000546001600160a01b03163314610d875760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60095481565b60008060048481548110610dbf57fe5b60009182526020808320878452600580835260408086206001600160a01b03808b16885290855281872060039390960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610e3857600080fd5b505afa158015610e4c573d6000803e3d6000fd5b505050506040513d6020811015610e6257600080fd5b5051600285015490915042118015610e7957508015155b15610ed6576000610e8e856002015442610516565b90506000610eaf6006546106a78860010154856111cb90919063ffffffff16565b9050610ed1610eca846106a784670de0b6b3a76400006111cb565b859061116a565b935050505b610f0183600101546106ad670de0b6b3a76400006106a78688600001546111cb90919063ffffffff16565b979650505050505050565b6000339050600060048481548110610f2057fe5b60009182526020808320878452600580835260408086206001600160a01b03891687529093529190932091029091019150610f5a8561079a565b805415610fe6576000610f9282600101546106ad670de0b6b3a76400006106a7876003015487600001546111cb90919063ffffffff16565b90508015610fe457610fa4848261128b565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315611085578154611003906001600160a01b031684308761142d565b805461100f908561116a565b8155600061101e856082611224565b600154845491925061103d916001600160a01b03908116911683611341565b8154611049908261110d565b8255611056856046611224565b6002548454919250611075916001600160a01b03908116911683611341565b8154611081908261110d565b8255505b600382015481546110a391670de0b6b3a7640000916106a7916111cb565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6003546001600160a01b031681565b6002546001600160a01b031681565b600082821115611164576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156111c4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826111da575060006105d5565b828202828482816111e757fe5b04146111c45760405162461bcd60e51b81526004018080602001828103825260218152602001806117a26021913960400191505060405180910390fd5b600080821161127a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161128357fe5b049392505050565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112d657600080fd5b505afa1580156112ea573d6000803e3d6000fd5b505050506040513d602081101561130057600080fd5b505190508015610ad4578082111561132e57600354611329906001600160a01b03168483611341565b610ad4565b600354610ad4906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ad490849061148d565b60045460005b81811015610ad457826001600160a01b0316600482815481106113b857fe5b60009182526020909120600590910201546001600160a01b03161415611425576040805162461bcd60e51b815260206004820152601f60248201527f476c646d47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f00604482015290519081900360640190fd5b600101611399565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261148790859061148d565b50505050565b60606114e2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661153e9092919063ffffffff16565b805190915015610ad45780806020019051602081101561150157600080fd5b5051610ad45760405162461bcd60e51b815260040180806020018281038252602a8152602001806117c3602a913960400191505060405180910390fd5b606061154d8484600085611555565b949350505050565b6060824710156115965760405162461bcd60e51b815260040180806020018281038252602681526020018061177c6026913960400191505060405180910390fd5b61159f856116a6565b6115f0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061162f5780518252601f199092019160209182019101611610565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611691576040519150601f19603f3d011682016040523d82523d6000602084013e611696565b606091505b5091509150610f018282866116ac565b3b151590565b606083156116bb5750816111c4565b8251156116cb5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117155781810151838201526020016116fd565b50505050905090810190601f1680156117425780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe476c646d47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122058854e9c35a875a4fb92d507e38ac3b9521433b54fc0c613ff84f11aa0949a0c64736f6c634300060c00330000000000000000000000007a9e4ee86f1c01b1529d05099f8d2906b37692110000000000000000000000002bb70959883302601acb3c8fdc83c031d80be32b000000000000000000000000aef7397ed6e120ba90cc363d9f19042e6295653a0000000000000000000000000000000000000000000000000000000062599680

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80635f96dc11116100c3578063b3ab15fb1161007c578063b3ab15fb1461036e578063bbb2cd0114610394578063db3f77ec1461039c578063e2bbb158146103c8578063eacd2d13146103eb578063eb78f95e146103f35761014d565b80635f96dc11146102cf578063630b5ba1146102d75780636e271dd5146102df57806393f1a40b146102e7578063943f013d1461032c57806396805e54146103345761014d565b8063231f0c6a11610115578063231f0c6a14610211578063441a3e701461023457806351eb05a6146102575780635312ea8e1461027457806354575af414610291578063570ca735146102c75761014d565b806309cf6091146101525780631526fe271461016c57806317caf6f1146101c05780631ab06ee5146101c85780631b3b8b79146101ed575b600080fd5b61015a6103fb565b60408051918252519081900360200190f35b6101896004803603602081101561018257600080fd5b5035610408565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61015a610453565b6101eb600480360360408110156101de57600080fd5b5080359060200135610459565b005b6101f5610507565b604080516001600160a01b039092168252519081900360200190f35b61015a6004803603604081101561022757600080fd5b5080359060200135610516565b6101eb6004803603604081101561024a57600080fd5b50803590602001356105db565b6101eb6004803603602081101561026d57600080fd5b503561079a565b6101eb6004803603602081101561028a57600080fd5b50356108f8565b6101eb600480360360608110156102a757600080fd5b506001600160a01b03813581169160208101359160409091013516610991565b6101f5610ad9565b61015a610ae8565b6101eb610aee565b61015a610b11565b610313600480360360408110156102fd57600080fd5b50803590602001356001600160a01b0316610b17565b6040805192835260208301919091528051918290030190f35b61015a610b3b565b6101eb6004803603608081101561034a57600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b41565b6101eb6004803603602081101561038457600080fd5b50356001600160a01b0316610d3e565b61015a610da9565b61015a600480360360408110156103b257600080fd5b50803590602001356001600160a01b0316610daf565b6101eb600480360360408110156103de57600080fd5b5080359060200135610f0c565b6101f56110ef565b6101f56110fe565b68878678326eac90000081565b6004818154811061041557fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60065481565b6000546001600160a01b031633146104a25760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b6104aa610aee565b6000600483815481106104b957fe5b60009182526020909120600590910201600481015490915060ff1615610500576104fc826104f6836001015460065461110d90919063ffffffff16565b9061116a565b6006555b6001015550565b6001546001600160a01b031681565b6000818310610527575060006105d5565b600854821061058f576008548310610541575060006105d5565b60075483116105745761056d60095461056760075460085461110d90919063ffffffff16565b906111cb565b90506105d5565b61056d6009546105678560085461110d90919063ffffffff16565b60075482116105a0575060006105d5565b60075483116105c45761056d6009546105676007548561110d90919063ffffffff16565b60095461056d90610567848661110d565b92915050565b60003390506000600484815481106105ef57fe5b60009182526020808320878452600580835260408086206001600160a01b038916875290935291909320805492909102909201925084111561066d576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106768561079a565b60006106b382600101546106ad670de0b6b3a76400006106a7876003015487600001546111cb90919063ffffffff16565b90611224565b9061110d565b90508015610705576106c5848261128b565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561072f578154610717908661110d565b8255825461072f906001600160a01b03168587611341565b6003830154825461074d91670de0b6b3a7640000916106a7916111cb565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b6000600482815481106107a957fe5b90600052602060002090600502019050806002015442116107ca57506108f5565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561081457600080fd5b505afa158015610828573d6000803e3d6000fd5b505050506040513d602081101561083e57600080fd5b50519050806108545750426002909101556108f5565b600482015460ff166108855760048201805460ff191660019081179091558201546006546108819161116a565b6006555b600654156108ec57600061089d836002015442610516565b905060006108be6006546106a78660010154856111cb90919063ffffffff16565b90506108e46108d9846106a784670de0b6b3a76400006111cb565b60038601549061116a565b600385015550505b50426002909101555b50565b60006004828154811061090757fe5b60009182526020808320858452600580835260408086203380885294528520805486825560018201969096559302018054909450919291610954916001600160a01b039091169083611341565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109da5760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b6008546276a70001421015610ac0576003546001600160a01b0384811691161415610a35576040805162461bcd60e51b81526020600480830191909152602482015263676c646d60e01b604482015290519081900360640190fd5b60045460005b81811015610abd57600060048281548110610a5257fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610ab4576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a3b565b50505b610ad46001600160a01b0384168284611341565b505050565b6000546001600160a01b031681565b60075481565b60045460005b81811015610b0d57610b058161079a565b600101610af4565b5050565b60085481565b60056020908152600092835260408084209091529082529020805460019091015482565b600a5481565b6000546001600160a01b03163314610b8a5760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b610b9383611393565b8115610ba157610ba1610aee565b600754421015610bcd5780610bb95750600754610bc8565b600754811015610bc857506007545b610be1565b801580610bd957504281105b15610be15750425b600060075482111580610bf45750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260048054600181018255945295517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590940293840180546001600160a01b031916919096161790945594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e84015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909201805460ff191692151592909217909155909150610d3757600654610d33908661116a565b6006555b5050505050565b6000546001600160a01b03163314610d875760405162461bcd60e51b815260040180806020018281038252602b815260200180611751602b913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60095481565b60008060048481548110610dbf57fe5b60009182526020808320878452600580835260408086206001600160a01b03808b16885290855281872060039390960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610e3857600080fd5b505afa158015610e4c573d6000803e3d6000fd5b505050506040513d6020811015610e6257600080fd5b5051600285015490915042118015610e7957508015155b15610ed6576000610e8e856002015442610516565b90506000610eaf6006546106a78860010154856111cb90919063ffffffff16565b9050610ed1610eca846106a784670de0b6b3a76400006111cb565b859061116a565b935050505b610f0183600101546106ad670de0b6b3a76400006106a78688600001546111cb90919063ffffffff16565b979650505050505050565b6000339050600060048481548110610f2057fe5b60009182526020808320878452600580835260408086206001600160a01b03891687529093529190932091029091019150610f5a8561079a565b805415610fe6576000610f9282600101546106ad670de0b6b3a76400006106a7876003015487600001546111cb90919063ffffffff16565b90508015610fe457610fa4848261128b565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315611085578154611003906001600160a01b031684308761142d565b805461100f908561116a565b8155600061101e856082611224565b600154845491925061103d916001600160a01b03908116911683611341565b8154611049908261110d565b8255611056856046611224565b6002548454919250611075916001600160a01b03908116911683611341565b8154611081908261110d565b8255505b600382015481546110a391670de0b6b3a7640000916106a7916111cb565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6003546001600160a01b031681565b6002546001600160a01b031681565b600082821115611164576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156111c4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826111da575060006105d5565b828202828482816111e757fe5b04146111c45760405162461bcd60e51b81526004018080602001828103825260218152602001806117a26021913960400191505060405180910390fd5b600080821161127a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161128357fe5b049392505050565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112d657600080fd5b505afa1580156112ea573d6000803e3d6000fd5b505050506040513d602081101561130057600080fd5b505190508015610ad4578082111561132e57600354611329906001600160a01b03168483611341565b610ad4565b600354610ad4906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ad490849061148d565b60045460005b81811015610ad457826001600160a01b0316600482815481106113b857fe5b60009182526020909120600590910201546001600160a01b03161415611425576040805162461bcd60e51b815260206004820152601f60248201527f476c646d47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f00604482015290519081900360640190fd5b600101611399565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261148790859061148d565b50505050565b60606114e2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661153e9092919063ffffffff16565b805190915015610ad45780806020019051602081101561150157600080fd5b5051610ad45760405162461bcd60e51b815260040180806020018281038252602a8152602001806117c3602a913960400191505060405180910390fd5b606061154d8484600085611555565b949350505050565b6060824710156115965760405162461bcd60e51b815260040180806020018281038252602681526020018061177c6026913960400191505060405180910390fd5b61159f856116a6565b6115f0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061162f5780518252601f199092019160209182019101611610565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611691576040519150601f19603f3d011682016040523d82523d6000602084013e611696565b606091505b5091509150610f018282866116ac565b3b151590565b606083156116bb5750816111c4565b8251156116cb5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117155781810151838201526020016116fd565b50505050905090810190601f1680156117425780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe476c646d47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122058854e9c35a875a4fb92d507e38ac3b9521433b54fc0c613ff84f11aa0949a0c64736f6c634300060c0033

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

0000000000000000000000007a9e4ee86f1c01b1529d05099f8d2906b37692110000000000000000000000002bb70959883302601acb3c8fdc83c031d80be32b000000000000000000000000aef7397ed6e120ba90cc363d9f19042e6295653a0000000000000000000000000000000000000000000000000000000062599680

-----Decoded View---------------
Arg [0] : _gldm (address): 0x7a9E4ee86f1C01b1529D05099F8d2906B3769211
Arg [1] : _feeAddress1 (address): 0x2Bb70959883302601AcB3C8Fdc83c031D80Be32b
Arg [2] : _feeAddress2 (address): 0xaEf7397Ed6e120ba90CC363D9f19042e6295653A
Arg [3] : _poolStartTime (uint256): 1650038400

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a9e4ee86f1c01b1529d05099f8d2906b3769211
Arg [1] : 0000000000000000000000002bb70959883302601acb3c8fdc83c031d80be32b
Arg [2] : 000000000000000000000000aef7397ed6e120ba90cc363d9f19042e6295653a
Arg [3] : 0000000000000000000000000000000000000000000000000000000062599680


Deployed Bytecode Sourcemap

22313:11121:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23820:50;;;:::i;:::-;;;;;;;;;;;;;;;;23222:26;;;;;;;;;;;;;;;;-1:-1:-1;23222:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;23222:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23467:34;;;:::i;26567:321::-;;;;;;;;;;;;;;;;-1:-1:-1;26567:321:0;;;;;;;:::i;:::-;;22468:26;;;:::i;:::-;;;;-1:-1:-1;;;;;22468:26:0;;;;;;;;;;;;;;26965:653;;;;;;;;;;;;;;;;-1:-1:-1;26965:653:0;;;;;;;:::i;30939:810::-;;;;;;;;;;;;;;;;-1:-1:-1;30939:810:0;;;;;;;:::i;28791:908::-;;;;;;;;;;;;;;;;-1:-1:-1;28791:908:0;;:::i;31820:377::-;;;;;;;;;;;;;;;;-1:-1:-1;31820:377:0;;:::i;32793:638::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32793:638:0;;;;;;;;;;;;;;;;;:::i;22438:23::-;;;:::i;23552:28::-;;;:::i;28535:180::-;;;:::i;23629:26::-;;;:::i;23306:64::-;;;;;;;;;;;;;;;;-1:-1:-1;23306:64:0;;;;;;-1:-1:-1;;;;;23306:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23768:35;;;:::i;25298:1173::-;;;;;;;;;;;;;;;;-1:-1:-1;25298:1173:0;;;-1:-1:-1;;;;;25298:1173:0;;;;;;;;;;;;;;;;;:::i;32684:101::-;;;;;;;;;;;;;;;;-1:-1:-1;32684:101:0;-1:-1:-1;;;;;32684:101:0;;:::i;23680:46::-;;;:::i;27681:771::-;;;;;;;;;;;;;;;;-1:-1:-1;27681:771:0;;;;;;-1:-1:-1;;;;;27681:771:0;;:::i;29734:1169::-;;;;;;;;;;;;;;;;-1:-1:-1;29734:1169:0;;;;;;;:::i;23168:18::-;;;:::i;22501:26::-;;;:::i;23820:50::-;23860:10;23820:50;:::o;23222:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23222:26:0;;;;-1:-1:-1;23222:26:0;;;;;;;:::o;23467:34::-;;;;:::o;26567:321::-;24861:8;;-1:-1:-1;;;;;24861:8:0;24873:10;24861:22;24853:78;;;;-1:-1:-1;;;24853:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26646:17:::1;:15;:17::i;:::-;26674:21;26698:8;26707:4;26698:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26727;::::0;::::1;::::0;26698;;-1:-1:-1;26727:14:0::1;;26723:118;;;26776:53;26817:11;26776:36;26796:4;:15;;;26776;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:53::i;:::-;26758:15;:71:::0;26723:118:::1;26851:15;;:29:::0;-1:-1:-1;26567:321:0:o;22468:26::-;;;-1:-1:-1;;;;;22468:26:0;;:::o;26965:653::-;27050:7;27087;27074:9;:20;27070:34;;-1:-1:-1;27103:1:0;27096:8;;27070:34;27130:11;;27119:7;:22;27115:496;;27175:11;;27162:9;:24;27158:38;;-1:-1:-1;27195:1:0;27188:8;;27158:38;27228:13;;27215:9;:26;27211:88;;27250:49;27285:13;;27250:30;27266:13;;27250:11;;:15;;:30;;;;:::i;:::-;:34;;:49::i;:::-;27243:56;;;;27211:88;27321:45;27352:13;;27321:26;27337:9;27321:11;;:15;;:26;;;;:::i;27115:496::-;27414:13;;27403:7;:24;27399:38;;-1:-1:-1;27436:1:0;27429:8;;27399:38;27469:13;;27456:9;:26;27452:84;;27491:45;27522:13;;27491:26;27503:13;;27491:7;:11;;:26;;;;:::i;27452:84::-;27585:13;;27558:41;;:22;:7;27570:9;27558:11;:22::i;27115:496::-;26965:653;;;;:::o;30939:810::-;31006:15;31024:10;31006:28;;31045:21;31069:8;31078:4;31069:14;;;;;;;;;;;;;;;;31118;;;31069;31118;;;;;;;-1:-1:-1;;;;;31118:23:0;;;;;;;;;;;31160:11;;31069:14;;;;;;;;-1:-1:-1;;;31160:22:0;31152:53;;;;;-1:-1:-1;;;31152:53:0;;;;;;;;;;;;-1:-1:-1;;;31152:53:0;;;;;;;;;;;;;;;31216:16;31227:4;31216:10;:16::i;:::-;31243;31262:68;31314:4;:15;;;31262:47;31304:4;31262:37;31278:4;:20;;;31262:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47::i;:::-;:51;;:68::i;:::-;31243:87;-1:-1:-1;31345:12:0;;31341:129;;31374:35;31391:7;31400:8;31374:16;:35::i;:::-;31429:29;;;;;;;;-1:-1:-1;;;;;31429:29:0;;;;;;;;;;;;;31341:129;31484:11;;31480:138;;31526:11;;:24;;31542:7;31526:15;:24::i;:::-;31512:38;;31565:10;;:41;;-1:-1:-1;;;;;31565:10:0;31589:7;31598;31565:23;:41::i;:::-;31662:20;;;;31646:11;;:47;;31688:4;;31646:37;;:15;:37::i;:47::-;31628:15;;;:65;31709:32;;;;;;;;31727:4;;-1:-1:-1;;;;;31709:32:0;;;;;;;;;;;;30939:810;;;;;;:::o;28791:908::-;28843:21;28867:8;28876:4;28867:14;;;;;;;;;;;;;;;;;;28843:38;;28915:4;:19;;;28896:15;:38;28892:77;;28951:7;;;28892:77;29001:10;;:35;;;-1:-1:-1;;;29001:35:0;;29030:4;29001:35;;;;;;28979:19;;-1:-1:-1;;;;;29001:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29001:35:0;;-1:-1:-1;29051:16:0;29047:107;;-1:-1:-1;29106:15:0;29084:19;;;;:37;29136:7;;29047:107;29169:14;;;;;;29164:138;;29200:14;;;:21;;-1:-1:-1;;29200:21:0;29217:4;29200:21;;;;;;29274:15;;;29254;;:36;;:19;:36::i;:::-;29236:15;:54;29164:138;29316:15;;:19;29312:332;;29352:24;29379:56;29398:4;:19;;;29419:15;29379:18;:56::i;:::-;29352:83;;29450:19;29472:58;29514:15;;29472:37;29493:4;:15;;;29472:16;:20;;:37;;;;:::i;:58::-;29450:80;-1:-1:-1;29568:64:0;29593:38;29619:11;29593:21;29450:80;29609:4;29593:15;:21::i;:38::-;29568:20;;;;;:24;:64::i;:::-;29545:20;;;:87;-1:-1:-1;;29312:332:0;-1:-1:-1;29676:15:0;29654:19;;;;:37;28791:908;;:::o;31820:377::-;31879:21;31903:8;31912:4;31903:14;;;;;;;;;;;;;;;;31952;;;31903;31952;;;;;;;31967:10;31952:26;;;;;;;32007:11;;32029:15;;;-1:-1:-1;32055:15:0;;:19;;;;31903:14;;;32085:10;;31903:14;;-1:-1:-1;31952:26:0;;32007:11;32085:44;;-1:-1:-1;;;;;32085:10:0;;;;32007:11;32085:23;:44::i;:::-;32145;;;;;;;;32175:4;;32163:10;;32145:44;;;;;;;;;31820:377;;;;:::o;32793:638::-;24861:8;;-1:-1:-1;;;;;24861:8:0;24873:10;24861:22;24853:78;;;;-1:-1:-1;;;24853:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32963:11:::1;;32977:7;32963:21;32945:15;:39;32941:441;;;33119:4;::::0;-1:-1:-1;;;;;33109:14:0;;::::1;33119:4:::0;::::1;33109:14;;33101:31;;;::::0;;-1:-1:-1;;;33101:31:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;33101:31:0;;;;;;;;;;;;;::::1;;33164:8;:15:::0;33147:14:::1;33194:177;33222:6;33216:3;:12;33194:177;;;33256:21;33280:8;33289:3;33280:13;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;33330:10:::0;;33280:13;;-1:-1:-1;;;;;;33320:20:0;;::::1;33330:10:::0;::::1;33320:20;;33312:43;;;::::0;;-1:-1:-1;;;33312:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33312:43:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;33230:5:0::1;;33194:177;;;;32941:441;;33392:31;-1:-1:-1::0;;;;;33392:19:0;::::1;33412:2:::0;33416:6;33392:19:::1;:31::i;:::-;32793:638:::0;;;:::o;22438:23::-;;;-1:-1:-1;;;;;22438:23:0;;:::o;23552:28::-;;;;:::o;28535:180::-;28597:8;:15;28580:14;28623:85;28651:6;28645:3;:12;28623:85;;;28681:15;28692:3;28681:10;:15::i;:::-;28659:5;;28623:85;;;;28535:180;:::o;23629:26::-;;;;:::o;23306:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23768:35::-;;;;:::o;25298:1173::-;24861:8;;-1:-1:-1;;;;;24861:8:0;24873:10;24861:22;24853:78;;;;-1:-1:-1;;;24853:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25464:26:::1;25483:6;25464:18;:26::i;:::-;25505:11;25501:61;;;25533:17;:15;:17::i;:::-;25594:13;;25576:15;:31;25572:534;;;25661:20:::0;25657:243:::1;;-1:-1:-1::0;25720:13:0::1;::::0;25657:243:::1;;;25796:13;;25778:15;:31;25774:111;;;-1:-1:-1::0;25852:13:0::1;::::0;25774:111:::1;25572:534;;;25968:20:::0;;;:57:::1;;;26010:15;25992;:33;25968:57;25964:131;;;-1:-1:-1::0;26064:15:0::1;25964:131;26116:15;26154:13;;26135:15;:32;;26134:74;;;;26192:15;26173;:34;;26134:74;26233:126;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;26233:126:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;26233:126:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;26219:8:::1;:141:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;26219:141:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26219:141:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;26233:126;;-1:-1:-1;26371:93:0::1;;26420:15;::::0;:32:::1;::::0;26440:11;26420:19:::1;:32::i;:::-;26402:15;:50:::0;26371:93:::1;24942:1;25298:1173:::0;;;;:::o;32684:101::-;24861:8;;-1:-1:-1;;;;;24861:8:0;24873:10;24861:22;24853:78;;;;-1:-1:-1;;;24853:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32757:8:::1;:20:::0;;-1:-1:-1;;;;;;32757:20:0::1;-1:-1:-1::0;;;;;32757:20:0;;;::::1;::::0;;;::::1;::::0;;32684:101::o;23680:46::-;;;;:::o;27681:771::-;27754:7;27774:21;27798:8;27807:4;27798:14;;;;;;;;;;;;;;;;27847;;;27798;27847;;;;;;;-1:-1:-1;;;;;27847:21:0;;;;;;;;;;;27905:20;27798:14;;;;;;;27905:20;;;;27958:10;;:35;;-1:-1:-1;;;27958:35:0;;27987:4;27958:35;;;;;;27798:14;;-1:-1:-1;27847:21:0;;27905:20;;27798:14;;27958:10;;;:20;;:35;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27958:35:0;28026:19;;;;27958:35;;-1:-1:-1;28008:15:0;:37;:57;;;;-1:-1:-1;28049:16:0;;;28008:57;28004:360;;;28082:24;28109:56;28128:4;:19;;;28149:15;28109:18;:56::i;:::-;28082:83;;28180:19;28202:58;28244:15;;28202:37;28223:4;:15;;;28202:16;:20;;:37;;;;:::i;:58::-;28180:80;-1:-1:-1;28293:59:0;28313:38;28339:11;28313:21;28180:80;28329:4;28313:15;:21::i;:38::-;28293:15;;:19;:59::i;:::-;28275:77;;28004:360;;;28381:63;28428:4;:15;;;28381:42;28418:4;28381:32;28397:15;28381:4;:11;;;:15;;:32;;;;:::i;:63::-;28374:70;27681:771;-1:-1:-1;;;;;;;27681:771:0:o;29734:1169::-;29800:15;29818:10;29800:28;;29839:21;29863:8;29872:4;29863:14;;;;;;;;;;;;;;;;29912;;;29863;29912;;;;;;;-1:-1:-1;;;;;29912:23:0;;;;;;;;;;;29863:14;;;;;;-1:-1:-1;29946:16:0;29921:4;29946:10;:16::i;:::-;29977:11;;:15;29973:290;;30009:16;30028:68;30080:4;:15;;;30028:47;30070:4;30028:37;30044:4;:20;;;30028:4;:11;;;:15;;:37;;;;:::i;:68::-;30009:87;-1:-1:-1;30115:12:0;;30111:141;;30148:35;30165:7;30174:8;30148:16;:35::i;:::-;30207:29;;;;;;;;-1:-1:-1;;;;;30207:29:0;;;;;;;;;;;;;30111:141;29973:290;;30277:11;;30273:492;;30305:10;;:60;;-1:-1:-1;;;;;30305:10:0;30333:7;30350:4;30357:7;30305:27;:60::i;:::-;30394:11;;:24;;30410:7;30394:15;:24::i;:::-;30380:38;;:11;30456:16;:7;30468:3;30456:11;:16::i;:::-;30511:11;;30487:10;;30435:37;;-1:-1:-1;30487:48:0;;-1:-1:-1;;;;;30487:10:0;;;;30511:11;30435:37;30487:23;:48::i;:::-;30564:11;;:27;;30580:10;30564:15;:27::i;:::-;30550:41;;30619:15;:7;30631:2;30619:11;:15::i;:::-;30673:11;;30649:10;;30606:28;;-1:-1:-1;30649:48:0;;-1:-1:-1;;;;;30649:10:0;;;;30673:11;30606:28;30649:23;:48::i;:::-;30726:11;;:27;;30742:10;30726:15;:27::i;:::-;30712:41;;-1:-1:-1;30273:492:0;30813:20;;;;30797:11;;:47;;30839:4;;30797:37;;:15;:37::i;:47::-;30779:15;;;:65;30864:31;;;;;;;;30881:4;;-1:-1:-1;;;;;30864:31:0;;;;;;;;;;;;29734:1169;;;;;:::o;23168:18::-;;;-1:-1:-1;;;;;23168:18:0;;:::o;22501:26::-;;;-1:-1:-1;;;;;22501:26:0;;:::o;6050:158::-;6108:7;6141:1;6136;:6;;6128:49;;;;;-1:-1:-1;;;6128:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6195:5:0;;;6050:158::o;5588:179::-;5646:7;5678:5;;;5702:6;;;;5694:46;;;;;-1:-1:-1;;;5694:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5758:1;5588:179;-1:-1:-1;;;5588:179:0:o;6467:220::-;6525:7;6549:6;6545:20;;-1:-1:-1;6564:1:0;6557:8;;6545:20;6588:5;;;6592:1;6588;:5;:1;6612:5;;;;;:10;6604:56;;;;-1:-1:-1;;;6604:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7165:153;7223:7;7255:1;7251;:5;7243:44;;;;;-1:-1:-1;;;7243:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7309:1;7305;:5;;;;;;;7165:153;-1:-1:-1;;;7165:153:0:o;32311:365::-;32410:4;;:29;;;-1:-1:-1;;;32410:29:0;;32433:4;32410:29;;;;;;32387:20;;-1:-1:-1;;;;;32410:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32410:29:0;;-1:-1:-1;32454:16:0;;32450:219;;32501:12;32491:7;:22;32487:171;;;32534:4;;:36;;-1:-1:-1;;;;;32534:4:0;32552:3;32557:12;32534:17;:36::i;:::-;32487:171;;;32611:4;;:31;;-1:-1:-1;;;;;32611:4:0;32629:3;32634:7;18968:177;19078:58;;;-1:-1:-1;;;;;19078:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19078:58:0;-1:-1:-1;;;19078:58:0;;;19051:86;;19071:5;;19051:19;:86::i;24959:261::-;25044:8;:15;25027:14;25070:143;25098:6;25092:3;:12;25070:143;;;25159:6;-1:-1:-1;;;;;25136:29:0;:8;25145:3;25136:13;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;25136:19:0;:29;;25128:73;;;;;-1:-1:-1;;;25128:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25106:5;;25070:143;;19153:205;19281:68;;;-1:-1:-1;;;;;19281:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19281:68:0;-1:-1:-1;;;19281:68:0;;;19254:96;;19274:5;;19254:19;:96::i;:::-;19153:205;;;;:::o;21273:761::-;21697:23;21723:69;21751:4;21723:69;;;;;;;;;;;;;;;;;21731:5;-1:-1:-1;;;;;21723:27:0;;;:69;;;;;:::i;:::-;21807:17;;21697:95;;-1:-1:-1;21807:21:0;21803:224;;21949:10;21938:30;;;;;;;;;;;;;;;-1:-1:-1;21938:30:0;21930:85;;;;-1:-1:-1;;;21930:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13955:195;14058:12;14090:52;14112:6;14120:4;14126:1;14129:12;14090:21;:52::i;:::-;14083:59;13955:195;-1:-1:-1;;;;13955:195:0:o;15007:530::-;15134:12;15192:5;15167:21;:30;;15159:81;;;;-1:-1:-1;;;15159:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15259:18;15270:6;15259:10;:18::i;:::-;15251:60;;;;;-1:-1:-1;;;15251:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15385:12;15399:23;15426:6;-1:-1:-1;;;;;15426:11:0;15446:5;15454:4;15426:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15426:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15384:75;;;;15477:52;15495:7;15504:10;15516:12;15477:17;:52::i;11037:422::-;11404:20;11443:8;;;11037:422::o;17547:742::-;17662:12;17691:7;17687:595;;;-1:-1:-1;17722:10:0;17715:17;;17687:595;17836:17;;:21;17832:439;;18099:10;18093:17;18160:15;18147:10;18143:2;18139:19;18132:44;18047:148;18242:12;18235:20;;-1:-1:-1;;;18235:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://58854e9c35a875a4fb92d507e38ac3b9521433b54fc0c613ff84f11aa0949a0c

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.