ETH Price: $3,317.48 (+0.29%)
Gas: 23 Gwei

Contract

0xc6764e58b36e26b08Fd1d2AeD4538c02171fA872
 
Transaction Hash
Method
Block
From
To
0xd64ecb042f53e1e671930a6e931aec6d46a28d3511b8a54b6c38d93b9d62f402 Get Yield(pending)2024-07-30 14:00:041 hr ago1722348004IN
Frax Finance: veFXS Yield Distributor V4
0 ETH(Pending)(Pending)
0xd0b14c55d2fbfeba10fe00ad535cc01f340de0becd70ece8e08ad90dc921b791 Get Yield(pending)2024-07-29 15:06:0724 hrs ago1722265567IN
Frax Finance: veFXS Yield Distributor V4
0 ETH(Pending)(Pending)
Checkpoint204194752024-07-30 12:49:232 hrs ago1722343763IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.0013113910.28856144
Checkpoint204170622024-07-30 4:41:1110 hrs ago1722314471IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000140921.34730744
Get Yield204152952024-07-29 22:44:5916 hrs ago1722293099IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000288961.38161821
Get Yield204143752024-07-29 19:40:3519 hrs ago1722282035IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000688653.31643939
Get Yield204143362024-07-29 19:32:3519 hrs ago1722281555IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000618712.97964925
Get Yield204143252024-07-29 19:30:2319 hrs ago1722281423IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000660263.21065176
Checkpoint204140592024-07-29 18:36:5920 hrs ago1722278219IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000445074.25530262
Checkpoint204140542024-07-29 18:35:5920 hrs ago1722278159IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000861874.37318507
Checkpoint204072172024-07-28 19:43:3543 hrs ago1722195815IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000313712.78405434
Checkpoint204059752024-07-28 15:34:4747 hrs ago1722180887IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000439923.46444699
Checkpoint204042162024-07-28 9:41:352 days ago1722159695IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000200331.81522593
Get Yield203966222024-07-27 8:15:353 days ago1722068135IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000390671.88144493
Get Yield203945112024-07-27 1:10:233 days ago1722042623IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000397841.91594417
Checkpoint203925422024-07-26 18:33:593 days ago1722018839IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000285312.74037973
Checkpoint203925292024-07-26 18:31:233 days ago1722018683IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000275752.63641049
Checkpoint203925222024-07-26 18:29:593 days ago1722018599IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000266322.5462575
Get Yield203925122024-07-26 18:27:593 days ago1722018479IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.00048992.35929834
Get Yield203923582024-07-26 17:57:113 days ago1722016631IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000486192.30439638
Get Yield203915552024-07-26 15:15:354 days ago1722006935IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.001126985.02560451
Get Yield203906902024-07-26 12:21:234 days ago1721996483IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000489082.30885111
Checkpoint203885592024-07-26 5:13:474 days ago1721970827IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.000301732.25607618
Checkpoint203824012024-07-25 8:34:235 days ago1721896463IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.00043254.02925942
Get Yield203822402024-07-25 8:02:115 days ago1721894531IN
Frax Finance: veFXS Yield Distributor V4
0 ETH0.001234195.37135799
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:
veFXSYieldDistributorV4

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, GNU GPLv2 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-10-24
*/

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

// Sources flattened with hardhat v2.6.7 https://hardhat.org

// File contracts/Math/Math.sol


/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}


// File contracts/Math/SafeMath.sol


/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// File contracts/Curve/IveFXS.sol

pragma abicoder v2;

interface IveFXS {

    struct LockedBalance {
        int128 amount;
        uint256 end;
    }

    function commit_transfer_ownership(address addr) external;
    function apply_transfer_ownership() external;
    function commit_smart_wallet_checker(address addr) external;
    function apply_smart_wallet_checker() external;
    function toggleEmergencyUnlock() external;
    function recoverERC20(address token_addr, uint256 amount) external;
    function get_last_user_slope(address addr) external view returns (int128);
    function user_point_history__ts(address _addr, uint256 _idx) external view returns (uint256);
    function locked__end(address _addr) external view returns (uint256);
    function checkpoint() external;
    function deposit_for(address _addr, uint256 _value) external;
    function create_lock(uint256 _value, uint256 _unlock_time) external;
    function increase_amount(uint256 _value) external;
    function increase_unlock_time(uint256 _unlock_time) external;
    function withdraw() external;
    function balanceOf(address addr) external view returns (uint256);
    function balanceOf(address addr, uint256 _t) external view returns (uint256);
    function balanceOfAt(address addr, uint256 _block) external view returns (uint256);
    function totalSupply() external view returns (uint256);
    function totalSupply(uint256 t) external view returns (uint256);
    function totalSupplyAt(uint256 _block) external view returns (uint256);
    function totalFXSSupply() external view returns (uint256);
    function totalFXSSupplyAt(uint256 _block) external view returns (uint256);
    function changeController(address _newController) external;
    function token() external view returns (address);
    function supply() external view returns (uint256);
    function locked(address addr) external view returns (LockedBalance memory);
    function epoch() external view returns (uint256);
    function point_history(uint256 arg0) external view returns (int128 bias, int128 slope, uint256 ts, uint256 blk, uint256 fxs_amt);
    function user_point_history(address arg0, uint256 arg1) external view returns (int128 bias, int128 slope, uint256 ts, uint256 blk, uint256 fxs_amt);
    function user_point_epoch(address arg0) external view returns (uint256);
    function slope_changes(uint256 arg0) external view returns (int128);
    function controller() external view returns (address);
    function transfersEnabled() external view returns (bool);
    function emergencyUnlockActive() external view returns (bool);
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function version() external view returns (string memory);
    function decimals() external view returns (uint256);
    function future_smart_wallet_checker() external view returns (address);
    function smart_wallet_checker() external view returns (address);
    function admin() external view returns (address);
    function future_admin() external view returns (address);
}


// File contracts/Uniswap/TransferHelper.sol


// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }
}


// File contracts/Common/Context.sol


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return payable(msg.sender);
    }

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


// File contracts/ERC20/IERC20.sol



/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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 contracts/Utils/Address.sol


