ETH Price: $3,352.93 (-2.40%)

Contract

0xA09c744117f2aCA714f0CA6fA26260afA972FA65
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040174762002023-06-14 5:45:47531 days ago1686721547IN
 Create: HordETHStakingManager
0 ETH0.0541045820

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HordETHStakingManager

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-10-03
*/

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

// File contracts/interfaces/IStakingConfiguration.sol

pragma solidity 0.6.12;

/**
 * IStakingConfiguration contract.
 * @author SrdjanSimonovic
 * Date created: 25.10.22.
 * Github: s2imonovic
 */
interface IStakingConfiguration {
    function stakingToken() external view returns(address);
    function feeRecipient() external view returns(address);
    function veTokenName() external view returns(string memory);
    function veTokenSymbol() external view returns(string memory);
    function stakeETHTokenName() external view returns(string memory);
    function stakeETHTokenSymbol() external view returns(string memory);
    function initialETHDeposit() external view returns(uint256);
    function maxCap() external view returns(uint256);
    function generationRate() external view returns(uint256);
    function amountNeededToLaunchNewValidator() external view returns(uint256);
    function amountETHInValidator() external view returns(uint256);
    function rewardFeePercentage() external view returns(uint256);
    function tolerancePercentageForRewards() external view returns(uint256);
    function tolerancePercentageForFee() external view returns(uint256);
}


// File contracts/interfaces/IHordCongressMembersRegistry.sol

pragma solidity 0.6.12;

/**
 * IHordCongressMembersRegistry contract.
 * @author Nikola Madjarevic
 * Date created: 21.3.21.
 * Github: madjarevicn
 */
interface IHordCongressMembersRegistry {
    function isMember(address _address) external view returns (bool);
    function getMinimalQuorum() external view returns (uint256);
}


// File contracts/interfaces/IBeaconDeposit.sol

pragma solidity 0.6.12;
/**
 * HETH contract.
 * @author Srdjan Simonovic
 * Date created: 01.12.22.
 * Github: s2imonovic
 */
interface IBeaconDeposit {
    function deposit(
        bytes calldata pubkey,
        bytes calldata withdrawal_credentials,
        bytes calldata signature,
        bytes32 deposit_data_root
    ) external payable;
}


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


pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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);
    }

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

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


// File @openzeppelin/contracts-upgradeable/proxy/[email protected]


// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}


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


pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _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;
    }
    uint256[49] private __gap;
}


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


pragma solidity >=0.6.0 <0.8.0;

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

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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


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


pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal initializer {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal initializer {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}


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


pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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


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


pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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


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


pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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


pragma solidity >=0.6.0 <0.8.0;



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

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

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

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

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

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

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

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


// File contracts/interfaces/ISDK.sol

pragma solidity 0.6.12;

interface ISDK {
    // If warmup > 0 then these two functions above are used together to deposit

    function deposit(
        address _user,
        uint256 _amount
    ) external;

    // If comes to withdrawal first getter ifPaymentCanPassInOneTx is called (returns true/false)

    function noticeReducedStakeWithoutStakeId(
        address _user,
        uint256 _amount
    ) external;

}


// File contracts/interfaces/IMaintainersRegistry.sol

pragma solidity 0.6.12;

/**
 * IMaintainersRegistry contract.
 * @author Nikola Madjarevic
 * Date created: 8.5.21.
 * Github: madjarevicn
 */
interface IMaintainersRegistry {
    function isMaintainer(address _address) external view returns (bool);
}


// File contracts/system/HordUpgradable.sol

pragma solidity 0.6.12;

/**
 * HordUpgradables contract.
 * @author Nikola Madjarevic
 * Date created: 8.5.21.
 * Github: madjarevicn
 */
contract HordUpgradable {

    address public hordCongress;
    IMaintainersRegistry public maintainersRegistry;

    event MaintainersRegistrySet(address maintainersRegistry);
    event CongressAndMaintainersSet(address hordCongress, address maintainersRegistry);

    // Only maintainer modifier
    modifier onlyMaintainer {
        require(maintainersRegistry.isMaintainer(msg.sender), "Hord: Restricted only to Maintainer");
        _;
    }

    // Only chainport congress modifier
    modifier onlyHordCongress {
        require(msg.sender == hordCongress, "Hord: Restricted only to HordCongress");
        _;
    }

    modifier onlyHordCongressOrMaintainer {
        require(msg.sender == hordCongress || maintainersRegistry.isMaintainer(msg.sender),
            "Hord: Only Congress or Maintainer."
        );
        _;
    }

    function setCongressAndMaintainers(
        address _hordCongress,
        address _maintainersRegistry
    )
    internal
    {
        require(_hordCongress != address(0), "HordCongress can not be 0x0 address");
        require(_maintainersRegistry != address(0), "MaintainersRegistry can not be 0x0 address");

        hordCongress = _hordCongress;
        maintainersRegistry = IMaintainersRegistry(_maintainersRegistry);

        emit CongressAndMaintainersSet(hordCongress, address(maintainersRegistry));
    }

}


// File contracts/ethStaking/HETH.sol

pragma solidity 0.6.12;





/**
 * HETH contract.
 * @author Srdjan Simonovic
 * Date created: 09.11.22.
 * Github: s2imonovic
 */
contract HETH is ReentrancyGuardUpgradeable, PausableUpgradeable, HordUpgradable {
    using SafeERC20 for IERC20;
    using SafeMath for *;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    // Deprecated
    ISDK public tokensFarmSDK;

    /**
     * @dev Emitted when `value` tokens are burned and minted
    */
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Burn(address indexed account, uint256 value);
    event Mint(address indexed beneficiary, uint256 value);

    /**
     * @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.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
        * @notice  Function allowing congress to set token name. This function will be removed in the next upgrade.
        * @dev     Can be only called by HordCongress member
     */
    function setTokenName(string memory newTokenName) external onlyHordCongress {
        _name = newTokenName;
    }

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

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

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_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 virtual returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual 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 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) whenNotPaused 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");

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

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


        _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 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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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

    uint256[44] private __gap;

}


// File contracts/ethStaking/HordETHStakingManager.sol

pragma solidity 0.6.12;




/**
 * HordETHStakingManager contract.
 * @author Srdjan Simonovic
 * Date created: 08.11.22.
 * Github: s2imonovic
 */