/**
 * @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 contracts/ERC20/ERC20.sol





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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;
    
    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory __name, string memory __symbol) public {
        _name = __name;
        _symbol = __symbol;
        _decimals = 18;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

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

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for `accounts`'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }


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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal virtual {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }

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


// File contracts/ERC20/SafeERC20.sol




/**
 * @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/Utils/ReentrancyGuard.sol


/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File contracts/Staking/Owned.sol


// https://docs.synthetix.io/contracts/Owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor (address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}


// File contracts/Staking/veFXSYieldDistributorV4.sol


// ====================================================================
// |     ______                   _______                             |
// |    / _____________ __  __   / ____(_____  ____ _____  ________   |
// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
// | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
// |                                                                  |
// ====================================================================
// ======================veFXSYieldDistributorV4=======================
// ====================================================================
// Distributes Frax protocol yield based on the claimer's veFXS balance
// V3: Yield will now not accrue for unlocked veFXS

// Frax Finance: https://github.com/FraxFinance

// Primary Author(s)
// Travis Moore: https://github.com/FortisFortuna

// Reviewer(s) / Contributor(s)
// Jason Huan: https://github.com/jasonhuan
// Sam Kazemian: https://github.com/samkazemian

// Originally inspired by Synthetix.io, but heavily modified by the Frax team (veFXS portion)
// https://github.com/Synthetixio/synthetix/blob/develop/contracts/StakingRewards.sol








contract veFXSYieldDistributorV4 is Owned, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for ERC20;

    /* ========== STATE VARIABLES ========== */

    // Instances
    IveFXS private veFXS;
    ERC20 public emittedToken;

    // Addresses
    address public emitted_token_address;

    // Admin addresses
    address public timelock_address;

    // Constant for price precision
    uint256 private constant PRICE_PRECISION = 1e6;

    // Yield and period related
    uint256 public periodFinish;
    uint256 public lastUpdateTime;
    uint256 public yieldRate;
    uint256 public yieldDuration = 604800; // 7 * 86400  (7 days)
    mapping(address => bool) public reward_notifiers;

    // Yield tracking
    uint256 public yieldPerVeFXSStored = 0;
    mapping(address => uint256) public userYieldPerTokenPaid;
    mapping(address => uint256) public yields;

    // veFXS tracking
    uint256 public totalVeFXSParticipating = 0;
    uint256 public totalVeFXSSupplyStored = 0;
    mapping(address => bool) public userIsInitialized;
    mapping(address => uint256) public userVeFXSCheckpointed;
    mapping(address => uint256) public userVeFXSEndpointCheckpointed;
    mapping(address => uint256) private lastRewardClaimTime; // staker addr -> timestamp

    // Greylists
    mapping(address => bool) public greylist;

    // Admin booleans for emergencies
    bool public yieldCollectionPaused = false; // For emergencies

    struct LockedBalance {
        int128 amount;
        uint256 end;
    }

    /* ========== MODIFIERS ========== */

    modifier onlyByOwnGov() {
        require( msg.sender == owner || msg.sender == timelock_address, "Not owner or timelock");
        _;
    }

    modifier notYieldCollectionPaused() {
        require(yieldCollectionPaused == false, "Yield collection is paused");
        _;
    }

    modifier checkpointUser(address account) {
        _checkpointUser(account);
        _;
    }

    /* ========== CONSTRUCTOR ========== */

    constructor (
        address _owner,
        address _emittedToken,
        address _timelock_address,
        address _veFXS_address
    ) Owned(_owner) {
        emitted_token_address = _emittedToken;
        emittedToken = ERC20(_emittedToken);

        veFXS = IveFXS(_veFXS_address);
        lastUpdateTime = block.timestamp;
        timelock_address = _timelock_address;

        reward_notifiers[_owner] = true;
    }

    /* ========== VIEWS ========== */

    function fractionParticipating() external view returns (uint256) {
        return totalVeFXSParticipating.mul(PRICE_PRECISION).div(totalVeFXSSupplyStored);
    }

    // Only positions with locked veFXS can accrue yield. Otherwise, expired-locked veFXS
    // is de-facto rewards for FXS.
    function eligibleCurrentVeFXS(address account) public view returns (uint256 eligible_vefxs_bal, uint256 stored_ending_timestamp) {
        uint256 curr_vefxs_bal = veFXS.balanceOf(account);
        
        // Stored is used to prevent abuse
        stored_ending_timestamp = userVeFXSEndpointCheckpointed[account];

        // Only unexpired veFXS should be eligible
        if (stored_ending_timestamp != 0 && (block.timestamp >= stored_ending_timestamp)){
            eligible_vefxs_bal = 0;
        }
        else if (block.timestamp >= stored_ending_timestamp){
            eligible_vefxs_bal = 0;
        }
        else {
            eligible_vefxs_bal = curr_vefxs_bal;
        }
    }

    function lastTimeYieldApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function yieldPerVeFXS() public view returns (uint256) {
        if (totalVeFXSSupplyStored == 0) {
            return yieldPerVeFXSStored;
        } else {
            return (
                yieldPerVeFXSStored.add(
                    lastTimeYieldApplicable()
                        .sub(lastUpdateTime)
                        .mul(yieldRate)
                        .mul(1e18)
                        .div(totalVeFXSSupplyStored)
                )
            );
        }
    }

    function earned(address account) public view returns (uint256) {
        // Uninitialized users should not earn anything yet
        if (!userIsInitialized[account]) return 0;

        // Get eligible veFXS balances
        (uint256 eligible_current_vefxs, uint256 ending_timestamp) = eligibleCurrentVeFXS(account);

        // If your veFXS is unlocked
        uint256 eligible_time_fraction = PRICE_PRECISION;
        if (eligible_current_vefxs == 0){
            // And you already claimed after expiration
            if (lastRewardClaimTime[account] >= ending_timestamp) {
                // You get NOTHING. You LOSE. Good DAY ser!
                return 0;
            }
            // You haven't claimed yet
            else {
                uint256 eligible_time = (ending_timestamp).sub(lastRewardClaimTime[account]);
                uint256 total_time = (block.timestamp).sub(lastRewardClaimTime[account]);
                eligible_time_fraction = PRICE_PRECISION.mul(eligible_time).div(total_time);
            }
        }

        // If the amount of veFXS increased, only pay off based on the old balance
        // Otherwise, take the midpoint
        uint256 vefxs_balance_to_use;
        {
            uint256 old_vefxs_balance = userVeFXSCheckpointed[account];
            if (eligible_current_vefxs > old_vefxs_balance){
                vefxs_balance_to_use = old_vefxs_balance;
            }
            else {
                vefxs_balance_to_use = ((eligible_current_vefxs).add(old_vefxs_balance)).div(2); 
            }
        }

        return (
            vefxs_balance_to_use
                .mul(yieldPerVeFXS().sub(userYieldPerTokenPaid[account]))
                .mul(eligible_time_fraction)
                .div(1e18 * PRICE_PRECISION)
                .add(yields[account])
        );
    }

    function getYieldForDuration() external view returns (uint256) {
        return (yieldRate.mul(yieldDuration));
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function _checkpointUser(address account) internal {
        // Need to retro-adjust some things if the period hasn't been renewed, then start a new one
        sync();

        // Calculate the earnings first
        _syncEarned(account);

        // Get the old and the new veFXS balances
        uint256 old_vefxs_balance = userVeFXSCheckpointed[account];
        uint256 new_vefxs_balance = veFXS.balanceOf(account);

        // Update the user's stored veFXS balance
        userVeFXSCheckpointed[account] = new_vefxs_balance;

        // Update the user's stored ending timestamp
        IveFXS.LockedBalance memory curr_locked_bal_pack = veFXS.locked(account);
        userVeFXSEndpointCheckpointed[account] = curr_locked_bal_pack.end;

        // Update the total amount participating
        if (new_vefxs_balance >= old_vefxs_balance) {
            uint256 weight_diff = new_vefxs_balance.sub(old_vefxs_balance);
            totalVeFXSParticipating = totalVeFXSParticipating.add(weight_diff);
        } else {
            uint256 weight_diff = old_vefxs_balance.sub(new_vefxs_balance);
            totalVeFXSParticipating = totalVeFXSParticipating.sub(weight_diff);
        }

        // Mark the user as initialized
        if (!userIsInitialized[account]) {
            userIsInitialized[account] = true;
            lastRewardClaimTime[account] = block.timestamp;
        }
    }

    function _syncEarned(address account) internal {
        if (account != address(0)) {
            uint256 earned0 = earned(account);
            yields[account] = earned0;
            userYieldPerTokenPaid[account] = yieldPerVeFXSStored;
        }
    }

    // Anyone can checkpoint another user
    function checkpointOtherUser(address user_addr) external {
        _checkpointUser(user_addr);
    }

    // Checkpoints the user
    function checkpoint() external {
        _checkpointUser(msg.sender);
    }

    function getYield() external nonReentrant notYieldCollectionPaused checkpointUser(msg.sender) returns (uint256 yield0) {
        require(greylist[msg.sender] == false, "Address has been greylisted");

        yield0 = yields[msg.sender];
        if (yield0 > 0) {
            yields[msg.sender] = 0;
            TransferHelper.safeTransfer(
                emitted_token_address,
                msg.sender,
                yield0
            );
            emit YieldCollected(msg.sender, yield0, emitted_token_address);
        }

        lastRewardClaimTime[msg.sender] = block.timestamp;
    }


    function sync() public {
        // Update the total veFXS supply
        yieldPerVeFXSStored = yieldPerVeFXS();
        totalVeFXSSupplyStored = veFXS.totalSupply();
        lastUpdateTime = lastTimeYieldApplicable();
    }

    function notifyRewardAmount(uint256 amount) external {
        // Only whitelisted addresses can notify rewards
        require(reward_notifiers[msg.sender], "Sender not whitelisted");

        // Handle the transfer of emission tokens via `transferFrom` to reduce the number
        // of transactions required and ensure correctness of the smission amount
        emittedToken.safeTransferFrom(msg.sender, address(this), amount);

        // Update some values beforehand
        sync();

        // Update the new yieldRate
        if (block.timestamp >= periodFinish) {
            yieldRate = amount.div(yieldDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(yieldRate);
            yieldRate = amount.add(leftover).div(yieldDuration);
        }
        
        // Update duration-related info
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(yieldDuration);

        emit RewardAdded(amount, yieldRate);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    // Added to support recovering LP Yield and other mistaken tokens from other systems to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyByOwnGov {
        // Only the owner address can ever receive the recovery withdrawal
        TransferHelper.safeTransfer(tokenAddress, owner, tokenAmount);
        emit RecoveredERC20(tokenAddress, tokenAmount);
    }

    function setYieldDuration(uint256 _yieldDuration) external onlyByOwnGov {
        require( periodFinish == 0 || block.timestamp > periodFinish, "Previous yield period must be complete before changing the duration for the new period");
        yieldDuration = _yieldDuration;
        emit YieldDurationUpdated(yieldDuration);
    }

    function greylistAddress(address _address) external onlyByOwnGov {
        greylist[_address] = !(greylist[_address]);
    }

    function toggleRewardNotifier(address notifier_addr) external onlyByOwnGov {
        reward_notifiers[notifier_addr] = !reward_notifiers[notifier_addr];
    }

    function setPauses(bool _yieldCollectionPaused) external onlyByOwnGov {
        yieldCollectionPaused = _yieldCollectionPaused;
    }

    function setYieldRate(uint256 _new_rate0, bool sync_too) external onlyByOwnGov {
        yieldRate = _new_rate0;

        if (sync_too) {
            sync();
        }
    }

    function setTimelock(address _new_timelock) external onlyByOwnGov {
        timelock_address = _new_timelock;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward, uint256 yieldRate);
    event OldYieldCollected(address indexed user, uint256 yield, address token_address);
    event YieldCollected(address indexed user, uint256 yield, address token_address);
    event YieldDurationUpdated(uint256 newDuration);
    event RecoveredERC20(address token, uint256 amount);
    event YieldPeriodRenewed(address token, uint256 yieldRate);
    event DefaultInitialization();

    /* ========== A CHICKEN ========== */
    //
    //         ,~.
    //      ,-'__ `-,
    //     {,-'  `. }              ,')
    //    ,( a )   `-.__         ,',')~,
    //   <=.) (         `-.__,==' ' ' '}
    //     (   )                      /)
    //      `-'\   ,                    )
    //          |  \        `~.        /
    //          \   `._        \      /
    //           \     `._____,'    ,'
    //            `-.             ,'
    //               `-._     _,-'
    //                   77jj'
    //                  //_||
    //               __//--'/`
    //             ,--'/`  '
    //
    // [hjw] https://textart.io/art/vw6Sa3iwqIRGkZsN1BC2vweF/chicken
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_emittedToken","type":"address"},{"internalType":"address","name":"_timelock_address","type":"address"},{"internalType":"address","name":"_veFXS_address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"DefaultInitialization","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"yield","type":"uint256"},{"indexed":false,"internalType":"address","name":"token_address","type":"address"}],"name":"OldYieldCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoveredERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"yieldRate","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"yield","type":"uint256"},{"indexed":false,"internalType":"address","name":"token_address","type":"address"}],"name":"YieldCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"YieldDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"yieldRate","type":"uint256"}],"name":"YieldPeriodRenewed","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user_addr","type":"address"}],"name":"checkpointOtherUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"eligibleCurrentVeFXS","outputs":[{"internalType":"uint256","name":"eligible_vefxs_bal","type":"uint256"},{"internalType":"uint256","name":"stored_ending_timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emittedToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emitted_token_address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fractionParticipating","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getYield","outputs":[{"internalType":"uint256","name":"yield0","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getYieldForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"greylist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"greylistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeYieldApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reward_notifiers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_yieldCollectionPaused","type":"bool"}],"name":"setPauses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_yieldDuration","type":"uint256"}],"name":"setYieldDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_rate0","type":"uint256"},{"internalType":"bool","name":"sync_too","type":"bool"}],"name":"setYieldRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timelock_address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"notifier_addr","type":"address"}],"name":"toggleRewardNotifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalVeFXSParticipating","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVeFXSSupplyStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userIsInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userVeFXSCheckpointed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userVeFXSEndpointCheckpointed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userYieldPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldCollectionPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldPerVeFXS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldPerVeFXSStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"yields","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405262093a80600a556000600c819055600f8190556010556016805460ff191690553480156200003157600080fd5b50604051620027413803806200274183398101604081905262000054916200019e565b836001600160a01b038116620000b05760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a15060016002819055600580546001600160a01b03199081166001600160a01b0396871690811790925560048054821690921790915560038054821693861693909317909255426008556006805490921692841692909217905591166000908152600b60205260409020805460ff19169091179055620001fb565b80516001600160a01b03811681146200019957600080fd5b919050565b60008060008060808587031215620001b557600080fd5b620001c08562000181565b9350620001d06020860162000181565b9250620001e06040860162000181565b9150620001f06060860162000181565b905092959194509250565b612536806200020b6000396000f3fe608060405234801561001057600080fd5b50600436106102c75760003560e01c806380a761d11161017b578063ad1148cb116100d8578063e172cf211161008c578063ebe2b12b11610071578063ebe2b12b1461060b578063fc939bb114610614578063fff6cae91461061c57600080fd5b8063e172cf21146105e2578063e9218ff6146105eb57600080fd5b8063c2c4c5c1116100bd578063c2c4c5c1146105b1578063c8f33c91146105b9578063dc6663c7146105c257600080fd5b8063ad1148cb14610591578063bdacb3031461059e57600080fd5b8063941d9f651161012f5780639f8a835a116101145780639f8a835a1461053b578063a4bc8dd51461054e578063a875f4721461057157600080fd5b8063941d9f6514610515578063948e25a21461052857600080fd5b80638980f11f116101605780638980f11f146104cf5780638da5cb5b146104e257806391519bda1461050257600080fd5b806380a761d1146104bd578063819abfcd146104c657600080fd5b806353a47bb7116102295780636999ac93116101dd57806374ea0b98116101c257806374ea0b981461049a57806379ba5097146104ad5780637c262871146104b557600080fd5b80636999ac931461046957806373f22f741461047257600080fd5b806356d9fff31161020e57806356d9fff314610439578063681b5ffa146104415780636869f42f1461046157600080fd5b806353a47bb71461041057806354e04d151461043057600080fd5b806338359fc21161028057806342c92f6e1161026557806342c92f6e146103bd57806345ff83cb146103d057806350fe98ac146103f057600080fd5b806338359fc2146103655780633c6b16ab146103aa57600080fd5b80631627540c116102b15780631627540c1461032557806319aec6d21461033a57806331ca208c1461034257600080fd5b80628cc262146102cc57806314b30537146102f2575b600080fd5b6102df6102da36600461221c565b610624565b6040519081526020015b60405180910390f35b61031561030036600461221c565b60116020526000908152604090205460ff1681565b60405190151581526020016102e9565b61033861033336600461221c565b610818565b005b6102df61093e565b61031561035036600461221c565b60156020526000908152604090205460ff1681565b6005546103859073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102e9565b6103386103b8366004612321565b61095c565b6103386103cb36600461221c565b610ab4565b6102df6103de36600461221c565b60126020526000908152604090205481565b6102df6103fe36600461221c565b600e6020526000908152604090205481565b6001546103859073ffffffffffffffffffffffffffffffffffffffff1681565b6102df600c5481565b6102df610bab565b6102df61044f36600461221c565b60136020526000908152604090205481565b6102df610bb9565b6102df60095481565b61048561048036600461221c565b610bff565b604080519283526020830191909152016102e9565b6103386104a8366004612321565b610d0a565b610338610ea4565b6102df610fef565b6102df60105481565b6102df600f5481565b6103386104dd366004612237565b611210565b6000546103859073ffffffffffffffffffffffffffffffffffffffff1681565b610338610510366004612353565b61132b565b61033861052336600461221c565b6113e5565b610338610536366004612261565b6114dc565b61033861054936600461221c565b6115b0565b61031561055c36600461221c565b600b6020526000908152604090205460ff1681565b6102df61057f36600461221c565b600d6020526000908152604090205481565b6016546103159060ff1681565b6103386105ac36600461221c565b6115bc565b6103386116a6565b6102df60085481565b6006546103859073ffffffffffffffffffffffffffffffffffffffff1681565b6102df600a5481565b6004546103859073ffffffffffffffffffffffffffffffffffffffff1681565b6102df60075481565b6102df6116b1565b6103386116d1565b73ffffffffffffffffffffffffffffffffffffffff811660009081526011602052604081205460ff1661065957506000919050565b60008061066584610bff565b9092509050620f42408261072e5773ffffffffffffffffffffffffffffffffffffffff851660009081526014602052604090205482116106aa57506000949350505050565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601460205260408120546106db90849061178f565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601460205260408120549192509061071090429061178f565b905061072981610723620f4240856117da565b9061188f565b925050505b73ffffffffffffffffffffffffffffffffffffffff85166000908152601260205260408120548085111561076457809150610776565b610773600261072387846118d1565b91505b5073ffffffffffffffffffffffffffffffffffffffff86166000908152600e602052604090205461080e906108086107b9620f4240670de0b6b3a7640000612443565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600d6020526040902054610723908790610802906107fb906107f5610bb9565b9061178f565b88906117da565b906117da565b906118d1565b9695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084015b60405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6000610957600a546009546117da90919063ffffffff16565b905090565b336000908152600b602052604090205460ff166109d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f53656e646572206e6f742077686974656c69737465640000000000000000000060448201526064016108bb565b6004546109fa9073ffffffffffffffffffffffffffffffffffffffff1633308461194a565b610a026116d1565b6007544210610a2157600a54610a1990829061188f565b600955610a64565b600754600090610a31904261178f565b90506000610a4a600954836117da90919063ffffffff16565b600a54909150610a5e9061072385846118d1565b60095550505b426008819055600a54610a7791906118d1565b6007556009546040805183815260208101929092527f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f559101610933565b60005473ffffffffffffffffffffffffffffffffffffffff16331480610af1575060065473ffffffffffffffffffffffffffffffffffffffff1633145b610b57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000610957426007546119e5565b600060105460001415610bcd5750600c5490565b610957610bf6601054610723670de0b6b3a76400006108026009546108026008546107f5610bab565b600c54906118d1565b6003546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015260009283928392909116906370a082319060240160206040518083038186803b158015610c7157600080fd5b505afa158015610c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca9919061233a565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260136020526040902054925090508115801590610ce25750814210155b15610cf05760009250610d04565b814210610d005760009250610d04565b8092505b50915091565b60005473ffffffffffffffffffffffffffffffffffffffff16331480610d47575060065473ffffffffffffffffffffffffffffffffffffffff1633145b610dad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b6007541580610dbd575060075442115b610e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605660248201527f50726576696f7573207969656c6420706572696f64206d75737420626520636f60448201527f6d706c657465206265666f7265206368616e67696e672074686520647572617460648201527f696f6e20666f7220746865206e657720706572696f6400000000000000000000608482015260a4016108bb565b600a8190556040518181527fce653f06b9044b00e7d9d01b9b4228e84812092cb6a38371889bef19370d21f790602001610933565b60015473ffffffffffffffffffffffffffffffffffffffff163314610f4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e657273686970000000000000000000000060648201526084016108bb565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b600060028054141561105d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108bb565b6002805560165460ff16156110ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5969656c6420636f6c6c656374696f6e2069732070617573656400000000000060448201526064016108bb565b336110d8816119fb565b3360009081526015602052604090205460ff1615611152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4164647265737320686173206265656e20677265796c6973746564000000000060448201526064016108bb565b336000908152600e6020526040902054915081156111f557336000818152600e60205260408120556005546111a09173ffffffffffffffffffffffffffffffffffffffff9091169084611c87565b6005546040805184815273ffffffffffffffffffffffffffffffffffffffff909216602083015233917f3998039806f6db7e5d83a5371638cc47dd2e9ae500d5d561d95ec6381f53e3cd910160405180910390a25b50336000908152601460205260409020429055600160025590565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061124d575060065473ffffffffffffffffffffffffffffffffffffffff1633145b6112b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b6000546112d890839073ffffffffffffffffffffffffffffffffffffffff1683611c87565b6040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390527f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b1910160405180910390a15050565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611368575060065473ffffffffffffffffffffffffffffffffffffffff1633145b6113ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b600982905580156113e1576113e16116d1565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611422575060065473ffffffffffffffffffffffffffffffffffffffff1633145b611488576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b73ffffffffffffffffffffffffffffffffffffffff16600090815260156020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611519575060065473ffffffffffffffffffffffffffffffffffffffff1633145b61157f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6115b9816119fb565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314806115f9575060065473ffffffffffffffffffffffffffffffffffffffff1633145b61165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6116af336119fb565b565b6000610957601054610723620f4240600f546117da90919063ffffffff16565b6116d9610bb9565b600c55600354604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff909216916318160ddd91600480820192602092909190829003018186803b15801561174757600080fd5b505afa15801561175b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177f919061233a565b60105561178a610bab565b600855565b60006117d183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611df7565b90505b92915050565b6000826117e9575060006117d4565b60006117f58385612443565b9050826118028583612408565b146117d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f770000000000000000000000000000000000000000000000000000000000000060648201526084016108bb565b60006117d183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611e4d565b6000806118de83856123f0565b9050838110156117d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016108bb565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526119df908590611e95565b50505050565b60008183106119f457816117d1565b5090919050565b611a036116d1565b611a0c81611fa6565b73ffffffffffffffffffffffffffffffffffffffff8181166000818152601260205260408082205460035491517f70a0823100000000000000000000000000000000000000000000000000000000815260048101949094529391929116906370a082319060240160206040518083038186803b158015611a8b57600080fd5b505afa158015611a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac3919061233a565b73ffffffffffffffffffffffffffffffffffffffff84811660008181526012602052604080822085905560035490517fcbf9fe5f0000000000000000000000000000000000000000000000000000000081526004810193909352939450929091169063cbf9fe5f90602401604080518083038186803b158015611b4557600080fd5b505afa158015611b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7d919061229b565b60208082015173ffffffffffffffffffffffffffffffffffffffff8716600090815260139092526040909120559050828210611bd8576000611bbf838561178f565b600f54909150611bcf90826118d1565b600f5550611bf9565b6000611be4848461178f565b600f54909150611bf4908261178f565b600f55505b73ffffffffffffffffffffffffffffffffffffffff841660009081526011602052604090205460ff166119df5773ffffffffffffffffffffffffffffffffffffffff8416600090815260116020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556014909152902042905550505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611d1e9190612383565b6000604051808303816000865af19150503d8060008114611d5b576040519150601f19603f3d011682016040523d82523d6000602084013e611d60565b606091505b5091509150818015611d8a575080511580611d8a575080806020019051810190611d8a919061227e565b611df0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c45440060448201526064016108bb565b5050505050565b60008184841115611e35576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb919061239f565b506000611e428486612480565b9150505b9392505050565b60008183611e88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb919061239f565b506000611e428486612408565b6000611ef7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166120099092919063ffffffff16565b805190915015611fa15780806020019051810190611f15919061227e565b611fa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108bb565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116156115b9576000611fcd82610624565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600e6020908152604080832093909355600c54600d909152919020555050565b60606120188484600085612020565b949350505050565b6060824710156120b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108bb565b843b61211a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108bb565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516121439190612383565b60006040518083038185875af1925050503d8060008114612180576040519150601f19603f3d011682016040523d82523d6000602084013e612185565b606091505b50915091506121958282866121a0565b979650505050505050565b606083156121af575081611e46565b8251156121bf5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb919061239f565b803573ffffffffffffffffffffffffffffffffffffffff8116811461221757600080fd5b919050565b60006020828403121561222e57600080fd5b6117d1826121f3565b6000806040838503121561224a57600080fd5b612253836121f3565b946020939093013593505050565b60006020828403121561227357600080fd5b81356117d1816124f2565b60006020828403121561229057600080fd5b81516117d1816124f2565b6000604082840312156122ad57600080fd5b6040516040810181811067ffffffffffffffff821117156122f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528251600f81900b811461230c57600080fd5b81526020928301519281019290925250919050565b60006020828403121561233357600080fd5b5035919050565b60006020828403121561234c57600080fd5b5051919050565b6000806040838503121561236657600080fd5b823591506020830135612378816124f2565b809150509250929050565b60008251612395818460208701612497565b9190910192915050565b60208152600082518060208401526123be816040850160208701612497565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115612403576124036124c3565b500190565b60008261243e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561247b5761247b6124c3565b500290565b600082821015612492576124926124c3565b500390565b60005b838110156124b257818101518382015260200161249a565b838111156119df5750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80151581146115b957600080fdfea2646970667358221220566181e6f5abbb27e065801690872a8eb13413879c3b6067c26ccf913f5830bf64736f6c63430008060033000000000000000000000000ff5b4bcbf765fe363269114e1c765229a29edefd0000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d00000000000000000000000008412ebf45bac1b340bbe8f318b928c466c4e39ca000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102c75760003560e01c806380a761d11161017b578063ad1148cb116100d8578063e172cf211161008c578063ebe2b12b11610071578063ebe2b12b1461060b578063fc939bb114610614578063fff6cae91461061c57600080fd5b8063e172cf21146105e2578063e9218ff6146105eb57600080fd5b8063c2c4c5c1116100bd578063c2c4c5c1146105b1578063c8f33c91146105b9578063dc6663c7146105c257600080fd5b8063ad1148cb14610591578063bdacb3031461059e57600080fd5b8063941d9f651161012f5780639f8a835a116101145780639f8a835a1461053b578063a4bc8dd51461054e578063a875f4721461057157600080fd5b8063941d9f6514610515578063948e25a21461052857600080fd5b80638980f11f116101605780638980f11f146104cf5780638da5cb5b146104e257806391519bda1461050257600080fd5b806380a761d1146104bd578063819abfcd146104c657600080fd5b806353a47bb7116102295780636999ac93116101dd57806374ea0b98116101c257806374ea0b981461049a57806379ba5097146104ad5780637c262871146104b557600080fd5b80636999ac931461046957806373f22f741461047257600080fd5b806356d9fff31161020e57806356d9fff314610439578063681b5ffa146104415780636869f42f1461046157600080fd5b806353a47bb71461041057806354e04d151461043057600080fd5b806338359fc21161028057806342c92f6e1161026557806342c92f6e146103bd57806345ff83cb146103d057806350fe98ac146103f057600080fd5b806338359fc2146103655780633c6b16ab146103aa57600080fd5b80631627540c116102b15780631627540c1461032557806319aec6d21461033a57806331ca208c1461034257600080fd5b80628cc262146102cc57806314b30537146102f2575b600080fd5b6102df6102da36600461221c565b610624565b6040519081526020015b60405180910390f35b61031561030036600461221c565b60116020526000908152604090205460ff1681565b60405190151581526020016102e9565b61033861033336600461221c565b610818565b005b6102df61093e565b61031561035036600461221c565b60156020526000908152604090205460ff1681565b6005546103859073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102e9565b6103386103b8366004612321565b61095c565b6103386103cb36600461221c565b610ab4565b6102df6103de36600461221c565b60126020526000908152604090205481565b6102df6103fe36600461221c565b600e6020526000908152604090205481565b6001546103859073ffffffffffffffffffffffffffffffffffffffff1681565b6102df600c5481565b6102df610bab565b6102df61044f36600461221c565b60136020526000908152604090205481565b6102df610bb9565b6102df60095481565b61048561048036600461221c565b610bff565b604080519283526020830191909152016102e9565b6103386104a8366004612321565b610d0a565b610338610ea4565b6102df610fef565b6102df60105481565b6102df600f5481565b6103386104dd366004612237565b611210565b6000546103859073ffffffffffffffffffffffffffffffffffffffff1681565b610338610510366004612353565b61132b565b61033861052336600461221c565b6113e5565b610338610536366004612261565b6114dc565b61033861054936600461221c565b6115b0565b61031561055c36600461221c565b600b6020526000908152604090205460ff1681565b6102df61057f36600461221c565b600d6020526000908152604090205481565b6016546103159060ff1681565b6103386105ac36600461221c565b6115bc565b6103386116a6565b6102df60085481565b6006546103859073ffffffffffffffffffffffffffffffffffffffff1681565b6102df600a5481565b6004546103859073ffffffffffffffffffffffffffffffffffffffff1681565b6102df60075481565b6102df6116b1565b6103386116d1565b73ffffffffffffffffffffffffffffffffffffffff811660009081526011602052604081205460ff1661065957506000919050565b60008061066584610bff565b9092509050620f42408261072e5773ffffffffffffffffffffffffffffffffffffffff851660009081526014602052604090205482116106aa57506000949350505050565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601460205260408120546106db90849061178f565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601460205260408120549192509061071090429061178f565b905061072981610723620f4240856117da565b9061188f565b925050505b73ffffffffffffffffffffffffffffffffffffffff85166000908152601260205260408120548085111561076457809150610776565b610773600261072387846118d1565b91505b5073ffffffffffffffffffffffffffffffffffffffff86166000908152600e602052604090205461080e906108086107b9620f4240670de0b6b3a7640000612443565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600d6020526040902054610723908790610802906107fb906107f5610bb9565b9061178f565b88906117da565b906117da565b906118d1565b9695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084015b60405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6000610957600a546009546117da90919063ffffffff16565b905090565b336000908152600b602052604090205460ff166109d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f53656e646572206e6f742077686974656c69737465640000000000000000000060448201526064016108bb565b6004546109fa9073ffffffffffffffffffffffffffffffffffffffff1633308461194a565b610a026116d1565b6007544210610a2157600a54610a1990829061188f565b600955610a64565b600754600090610a31904261178f565b90506000610a4a600954836117da90919063ffffffff16565b600a54909150610a5e9061072385846118d1565b60095550505b426008819055600a54610a7791906118d1565b6007556009546040805183815260208101929092527f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f559101610933565b60005473ffffffffffffffffffffffffffffffffffffffff16331480610af1575060065473ffffffffffffffffffffffffffffffffffffffff1633145b610b57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000610957426007546119e5565b600060105460001415610bcd5750600c5490565b610957610bf6601054610723670de0b6b3a76400006108026009546108026008546107f5610bab565b600c54906118d1565b6003546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015260009283928392909116906370a082319060240160206040518083038186803b158015610c7157600080fd5b505afa158015610c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca9919061233a565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260136020526040902054925090508115801590610ce25750814210155b15610cf05760009250610d04565b814210610d005760009250610d04565b8092505b50915091565b60005473ffffffffffffffffffffffffffffffffffffffff16331480610d47575060065473ffffffffffffffffffffffffffffffffffffffff1633145b610dad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b6007541580610dbd575060075442115b610e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605660248201527f50726576696f7573207969656c6420706572696f64206d75737420626520636f60448201527f6d706c657465206265666f7265206368616e67696e672074686520647572617460648201527f696f6e20666f7220746865206e657720706572696f6400000000000000000000608482015260a4016108bb565b600a8190556040518181527fce653f06b9044b00e7d9d01b9b4228e84812092cb6a38371889bef19370d21f790602001610933565b60015473ffffffffffffffffffffffffffffffffffffffff163314610f4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e657273686970000000000000000000000060648201526084016108bb565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b600060028054141561105d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108bb565b6002805560165460ff16156110ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5969656c6420636f6c6c656374696f6e2069732070617573656400000000000060448201526064016108bb565b336110d8816119fb565b3360009081526015602052604090205460ff1615611152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4164647265737320686173206265656e20677265796c6973746564000000000060448201526064016108bb565b336000908152600e6020526040902054915081156111f557336000818152600e60205260408120556005546111a09173ffffffffffffffffffffffffffffffffffffffff9091169084611c87565b6005546040805184815273ffffffffffffffffffffffffffffffffffffffff909216602083015233917f3998039806f6db7e5d83a5371638cc47dd2e9ae500d5d561d95ec6381f53e3cd910160405180910390a25b50336000908152601460205260409020429055600160025590565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061124d575060065473ffffffffffffffffffffffffffffffffffffffff1633145b6112b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b6000546112d890839073ffffffffffffffffffffffffffffffffffffffff1683611c87565b6040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390527f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b1910160405180910390a15050565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611368575060065473ffffffffffffffffffffffffffffffffffffffff1633145b6113ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b600982905580156113e1576113e16116d1565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611422575060065473ffffffffffffffffffffffffffffffffffffffff1633145b611488576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b73ffffffffffffffffffffffffffffffffffffffff16600090815260156020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611519575060065473ffffffffffffffffffffffffffffffffffffffff1633145b61157f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6115b9816119fb565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314806115f9575060065473ffffffffffffffffffffffffffffffffffffffff1633145b61165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016108bb565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6116af336119fb565b565b6000610957601054610723620f4240600f546117da90919063ffffffff16565b6116d9610bb9565b600c55600354604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff909216916318160ddd91600480820192602092909190829003018186803b15801561174757600080fd5b505afa15801561175b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177f919061233a565b60105561178a610bab565b600855565b60006117d183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611df7565b90505b92915050565b6000826117e9575060006117d4565b60006117f58385612443565b9050826118028583612408565b146117d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f770000000000000000000000000000000000000000000000000000000000000060648201526084016108bb565b60006117d183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611e4d565b6000806118de83856123f0565b9050838110156117d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016108bb565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526119df908590611e95565b50505050565b60008183106119f457816117d1565b5090919050565b611a036116d1565b611a0c81611fa6565b73ffffffffffffffffffffffffffffffffffffffff8181166000818152601260205260408082205460035491517f70a0823100000000000000000000000000000000000000000000000000000000815260048101949094529391929116906370a082319060240160206040518083038186803b158015611a8b57600080fd5b505afa158015611a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac3919061233a565b73ffffffffffffffffffffffffffffffffffffffff84811660008181526012602052604080822085905560035490517fcbf9fe5f0000000000000000000000000000000000000000000000000000000081526004810193909352939450929091169063cbf9fe5f90602401604080518083038186803b158015611b4557600080fd5b505afa158015611b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7d919061229b565b60208082015173ffffffffffffffffffffffffffffffffffffffff8716600090815260139092526040909120559050828210611bd8576000611bbf838561178f565b600f54909150611bcf90826118d1565b600f5550611bf9565b6000611be4848461178f565b600f54909150611bf4908261178f565b600f55505b73ffffffffffffffffffffffffffffffffffffffff841660009081526011602052604090205460ff166119df5773ffffffffffffffffffffffffffffffffffffffff8416600090815260116020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556014909152902042905550505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611d1e9190612383565b6000604051808303816000865af19150503d8060008114611d5b576040519150601f19603f3d011682016040523d82523d6000602084013e611d60565b606091505b5091509150818015611d8a575080511580611d8a575080806020019051810190611d8a919061227e565b611df0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c45440060448201526064016108bb565b5050505050565b60008184841115611e35576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb919061239f565b506000611e428486612480565b9150505b9392505050565b60008183611e88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb919061239f565b506000611e428486612408565b6000611ef7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166120099092919063ffffffff16565b805190915015611fa15780806020019051810190611f15919061227e565b611fa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108bb565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116156115b9576000611fcd82610624565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600e6020908152604080832093909355600c54600d909152919020555050565b60606120188484600085612020565b949350505050565b6060824710156120b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108bb565b843b61211a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108bb565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516121439190612383565b60006040518083038185875af1925050503d8060008114612180576040519150601f19603f3d011682016040523d82523d6000602084013e612185565b606091505b50915091506121958282866121a0565b979650505050505050565b606083156121af575081611e46565b8251156121bf5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb919061239f565b803573ffffffffffffffffffffffffffffffffffffffff8116811461221757600080fd5b919050565b60006020828403121561222e57600080fd5b6117d1826121f3565b6000806040838503121561224a57600080fd5b612253836121f3565b946020939093013593505050565b60006020828403121561227357600080fd5b81356117d1816124f2565b60006020828403121561229057600080fd5b81516117d1816124f2565b6000604082840312156122ad57600080fd5b6040516040810181811067ffffffffffffffff821117156122f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528251600f81900b811461230c57600080fd5b81526020928301519281019290925250919050565b60006020828403121561233357600080fd5b5035919050565b60006020828403121561234c57600080fd5b5051919050565b6000806040838503121561236657600080fd5b823591506020830135612378816124f2565b809150509250929050565b60008251612395818460208701612497565b9190910192915050565b60208152600082518060208401526123be816040850160208701612497565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115612403576124036124c3565b500190565b60008261243e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561247b5761247b6124c3565b500290565b600082821015612492576124926124c3565b500390565b60005b838110156124b257818101518382015260200161249a565b838111156119df5750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80151581146115b957600080fdfea2646970667358221220566181e6f5abbb27e065801690872a8eb13413879c3b6067c26ccf913f5830bf64736f6c63430008060033

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