contract HordETHStakingManager is HETH {

    // Total ETH Deposited
    uint256 public totalETHDeposited;
    // Represent amount of ETH in validators
    uint256 public totalBalanceETHInValidators;
    // Represent total rewards collected
    uint256 public totalRewardsCollected;
    // Represent total HETH minted
    uint256 public totalHETHMinted;
    // Represent total number of users who have subscribed
    uint256 public numberOfUsers;
    // Represent last rewards for fee calculation
    uint256 public lastRewardsForFeeCalc;
    // Represent total fees accounted in ETH
    uint256 public totalFeesAccountedInETH;
    // Represent total fees minted in HETH
    uint256 public totalFeesMintedInHETH;
    // represent last execLayerRewardsForFeeCalc;
    uint256 public lastExecLayerRewardsForFeeCalc;
    // state for total exec layer rewards;
    uint256 public totalExecLayerRewards;

    // Represent instance of HordCongressMembersRegistry contract
    IHordCongressMembersRegistry public hordCongressMembersRegistry;
    // Represent instance of BeaconDeposit contract
    IBeaconDeposit public beaconDeposit;
    // Represent instance of StakingConfiguration contract
    IStakingConfiguration public stakingConfiguration;
    // Map user address to his information
    mapping(address => User) public users;
    // Represent user struct
    struct User {
        uint256 amountDeposited;
        // will be update later
        uint256 rewardsEarned;
    }

    // ---------------------- States after first deployment ----------------------

    // Mapping pub-keys of validators to is initialized bool
    mapping(bytes => bool) public isValidatorInitialized;

    //Events
    event Deposit(address account, uint256 amountDeposited);
    event LaunchNewValidator(address account, uint256 amountWithdrawn);
    event HETHMinted(address account, uint256 amountHETH);
    event EtherReceived(address account, uint256 amountETH);
    event FeeCollected(address account, uint256 amountHETH, uint256 amountETHForMintingCalc, uint256 diffExecLayerRewardsForFeelCalc);
    event StakingStatsUpdated(uint256 newRewardsAmount, uint256 newTotalETHBalanceInValidators, uint256 newTotalExecutionLayerRewards);

    /**
         * @notice          Function checks is the call direct.
     */
    modifier isDirectCall() {
        require(msg.sender == tx.origin, "Only direct calls.");
        _;
    }

    /**
         * @notice          Function is amount correct.
     */
    modifier isCorrectAmount() {
        require(msg.value > 0, "amount not correct");
        _;
    }

    /**
         * @notice          Initializer function, can be called only once, replacing constructor
         * @param           _hordCongress is the address of HordCongress contract
         * @param           _maintainersRegistry is the address of the MaintainersRegistry contract
         * @param           _stakingConfiguration is the address of the StakingConfiguration contract
     */
    function initialize(
        address _hordCongress,
        address _maintainersRegistry,
        address _stakingConfiguration,
        address _beaconDeposit,
        address _hordCongressMembersRegistry
    )
    external
    initializer
    {
        require(_stakingConfiguration != address(0), "StakingConfiguration can not be 0x0 address");
        require(_beaconDeposit != address(0), "BeaconDeposit can not be 0x0 address");

        setCongressAndMaintainers(_hordCongress, _maintainersRegistry);
        stakingConfiguration = IStakingConfiguration(_stakingConfiguration);
        beaconDeposit = IBeaconDeposit(_beaconDeposit);
        hordCongressMembersRegistry = IHordCongressMembersRegistry(_hordCongressMembersRegistry);

        __ERC20_init(stakingConfiguration.stakeETHTokenName(), stakingConfiguration.stakeETHTokenSymbol());
        __ReentrancyGuard_init();
        __Pausable_init_unchained();
    }

    receive() external payable {
        emit EtherReceived(msg.sender, msg.value);
    }

    /**
        * @notice  Function allowing congress to pause the smart-contract
        * @dev     Can be only called by HordCongress member or maintainer
     */
    function pause()
    external
    {
        require(hordCongressMembersRegistry.isMember(msg.sender) || maintainersRegistry.isMaintainer(msg.sender), "Only members with permission");
        _pause();
    }

    /**
        * @notice  Function allowing congress to unpause the smart-contract
        * @dev     Can be only called by HordCongress member
     */
    function unpause()
    external
    onlyHordCongress
    {
        _unpause();
    }

    /**
        * @notice  Function set total amount of collected rewards
        * @dev     Can be only called by maintainer
        * newTotalETHBalanceInValidators -  received from beaconchain api, includes all ETH in the validators
                                            minues the 32 ETH in the pre-run validator (that no hETH was minted against)
        *                                   including all the rewards except block proposal rewards and mev rewards which
                                            should be received directly into the contract
        * newRewardsAmount - all rewards (without staked) + blockproposals + MEV rewards
        * newTotalExecutionLayerRewards = from DAPI: block_proposal_eth1_rewards+mev_eth1_rewards
     */
    function setValidatorStats(uint256 newRewardsAmount, uint256 newTotalETHBalanceInValidators, uint256 newTotalExecutionLayerRewards) external onlyMaintainer {
        if(!paused()) {
            require(newRewardsAmount >= totalRewardsCollected, "Wrong newRewardsAmount");
            require(newTotalExecutionLayerRewards >= totalExecLayerRewards, "Wrong newTotalExecutionLayerRewards");
        }

        uint256 rewardsBoundary = totalRewardsCollected.mul(stakingConfiguration.tolerancePercentageForRewards()).div(100);
        uint256 ethInValidatorsBoundary = totalBalanceETHInValidators.mul(stakingConfiguration.tolerancePercentageForRewards()).div(100);

        if (
            (totalRewardsCollected > 0 && (newRewardsAmount > totalRewardsCollected.add(rewardsBoundary) || newRewardsAmount < totalRewardsCollected.sub(rewardsBoundary))) ||
            (totalBalanceETHInValidators > stakingConfiguration.amountETHInValidator() &&
            (newTotalETHBalanceInValidators > totalBalanceETHInValidators.add(ethInValidatorsBoundary) || newTotalETHBalanceInValidators < totalBalanceETHInValidators.sub(ethInValidatorsBoundary)))
        )
        {
            _pause();
        }

        uint256 tolerancePercentageForFee = lastRewardsForFeeCalc.mul(stakingConfiguration.tolerancePercentageForFee()).div(100);

        if (newRewardsAmount > lastRewardsForFeeCalc.add(tolerancePercentageForFee)) {
            uint256 amountETHForMintingCalc = (newRewardsAmount.sub(lastRewardsForFeeCalc)).mul(stakingConfiguration.rewardFeePercentage()).div(100);
            uint256 diffExecLayerRewardsForFeelCalc = newTotalExecutionLayerRewards.sub(lastExecLayerRewardsForFeeCalc);
            uint256 amountHETHForMinting =  getAmountOfHETHforETH(amountETHForMintingCalc, false, diffExecLayerRewardsForFeelCalc);


            _mint(stakingConfiguration.feeRecipient(), amountHETHForMinting);

            totalHETHMinted = totalHETHMinted.add(amountHETHForMinting);
            lastRewardsForFeeCalc = newRewardsAmount;
            lastExecLayerRewardsForFeeCalc = newTotalExecutionLayerRewards;
            totalFeesAccountedInETH = totalFeesAccountedInETH.add(amountETHForMintingCalc);
            totalFeesMintedInHETH = totalFeesMintedInHETH.add(amountHETHForMinting);

            emit FeeCollected(stakingConfiguration.feeRecipient(), amountHETHForMinting, amountETHForMintingCalc, diffExecLayerRewardsForFeelCalc);
        }

        totalRewardsCollected = newRewardsAmount;
        totalBalanceETHInValidators =  newTotalETHBalanceInValidators;
        totalExecLayerRewards = newTotalExecutionLayerRewards;

        emit StakingStatsUpdated(totalRewardsCollected, totalBalanceETHInValidators, totalExecLayerRewards);
    }

    /**
         * @notice          Withdraws funds for launching new validator, callable only by address with permissions
     */
    function launchNewValidator(
        bytes calldata pubkey,
        bytes calldata withdrawal_credentials,
        bytes calldata signature,
        bytes32 deposit_data_root
    )
    nonReentrant
    external
    whenNotPaused
    onlyMaintainer
    {
        require(isValidatorInitialized[pubkey] == false, "Validator is already initialized");

        uint256 amountToWithdraw = stakingConfiguration.amountETHInValidator();

        require(address(this).balance >= amountToWithdraw, "conditions are not met");

        // Update pool information
        totalBalanceETHInValidators = totalBalanceETHInValidators.add(amountToWithdraw);
        isValidatorInitialized[pubkey] = true;

        beaconDeposit.deposit{
            value: amountToWithdraw
        }(pubkey, withdrawal_credentials, signature, deposit_data_root);

        emit LaunchNewValidator(msg.sender, amountToWithdraw);
    }

    /**
         * @notice          User calls this function when he wants to deposit ETH
     */
    function userDepositETH()
    payable
    isDirectCall
    isCorrectAmount
    external
    whenNotPaused
    {
        User storage user = users[msg.sender];

        if(user.amountDeposited == 0) {
            numberOfUsers = numberOfUsers.add(1);
        }

        uint256 amountForMint = getAmountOfHETHforETH(msg.value, true, 0);

        // Mint hETH for user
        _mint(msg.sender, amountForMint);

        // Update information
        user.amountDeposited = user.amountDeposited.add(msg.value);
        totalETHDeposited = totalETHDeposited.add(msg.value);
        totalHETHMinted = totalHETHMinted.add(amountForMint);

        emit HETHMinted(msg.sender, amountForMint);
        emit Deposit(msg.sender, msg.value);
    }

    /**
         * @notice          Function calculate how much ETH is amount of hETH
         there are 20hETH minted already
         there are 20.1ETH in liquidation reserve
         the true price of HETH currently is

         current price is 1 ETH = 0.995 HETH (20/20.1)
         if i come with 10 ETH to deposit, the function should be minted for these 10 ETH:
         result would be = 10 x (20/20.1) = 10 * 0.995 = 9.95 hETH
     */
    function getAmountOfHETHforETH(uint256 amountETH, bool isContractCall, uint256 diffExecLayerRewardsForFeelCalc) public view returns (uint256) {
        if(totalHETHMinted == 0) {
            return amountETH;
        }

        uint256 totalETHInPossession;

        if(isContractCall) {
            totalETHInPossession = totalBalanceETHInValidators.add(address(this).balance).sub(amountETH);
        } else {
            totalETHInPossession = totalBalanceETHInValidators.add(address(this).balance).sub(diffExecLayerRewardsForFeelCalc);
        }

        uint256 percentPrecision = 1000000;

        uint256 hethEthRatio = totalHETHMinted.mul(percentPrecision).div(totalETHInPossession);// ETH x HETH / ETH = HETH
                                // 1 * (2 / 2.1) =

        uint256 result = amountETH.mul(hethEthRatio).div(percentPrecision);

        return result;
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"hordCongress","type":"address"},{"indexed":false,"internalType":"address","name":"maintainersRegistry","type":"address"}],"name":"CongressAndMaintainersSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountDeposited","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"}],"name":"EtherReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountHETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountETHForMintingCalc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"diffExecLayerRewardsForFeelCalc","type":"uint256"}],"name":"FeeCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountHETH","type":"uint256"}],"name":"HETHMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountWithdrawn","type":"uint256"}],"name":"LaunchNewValidator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"maintainersRegistry","type":"address"}],"name":"MaintainersRegistrySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRewardsAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalETHBalanceInValidators","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalExecutionLayerRewards","type":"uint256"}],"name":"StakingStatsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beaconDeposit","outputs":[{"internalType":"contract IBeaconDeposit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"bool","name":"isContractCall","type":"bool"},{"internalType":"uint256","name":"diffExecLayerRewardsForFeelCalc","type":"uint256"}],"name":"getAmountOfHETHforETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hordCongress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hordCongressMembersRegistry","outputs":[{"internalType":"contract IHordCongressMembersRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_hordCongress","type":"address"},{"internalType":"address","name":"_maintainersRegistry","type":"address"},{"internalType":"address","name":"_stakingConfiguration","type":"address"},{"internalType":"address","name":"_beaconDeposit","type":"address"},{"internalType":"address","name":"_hordCongressMembersRegistry","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"isValidatorInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastExecLayerRewardsForFeeCalc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardsForFeeCalc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"pubkey","type":"bytes"},{"internalType":"bytes","name":"withdrawal_credentials","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"deposit_data_root","type":"bytes32"}],"name":"launchNewValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maintainersRegistry","outputs":[{"internalType":"contract IMaintainersRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenName","type":"string"}],"name":"setTokenName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRewardsAmount","type":"uint256"},{"internalType":"uint256","name":"newTotalETHBalanceInValidators","type":"uint256"},{"internalType":"uint256","name":"newTotalExecutionLayerRewards","type":"uint256"}],"name":"setValidatorStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingConfiguration","outputs":[{"internalType":"contract IStakingConfiguration","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensFarmSDK","outputs":[{"internalType":"contract ISDK","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBalanceETHInValidators","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalETHDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExecLayerRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesAccountedInETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesMintedInHETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalHETHMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardsCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userDepositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"amountDeposited","type":"uint256"},{"internalType":"uint256","name":"rewardsEarned","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50612ff7806100206000396000f3fe6080604052600436106102295760003560e01c806375309a6811610123578063a4f29aad116100ab578063d2e69e471161006f578063d2e69e471461099a578063d900ec3c146109af578063dd62ed3e146109c4578063e4c7dfc9146109ff578063f7a5835014610a355761026a565b8063a4f29aad1461083a578063a68a4385146108eb578063a87430ba14610900578063a9059cbb1461094c578063b012935d146109855761026a565b80638456cb59116100f25780638456cb59146107ad578063918da8a5146107c257806392af00f4146107d757806395d89b41146107ec578063a457c2d7146108015761026a565b806375309a681461073657806375ce46a71461076e5780637b2c9070146107835780637ebad977146107985761026a565b80632f4327b5116101b157806358c07d771161017557806358c07d771461058d5780635c975abb146106a85780636a8f414f146106bd5780636e460d40146106ee57806370a08231146107035761026a565b80632f4327b5146104ea578063313ce567146104ff578063377b04861461052a578063395093511461053f5780633f4ba83a146105785761026a565b806318160ddd116101f857806318160ddd146103c457806318fc4716146103d95780631b15a3e4146103e15780631e6e6b00146103f657806323b872dd146104a75761026a565b806306fdde031461026f578063095ea7b3146102f95780631459457a1461034657806315546c661461039d5761026a565b3661026a576040805133815234602082015281517f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b929181900390910190a1005b600080fd5b34801561027b57600080fd5b50610284610a4a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102be5781810151838201526020016102a6565b50505050905090810190601f1680156102eb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030557600080fd5b506103326004803603604081101561031c57600080fd5b506001600160a01b038135169060200135610ae0565b604080519115158252519081900360200190f35b34801561035257600080fd5b5061039b600480360360a081101561036957600080fd5b506001600160a01b03813581169160208101358216916040820135811691606081013582169160809091013516610afe565b005b3480156103a957600080fd5b506103b2610edf565b60408051918252519081900360200190f35b3480156103d057600080fd5b506103b2610ee5565b61039b610eeb565b3480156103ed57600080fd5b506103b26110b4565b34801561040257600080fd5b506103326004803603602081101561041957600080fd5b810190602081018135600160201b81111561043357600080fd5b82018360208201111561044557600080fd5b803590602001918460018302840111600160201b8311171561046657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110ba945050505050565b3480156104b357600080fd5b50610332600480360360608110156104ca57600080fd5b506001600160a01b038135811691602081013590911690604001356110da565b3480156104f657600080fd5b506103b2611162565b34801561050b57600080fd5b50610514611168565b6040805160ff9092168252519081900360200190f35b34801561053657600080fd5b506103b2611171565b34801561054b57600080fd5b506103326004803603604081101561056257600080fd5b506001600160a01b038135169060200135611177565b34801561058457600080fd5b5061039b6111c5565b34801561059957600080fd5b5061039b600480360360808110156105b057600080fd5b810190602081018135600160201b8111156105ca57600080fd5b8201836020820111156105dc57600080fd5b803590602001918460018302840111600160201b831117156105fd57600080fd5b919390929091602081019035600160201b81111561061a57600080fd5b82018360208201111561062c57600080fd5b803590602001918460018302840111600160201b8311171561064d57600080fd5b919390929091602081019035600160201b81111561066a57600080fd5b82018360208201111561067c57600080fd5b803590602001918460018302840111600160201b8311171561069d57600080fd5b919350915035611218565b3480156106b457600080fd5b5061033261163f565b3480156106c957600080fd5b506106d2611648565b604080516001600160a01b039092168252519081900360200190f35b3480156106fa57600080fd5b506103b2611657565b34801561070f57600080fd5b506103b26004803603602081101561072657600080fd5b50356001600160a01b031661165d565b34801561074257600080fd5b506103b26004803603606081101561075957600080fd5b50803590602081013515159060400135611678565b34801561077a57600080fd5b506103b2611715565b34801561078f57600080fd5b506103b261171b565b3480156107a457600080fd5b506106d2611721565b3480156107b957600080fd5b5061039b611730565b3480156107ce57600080fd5b506106d261187e565b3480156107e357600080fd5b506106d261188d565b3480156107f857600080fd5b506102846118a1565b34801561080d57600080fd5b506103326004803603604081101561082457600080fd5b506001600160a01b038135169060200135611902565b34801561084657600080fd5b5061039b6004803603602081101561085d57600080fd5b810190602081018135600160201b81111561087757600080fd5b82018360208201111561088957600080fd5b803590602001918460018302840111600160201b831117156108aa57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061196a945050505050565b3480156108f757600080fd5b506106d26119ca565b34801561090c57600080fd5b506109336004803603602081101561092357600080fd5b50356001600160a01b03166119d9565b6040805192835260208301919091528051918290030190f35b34801561095857600080fd5b506103326004803603604081101561096f57600080fd5b506001600160a01b0381351690602001356119f2565b34801561099157600080fd5b506103b2611a06565b3480156109a657600080fd5b506106d2611a0c565b3480156109bb57600080fd5b506103b2611a1b565b3480156109d057600080fd5b506103b2600480360360408110156109e757600080fd5b506001600160a01b0381358116916020013516611a21565b348015610a0b57600080fd5b5061039b60048036036060811015610a2257600080fd5b5080359060208101359060400135611a4c565b348015610a4157600080fd5b506103b26120e6565b609c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ad65780601f10610aab57610100808354040283529160200191610ad6565b820191906000526020600020905b815481529060010190602001808311610ab957829003601f168201915b5050505050905090565b6000610af4610aed6120ec565b84846120f0565b5060015b92915050565b600054610100900460ff1680610b175750610b176121dc565b80610b25575060005460ff16155b610b605760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015610b8b576000805460ff1961ff0019909116610100171660011790555b6001600160a01b038416610bd05760405162461bcd60e51b815260040180806020018281038252602b815260200180612f06602b913960400191505060405180910390fd5b6001600160a01b038316610c155760405162461bcd60e51b8152600401808060200182810382526024815260200180612f7b6024913960400191505060405180910390fd5b610c1f86866121ed565b60d780546001600160a01b038087166001600160a01b0319928316179283905560d6805487831690841617905560d5805486831693169290921790915560408051630fc3a78b60e11b81529051610eb59390921691631f874f1691600480820192600092909190829003018186803b158015610c9a57600080fd5b505afa158015610cae573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610cd757600080fd5b8101908080516040519392919084600160201b821115610cf657600080fd5b908301906020820185811115610d0b57600080fd5b8251600160201b811182820188101715610d2457600080fd5b82525081516020918201929091019080838360005b83811015610d51578181015183820152602001610d39565b50505050905090810190601f168015610d7e5780820380516001836020036101000a031916815260200191505b50604081815260d7546301246f4960e61b835290516001600160a01b03909116945063491bd240935060048083019350600092829003018186803b158015610dc557600080fd5b505afa158015610dd9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610e0257600080fd5b8101908080516040519392919084600160201b821115610e2157600080fd5b908301906020820185811115610e3657600080fd5b8251600160201b811182820188101715610e4f57600080fd5b82525081516020918201929091019080838360005b83811015610e7c578181015183820152602001610e64565b50505050905090810190601f168015610ea95780820380516001836020036101000a031916815260200191505b506040525050506122e8565b610ebd61239e565b610ec5612448565b8015610ed7576000805461ff00191690555b505050505050565b60d05481565b609b5490565b333214610f34576040805162461bcd60e51b815260206004820152601260248201527127b7363c903234b932b1ba1031b0b636399760711b604482015290519081900360640190fd5b60003411610f7e576040805162461bcd60e51b8152602060048201526012602482015271185b5bdd5b9d081b9bdd0818dbdc9c9958dd60721b604482015290519081900360640190fd5b610f8661163f565b15610fcb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600090815260d8602052604090208054610ff25760cf54610fee9060016124f3565b60cf555b60006110013460016000611678565b905061100d338261254d565b815461101990346124f3565b825560cb5461102890346124f3565b60cb5560ce5461103890826124f3565b60ce55604080513381526020810183905281517f7fc2fd3fd75a3920468e7ebb35c1c6c24d63052113a15ce8a4d461bf9b8c7f84929181900390910190a16040805133815234602082015281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a15050565b60d25481565b805160208183018101805160d98252928201919093012091525460ff1681565b60006110e7848484612633565b611157846110f36120ec565b61115285604051806060016040528060288152602001612e95602891396001600160a01b038a166000908152609a60205260408120906111316120ec565b6001600160a01b0316815260208101919091526040016000205491906127dd565b6120f0565b5060015b9392505050565b60ce5481565b609e5460ff1690565b60d15481565b6000610af46111846120ec565b8461115285609a60006111956120ec565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906124f3565b6097546001600160a01b0316331461120e5760405162461bcd60e51b8152600401808060200182810382526025815260200180612f316025913960400191505060405180910390fd5b611216612874565b565b60026001541415611270576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015561127d61163f565b156112c2576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60985460408051636eab9b3560e11b815233600482015290516001600160a01b039092169163dd57366a91602480820192602092909190829003018186803b15801561130d57600080fd5b505afa158015611321573d6000803e3d6000fd5b505050506040513d602081101561133757600080fd5b50516113745760405162461bcd60e51b8152600401808060200182810382526023815260200180612f9f6023913960400191505060405180910390fd5b60d9878760405180838380828437919091019485525050604051928390036020019092205460ff161591506113f29050576040805162461bcd60e51b815260206004820181905260248201527f56616c696461746f7220697320616c726561647920696e697469616c697a6564604482015290519081900360640190fd5b60d75460408051635cd1bf2760e01b815290516000926001600160a01b031691635cd1bf27916004808301926020929190829003018186803b15801561143757600080fd5b505afa15801561144b573d6000803e3d6000fd5b505050506040513d602081101561146157600080fd5b50519050478111156114b3576040805162461bcd60e51b815260206004820152601660248201527518dbdb991a5d1a5bdb9cc8185c99481b9bdd081b595d60521b604482015290519081900360640190fd5b60cc546114c090826124f3565b60cc81905550600160d9898960405180838380828437919091019485525050604051928390036020018320805494151560ff19909516949094179093555060d6546304512a2360e31b825260648201859052608060048301908152608483018b90526001600160a01b03909116925063228951189184918c918c918c918c918c918c918c9181906024810190604481019060a4018b8b80828437600083820152601f01601f191690910185810384528981526020019050898980828437600083820152601f01601f191690910185810383528781526020019050878780828437600081840152601f19601f8201169050808301925050509a50505050505050505050506000604051808303818588803b1580156115dc57600080fd5b505af11580156115f0573d6000803e3d6000fd5b5050604080513381526020810186905281517f01f1f0f74df26bcccf98210172a32bbbf2e3a8b0d7d33d2c47329fcb0c4e7b3295509081900390910192509050a1505060018055505050505050565b60655460ff1690565b6097546001600160a01b031681565b60cd5481565b6001600160a01b031660009081526099602052604090205490565b600060ce546000141561168c57508261115b565b600083156116ba576116b3856116ad4760cc546124f390919063ffffffff16565b90612914565b90506116d6565b6116d3836116ad4760cc546124f390919063ffffffff16565b90505b60ce54620f4240906000906116f79084906116f19085612971565b906129ca565b90506000611709836116f18a85612971565b98975050505050505050565b60cf5481565b60cb5481565b60d7546001600160a01b031681565b60d5546040805163288c314960e21b815233600482015290516001600160a01b039092169163a230c52491602480820192602092909190829003018186803b15801561177b57600080fd5b505afa15801561178f573d6000803e3d6000fd5b505050506040513d60208110156117a557600080fd5b505180611825575060985460408051636eab9b3560e11b815233600482015290516001600160a01b039092169163dd57366a91602480820192602092909190829003018186803b1580156117f857600080fd5b505afa15801561180c573d6000803e3d6000fd5b505050506040513d602081101561182257600080fd5b50515b611876576040805162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206d656d626572732077697468207065726d697373696f6e00000000604482015290519081900360640190fd5b611216612a31565b60d6546001600160a01b031681565b609e5461010090046001600160a01b031681565b609d8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ad65780601f10610aab57610100808354040283529160200191610ad6565b6000610af461190f6120ec565b8461115285604051806060016040528060258152602001612f5660259139609a60006119396120ec565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906127dd565b6097546001600160a01b031633146119b35760405162461bcd60e51b8152600401808060200182810382526025815260200180612f316025913960400191505060405180910390fd5b80516119c690609c906020840190612cd7565b5050565b60d5546001600160a01b031681565b60d8602052600090815260409020805460019091015482565b6000610af46119ff6120ec565b8484612633565b60d35481565b6098546001600160a01b031681565b60d45481565b6001600160a01b039182166000908152609a6020908152604080832093909416825291909152205490565b60985460408051636eab9b3560e11b815233600482015290516001600160a01b039092169163dd57366a91602480820192602092909190829003018186803b158015611a9757600080fd5b505afa158015611aab573d6000803e3d6000fd5b505050506040513d6020811015611ac157600080fd5b5051611afe5760405162461bcd60e51b8152600401808060200182810382526023815260200180612f9f6023913960400191505060405180910390fd5b611b0661163f565b611b9b5760cd54831015611b5a576040805162461bcd60e51b815260206004820152601660248201527515dc9bdb99c81b995dd4995dd85c991cd05b5bdd5b9d60521b604482015290519081900360640190fd5b60d454811015611b9b5760405162461bcd60e51b8152600401808060200182810382526023815260200180612e516023913960400191505060405180910390fd5b6000611c2860646116f160d760009054906101000a90046001600160a01b03166001600160a01b031663ec79bbf06040518163ffffffff1660e01b815260040160206040518083038186803b158015611bf357600080fd5b505afa158015611c07573d6000803e3d6000fd5b505050506040513d6020811015611c1d57600080fd5b505160cd5490612971565b90506000611cb760646116f160d760009054906101000a90046001600160a01b03166001600160a01b031663ec79bbf06040518163ffffffff1660e01b815260040160206040518083038186803b158015611c8257600080fd5b505afa158015611c96573d6000803e3d6000fd5b505050506040513d6020811015611cac57600080fd5b505160cc5490612971565b9050600060cd54118015611ceb575060cd54611cd390836124f3565b851180611ceb575060cd54611ce89083612914565b85105b80611d9b575060d760009054906101000a90046001600160a01b03166001600160a01b0316635cd1bf276040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3f57600080fd5b505afa158015611d53573d6000803e3d6000fd5b505050506040513d6020811015611d6957600080fd5b505160cc54118015611d9b575060cc54611d8390826124f3565b841180611d9b575060cc54611d989082612914565b84105b15611da857611da8612a31565b6000611e3560646116f160d760009054906101000a90046001600160a01b03166001600160a01b0316634094f6d06040518163ffffffff1660e01b815260040160206040518083038186803b158015611e0057600080fd5b505afa158015611e14573d6000803e3d6000fd5b505050506040513d6020811015611e2a57600080fd5b505160d05490612971565b60d054909150611e4590826124f3565b86111561208f576000611ee460646116f160d760009054906101000a90046001600160a01b03166001600160a01b031663446074fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ea457600080fd5b505afa158015611eb8573d6000803e3d6000fd5b505050506040513d6020811015611ece57600080fd5b505160d054611ede908c90612914565b90612971565b90506000611efd60d3548761291490919063ffffffff16565b90506000611f0d83600084611678565b9050611f9260d760009054906101000a90046001600160a01b03166001600160a01b031663469048406040518163ffffffff1660e01b815260040160206040518083038186803b158015611f6057600080fd5b505afa158015611f74573d6000803e3d6000fd5b505050506040513d6020811015611f8a57600080fd5b50518261254d565b60ce54611f9f90826124f3565b60ce5560d089905560d387905560d154611fb990846124f3565b60d15560d254611fc990826124f3565b60d25560d7546040805163011a412160e61b815290517f7e4199a81d431b89a16814e8730ae102c7b9b30c1a661bc67be86f4b185b1733926001600160a01b0316916346904840916004808301926020929190829003018186803b15801561203057600080fd5b505afa158015612044573d6000803e3d6000fd5b505050506040513d602081101561205a57600080fd5b5051604080516001600160a01b0390921682526020820184905281810186905260608201859052519081900360800190a15050505b60cd86905560cc85905560d4849055604080518781526020810187905280820186905290517f2cca5baa4a19bf74a51d48a8e44e9b4c02320f6b09cda4f7c202c27f748ee6969181900360600190a1505050505050565b60cc5481565b3390565b6001600160a01b0383166121355760405162461bcd60e51b8152600401808060200182810382526024815260200180612ee26024913960400191505060405180910390fd5b6001600160a01b03821661217a5760405162461bcd60e51b8152600401808060200182810382526022815260200180612db16022913960400191505060405180910390fd5b6001600160a01b038084166000818152609a6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006121e730612ab4565b15905090565b6001600160a01b0382166122325760405162461bcd60e51b8152600401808060200182810382526023815260200180612d8e6023913960400191505060405180910390fd5b6001600160a01b0381166122775760405162461bcd60e51b815260040180806020018281038252602a815260200180612e27602a913960400191505060405180910390fd5b609780546001600160a01b038085166001600160a01b0319928316179283905560988054858316931692909217918290556040805193821684529116602083015280517f3e8606e62f2e1b31fe8de392ccbcf2e05d32ed928a9257667d53f811447452519281900390910190a15050565b600054610100900460ff168061230157506123016121dc565b8061230f575060005460ff16155b61234a5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612375576000805460ff1961ff0019909116610100171660011790555b61237d612aba565b6123878383612b5a565b8015612399576000805461ff00191690555b505050565b600054610100900460ff16806123b757506123b76121dc565b806123c5575060005460ff16155b6124005760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff1615801561242b576000805460ff1961ff0019909116610100171660011790555b612433612c32565b8015612445576000805461ff00191690555b50565b600054610100900460ff168061246157506124616121dc565b8061246f575060005460ff16155b6124aa5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff161580156124d5576000805460ff1961ff0019909116610100171660011790555b6065805460ff191690558015612445576000805461ff001916905550565b60008282018381101561115b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166125a8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b609b546125b590826124f3565b609b556001600160a01b0382166000908152609960205260409020546125db90826124f3565b6001600160a01b03831660008181526099602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b61263b61163f565b15612680576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001600160a01b0383166126c55760405162461bcd60e51b8152600401808060200182810382526025815260200180612ebd6025913960400191505060405180910390fd5b6001600160a01b03821661270a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612d6b6023913960400191505060405180910390fd5b612715838383612399565b61275281604051806060016040528060268152602001612dd3602691396001600160a01b03861660009081526099602052604090205491906127dd565b6001600160a01b03808516600090815260996020526040808220939093559084168152205461278190826124f3565b6001600160a01b0380841660008181526099602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561286c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612831578181015183820152602001612819565b50505050905090810190601f16801561285e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b61287c61163f565b6128c4576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128f76120ec565b604080516001600160a01b039092168252519081900360200190a1565b60008282111561296b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261298057506000610af8565b8282028284828161298d57fe5b041461115b5760405162461bcd60e51b8152600401808060200182810382526021815260200180612e746021913960400191505060405180910390fd5b6000808211612a20576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612a2957fe5b049392505050565b612a3961163f565b15612a7e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128f76120ec565b3b151590565b600054610100900460ff1680612ad35750612ad36121dc565b80612ae1575060005460ff16155b612b1c5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612433576000805460ff1961ff0019909116610100171660011790558015612445576000805461ff001916905550565b600054610100900460ff1680612b735750612b736121dc565b80612b81575060005460ff16155b612bbc5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612be7576000805460ff1961ff0019909116610100171660011790555b8251612bfa90609c906020860190612cd7565b508151612c0e90609d906020850190612cd7565b50609e805460ff191660121790558015612399576000805461ff0019169055505050565b600054610100900460ff1680612c4b5750612c4b6121dc565b80612c59575060005460ff16155b612c945760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612cbf576000805460ff1961ff0019909116610100171660011790555b600180558015612445576000805461ff001916905550565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d1857805160ff1916838001178555612d45565b82800160010185558215612d45579182015b82811115612d45578251825591602001919060010190612d2a565b50612d51929150612d55565b5090565b5b80821115612d515760008155600101612d5656fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373486f7264436f6e67726573732063616e206e6f7420626520307830206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644d61696e7461696e65727352656769737472792063616e206e6f7420626520307830206164647265737357726f6e67206e6577546f74616c457865637574696f6e4c6179657252657761726473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b696e67436f6e66696775726174696f6e2063616e206e6f74206265203078302061646472657373486f72643a2052657374726963746564206f6e6c7920746f20486f7264436f6e677265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f426561636f6e4465706f7369742063616e206e6f74206265203078302061646472657373486f72643a2052657374726963746564206f6e6c7920746f204d61696e7461696e6572a2646970667358221220c3bd663aad50ef3d3bbf000d604df61658dcf831784649d869c468c823acf7f564736f6c634300060c0033

Deployed Bytecode

0x6080604052600436106102295760003560e01c806375309a6811610123578063a4f29aad116100ab578063d2e69e471161006f578063d2e69e471461099a578063d900ec3c146109af578063dd62ed3e146109c4578063e4c7dfc9146109ff578063f7a5835014610a355761026a565b8063a4f29aad1461083a578063a68a4385146108eb578063a87430ba14610900578063a9059cbb1461094c578063b012935d146109855761026a565b80638456cb59116100f25780638456cb59146107ad578063918da8a5146107c257806392af00f4146107d757806395d89b41146107ec578063a457c2d7146108015761026a565b806375309a681461073657806375ce46a71461076e5780637b2c9070146107835780637ebad977146107985761026a565b80632f4327b5116101b157806358c07d771161017557806358c07d771461058d5780635c975abb146106a85780636a8f414f146106bd5780636e460d40146106ee57806370a08231146107035761026a565b80632f4327b5146104ea578063313ce567146104ff578063377b04861461052a578063395093511461053f5780633f4ba83a146105785761026a565b806318160ddd116101f857806318160ddd146103c457806318fc4716146103d95780631b15a3e4146103e15780631e6e6b00146103f657806323b872dd146104a75761026a565b806306fdde031461026f578063095ea7b3146102f95780631459457a1461034657806315546c661461039d5761026a565b3661026a576040805133815234602082015281517f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b929181900390910190a1005b600080fd5b34801561027b57600080fd5b50610284610a4a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102be5781810151838201526020016102a6565b50505050905090810190601f1680156102eb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030557600080fd5b506103326004803603604081101561031c57600080fd5b506001600160a01b038135169060200135610ae0565b604080519115158252519081900360200190f35b34801561035257600080fd5b5061039b600480360360a081101561036957600080fd5b506001600160a01b03813581169160208101358216916040820135811691606081013582169160809091013516610afe565b005b3480156103a957600080fd5b506103b2610edf565b60408051918252519081900360200190f35b3480156103d057600080fd5b506103b2610ee5565b61039b610eeb565b3480156103ed57600080fd5b506103b26110b4565b34801561040257600080fd5b506103326004803603602081101561041957600080fd5b810190602081018135600160201b81111561043357600080fd5b82018360208201111561044557600080fd5b803590602001918460018302840111600160201b8311171561046657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110ba945050505050565b3480156104b357600080fd5b50610332600480360360608110156104ca57600080fd5b506001600160a01b038135811691602081013590911690604001356110da565b3480156104f657600080fd5b506103b2611162565b34801561050b57600080fd5b50610514611168565b6040805160ff9092168252519081900360200190f35b34801561053657600080fd5b506103b2611171565b34801561054b57600080fd5b506103326004803603604081101561056257600080fd5b506001600160a01b038135169060200135611177565b34801561058457600080fd5b5061039b6111c5565b34801561059957600080fd5b5061039b600480360360808110156105b057600080fd5b810190602081018135600160201b8111156105ca57600080fd5b8201836020820111156105dc57600080fd5b803590602001918460018302840111600160201b831117156105fd57600080fd5b919390929091602081019035600160201b81111561061a57600080fd5b82018360208201111561062c57600080fd5b803590602001918460018302840111600160201b8311171561064d57600080fd5b919390929091602081019035600160201b81111561066a57600080fd5b82018360208201111561067c57600080fd5b803590602001918460018302840111600160201b8311171561069d57600080fd5b919350915035611218565b3480156106b457600080fd5b5061033261163f565b3480156106c957600080fd5b506106d2611648565b604080516001600160a01b039092168252519081900360200190f35b3480156106fa57600080fd5b506103b2611657565b34801561070f57600080fd5b506103b26004803603602081101561072657600080fd5b50356001600160a01b031661165d565b34801561074257600080fd5b506103b26004803603606081101561075957600080fd5b50803590602081013515159060400135611678565b34801561077a57600080fd5b506103b2611715565b34801561078f57600080fd5b506103b261171b565b3480156107a457600080fd5b506106d2611721565b3480156107b957600080fd5b5061039b611730565b3480156107ce57600080fd5b506106d261187e565b3480156107e357600080fd5b506106d261188d565b3480156107f857600080fd5b506102846118a1565b34801561080d57600080fd5b506103326004803603604081101561082457600080fd5b506001600160a01b038135169060200135611902565b34801561084657600080fd5b5061039b6004803603602081101561085d57600080fd5b810190602081018135600160201b81111561087757600080fd5b82018360208201111561088957600080fd5b803590602001918460018302840111600160201b831117156108aa57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061196a945050505050565b3480156108f757600080fd5b506106d26119ca565b34801561090c57600080fd5b506109336004803603602081101561092357600080fd5b50356001600160a01b03166119d9565b6040805192835260208301919091528051918290030190f35b34801561095857600080fd5b506103326004803603604081101561096f57600080fd5b506001600160a01b0381351690602001356119f2565b34801561099157600080fd5b506103b2611a06565b3480156109a657600080fd5b506106d2611a0c565b3480156109bb57600080fd5b506103b2611a1b565b3480156109d057600080fd5b506103b2600480360360408110156109e757600080fd5b506001600160a01b0381358116916020013516611a21565b348015610a0b57600080fd5b5061039b60048036036060811015610a2257600080fd5b5080359060208101359060400135611a4c565b348015610a4157600080fd5b506103b26120e6565b609c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ad65780601f10610aab57610100808354040283529160200191610ad6565b820191906000526020600020905b815481529060010190602001808311610ab957829003601f168201915b5050505050905090565b6000610af4610aed6120ec565b84846120f0565b5060015b92915050565b600054610100900460ff1680610b175750610b176121dc565b80610b25575060005460ff16155b610b605760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015610b8b576000805460ff1961ff0019909116610100171660011790555b6001600160a01b038416610bd05760405162461bcd60e51b815260040180806020018281038252602b815260200180612f06602b913960400191505060405180910390fd5b6001600160a01b038316610c155760405162461bcd60e51b8152600401808060200182810382526024815260200180612f7b6024913960400191505060405180910390fd5b610c1f86866121ed565b60d780546001600160a01b038087166001600160a01b0319928316179283905560d6805487831690841617905560d5805486831693169290921790915560408051630fc3a78b60e11b81529051610eb59390921691631f874f1691600480820192600092909190829003018186803b158015610c9a57600080fd5b505afa158015610cae573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610cd757600080fd5b8101908080516040519392919084600160201b821115610cf657600080fd5b908301906020820185811115610d0b57600080fd5b8251600160201b811182820188101715610d2457600080fd5b82525081516020918201929091019080838360005b83811015610d51578181015183820152602001610d39565b50505050905090810190601f168015610d7e5780820380516001836020036101000a031916815260200191505b50604081815260d7546301246f4960e61b835290516001600160a01b03909116945063491bd240935060048083019350600092829003018186803b158015610dc557600080fd5b505afa158015610dd9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610e0257600080fd5b8101908080516040519392919084600160201b821115610e2157600080fd5b908301906020820185811115610e3657600080fd5b8251600160201b811182820188101715610e4f57600080fd5b82525081516020918201929091019080838360005b83811015610e7c578181015183820152602001610e64565b50505050905090810190601f168015610ea95780820380516001836020036101000a031916815260200191505b506040525050506122e8565b610ebd61239e565b610ec5612448565b8015610ed7576000805461ff00191690555b505050505050565b60d05481565b609b5490565b333214610f34576040805162461bcd60e51b815260206004820152601260248201527127b7363c903234b932b1ba1031b0b636399760711b604482015290519081900360640190fd5b60003411610f7e576040805162461bcd60e51b8152602060048201526012602482015271185b5bdd5b9d081b9bdd0818dbdc9c9958dd60721b604482015290519081900360640190fd5b610f8661163f565b15610fcb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600090815260d8602052604090208054610ff25760cf54610fee9060016124f3565b60cf555b60006110013460016000611678565b905061100d338261254d565b815461101990346124f3565b825560cb5461102890346124f3565b60cb5560ce5461103890826124f3565b60ce55604080513381526020810183905281517f7fc2fd3fd75a3920468e7ebb35c1c6c24d63052113a15ce8a4d461bf9b8c7f84929181900390910190a16040805133815234602082015281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a15050565b60d25481565b805160208183018101805160d98252928201919093012091525460ff1681565b60006110e7848484612633565b611157846110f36120ec565b61115285604051806060016040528060288152602001612e95602891396001600160a01b038a166000908152609a60205260408120906111316120ec565b6001600160a01b0316815260208101919091526040016000205491906127dd565b6120f0565b5060015b9392505050565b60ce5481565b609e5460ff1690565b60d15481565b6000610af46111846120ec565b8461115285609a60006111956120ec565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906124f3565b6097546001600160a01b0316331461120e5760405162461bcd60e51b8152600401808060200182810382526025815260200180612f316025913960400191505060405180910390fd5b611216612874565b565b60026001541415611270576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015561127d61163f565b156112c2576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60985460408051636eab9b3560e11b815233600482015290516001600160a01b039092169163dd57366a91602480820192602092909190829003018186803b15801561130d57600080fd5b505afa158015611321573d6000803e3d6000fd5b505050506040513d602081101561133757600080fd5b50516113745760405162461bcd60e51b8152600401808060200182810382526023815260200180612f9f6023913960400191505060405180910390fd5b60d9878760405180838380828437919091019485525050604051928390036020019092205460ff161591506113f29050576040805162461bcd60e51b815260206004820181905260248201527f56616c696461746f7220697320616c726561647920696e697469616c697a6564604482015290519081900360640190fd5b60d75460408051635cd1bf2760e01b815290516000926001600160a01b031691635cd1bf27916004808301926020929190829003018186803b15801561143757600080fd5b505afa15801561144b573d6000803e3d6000fd5b505050506040513d602081101561146157600080fd5b50519050478111156114b3576040805162461bcd60e51b815260206004820152601660248201527518dbdb991a5d1a5bdb9cc8185c99481b9bdd081b595d60521b604482015290519081900360640190fd5b60cc546114c090826124f3565b60cc81905550600160d9898960405180838380828437919091019485525050604051928390036020018320805494151560ff19909516949094179093555060d6546304512a2360e31b825260648201859052608060048301908152608483018b90526001600160a01b03909116925063228951189184918c918c918c918c918c918c918c9181906024810190604481019060a4018b8b80828437600083820152601f01601f191690910185810384528981526020019050898980828437600083820152601f01601f191690910185810383528781526020019050878780828437600081840152601f19601f8201169050808301925050509a50505050505050505050506000604051808303818588803b1580156115dc57600080fd5b505af11580156115f0573d6000803e3d6000fd5b5050604080513381526020810186905281517f01f1f0f74df26bcccf98210172a32bbbf2e3a8b0d7d33d2c47329fcb0c4e7b3295509081900390910192509050a1505060018055505050505050565b60655460ff1690565b6097546001600160a01b031681565b60cd5481565b6001600160a01b031660009081526099602052604090205490565b600060ce546000141561168c57508261115b565b600083156116ba576116b3856116ad4760cc546124f390919063ffffffff16565b90612914565b90506116d6565b6116d3836116ad4760cc546124f390919063ffffffff16565b90505b60ce54620f4240906000906116f79084906116f19085612971565b906129ca565b90506000611709836116f18a85612971565b98975050505050505050565b60cf5481565b60cb5481565b60d7546001600160a01b031681565b60d5546040805163288c314960e21b815233600482015290516001600160a01b039092169163a230c52491602480820192602092909190829003018186803b15801561177b57600080fd5b505afa15801561178f573d6000803e3d6000fd5b505050506040513d60208110156117a557600080fd5b505180611825575060985460408051636eab9b3560e11b815233600482015290516001600160a01b039092169163dd57366a91602480820192602092909190829003018186803b1580156117f857600080fd5b505afa15801561180c573d6000803e3d6000fd5b505050506040513d602081101561182257600080fd5b50515b611876576040805162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206d656d626572732077697468207065726d697373696f6e00000000604482015290519081900360640190fd5b611216612a31565b60d6546001600160a01b031681565b609e5461010090046001600160a01b031681565b609d8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ad65780601f10610aab57610100808354040283529160200191610ad6565b6000610af461190f6120ec565b8461115285604051806060016040528060258152602001612f5660259139609a60006119396120ec565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906127dd565b6097546001600160a01b031633146119b35760405162461bcd60e51b8152600401808060200182810382526025815260200180612f316025913960400191505060405180910390fd5b80516119c690609c906020840190612cd7565b5050565b60d5546001600160a01b031681565b60d8602052600090815260409020805460019091015482565b6000610af46119ff6120ec565b8484612633565b60d35481565b6098546001600160a01b031681565b60d45481565b6001600160a01b039182166000908152609a6020908152604080832093909416825291909152205490565b60985460408051636eab9b3560e11b815233600482015290516001600160a01b039092169163dd57366a91602480820192602092909190829003018186803b158015611a9757600080fd5b505afa158015611aab573d6000803e3d6000fd5b505050506040513d6020811015611ac157600080fd5b5051611afe5760405162461bcd60e51b8152600401808060200182810382526023815260200180612f9f6023913960400191505060405180910390fd5b611b0661163f565b611b9b5760cd54831015611b5a576040805162461bcd60e51b815260206004820152601660248201527515dc9bdb99c81b995dd4995dd85c991cd05b5bdd5b9d60521b604482015290519081900360640190fd5b60d454811015611b9b5760405162461bcd60e51b8152600401808060200182810382526023815260200180612e516023913960400191505060405180910390fd5b6000611c2860646116f160d760009054906101000a90046001600160a01b03166001600160a01b031663ec79bbf06040518163ffffffff1660e01b815260040160206040518083038186803b158015611bf357600080fd5b505afa158015611c07573d6000803e3d6000fd5b505050506040513d6020811015611c1d57600080fd5b505160cd5490612971565b90506000611cb760646116f160d760009054906101000a90046001600160a01b03166001600160a01b031663ec79bbf06040518163ffffffff1660e01b815260040160206040518083038186803b158015611c8257600080fd5b505afa158015611c96573d6000803e3d6000fd5b505050506040513d6020811015611cac57600080fd5b505160cc5490612971565b9050600060cd54118015611ceb575060cd54611cd390836124f3565b851180611ceb575060cd54611ce89083612914565b85105b80611d9b575060d760009054906101000a90046001600160a01b03166001600160a01b0316635cd1bf276040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3f57600080fd5b505afa158015611d53573d6000803e3d6000fd5b505050506040513d6020811015611d6957600080fd5b505160cc54118015611d9b575060cc54611d8390826124f3565b841180611d9b575060cc54611d989082612914565b84105b15611da857611da8612a31565b6000611e3560646116f160d760009054906101000a90046001600160a01b03166001600160a01b0316634094f6d06040518163ffffffff1660e01b815260040160206040518083038186803b158015611e0057600080fd5b505afa158015611e14573d6000803e3d6000fd5b505050506040513d6020811015611e2a57600080fd5b505160d05490612971565b60d054909150611e4590826124f3565b86111561208f576000611ee460646116f160d760009054906101000a90046001600160a01b03166001600160a01b031663446074fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ea457600080fd5b505afa158015611eb8573d6000803e3d6000fd5b505050506040513d6020811015611ece57600080fd5b505160d054611ede908c90612914565b90612971565b90506000611efd60d3548761291490919063ffffffff16565b90506000611f0d83600084611678565b9050611f9260d760009054906101000a90046001600160a01b03166001600160a01b031663469048406040518163ffffffff1660e01b815260040160206040518083038186803b158015611f6057600080fd5b505afa158015611f74573d6000803e3d6000fd5b505050506040513d6020811015611f8a57600080fd5b50518261254d565b60ce54611f9f90826124f3565b60ce5560d089905560d387905560d154611fb990846124f3565b60d15560d254611fc990826124f3565b60d25560d7546040805163011a412160e61b815290517f7e4199a81d431b89a16814e8730ae102c7b9b30c1a661bc67be86f4b185b1733926001600160a01b0316916346904840916004808301926020929190829003018186803b15801561203057600080fd5b505afa158015612044573d6000803e3d6000fd5b505050506040513d602081101561205a57600080fd5b5051604080516001600160a01b0390921682526020820184905281810186905260608201859052519081900360800190a15050505b60cd86905560cc85905560d4849055604080518781526020810187905280820186905290517f2cca5baa4a19bf74a51d48a8e44e9b4c02320f6b09cda4f7c202c27f748ee6969181900360600190a1505050505050565b60cc5481565b3390565b6001600160a01b0383166121355760405162461bcd60e51b8152600401808060200182810382526024815260200180612ee26024913960400191505060405180910390fd5b6001600160a01b03821661217a5760405162461bcd60e51b8152600401808060200182810382526022815260200180612db16022913960400191505060405180910390fd5b6001600160a01b038084166000818152609a6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006121e730612ab4565b15905090565b6001600160a01b0382166122325760405162461bcd60e51b8152600401808060200182810382526023815260200180612d8e6023913960400191505060405180910390fd5b6001600160a01b0381166122775760405162461bcd60e51b815260040180806020018281038252602a815260200180612e27602a913960400191505060405180910390fd5b609780546001600160a01b038085166001600160a01b0319928316179283905560988054858316931692909217918290556040805193821684529116602083015280517f3e8606e62f2e1b31fe8de392ccbcf2e05d32ed928a9257667d53f811447452519281900390910190a15050565b600054610100900460ff168061230157506123016121dc565b8061230f575060005460ff16155b61234a5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612375576000805460ff1961ff0019909116610100171660011790555b61237d612aba565b6123878383612b5a565b8015612399576000805461ff00191690555b505050565b600054610100900460ff16806123b757506123b76121dc565b806123c5575060005460ff16155b6124005760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff1615801561242b576000805460ff1961ff0019909116610100171660011790555b612433612c32565b8015612445576000805461ff00191690555b50565b600054610100900460ff168061246157506124616121dc565b8061246f575060005460ff16155b6124aa5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff161580156124d5576000805460ff1961ff0019909116610100171660011790555b6065805460ff191690558015612445576000805461ff001916905550565b60008282018381101561115b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166125a8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b609b546125b590826124f3565b609b556001600160a01b0382166000908152609960205260409020546125db90826124f3565b6001600160a01b03831660008181526099602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b61263b61163f565b15612680576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001600160a01b0383166126c55760405162461bcd60e51b8152600401808060200182810382526025815260200180612ebd6025913960400191505060405180910390fd5b6001600160a01b03821661270a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612d6b6023913960400191505060405180910390fd5b612715838383612399565b61275281604051806060016040528060268152602001612dd3602691396001600160a01b03861660009081526099602052604090205491906127dd565b6001600160a01b03808516600090815260996020526040808220939093559084168152205461278190826124f3565b6001600160a01b0380841660008181526099602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561286c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612831578181015183820152602001612819565b50505050905090810190601f16801561285e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b61287c61163f565b6128c4576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128f76120ec565b604080516001600160a01b039092168252519081900360200190a1565b60008282111561296b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261298057506000610af8565b8282028284828161298d57fe5b041461115b5760405162461bcd60e51b8152600401808060200182810382526021815260200180612e746021913960400191505060405180910390fd5b6000808211612a20576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612a2957fe5b049392505050565b612a3961163f565b15612a7e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128f76120ec565b3b151590565b600054610100900460ff1680612ad35750612ad36121dc565b80612ae1575060005460ff16155b612b1c5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612433576000805460ff1961ff0019909116610100171660011790558015612445576000805461ff001916905550565b600054610100900460ff1680612b735750612b736121dc565b80612b81575060005460ff16155b612bbc5760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612be7576000805460ff1961ff0019909116610100171660011790555b8251612bfa90609c906020860190612cd7565b508151612c0e90609d906020850190612cd7565b50609e805460ff191660121790558015612399576000805461ff0019169055505050565b600054610100900460ff1680612c4b5750612c4b6121dc565b80612c59575060005460ff16155b612c945760405162461bcd60e51b815260040180806020018281038252602e815260200180612df9602e913960400191505060405180910390fd5b600054610100900460ff16158015612cbf576000805460ff1961ff0019909116610100171660011790555b600180558015612445576000805461ff001916905550565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d1857805160ff1916838001178555612d45565b82800160010185558215612d45579182015b82811115612d45578251825591602001919060010190612d2a565b50612d51929150612d55565b5090565b5b80821115612d515760008155600101612d5656fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373486f7264436f6e67726573732063616e206e6f7420626520307830206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644d61696e7461696e65727352656769737472792063616e206e6f7420626520307830206164647265737357726f6e67206e6577546f74616c457865637574696f6e4c6179657252657761726473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735374616b696e67436f6e66696775726174696f6e2063616e206e6f74206265203078302061646472657373486f72643a2052657374726963746564206f6e6c7920746f20486f7264436f6e677265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f426561636f6e4465706f7369742063616e206e6f74206265203078302061646472657373486f72643a2052657374726963746564206f6e6c7920746f204d61696e7461696e6572a2646970667358221220c3bd663aad50ef3d3bbf000d604df61658dcf831784649d869c468c823acf7f564736f6c634300060c0033

Deployed Bytecode Sourcemap

53598:11596:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57657:36;;;57671:10;57657:36;;57683:9;57657:36;;;;;;;;;;;;;;;;;53598:11596;;;;;44633:91;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46743:160;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46743:160:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;56661:945;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56661:945:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;54112:36;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;45732:99;;;;;;;;;;;;;:::i;63074:760::-;;;:::i;54290:36::-;;;;;;;;;;;;;:::i;55266:52::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;55266:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;55266:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55266:52:0;;-1:-1:-1;55266:52:0;;-1:-1:-1;;;;;55266:52:0:i;47385:312::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47385:312:0;;;;;;;;;;;;;;;;;:::i;53929:30::-;;;;;;;;;;;;;:::i;45576:91::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;54201:38;;;;;;;;;;;;;:::i;48106:218::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48106:218:0;;;;;;;;:::i;58254:89::-;;;;;;;;;;;;;:::i;62041:924::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62041:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62041:924:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62041:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62041:924:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62041:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62041:924:0;;;;;;;;;;;;-1:-1:-1;62041:924:0;-1:-1:-1;62041:924:0;;:::i;16837:86::-;;;;;;;;;;;;;:::i;41163:27::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;41163:27:0;;;;;;;;;;;;;;53850:36;;;;;;;;;;;;;:::i;45894:118::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45894:118:0;-1:-1:-1;;;;;45894:118:0;;:::i;64296:895::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64296:895:0;;;;;;;;;;;;;;:::i;54026:28::-;;;;;;;;;;;;;:::i;53674:32::-;;;;;;;;;;;;;:::i;54817:49::-;;;;;;;;;;;;;:::i;57878:211::-;;;;;;;;;;;;;:::i;54715:35::-;;;;;;;;;;;;;:::i;43151:25::-;;;;;;;;;;;;;:::i;44843:95::-;;;;;;;;;;;;;:::i;48827:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48827:269:0;;;;;;;;:::i;44448:115::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;44448:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;44448:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44448:115:0;;-1:-1:-1;44448:115:0;;-1:-1:-1;;;;;44448:115:0:i;54592:63::-;;;;;;;;;;;;;:::i;54917:37::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54917:37:0;-1:-1:-1;;;;;54917:37:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;46225:166;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46225:166:0;;;;;;;;:::i;54384:45::-;;;;;;;;;;;;;:::i;41197:47::-;;;;;;;;;;;;;:::i;54480:36::-;;;;;;;;;;;;;:::i;46454:142::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46454:142:0;;;;;;;;;;:::i;59125:2774::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59125:2774:0;;;;;;;;;;;;:::i;53759:42::-;;;;;;;;;;;;;:::i;44633:91::-;44711:5;44704:12;;;;;;;;-1:-1:-1;;44704:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44678:13;;44704:12;;44711:5;;44704:12;;44711:5;44704:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44633:91;:::o;46743:160::-;46817:4;46834:39;46843:12;:10;:12::i;:::-;46857:7;46866:6;46834:8;:39::i;:::-;-1:-1:-1;46891:4:0;46743:160;;;;;:::o;56661:945::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;10879:101;-1:-1:-1;;;;;56934:35:0;::::1;56926:91;;;;-1:-1:-1::0;;;56926:91:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;57036:28:0;::::1;57028:77;;;;-1:-1:-1::0;;;57028:77:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57118:62;57144:13;57159:20;57118:25;:62::i;:::-;57191:20;:67:::0;;-1:-1:-1;;;;;57191:67:0;;::::1;-1:-1:-1::0;;;;;;57191:67:0;;::::1;;::::0;;;;57269:13:::1;:46:::0;;;;::::1;::::0;;::::1;;::::0;;57326:27:::1;:88:::0;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;57440:40:::1;::::0;;-1:-1:-1;;;57440:40:0;;;;57427:98:::1;::::0;57440:20;;::::1;::::0;:38:::1;::::0;:40:::1;::::0;;::::1;::::0;57191:20:::1;::::0;57440:40;;;;;;;;:20;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;57440:40:0::1;::::0;::::1;;::::0;::::1;::::0;::::1;;;;;::::0;::::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;57440:40:0::1;;;;;;::::0;::::1;;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;;;::::0;::::1;;::::0;;-1:-1:-1;;;57440:40:0;::::1;::::0;;::::1;::::0;-1:-1:-1;57440:40:0::1;;;;;::::0;::::1;;::::0;;-1:-1:-1;57440:40:0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;;::::1;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;57440:40:0::1;::::0;;;57482:20:::1;::::0;-1:-1:-1;;;57482:42:0;;;;-1:-1:-1;;;;;57482:20:0;;::::1;::::0;-1:-1:-1;57482:40:0::1;::::0;-1:-1:-1;57482:42:0::1;::::0;;::::1;::::0;-1:-1:-1;57482:20:0::1;::::0;:42;;;;;:20;:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;57482:42:0::1;::::0;::::1;;::::0;::::1;::::0;::::1;;;;;::::0;::::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;57482:42:0::1;;;;;;::::0;::::1;;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;;;::::0;::::1;;::::0;;-1:-1:-1;;;57482:42:0;::::1;::::0;;::::1;::::0;-1:-1:-1;57482:42:0::1;;;;;::::0;::::1;;::::0;;-1:-1:-1;57482:42:0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;;::::1;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;57427:12;:98::i;:::-;57536:24;:22;:24::i;:::-;57571:27;:25;:27::i;:::-;11010:14:::0;11006:68;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;11006:68;56661:945;;;;;;:::o;54112:36::-;;;;:::o;45732:99::-;45811:12;;45732:99;:::o;63074:760::-;55999:10;56013:9;55999:23;55991:54;;;;;-1:-1:-1;;;55991:54:0;;;;;;;;;;;;-1:-1:-1;;;55991:54:0;;;;;;;;;;;;;;;56206:1:::1;56194:9;:13;56186:44;;;::::0;;-1:-1:-1;;;56186:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;56186:44:0;;;;;;;;;;;;;::::1;;17163:8:::2;:6;:8::i;:::-;17162:9;17154:38;;;::::0;;-1:-1:-1;;;17154:38:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;17154:38:0;;;;;;;;;;;;;::::2;;63227:10:::3;63201:17;63221::::0;;;:5:::3;:17;::::0;;;;63254:20;;63251:93:::3;;63312:13;::::0;:20:::3;::::0;63330:1:::3;63312:17;:20::i;:::-;63296:13;:36:::0;63251:93:::3;63356:21;63380:41;63402:9;63413:4;63419:1;63380:21;:41::i;:::-;63356:65;;63465:32;63471:10;63483:13;63465:5;:32::i;:::-;63564:20:::0;;:35:::3;::::0;63589:9:::3;63564:24;:35::i;:::-;63541:58:::0;;63630:17:::3;::::0;:32:::3;::::0;63652:9:::3;63630:21;:32::i;:::-;63610:17;:52:::0;63691:15:::3;::::0;:34:::3;::::0;63711:13;63691:19:::3;:34::i;:::-;63673:15;:52:::0;63743:37:::3;::::0;;63754:10:::3;63743:37:::0;;::::3;::::0;::::3;::::0;;;;;::::3;::::0;;;;;;;;;::::3;63796:30;::::0;;63804:10:::3;63796:30:::0;;63816:9:::3;63796:30;::::0;::::3;::::0;;;::::3;::::0;;;;;;;;;::::3;17203:1;;63074:760::o:0;54290:36::-;;;;:::o;55266:52::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47385:312::-;47482:4;47499:36;47509:6;47517:9;47528:6;47499:9;:36::i;:::-;47546:121;47555:6;47563:12;:10;:12::i;:::-;47577:89;47615:6;47577:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47577:19:0;;;;;;:11;:19;;;;;;47597:12;:10;:12::i;:::-;-1:-1:-1;;;;;47577:33:0;;;;;;;;;;;;-1:-1:-1;47577:33:0;;;:89;:37;:89::i;:::-;47546:8;:121::i;:::-;-1:-1:-1;47685:4:0;47385:312;;;;;;:::o;53929:30::-;;;;:::o;45576:91::-;45650:9;;;;45576:91;:::o;54201:38::-;;;;:::o;48106:218::-;48194:4;48211:83;48220:12;:10;:12::i;:::-;48234:7;48243:50;48282:10;48243:11;:25;48255:12;:10;:12::i;:::-;-1:-1:-1;;;;;48243:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;48243:25:0;;;:34;;;;;;;;;;;:38;:50::i;58254:89::-;41696:12;;-1:-1:-1;;;;;41696:12:0;41682:10;:26;41674:76;;;;-1:-1:-1;;;41674:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58325:10:::1;:8;:10::i;:::-;58254:89::o:0;62041:924::-;13115:1;13878:7;;:19;;13870:63;;;;;-1:-1:-1;;;13870:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13115:1;14011:7;:18;17163:8:::1;:6;:8::i;:::-;17162:9;17154:38;;;::::0;;-1:-1:-1;;;17154:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;17154:38:0;;;;;;;;;;;;;::::1;;41484:19:::2;::::0;:44:::2;::::0;;-1:-1:-1;;;41484:44:0;;41517:10:::2;41484:44;::::0;::::2;::::0;;;-1:-1:-1;;;;;41484:19:0;;::::2;::::0;:32:::2;::::0;:44;;;;;::::2;::::0;;;;;;;;;:19;:44;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;41484:44:0;41476:92:::2;;;;-1:-1:-1::0;;;41476:92:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62322:22:::3;62345:6;;62322:30;;;;;;;;;::::0;;;::::3;::::0;;;-1:-1:-1;;62322:30:0::3;::::0;;;;;::::3;::::0;;;;;::::3;;:39;::::0;-1:-1:-1;62314:84:0::3;::::0;-1:-1:-1;62314:84:0::3;;::::0;;-1:-1:-1;;;62314:84:0;;::::3;;::::0;::::3;::::0;;;;;;;::::3;::::0;;;;;;;;;;;;;::::3;;62438:20;::::0;:43:::3;::::0;;-1:-1:-1;;;62438:43:0;;;;62411:24:::3;::::0;-1:-1:-1;;;;;62438:20:0::3;::::0;:41:::3;::::0;:43:::3;::::0;;::::3;::::0;::::3;::::0;;;;;;;;:20;:43;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;62438:43:0;;-1:-1:-1;62502:21:0::3;:41:::0;-1:-1:-1;62502:41:0::3;62494:76;;;::::0;;-1:-1:-1;;;62494:76:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;62494:76:0;;;;;;;;;;;;;::::3;;62649:27;::::0;:49:::3;::::0;62681:16;62649:31:::3;:49::i;:::-;62619:27;:79;;;;62742:4;62709:22;62732:6;;62709:30;;;;;;;;;::::0;;;::::3;::::0;;;-1:-1:-1;;62709:30:0::3;::::0;;;;;::::3;::::0;;;:37;;;::::3;;-1:-1:-1::0;;62709:37:0;;::::3;::::0;;;::::3;::::0;;;-1:-1:-1;62759:13:0::3;::::0;-1:-1:-1;;;62759:132:0;;;;;;;;;::::3;::::0;::::3;::::0;;;;;;;;;-1:-1:-1;;;;;62759:13:0;;::::3;::::0;-1:-1:-1;62759:21:0::3;::::0;62802:16;;62830:6;;;;62838:22;;;;62862:9;;;;62873:17;;62759:132;;;;;;;;;;;;62830:6;;;;62759:132;::::3;;::::0;;::::3;::::0;::::3;;-1:-1:-1::0;;62759:132:0::3;::::0;;::::3;::::0;;::::3;::::0;;;;;::::3;;::::0;-1:-1:-1;62759:132:0;;;;;::::3;;::::0;;::::3;::::0;::::3;;-1:-1:-1::0;;62759:132:0::3;::::0;;::::3;::::0;;::::3;::::0;;;;;::::3;;::::0;-1:-1:-1;62759:132:0;;;;;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;62909:48:0::3;::::0;;62928:10:::3;62909:48:::0;;::::3;::::0;::::3;::::0;;;;;::::3;::::0;-1:-1:-1;62909:48:0;;;;;;;;-1:-1:-1;62909:48:0;-1:-1:-1;62909:48:0::3;-1:-1:-1::0;;13071:1:0;14190:22;;-1:-1:-1;;;;;;62041:924:0:o;16837:86::-;16908:7;;;;16837:86;:::o;41163:27::-;;;-1:-1:-1;;;;;41163:27:0;;:::o;53850:36::-;;;;:::o;45894:118::-;-1:-1:-1;;;;;45986:18:0;45959:7;45986:18;;;:9;:18;;;;;;;45894:118::o;64296:895::-;64429:7;64452:15;;64471:1;64452:20;64449:68;;;-1:-1:-1;64496:9:0;64489:16;;64449:68;64529:28;64573:14;64570:285;;;64627:69;64686:9;64627:54;64659:21;64627:27;;:31;;:54;;;;:::i;:::-;:58;;:69::i;:::-;64604:92;;64570:285;;;64752:91;64811:31;64752:54;64784:21;64752:27;;:31;;:54;;;;:::i;:91::-;64729:114;;64570:285;64937:15;;64894:7;;64867:24;;64937:63;;64979:20;;64937:37;;64894:7;64937:19;:37::i;:::-;:41;;:63::i;:::-;64914:86;-1:-1:-1;65091:14:0;65108:49;65140:16;65108:27;:9;64914:86;65108:13;:27::i;:49::-;65091:66;64296:895;-1:-1:-1;;;;;;;;64296:895:0:o;54026:28::-;;;;:::o;53674:32::-;;;;:::o;54817:49::-;;;-1:-1:-1;;;;;54817:49:0;;:::o;57878:211::-;57933:27;;:48;;;-1:-1:-1;;;57933:48:0;;57970:10;57933:48;;;;;;-1:-1:-1;;;;;57933:27:0;;;;:36;;:48;;;;;;;;;;;;;;;:27;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57933:48:0;;:96;;-1:-1:-1;57985:19:0;;:44;;;-1:-1:-1;;;57985:44:0;;58018:10;57985:44;;;;;;-1:-1:-1;;;;;57985:19:0;;;;:32;;:44;;;;;;;;;;;;;;;:19;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57985:44:0;57933:96;57925:137;;;;;-1:-1:-1;;;57925:137:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;58073:8;:6;:8::i;54715:35::-;;;-1:-1:-1;;;;;54715:35:0;;:::o;43151:25::-;;;;;;-1:-1:-1;;;;;43151:25:0;;:::o;44843:95::-;44923:7;44916:14;;;;;;;;-1:-1:-1;;44916:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44890:13;;44916:14;;44923:7;;44916:14;;44923:7;44916:14;;;;;;;;;;;;;;;;;;;;;;;;48827:269;48920:4;48937:129;48946:12;:10;:12::i;:::-;48960:7;48969:96;49008:15;48969:96;;;;;;;;;;;;;;;;;:11;:25;48981:12;:10;:12::i;:::-;-1:-1:-1;;;;;48969:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;48969:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;44448:115::-;41696:12;;-1:-1:-1;;;;;41696:12:0;41682:10;:26;41674:76;;;;-1:-1:-1;;;41674:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44535:20;;::::1;::::0;:5:::1;::::0;:20:::1;::::0;::::1;::::0;::::1;:::i;:::-;;44448:115:::0;:::o;54592:63::-;;;-1:-1:-1;;;;;54592:63:0;;:::o;54917:37::-;;;;;;;;;;;;;;;;;;;:::o;46225:166::-;46302:4;46319:42;46329:12;:10;:12::i;:::-;46343:9;46354:6;46319:9;:42::i;54384:45::-;;;;:::o;41197:47::-;;;-1:-1:-1;;;;;41197:47:0;;:::o;54480:36::-;;;;:::o;46454:142::-;-1:-1:-1;;;;;46561:18:0;;;46534:7;46561:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;46454:142::o;59125:2774::-;41484:19;;:44;;;-1:-1:-1;;;41484:44:0;;41517:10;41484:44;;;;;;-1:-1:-1;;;;;41484:19:0;;;;:32;;:44;;;;;;;;;;;;;;;:19;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41484:44:0;41476:92;;;;-1:-1:-1;;;41476:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59296:8:::1;:6;:8::i;:::-;59292:234;;59349:21;;59329:16;:41;;59321:76;;;::::0;;-1:-1:-1;;;59321:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;59321:76:0;;;;;;;;;;;;;::::1;;59453:21;;59420:29;:54;;59412:102;;;;-1:-1:-1::0;;;59412:102:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59538:23;59564:88;59648:3;59564:79;59590:20;;;;;;;;;-1:-1:-1::0;;;;;59590:20:0::1;-1:-1:-1::0;;;;;59590:50:0::1;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;59590:52:0;59564:21:::1;::::0;;:25:::1;:79::i;:88::-;59538:114;;59663:31;59697:94;59787:3;59697:85;59729:20;;;;;;;;;-1:-1:-1::0;;;;;59729:20:0::1;-1:-1:-1::0;;;;;59729:50:0::1;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;59729:52:0;59697:27:::1;::::0;;:31:::1;:85::i;:94::-;59663:128;;59847:1;59823:21;;:25;:157;;;;-1:-1:-1::0;59872:21:0::1;::::0;:42:::1;::::0;59898:15;59872:25:::1;:42::i;:::-;59853:16;:61;:126;;;-1:-1:-1::0;59937:21:0::1;::::0;:42:::1;::::0;59963:15;59937:25:::1;:42::i;:::-;59918:16;:61;59853:126;59822:452;;;;60029:20;;;;;;;;;-1:-1:-1::0;;;;;60029:20:0::1;-1:-1:-1::0;;;;;60029:41:0::1;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;60029:43:0;59999:27:::1;::::0;:73:::1;:274:::0;::::1;;;-1:-1:-1::0;60123:27:0::1;::::0;:56:::1;::::0;60155:23;60123:31:::1;:56::i;:::-;60090:30;:89;:182;;;-1:-1:-1::0;60216:27:0::1;::::0;:56:::1;::::0;60248:23;60216:31:::1;:56::i;:::-;60183:30;:89;60090:182;59804:526;;;60310:8;:6;:8::i;:::-;60342:33;60378:84;60458:3;60378:75;60404:20;;;;;;;;;-1:-1:-1::0;;;;;60404:20:0::1;-1:-1:-1::0;;;;;60404:46:0::1;;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;60404:48:0;60378:21:::1;::::0;;:25:::1;:75::i;:84::-;60498:21;::::0;60342:120;;-1:-1:-1;60498:52:0::1;::::0;60342:120;60498:25:::1;:52::i;:::-;60479:16;:71;60475:1116;;;60567:31;60601:102;60699:3;60601:93;60651:20;;;;;;;;;-1:-1:-1::0;;;;;60651:20:0::1;-1:-1:-1::0;;;;;60651:40:0::1;;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;60651:42:0;60623:21:::1;::::0;60602:43:::1;::::0;:16;;:20:::1;:43::i;:::-;60601:49:::0;::::1;:93::i;:102::-;60567:136;;60718:39;60760:65;60794:30;;60760:29;:33;;:65;;;;:::i;:::-;60718:107;;60840:28;60872:86;60894:23;60919:5;60926:31;60872:21;:86::i;:::-;60840:118;;60977:64;60983:20;;;;;;;;;-1:-1:-1::0;;;;;60983:20:0::1;-1:-1:-1::0;;;;;60983:33:0::1;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;60983:35:0;61020:20;60977:5:::1;:64::i;:::-;61076:15;::::0;:41:::1;::::0;61096:20;61076:19:::1;:41::i;:::-;61058:15;:59:::0;61132:21:::1;:40:::0;;;61187:30:::1;:62:::0;;;61290:23:::1;::::0;:52:::1;::::0;61318:23;61290:27:::1;:52::i;:::-;61264:23;:78:::0;61381:21:::1;::::0;:47:::1;::::0;61407:20;61381:25:::1;:47::i;:::-;61357:21;:71:::0;61463:20:::1;::::0;:35:::1;::::0;;-1:-1:-1;;;61463:35:0;;;;61450:129:::1;::::0;-1:-1:-1;;;;;61463:20:0::1;::::0;:33:::1;::::0;:35:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:20;:35;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;61463:35:0;61450:129:::1;::::0;;-1:-1:-1;;;;;61450:129:0;;::::1;::::0;;61463:35:::1;61450:129:::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;::::1;60475:1116;;;;61603:21;:40:::0;;;61654:27:::1;:61:::0;;;61726:21:::1;:53:::0;;;61797:94:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;;;;::::1;41579:1;;;59125:2774:::0;;;:::o;53759:42::-;;;;:::o;15123:106::-;15211:10;15123:106;:::o;51866:346::-;-1:-1:-1;;;;;51968:19:0;;51960:68;;;;-1:-1:-1;;;51960:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52047:21:0;;52039:68;;;;-1:-1:-1;;;52039:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52120:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;52172:32;;;;;;;;;;;;;;;;;51866:346;;;:::o;11174:125::-;11222:4;11247:44;11285:4;11247:29;:44::i;:::-;11246:45;11239:52;;11174:125;:::o;41999:529::-;-1:-1:-1;;;;;42150:27:0;;42142:75;;;;-1:-1:-1;;;42142:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42236:34:0;;42228:89;;;;-1:-1:-1;;;42228:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42330:12;:28;;-1:-1:-1;;;;;42330:28:0;;;-1:-1:-1;;;;;;42330:28:0;;;;;;;;42369:19;:64;;;;;;;;;;;;;;;42451:69;;;42477:12;;;42451:69;;42499:19;;42451:69;;;;;;;;;;;;;;;;41999:529;;:::o;43872:181::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;10879:101;43970:26:::1;:24;:26::i;:::-;44007:38;44030:5;44037:7;44007:22;:38::i;:::-;11010:14:::0;11006:68;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;11006:68;43872:181;;;:::o;13157:108::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;10879:101;13223:34:::1;:32;:34::i;:::-;11010:14:::0;11006:68;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;11006:68;13157:108;:::o;16645:92::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;10879:101;16714:7:::1;:15:::0;;-1:-1:-1;;16714:15:0::1;::::0;;11006:68;;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;16645:92;:::o;23675:179::-;23733:7;23765:5;;;23789:6;;;;23781:46;;;;;-1:-1:-1;;;23781:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;50421:316;-1:-1:-1;;;;;50505:21:0;;50497:65;;;;;-1:-1:-1;;;50497:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;50590:12;;:24;;50607:6;50590:16;:24::i;:::-;50575:12;:39;-1:-1:-1;;;;;50646:18:0;;;;;;:9;:18;;;;;;:30;;50669:6;50646:22;:30::i;:::-;-1:-1:-1;;;;;50625:18:0;;;;;;:9;:18;;;;;;;;:51;;;;50692:37;;;;;;;50625:18;;;;50692:37;;;;;;;;;;50421:316;;:::o;49586:553::-;17163:8;:6;:8::i;:::-;17162:9;17154:38;;;;;-1:-1:-1;;;17154:38:0;;;;;;;;;;;;-1:-1:-1;;;17154:38:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;49706:20:0;::::1;49698:70;;;;-1:-1:-1::0;;;49698:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;49787:23:0;::::1;49779:71;;;;-1:-1:-1::0;;;49779:71:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49863:47;49884:6;49892:9;49903:6;49863:20;:47::i;:::-;49943:71;49965:6;49943:71;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;49943:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;;;:71;:21:::1;:71::i;:::-;-1:-1:-1::0;;;;;49923:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;;:91;;;;50048:20;;::::1;::::0;;;;:32:::1;::::0;50073:6;50048:24:::1;:32::i;:::-;-1:-1:-1::0;;;;;50025:20:0;;::::1;;::::0;;;:9:::1;:20;::::0;;;;;;;;:55;;;;50096:35;;;;;;;50025:20;;50096:35;;::::1;::::0;::::1;::::0;;;;;;;::::1;49586:553:::0;;;:::o;26502:166::-;26588:7;26624:12;26616:6;;;;26608:29;;;;-1:-1:-1;;;26608:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;26655:5:0;;;26502:166::o;17896:120::-;17440:8;:6;:8::i;:::-;17432:41;;;;;-1:-1:-1;;;17432:41:0;;;;;;;;;;;;-1:-1:-1;;;17432:41:0;;;;;;;;;;;;;;;17955:7:::1;:15:::0;;-1:-1:-1;;17955:15:0::1;::::0;;17986:22:::1;17995:12;:10;:12::i;:::-;17986:22;::::0;;-1:-1:-1;;;;;17986:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;17896:120::o:0;24137:158::-;24195:7;24228:1;24223;:6;;24215:49;;;;;-1:-1:-1;;;24215:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24282:5:0;;;24137:158::o;24554:220::-;24612:7;24636:6;24632:20;;-1:-1:-1;24651:1:0;24644:8;;24632:20;24675:5;;;24679:1;24675;:5;:1;24699:5;;;;;:10;24691:56;;;;-1:-1:-1;;;24691:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25252:153;25310:7;25342:1;25338;:5;25330:44;;;;;-1:-1:-1;;;25330:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25396:1;25392;:5;;;;;;;25252:153;-1:-1:-1;;;25252:153:0:o;17637:118::-;17163:8;:6;:8::i;:::-;17162:9;17154:38;;;;;-1:-1:-1;;;17154:38:0;;;;;;;;;;;;-1:-1:-1;;;17154:38:0;;;;;;;;;;;;;;;17697:7:::1;:14:::0;;-1:-1:-1;;17697:14:0::1;17707:4;17697:14;::::0;;17727:20:::1;17734:12;:10;:12::i;2914:422::-:0;3281:20;3320:8;;;2914:422::o;15052:65::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;11010:14;11006:68;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;15052:65;:::o;44061:182::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;10879:101;44169:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;44193:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;44221:9:0::1;:14:::0;;-1:-1:-1;;44221:14:0::1;44233:2;44221:14;::::0;;11006:68;;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;44061:182;;;:::o;13273:106::-;10718:13;;;;;;;;:33;;;10735:16;:14;:16::i;:::-;10718:50;;;-1:-1:-1;10756:12:0;;;;10755:13;10718:50;10710:109;;;;-1:-1:-1;;;10710:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:19;10855:13;;;;;;10854:14;10879:101;;;;10914:13;:20;;-1:-1:-1;;;;10914:20:0;;;;;10949:19;10930:4;10949:19;;;10879:101;13071:1:::1;13349:22:::0;;11006:68;;;;11057:5;11041:21;;-1:-1:-1;;11041:21:0;;;13273:106;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://c3bd663aad50ef3d3bbf000d604df61658dcf831784649d869c468c823acf7f5

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.