000000000000000000000000ff5b4bcbf765fe363269114e1c765229a29edefd0000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d00000000000000000000000008412ebf45bac1b340bbe8f318b928c466c4e39ca000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0

-----Decoded View---------------
Arg [0] : _owner (address): 0xfF5B4BCbf765FE363269114e1c765229a29eDeFD
Arg [1] : _emittedToken (address): 0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0
Arg [2] : _timelock_address (address): 0x8412ebf45bAC1B340BbE8F318b928C466c4E39CA
Arg [3] : _veFXS_address (address): 0xc8418aF6358FFddA74e09Ca9CC3Fe03Ca6aDC5b0

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000ff5b4bcbf765fe363269114e1c765229a29edefd
Arg [1] : 0000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d0
Arg [2] : 0000000000000000000000008412ebf45bac1b340bbe8f318b928c466c4e39ca
Arg [3] : 000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0


Deployed Bytecode Sourcemap

43836:12952:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48057:1867;;;;;;:::i;:::-;;:::i;:::-;;;10586:25:1;;;10574:2;10559:18;48057:1867:0;;;;;;;;44877:49;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4322:14:1;;4315:22;4297:41;;4285:2;4270:18;44877:49:0;4252:92:1;41792:141:0;;;;;;:::i;:::-;;:::i;:::-;;49932:119;;;:::i;45177:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;44117:36;;;;;;;;;;;;3065:42:1;3053:55;;;3035:74;;3023:2;3008:18;44117:36:0;2990:125:1;52938:1067:0;;;;;;:::i;:::-;;:::i;54972:160::-;;;;;;:::i;:::-;;:::i;44933:56::-;;;;;;:::i;:::-;;;;;;;;;;;;;;44707:41;;;;;;:::i;:::-;;;;;;;;;;;;;;41560:29;;;;;;;;;44599:38;;;;;;47411:130;;;:::i;44996:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;47549:500;;;:::i;44421:24::-;;;;;;46695:708;;;;;;:::i;:::-;;:::i;:::-;;;;11098:25:1;;;11154:2;11139:18;;11132:34;;;;11071:18;46695:708:0;11053:119:1;54496:334:0;;;;;;:::i;:::-;;:::i;41941:271::-;;;:::i;52079:612::-;;;:::i;44829:41::-;;;;;;44780:42;;;;;;54188:300;;;;;;:::i;:::-;;:::i;41533:20::-;;;;;;;;;55283:179;;;;;;:::i;:::-;;:::i;54838:126::-;;;;;;:::i;:::-;;:::i;55140:135::-;;;;;;:::i;:::-;;:::i;51855:102::-;;;;;;:::i;:::-;;:::i;44519:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;44644:56;;;;;;:::i;:::-;;;;;;;;;;;;;;45265:41;;;;;;;;;55470:117;;;;;;:::i;:::-;;:::i;51994:77::-;;;:::i;44385:29::-;;;;;;44186:31;;;;;;;;;44452:37;;;;;;44065:25;;;;;;;;;44351:27;;;;;;46396:163;;;:::i;52701:229::-;;;:::i;48057:1867::-;48197:26;;;48111:7;48197:26;;;:17;:26;;;;;;;;48192:41;;-1:-1:-1;48232:1:0;;48057:1867;-1:-1:-1;48057:1867:0:o;48192:41::-;48287:30;48319:24;48347:29;48368:7;48347:20;:29::i;:::-;48286:90;;-1:-1:-1;48286:90:0;-1:-1:-1;44306:3:0;48490:27;48486:628;;48594:28;;;;;;;:19;:28;;;;;;:48;-1:-1:-1;48590:513:0;;-1:-1:-1;48731:1:0;;48057:1867;-1:-1:-1;;;;48057:1867:0:o;48590:513::-;48873:28;;;48826:21;48873:28;;;:19;:28;;;;;;48850:52;;48851:16;;48850:22;:52::i;:::-;48964:28;;;48921:18;48964:28;;;:19;:28;;;;;;48826:76;;-1:-1:-1;48921:18:0;48942:51;;48943:15;;48942:21;:51::i;:::-;48921:72;-1:-1:-1;49037:50:0;48921:72;49037:34;44306:3;49057:13;49037:19;:34::i;:::-;:38;;:50::i;:::-;49012:75;;48807:296;;48590:513;49333:30;;;49251:28;49333:30;;;:21;:30;;;;;;49382:42;;;49378:256;;;49467:17;49444:40;;49378:256;;;49561:56;49615:1;49562:47;49563:22;49591:17;49562:28;:47::i;49561:56::-;49538:79;;49378:256;-1:-1:-1;49889:15:0;;;;;;;:6;:15;;;;;;49679:226;;:187;49843:22;44306:3;49843:4;:22;:::i;:::-;49742:30;;;;;;;:21;:30;;;;;;49679:141;;49797:22;;49679:95;;49722:51;;:15;:13;:15::i;:::-;:19;;:51::i;:::-;49679:20;;:42;:95::i;:::-;:117;;:141::i;:187::-;:209;;:226::i;:::-;49657:259;48057:1867;-1:-1:-1;;;;;;48057:1867:0:o;41792:141::-;42272:5;;;;42258:10;:19;42250:79;;;;;;;7493:2:1;42250:79:0;;;7475:21:1;7532:2;7512:18;;;7505:30;7571:34;7551:18;;;7544:62;7642:17;7622:18;;;7615:45;7677:19;;42250:79:0;;;;;;;;;41864:14:::1;:23:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;41903:22:::1;::::0;3035:74:1;;;41903:22:0::1;::::0;3023:2:1;3008:18;41903:22:0::1;;;;;;;;41792:141:::0;:::o;49932:119::-;49986:7;50014:28;50028:13;;50014:9;;:13;;:28;;;;:::i;:::-;50006:37;;49932:119;:::o;52938:1067::-;53085:10;53068:28;;;;:16;:28;;;;;;;;53060:63;;;;;;;10291:2:1;53060:63:0;;;10273:21:1;10330:2;10310:18;;;10303:30;10369:24;10349:18;;;10342:52;10411:18;;53060:63:0;10263:172:1;53060:63:0;53310:12;;:64;;:12;;53340:10;53360:4;53367:6;53310:29;:64::i;:::-;53429:6;:4;:6::i;:::-;53508:12;;53489:15;:31;53485:311;;53560:13;;53549:25;;:6;;:10;:25::i;:::-;53537:9;:37;53485:311;;;53627:12;;53607:17;;53627:33;;53644:15;53627:16;:33::i;:::-;53607:53;;53675:16;53694:24;53708:9;;53694;:13;;:24;;;;:::i;:::-;53770:13;;53675:43;;-1:-1:-1;53745:39:0;;:20;:6;53675:43;53745:10;:20::i;:39::-;53733:9;:51;-1:-1:-1;;53485:311:0;53874:15;53857:14;:32;;;53935:13;;53915:34;;53874:15;53915:19;:34::i;:::-;53900:12;:49;53987:9;;53967:30;;;11098:25:1;;;11154:2;11139:18;;11132:34;;;;53967:30:0;;11071:18:1;53967:30:0;11053:119:1;54972:160:0;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;55093:31:::1;;;::::0;;;:16:::1;:31;::::0;;;;;;55058:66;;::::1;55093:31;::::0;;::::1;55092:32;55058:66;::::0;;54972:160::o;47411:130::-;47467:7;47494:39;47503:15;47520:12;;47494:8;:39::i;47549:500::-;47595:7;47619:22;;47645:1;47619:27;47615:427;;;-1:-1:-1;47670:19:0;;;47549:500::o;47615:427::-;47748:267;47794:202;47973:22;;47794:148;47937:4;47794:112;47896:9;;47794:71;47850:14;;47794:25;:23;:25::i;:202::-;47748:19;;;:23;:267::i;46695:708::-;46860:5;;:24;;;;;:5;3053:55:1;;;46860:24:0;;;3035:74:1;46763:26:0;;;;;;46860:5;;;;:15;;3008:18:1;;46860:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;46975:38;;;;;;;:29;:38;;;;;;;-1:-1:-1;46835:49:0;-1:-1:-1;47082:28:0;;;;;:76;;;47134:23;47115:15;:42;;47082:76;47078:318;;;47195:1;47174:22;;47078:318;;;47246:23;47227:15;:42;47223:173;;47306:1;47285:22;;47223:173;;;47370:14;47349:35;;47223:173;46824:579;46695:708;;;:::o;54496:334::-;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;54588:12:::1;::::0;:17;;:51:::1;;;54627:12;;54609:15;:30;54588:51;54579:151;;;::::0;::::1;::::0;;8667:2:1;54579:151:0::1;::::0;::::1;8649:21:1::0;8706:2;8686:18;;;8679:30;8745:34;8725:18;;;8718:62;8816:34;8796:18;;;8789:62;8888:24;8867:19;;;8860:53;8930:19;;54579:151:0::1;8639:316:1::0;54579:151:0::1;54741:13;:30:::0;;;54787:35:::1;::::0;10586:25:1;;;54787:35:0::1;::::0;10574:2:1;10559:18;54787:35:0::1;10541:76:1::0;41941:271:0;42010:14;;;;41996:10;:28;41988:94;;;;;;;5603:2:1;41988:94:0;;;5585:21:1;5642:2;5622:18;;;5615:30;5681:34;5661:18;;;5654:62;5752:23;5732:18;;;5725:51;5793:19;;41988:94:0;5575:243:1;41988:94:0;42111:5;;;42118:14;42098:35;;;42111:5;;;;3355:34:1;;42118:14:0;;;;3420:2:1;3405:18;;3398:43;42098:35:0;;3267:18:1;42098:35:0;;;;;;;42152:14;;;;42144:22;;;;;;42152:14;;;42144:22;;;;42177:27;;;41941:271::o;52079:612::-;52182:14;40467:1;41073:7;;:19;;41065:63;;;;;;;9931:2:1;41065:63:0;;;9913:21:1;9970:2;9950:18;;;9943:30;10009:33;9989:18;;;9982:61;10060:18;;41065:63:0;9903:181:1;41065:63:0;40467:1;41206:18;;45668:21:::1;::::0;::::1;;:30;45660:69;;;::::0;::::1;::::0;;7138:2:1;45660:69:0::1;::::0;::::1;7120:21:1::0;7177:2;7157:18;;;7150:30;7216:28;7196:18;;;7189:56;7262:18;;45660:69:0::1;7110:176:1::0;45660:69:0::1;52161:10:::2;45809:24;45825:7;45809:15;:24::i;:::-;52226:10:::3;52217:20;::::0;;;:8:::3;:20;::::0;;;;;::::3;;:29;52209:69;;;::::0;::::3;::::0;;7909:2:1;52209:69:0::3;::::0;::::3;7891:21:1::0;7948:2;7928:18;;;7921:30;7987:29;7967:18;;;7960:57;8034:18;;52209:69:0::3;7881:177:1::0;52209:69:0::3;52307:10;52300:18;::::0;;;:6:::3;:18;::::0;;;;;;-1:-1:-1;52333:10:0;;52329:293:::3;;52367:10;52381:1;52360:18:::0;;;:6:::3;:18;::::0;;;;:22;52443:21:::3;::::0;52397:136:::3;::::0;52360:18:::3;52443:21:::0;;::::3;::::0;52512:6;52397:27:::3;:136::i;:::-;52588:21;::::0;52553:57:::3;::::0;;10796:25:1;;;52553:57:0::3;52588:21:::0;;::::3;10852:2:1::0;10837:18;;10830:83;52568:10:0::3;::::0;52553:57:::3;::::0;10769:18:1;52553:57:0::3;;;;;;;52329:293;-1:-1:-1::0;52654:10:0::3;52634:31;::::0;;;:19:::3;:31;::::0;;;;52668:15:::3;52634:49:::0;;40423:1;41385:7;:22;52079:612;:::o;54188:300::-;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;54404:5:::1;::::0;54362:61:::1;::::0;54390:12;;54404:5:::1;;54411:11:::0;54362:27:::1;:61::i;:::-;54439:41;::::0;;4059:42:1;4047:55;;4029:74;;4134:2;4119:18;;4112:34;;;54439:41:0::1;::::0;4002:18:1;54439:41:0::1;;;;;;;54188:300:::0;;:::o;55283:179::-;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;55373:9:::1;:22:::0;;;55408:47;::::1;;;55437:6;:4;:6::i;:::-;55283:179:::0;;:::o;54838:126::-;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;54937:18:::1;;;::::0;;;:8:::1;:18;::::0;;;;;;54914:42;;::::1;54937:18;::::0;;::::1;54935:21;54914:42;::::0;;54838:126::o;55140:135::-;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;55221:21:::1;:46:::0;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;;55140:135::o;51855:102::-;51923:26;51939:9;51923:15;:26::i;:::-;51855:102;:::o;55470:117::-;45520:5;;;;45506:10;:19;;:53;;-1:-1:-1;45543:16:0;;;;45529:10;:30;45506:53;45497:88;;;;;;;6025:2:1;45497:88:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:23;6083:18;;;6076:51;6144:18;;45497:88:0;5997:171:1;45497:88:0;55547:16:::1;:32:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;55470:117::o;51994:77::-;52036:27;52052:10;52036:15;:27::i;:::-;51994:77::o;46396:163::-;46452:7;46479:72;46528:22;;46479:44;44306:3;46479:23;;:27;;:44;;;;:::i;52701:229::-;52799:15;:13;:15::i;:::-;52777:19;:37;52850:5;;:19;;;;;;;;:5;;;;;:17;;:19;;;;;;;;;;;;;;;:5;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52825:22;:44;52897:25;:23;:25::i;:::-;52880:14;:42;52701:229::o;2699:136::-;2757:7;2784:43;2788:1;2791;2784:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2777:50;;2699:136;;;;;:::o;3615:471::-;3673:7;3918:6;3914:47;;-1:-1:-1;3948:1:0;3941:8;;3914:47;3973:9;3985:5;3989:1;3985;:5;:::i;:::-;3973:17;-1:-1:-1;4018:1:0;4009:5;4013:1;3973:17;4009:5;:::i;:::-;:10;4001:56;;;;;;;8265:2:1;4001:56:0;;;8247:21:1;8304:2;8284:18;;;8277:30;8343:34;8323:18;;;8316:62;8414:3;8394:18;;;8387:31;8435:19;;4001:56:0;8237:223:1;4554:132:0;4612:7;4639:39;4643:1;4646;4639:39;;;;;;;;;;;;;;;;;:3;:39::i;2243:181::-;2301:7;;2333:5;2337:1;2333;:5;:::i;:::-;2321:17;;2362:1;2357;:6;;2349:46;;;;;;;6375:2:1;2349:46:0;;;6357:21:1;6414:2;6394:18;;;6387:30;6453:29;6433:18;;;6426:57;6500:18;;2349:46:0;6347:177:1;35877:205:0;36005:68;;;3664:42:1;3733:15;;;36005:68:0;;;3715:34:1;3785:15;;3765:18;;;3758:43;3817:18;;;;3810:34;;;36005:68:0;;;;;;;;;;3627:18:1;;;;36005:68:0;;;;;;;;;;36028:27;36005:68;;;35978:96;;35998:5;;35978:19;:96::i;:::-;35877:205;;;;:::o;522:106::-;580:7;611:1;607;:5;:13;;619:1;607:13;;;-1:-1:-1;615:1:0;;522:106;-1:-1:-1;522:106:0:o;50113:1424::-;50276:6;:4;:6::i;:::-;50336:20;50348:7;50336:11;:20::i;:::-;50448:30;;;;50420:25;50448:30;;;:21;:30;;;;;;;50517:5;;:24;;;;;;;;3035:74:1;;;;50448:30:0;50420:25;;50517:5;;;:15;;3008:18:1;;50517:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50605:30;;;;;;;;:21;:30;;;;;;:50;;;50773:5;;:21;;;;;;;;3035:74:1;;;;50605:50:0;;-1:-1:-1;50605:30:0;50773:5;;;;:12;;3008:18:1;;50773:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50846:24;;;;;50805:38;;;;;;;:29;:38;;;;;;;:65;50722:72;-1:-1:-1;50937:38:0;;;50933:390;;50992:19;51014:40;:17;51036;51014:21;:40::i;:::-;51095:23;;50992:62;;-1:-1:-1;51095:40:0;;50992:62;51095:27;:40::i;:::-;51069:23;:66;-1:-1:-1;50933:390:0;;;51168:19;51190:40;:17;51212;51190:21;:40::i;:::-;51271:23;;51168:62;;-1:-1:-1;51271:40:0;;51168:62;51271:27;:40::i;:::-;51245:23;:66;-1:-1:-1;50933:390:0;51381:26;;;;;;;:17;:26;;;;;;;;51376:154;;51424:26;;;;;;;:17;:26;;;;;;;;:33;;;;51453:4;51424:33;;;51472:19;:28;;;;;51503:15;51472:46;;50164:1373;;;50113:1424;:::o;10563:361::-;10758:45;;;10747:10;4047:55:1;;;10758:45:0;;;4029:74:1;4119:18;;;;4112:34;;;10758:45:0;;;;;;;;;;4002:18:1;;;;10758:45:0;;;;;;;;;;;;;10747:57;;-1:-1:-1;;;;10747:10:0;;;;:57;;10758:45;10747:57;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10711:93;;;;10823:7;:57;;;;-1:-1:-1;10835:11:0;;:16;;:44;;;10866:4;10855:24;;;;;;;;;;;;:::i;:::-;10815:101;;;;;;;5243:2:1;10815:101:0;;;5225:21:1;5282:2;5262:18;;;5255:30;5321:33;5301:18;;;5294:61;5372:18;;10815:101:0;5215:181:1;10815:101:0;10633:291;;10563:361;;;:::o;3172:192::-;3258:7;3294:12;3286:6;;;;3278:29;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;3318:9:0;3330:5;3334:1;3330;:5;:::i;:::-;3318:17;-1:-1:-1;;3172:192:0;;;;;;:::o;5216:345::-;5302:7;5404:12;5397:5;5389:28;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;5428:9:0;5440:5;5444:1;5440;:5;:::i;37997:761::-;38421:23;38447:69;38475:4;38447:69;;;;;;;;;;;;;;;;;38455:5;38447:27;;;;:69;;;;;:::i;:::-;38531:17;;38421:95;;-1:-1:-1;38531:21:0;38527:224;;38673:10;38662:30;;;;;;;;;;;;:::i;:::-;38654:85;;;;;;;9520:2:1;38654:85:0;;;9502:21:1;9559:2;9539:18;;;9532:30;9598:34;9578:18;;;9571:62;9669:12;9649:18;;;9642:40;9699:19;;38654:85:0;9492:232:1;38654:85:0;38067:691;37997:761;;:::o;51545:259::-;51607:21;;;;51603:194;;51645:15;51663;51670:7;51663:6;:15::i;:::-;51693;;;;;;;:6;:15;;;;;;;;:25;;;;51766:19;;51733:21;:30;;;;;;:52;-1:-1:-1;51545:259:0;:::o;18974:195::-;19077:12;19109:52;19131:6;19139:4;19145:1;19148:12;19109:21;:52::i;:::-;19102:59;18974:195;-1:-1:-1;;;;18974:195:0:o;20026:530::-;20153:12;20211:5;20186:21;:30;;20178:81;;;;;;;6731:2:1;20178:81:0;;;6713:21:1;6770:2;6750:18;;;6743:30;6809:34;6789:18;;;6782:62;6880:8;6860:18;;;6853:36;6906:19;;20178:81:0;6703:228:1;20178:81:0;16423:20;;20270:60;;;;;;;9162:2:1;20270:60:0;;;9144:21:1;9201:2;9181:18;;;9174:30;9240:31;9220:18;;;9213:59;9289:18;;20270:60:0;9134:179:1;20270:60:0;20404:12;20418:23;20445:6;:11;;20465:5;20473:4;20445:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20403:75;;;;20496:52;20514:7;20523:10;20535:12;20496:17;:52::i;:::-;20489:59;20026:530;-1:-1:-1;;;;;;;20026:530:0:o;22566:742::-;22681:12;22710:7;22706:595;;;-1:-1:-1;22741:10:0;22734:17;;22706:595;22855:17;;:21;22851:439;;23118:10;23112:17;23179:15;23166:10;23162:2;23158:19;23151:44;22851:439;23261:12;23254:20;;;;;;;;;;;:::i;14:196:1:-;82:20;;142:42;131:54;;121:65;;111:2;;200:1;197;190:12;111:2;63:147;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:2;;;343:1;340;333:12;295:2;366:29;385:9;366:29;:::i;406:254::-;474:6;482;535:2;523:9;514:7;510:23;506:32;503:2;;;551:1;548;541:12;503:2;574:29;593:9;574:29;:::i;:::-;564:39;650:2;635:18;;;;622:32;;-1:-1:-1;;;493:167:1:o;665:241::-;721:6;774:2;762:9;753:7;749:23;745:32;742:2;;;790:1;787;780:12;742:2;829:9;816:23;848:28;870:5;848:28;:::i;911:245::-;978:6;1031:2;1019:9;1010:7;1006:23;1002:32;999:2;;;1047:1;1044;1037:12;999:2;1079:9;1073:16;1098:28;1120:5;1098:28;:::i;1161:756::-;1261:6;1314:2;1302:9;1293:7;1289:23;1285:32;1282:2;;;1330:1;1327;1320:12;1282:2;1363;1357:9;1405:2;1397:6;1393:15;1474:6;1462:10;1459:22;1438:18;1426:10;1423:34;1420:62;1417:2;;;1515:77;1512:1;1505:88;1616:4;1613:1;1606:15;1644:4;1641:1;1634:15;1417:2;1675;1668:22;1712:16;;1768:2;1757:21;;;1747:32;;1737:2;;1793:1;1790;1783:12;1737:2;1806:21;;1881:2;1866:18;;;1860:25;1843:15;;;1836:50;;;;-1:-1:-1;1813:6:1;1272:645;-1:-1:-1;1272:645:1:o;1922:180::-;1981:6;2034:2;2022:9;2013:7;2009:23;2005:32;2002:2;;;2050:1;2047;2040:12;2002:2;-1:-1:-1;2073:23:1;;1992:110;-1:-1:-1;1992:110:1:o;2107:184::-;2177:6;2230:2;2218:9;2209:7;2205:23;2201:32;2198:2;;;2246:1;2243;2236:12;2198:2;-1:-1:-1;2269:16:1;;2188:103;-1:-1:-1;2188:103:1:o;2296:309::-;2361:6;2369;2422:2;2410:9;2401:7;2397:23;2393:32;2390:2;;;2438:1;2435;2428:12;2390:2;2474:9;2461:23;2451:33;;2534:2;2523:9;2519:18;2506:32;2547:28;2569:5;2547:28;:::i;:::-;2594:5;2584:15;;;2380:225;;;;;:::o;2610:274::-;2739:3;2777:6;2771:13;2793:53;2839:6;2834:3;2827:4;2819:6;2815:17;2793:53;:::i;:::-;2862:16;;;;;2747:137;-1:-1:-1;;2747:137:1:o;4594:442::-;4743:2;4732:9;4725:21;4706:4;4775:6;4769:13;4818:6;4813:2;4802:9;4798:18;4791:34;4834:66;4893:6;4888:2;4877:9;4873:18;4868:2;4860:6;4856:15;4834:66;:::i;:::-;4952:2;4940:15;4957:66;4936:88;4921:104;;;;5027:2;4917:113;;4715:321;-1:-1:-1;;4715:321:1:o;11177:128::-;11217:3;11248:1;11244:6;11241:1;11238:13;11235:2;;;11254:18;;:::i;:::-;-1:-1:-1;11290:9:1;;11225:80::o;11310:274::-;11350:1;11376;11366:2;;11411:77;11408:1;11401:88;11512:4;11509:1;11502:15;11540:4;11537:1;11530:15;11366:2;-1:-1:-1;11569:9:1;;11356:228::o;11589:::-;11629:7;11755:1;11687:66;11683:74;11680:1;11677:81;11672:1;11665:9;11658:17;11654:105;11651:2;;;11762:18;;:::i;:::-;-1:-1:-1;11802:9:1;;11641:176::o;11822:125::-;11862:4;11890:1;11887;11884:8;11881:2;;;11895:18;;:::i;:::-;-1:-1:-1;11932:9:1;;11871:76::o;11952:258::-;12024:1;12034:113;12048:6;12045:1;12042:13;12034:113;;;12124:11;;;12118:18;12105:11;;;12098:39;12070:2;12063:10;12034:113;;;12165:6;12162:1;12159:13;12156:2;;;-1:-1:-1;;12200:1:1;12182:16;;12175:27;12005:205::o;12215:184::-;12267:77;12264:1;12257:88;12364:4;12361:1;12354:15;12388:4;12385:1;12378:15;12404:118;12490:5;12483:13;12476:21;12469:5;12466:32;12456:2;;12512:1;12509;12502:12

Swarm Source

ipfs://566181e6f5abbb27e065801690872a8eb13413879c3b6067c26ccf913f5830bf

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.