HYPE Price: $22.17 (+0.11%)
 

Overview

HYPE Balance

HyperEVM LogoHyperEVM LogoHyperEVM Logo0 HYPE

HYPE Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Verify Report255908562026-01-26 11:01:1112 mins ago1769425271IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012520.1
Verify Report255908502026-01-26 11:01:0512 mins ago1769425265IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255908422026-01-26 11:00:5812 mins ago1769425258IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012690.1
Verify Report255908362026-01-26 11:00:5213 mins ago1769425252IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255871722026-01-26 10:00:481 hr ago1769421648IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012520.1
Verify Report255871702026-01-26 10:00:461 hr ago1769421646IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255871642026-01-26 10:00:401 hr ago1769421640IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255871612026-01-26 10:00:371 hr ago1769421637IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255835202026-01-26 9:00:562 hrs ago1769418056IN
0x04EDBF39...2208A2bE6
0 HYPE0.000013850.11060802
Verify Report255835122026-01-26 9:00:482 hrs ago1769418048IN
0x04EDBF39...2208A2bE6
0 HYPE0.00001880.14816947
Verify Report255835092026-01-26 9:00:452 hrs ago1769418045IN
0x04EDBF39...2208A2bE6
0 HYPE0.000022360.17631924
Verify Report255835022026-01-26 9:00:382 hrs ago1769418038IN
0x04EDBF39...2208A2bE6
0 HYPE0.000034580.27254544
Verify Report255798762026-01-26 8:01:113 hrs ago1769414471IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012520.1
Verify Report255798742026-01-26 8:01:093 hrs ago1769414469IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255798682026-01-26 8:01:033 hrs ago1769414463IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255798602026-01-26 8:00:563 hrs ago1769414456IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255798182026-01-26 8:00:143 hrs ago1769414414IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012670.1
Verify Report255798112026-01-26 8:00:073 hrs ago1769414407IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255762152026-01-26 7:01:104 hrs ago1769410870IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012520.1
Verify Report255762132026-01-26 7:01:084 hrs ago1769410868IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255762072026-01-26 7:01:024 hrs ago1769410862IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012690.1
Verify Report255761992026-01-26 7:00:554 hrs ago1769410855IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012690.1
Verify Report255725502026-01-26 6:01:055 hrs ago1769407265IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012520.1
Verify Report255725432026-01-26 6:00:595 hrs ago1769407259IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
Verify Report255725372026-01-26 6:00:535 hrs ago1769407253IN
0x04EDBF39...2208A2bE6
0 HYPE0.000012680.1
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DataStreamConsumer

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1000 runs

Other Settings:
paris EvmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {Common} from "@chainlink/contracts/src/v0.8/llo-feeds/libraries/Common.sol";
import {IVerifierFeeManager} from "@chainlink/contracts/src/v0.8/llo-feeds/v0.3.0/interfaces/IVerifierFeeManager.sol";
import {IERC20} from "@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol";

interface IVerifierProxy {
	/**
	 * @notice Route a report to the correct verifier and (optionally) bill fees.
	 * @param payload           Full report payload (header + signed report).
	 * @param parameterPayload  ABI-encoded fee metadata.
	 */
	function verify(
		bytes calldata payload,
		bytes calldata parameterPayload
	) external payable returns (bytes memory verifierResponse);

	function verifyBulk(
		bytes[] calldata payloads,
		bytes calldata parameterPayload
	) external payable returns (bytes[] memory verifiedReports);

	function s_feeManager() external view returns (IVerifierFeeManager);
}

interface IFeeManager {
	/**
	 * @return fee, reward, totalDiscount
	 */
	function getFeeAndReward(
		address subscriber,
		bytes memory unverifiedReport,
		address quoteAddress
	) external returns (Common.Asset memory, Common.Asset memory, uint256);

	function i_linkAddress() external view returns (address);

	function i_nativeAddress() external view returns (address);

	function i_rewardManager() external view returns (address);
}

contract DataStreamConsumer {
	using SafeERC20 for IERC20;

	// ----------------- Errors -----------------
	error NothingToWithdraw();
	error NotOwner(address caller);
	error InvalidReportVersion(uint16 version);
	error NotImplemented();
    error OwnableUnauthorizedAccount(address account);
    error OwnableInvalidOwner(address owner);

	// ----------------- Report schemas -----------------
	// More info: https://docs.chain.link/data-streams/reference/report-schema

	struct ReportV2 {
		bytes32 feedId;
		uint32 validFromTimestamp;
		uint32 observationsTimestamp;
		uint192 nativeFee;
		uint192 linkFee;
		uint32 expiresAt;
		int192 benchmarkPrice;
	}

	/**
	 * @dev Data Streams report schema v3 (crypto streams).
	 *      Prices, bids and asks use 8 or 18 decimals depending on the stream.
	 */
	struct ReportV3 {
		bytes32 feedId;
		uint32 validFromTimestamp;
		uint32 observationsTimestamp;
		uint192 nativeFee;
		uint192 linkFee;
		uint32 expiresAt;
		int192 price;
		int192 bid;
		int192 ask;
	}

	/**
	 * @dev Data Streams report schema v4 (RWA streams).
	 */
	struct ReportV4 {
		bytes32 feedId;
		uint32 validFromTimestamp;
		uint32 observationsTimestamp;
		uint192 nativeFee;
		uint192 linkFee;
		uint32 expiresAt;
		int192 price;
		uint32 marketStatus;
	}

	struct OracleData {
		uint80 roundId;
		int256 answer;
		uint256 startedAt;
		uint256 updatedAt;
		uint80 answeredInRound;
	}

	// ----------------- Storage -----------------
	IVerifierProxy public immutable verifierProxy;
	uint256 public constant version = 100;
	address internal _owner;
	mapping(bytes32 => OracleData) private oracleData;
	mapping(address => bytes32) private feedIdByMiddleware;

	// ----------------- Events -----------------
	event DecodedPrice(bytes32 indexed feedId, int256 price);
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

	// ----------------- Constructor / modifier -----------------
	/**
	 * @param _verifierProxy Address of the VerifierProxy on the target network.
	 *        Addresses: https://docs.chain.link/data-streams/crypto-streams
	 */
	constructor(address _verifierProxy) {
		verifierProxy = IVerifierProxy(_verifierProxy);
		_owner = msg.sender;
	}

	/**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != msg.sender) {
            revert OwnableUnauthorizedAccount(msg.sender);
        }
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

	// ----------------- Public API -----------------

	/**
	 * @notice Verify a Data Streams report (schema v3 or v4).
	 *
	 * @dev Steps:
	 *  1. Decode the unverified report to get `reportData`.
	 *  2. Read the first two bytes → schema version (`0x0003` or `0x0004`).
	 *     - Revert if the version is unsupported.
	 *  3. Fee handling:
	 *     - Query `s_feeManager()` on the proxy.
	 *       – Non-zero → quote the fee, approve the RewardManager,
	 *         ABI-encode the fee token address for `verify()`.
	 *       – Zero     → no FeeManager; skip quoting/approval and pass `""`.
	 *  4. Call `VerifierProxy.verify()`.
	 *  5. Decode the verified report into the correct struct and emit the price.
	 *
	 *  @param unverifiedReport Full payload returned by Streams Direct.
	 *  @custom:reverts InvalidReportVersion when schema ≠ v3/v4.
	 */
	function verifyReport(bytes memory unverifiedReport) external {
		// ─── 1. & 2. Extract reportData and schema version ──
		(, bytes memory reportData) = abi.decode(unverifiedReport, (bytes32[3], bytes));

		uint16 reportVersion = (uint16(uint8(reportData[0])) << 8) | uint16(uint8(reportData[1]));
		if (reportVersion != 2 &&reportVersion != 3 && reportVersion != 4) revert InvalidReportVersion(reportVersion);

		// ─── 3. Fee handling ──
		IFeeManager feeManager = IFeeManager(address(verifierProxy.s_feeManager()));

		bytes memory parameterPayload;
		if (address(feeManager) != address(0)) {
			// FeeManager exists — always quote & approve
			address feeToken = feeManager.i_linkAddress();

			(Common.Asset memory fee, , ) = feeManager.getFeeAndReward(address(this), reportData, feeToken);

			IERC20(feeToken).approve(feeManager.i_rewardManager(), fee.amount);
			parameterPayload = abi.encode(feeToken);
		} else {
			// No FeeManager deployed on this chain
			parameterPayload = bytes("");
		}

		// ─── 4. Verify through the proxy ──
		bytes memory verified = verifierProxy.verify(unverifiedReport, parameterPayload);

		// ─── 5. Decode & store price ──
		if (reportVersion == 2) {
			// Schema v2 is not supported by this contract
			ReportV2 memory report = abi.decode(verified, (ReportV2));
			bytes32 feedId = report.feedId;
			OracleData storage data = oracleData[feedId];
			data.roundId = uint80(block.timestamp);
			data.answer = int256(report.benchmarkPrice);
			data.startedAt = report.validFromTimestamp;
			data.updatedAt = report.observationsTimestamp;
			data.answeredInRound = uint80(block.timestamp);

			emit DecodedPrice(feedId, int256(report.benchmarkPrice));
		} else if (reportVersion == 3) {
			ReportV3 memory report = abi.decode(verified, (ReportV3));
			bytes32 feedId = report.feedId;
			OracleData storage data = oracleData[feedId];
			data.roundId = uint80(block.timestamp);
			data.answer = report.price;
			data.startedAt = report.validFromTimestamp;
			data.updatedAt = report.observationsTimestamp;
			data.answeredInRound = uint80(block.timestamp);

			emit DecodedPrice(feedId, report.price);
		} else {
			ReportV4 memory report = abi.decode(verified, (ReportV4));
			bytes32 feedId = report.feedId;
			OracleData storage data = oracleData[feedId];
			data.roundId = uint80(block.timestamp);
			data.answer = report.price;
			data.startedAt = report.validFromTimestamp;
			data.updatedAt = report.observationsTimestamp;
			data.answeredInRound = uint80(block.timestamp);

			emit DecodedPrice(feedId, report.price);
		}
	}

	function description() external pure returns (string memory) {
		return "Chainlink Middleware for Data Streams";
	}

	function setFeedIdByMiddleware(address middleware, bytes32 feedId) external onlyOwner {
		feedIdByMiddleware[middleware] = feedId;
	}

	/**
	 * @notice Get data about a round
	 * @param _roundId the requested round ID
	 * @return roundId is the round ID from the aggregator for which the data was retrieved.
	 * @return answer is the answer for the given round
	 * @return startedAt is the timestamp when the round was started.
	 * @return updatedAt is the timestamp when the round last was updated.
	 * @return answeredInRound is the round ID of the round in which the answer was computed.
	 */
	function getRoundData(
		uint80 _roundId
	)
		external
		view
		returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
	{
		// This function is not implemented in this contract.
		revert NotImplemented();
	}

	function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80) {
		address middleware = msg.sender;
		bytes32 feedId = feedIdByMiddleware[middleware];

		OracleData storage data = oracleData[feedId];
		return (data.roundId, data.answer, data.startedAt, data.updatedAt, data.answeredInRound);
	}

	/**
	 * @notice Withdraw all balance of an ERC-20 token held by this contract.
	 * @param _beneficiary Address that receives the tokens.
	 * @param _token       ERC-20 token address.
	 */
	function withdrawToken(address _beneficiary, address _token) external onlyOwner {
		uint256 amount = IERC20(_token).balanceOf(address(this));
		if (amount == 0) revert NothingToWithdraw();
		IERC20(_token).safeTransfer(_beneficiary, amount);
	}
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

/*
 * @title Common
 * @author Michael Fletcher
 * @notice Common functions and structs
 */
library Common {
  // @notice The asset struct to hold the address of an asset and amount
  struct Asset {
    address assetAddress;
    uint256 amount;
  }

  // @notice Struct to hold the address and its associated weight
  struct AddressAndWeight {
    address addr;
    uint64 weight;
  }

  /**
   * @notice Checks if an array of AddressAndWeight has duplicate addresses
   * @param recipients The array of AddressAndWeight to check
   * @return bool True if there are duplicates, false otherwise
   */
  function _hasDuplicateAddresses(address[] memory recipients) internal pure returns (bool) {
    for (uint256 i = 0; i < recipients.length; ) {
      for (uint256 j = i + 1; j < recipients.length; ) {
        if (recipients[i] == recipients[j]) {
          return true;
        }
        unchecked {
          ++j;
        }
      }
      unchecked {
        ++i;
      }
    }
    return false;
  }

  /**
   * @notice Checks if an array of AddressAndWeight has duplicate addresses
   * @param recipients The array of AddressAndWeight to check
   * @return bool True if there are duplicates, false otherwise
   */
  function _hasDuplicateAddresses(Common.AddressAndWeight[] memory recipients) internal pure returns (bool) {
    for (uint256 i = 0; i < recipients.length; ) {
      for (uint256 j = i + 1; j < recipients.length; ) {
        if (recipients[i].addr == recipients[j].addr) {
          return true;
        }
        unchecked {
          ++j;
        }
      }
      unchecked {
        ++i;
      }
    }
    return false;
  }

  /**
   * @notice sorts a list of addresses numerically
   * @param arr The array of addresses to sort
   * @param left the start index
   * @param right the end index
   */
  function _quickSort(address[] memory arr, int256 left, int256 right) internal pure {
    int256 i = left;
    int256 j = right;
    if (i == j) return;
    address pivot = arr[uint256(left + (right - left) / 2)];
    while (i <= j) {
      while (uint160(arr[uint256(i)]) < uint160(pivot)) i++;
      while (uint160(pivot) < uint160(arr[uint256(j)])) j--;
      if (i <= j) {
        (arr[uint256(i)], arr[uint256(j)]) = (arr[uint256(j)], arr[uint256(i)]);
        i++;
        j--;
      }
    }
    if (left < j) _quickSort(arr, left, j);
    if (i < right) _quickSort(arr, i, right);
  }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {IERC165} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol";
import {Common} from "../../libraries/Common.sol";

interface IVerifierFeeManager is IERC165 {
  /**
   * @notice Handles fees for a report from the subscriber and manages rewards
   * @param payload report to process the fee for
   * @param parameterPayload fee payload
   * @param subscriber address of the fee will be applied
   */
  function processFee(bytes calldata payload, bytes calldata parameterPayload, address subscriber) external payable;

  /**
   * @notice Processes the fees for each report in the payload, billing the subscriber and paying the reward manager
   * @param payloads reports to process
   * @param parameterPayload fee payload
   * @param subscriber address of the user to process fee for
   */
  function processFeeBulk(
    bytes[] calldata payloads,
    bytes calldata parameterPayload,
    address subscriber
  ) external payable;

  /**
   * @notice Sets the fee recipients according to the fee manager
   * @param configDigest digest of the configuration
   * @param rewardRecipientAndWeights the address and weights of all the recipients to receive rewards
   */
  function setFeeRecipients(
    bytes32 configDigest,
    Common.AddressAndWeight[] calldata rewardRecipientAndWeights
  ) external;
}

File 4 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);

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

  /**
   * @dev Returns the amount of tokens in existence.
   */
  function totalSupply() external view returns (uint256);

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

  function safePermit(
    IERC20Permit token,
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) internal {
    uint256 nonceBefore = token.nonces(owner);
    token.permit(owner, spender, value, deadline, v, r, s);
    uint256 nonceAfter = token.nonces(owner);
    require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
  }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
  /**
   * @dev Returns true if `account` is a contract.
   *
   * [IMPORTANT]
   * ====
   * It is unsafe to assume that an address for which this function returns
   * false is an externally-owned account (EOA) and not a contract.
   *
   * Among others, `isContract` will return false for the following
   * types of addresses:
   *
   *  - an externally-owned account
   *  - a contract in construction
   *  - an address where a contract will be created
   *  - an address where a contract lived, but was destroyed
   * ====
   *
   * [IMPORTANT]
   * ====
   * You shouldn't rely on `isContract` to protect against flash loan attacks!
   *
   * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
   * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
   * constructor.
   * ====
   */
  function isContract(address account) internal view returns (bool) {
    // This method relies on extcodesize/address.code.length, which returns 0
    // for contracts in construction, since the code is only stored at the end
    // of the constructor execution.

    return account.code.length > 0;
  }

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

    (bool success, ) = recipient.call{value: amount}("");
    require(success, "Address: unable to send value, recipient may have reverted");
  }

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

  /**
   * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
   * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
   *
   * _Available since v4.8._
   */
  function verifyCallResultFromTarget(
    address target,
    bool success,
    bytes memory returndata,
    string memory errorMessage
  ) internal view returns (bytes memory) {
    if (success) {
      if (returndata.length == 0) {
        // only check isContract if the call was successful and the return data is empty
        // otherwise we already know that it was a contract
        require(isContract(target), "Address: call to non-contract");
      }
      return returndata;
    } else {
      _revert(returndata, errorMessage);
    }
  }

  /**
   * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
   * revert reason or using the provided one.
   *
   * _Available since v4.3._
   */
  function verifyCallResult(
    bool success,
    bytes memory returndata,
    string memory errorMessage
  ) internal pure returns (bytes memory) {
    if (success) {
      return returndata;
    } else {
      _revert(returndata, errorMessage);
    }
  }

  function _revert(bytes memory returndata, string memory errorMessage) private pure {
    // 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
      /// @solidity memory-safe-assembly
      assembly {
        let returndata_size := mload(returndata)
        revert(add(32, returndata), returndata_size)
      }
    } else {
      revert(errorMessage);
    }
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "evmVersion": "paris",
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "remappings": [],
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_verifierProxy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint16","name":"version","type":"uint16"}],"name":"InvalidReportVersion","type":"error"},{"inputs":[],"name":"NotImplemented","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NothingToWithdraw","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feedId","type":"bytes32"},{"indexed":false,"internalType":"int256","name":"price","type":"int256"}],"name":"DecodedPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"middleware","type":"address"},{"internalType":"bytes32","name":"feedId","type":"bytes32"}],"name":"setFeedIdByMiddleware","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verifierProxy","outputs":[{"internalType":"contract IVerifierProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"unverifiedReport","type":"bytes"}],"name":"verifyReport","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a03461008c57601f61126038819003918201601f19168301916001600160401b038311848410176100915780849260209460405283398101031261008c57516001600160a01b0381169081900361008c57608052600080546001600160a01b031916331790556040516111b890816100a8823960805181818161032001528181610715015261094b0152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60e0600035811c9081631af189a4146105c2575080633436508b146105825780633aeac4e11461034457806347f77bc01461030057806354fd4d50146102e45780637284e416146102335780638da5cb5b1461020c5780639a6fc8f5146101bc578063f2fde38b146101055763feaf968c1461008d57600080fd5b3461010057600036600319011261010057336000526002602052604060002054600052600160205260a0604060002069ffffffffffffffffffff80825416916001810154916002820154906004600384015493015416926040519485526020850152604084015260608301526080820152f35b600080fd5b346101005760203660031901126101005761011e610f4f565b610126610fad565b6001600160a01b0380911690811561018b57600054827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b346101005760203660031901126101005760043569ffffffffffffffffffff8116036101005760046040517fd6234725000000000000000000000000000000000000000000000000000000008152fd5b346101005760003660031901126101005760206001600160a01b0360005416604051908152f35b3461010057600036600319011261010057604051606081019080821067ffffffffffffffff8311176102ce576102ca91604052602581527f436861696e6c696e6b204d6964646c657761726520666f72204461746120537460208201527f7265616d730000000000000000000000000000000000000000000000000000006040820152604051918291602083526020830190610f88565b0390f35b634e487b7160e01b600052604160045260246000fd5b3461010057600036600319011261010057602060405160648152f35b346101005760003660031901126101005760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101005760403660031901126101005761035d610f4f565b602435906001600160a01b0382168092036101005761037a610fad565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526020928382602481845afa91821561057657600092610547575b50811561051d576040517fa9059cbb000000000000000000000000000000000000000000000000000000008582019081526001600160a01b0394909416602482015260448082019390935291825261048a926000908190610422606486610f11565b6040519461042f86610ef5565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af13d15610515573d9161046e83610f33565b9261047c6040519485610f11565b83523d60008785013e6110e6565b8051908161049457005b82806104a493830101910161108a565b156104ab57005b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b6060916110e6565b60046040517fd0d04f60000000000000000000000000000000000000000000000000000000008152fd5b9091508381813d831161056f575b61055f8183610f11565b81010312610100575190846103c0565b503d610555565b6040513d6000823e3d90fd5b34610100576040366003190112610100576001600160a01b036105a3610f4f565b6105ab610fad565b166000526002602052602435604060002055600080f35b34610100576020366003190112610100576004359067ffffffffffffffff821161010057366023830112156101005781600401359161060083610f33565b9261060e6040519485610f11565b8084526020840191366024838301011161010057816000926024602093018537850101528251830190608084602084019303126101005781603f85011215610100576040516060810181811067ffffffffffffffff8211176102ce57604052608085019183831161010057905b828210610ee5575050519067ffffffffffffffff82116101005760206106a392850101610ff1565b805115610ecf5761ff00602082015160f01c16815160011015610ecf57602182015160f81c1790600282141580610ec4575b80610eb9575b610e88576040517f38416b5b0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa90811561057657600091610e46575b506001600160a01b03811615610e1757604051907fea4b861b0000000000000000000000000000000000000000000000000000000082526020826004816001600160a01b0385165afa91821561057657600092610dd5575b5060a06107e693604051809581927fe03dab1a000000000000000000000000000000000000000000000000000000008352306004840152606060248401526064830190610f88565b6001600160a01b0386166044830152038160006001600160a01b0386165af192831561057657600093610d80575b5060206001600160a01b03916004604051809481937f3aa5ac07000000000000000000000000000000000000000000000000000000008352165afa90811561057657600091610d3c575b506020928301516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0390921660048301526024820152918280604481015b038160006001600160a01b0386165af19081156105765760009261092c92610d0d575b506001600160a01b0360405191166020820152602081526108eb81610ef5565b945b61093e60405196879384937ff7e83aee000000000000000000000000000000000000000000000000000000008552604060048601526044850190610f88565b83810360031901602485015290610f88565b0381836001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165af192831561057657600093610ccc575b5060028103610aaa575090818180518101031261010057604051908282019082821067ffffffffffffffff8311176102ce577fb7b796012b3907a022b7f0fbaa0c22fabf9f574e8e172709f8f3059e3c55044d92602092604052828201519485825260c0610a426109ef604086016110a2565b92868501938452610a02606087016110a2565b9560408601968752610a16608082016110b3565b6060870152610a2760a082016110b3565b6080870152610a378482016110a2565b60a0870152016110d8565b920191825285600052600184526004604060002069ffffffffffffffffffff42169269ffffffffffffffffffff199484868454161783555160170b9586600184015563ffffffff809251166002840155511660038201550191825416179055604051908152a2005b600303610bfb5761012091828180518101031261010057604051928084019184831067ffffffffffffffff8411176102ce577fb7b796012b3907a022b7f0fbaa0c22fabf9f574e8e172709f8f3059e3c55044d936020936040528382015195868152610b18604084016110a2565b91858201928352610b95610b2e606086016110a2565b9560408401968752610b42608087016110b3565b6060850152610b5360a087016110b3565b6080850152610b6460c087016110a2565b60a0850152610b748387016110d8565b9560c0850196875261010093610b8b8583016110d8565b90860152016110d8565b91015285600052600184526004604060002069ffffffffffffffffffff42169269ffffffffffffffffffff199484868454161783555160170b9586600184015563ffffffff809251166002840155511660038201550191825416179055604051908152a2005b61010091828180518101031261010057604051928084019184831067ffffffffffffffff8411176102ce577fb7b796012b3907a022b7f0fbaa0c22fabf9f574e8e172709f8f3059e3c55044d936020936040528382015195868152610c62604084016110a2565b91858201928352610b95610c78606086016110a2565b9560408401968752610c8c608087016110b3565b6060850152610c9d60a087016110b3565b6080850152610cae60c087016110a2565b60a0850152610cbe8387016110d8565b9560c08501968752016110a2565b9092503d806000833e610cdf8183610f11565b810160208282031261010057815167ffffffffffffffff811161010057610d069201610ff1565b918361097c565b610d2e9060203d602011610d35575b610d268183610f11565b81019061108a565b50866108cb565b503d610d1c565b90506020813d602011610d78575b81610d5760209383610f11565b81010312610100576108a8926020610d6f8193611036565b9250509261085e565b3d9150610d4a565b90925060a03d8111610dce575b610d978183610f11565b810160a0828203126101005781610dc5826040610dbe6020956001600160a01b039761104a565b930161104a565b50939150610814565b503d610d8d565b9291506020833d602011610e0f575b81610df160209383610f11565b810103126101005760a0610e076107e694611036565b92935061079e565b3d9150610de4565b50506040516020810181811067ffffffffffffffff8211176102ce5760009161092c91604052828152946108ed565b90506020813d602011610e80575b81610e6160209383610f11565b8101031261010057516001600160a01b03811681036101005785610746565b3d9150610e54565b602482604051907f6a75f7df0000000000000000000000000000000000000000000000000000000082526004820152fd5b5060048214156106db565b5060038214156106d5565b634e487b7160e01b600052603260045260246000fd5b815181526020918201910161067b565b6040810190811067ffffffffffffffff8211176102ce57604052565b90601f8019910116810190811067ffffffffffffffff8211176102ce57604052565b67ffffffffffffffff81116102ce57601f01601f191660200190565b600435906001600160a01b038216820361010057565b60005b838110610f785750506000910152565b8181015183820152602001610f68565b90602091610fa181518092818552858086019101610f65565b601f01601f1916010190565b6001600160a01b03600054163303610fc157565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b81601f8201121561010057805161100781610f33565b926110156040519485610f11565b81845260208284010111610100576110339160208085019101610f65565b90565b51906001600160a01b038216820361010057565b9190826040910312610100576040516040810181811067ffffffffffffffff8211176102ce57604052602080829461108181611036565b84520151910152565b90816020910312610100575180151581036101005790565b519063ffffffff8216820361010057565b519077ffffffffffffffffffffffffffffffffffffffffffffffff8216820361010057565b51908160170b820361010057565b9192901561114757508151156110fa575090565b3b156111035790565b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b82519091501561115a5750805190602001fd5b61117e9060405191829162461bcd60e51b8352602060048401526024830190610f88565b0390fdfea2646970667358221220043efa827e84a150ba8efc4c8a0e2ac43bc3ef7bf88639fd8d3ac48d59ceafd764736f6c6343000813003300000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60e0600035811c9081631af189a4146105c2575080633436508b146105825780633aeac4e11461034457806347f77bc01461030057806354fd4d50146102e45780637284e416146102335780638da5cb5b1461020c5780639a6fc8f5146101bc578063f2fde38b146101055763feaf968c1461008d57600080fd5b3461010057600036600319011261010057336000526002602052604060002054600052600160205260a0604060002069ffffffffffffffffffff80825416916001810154916002820154906004600384015493015416926040519485526020850152604084015260608301526080820152f35b600080fd5b346101005760203660031901126101005761011e610f4f565b610126610fad565b6001600160a01b0380911690811561018b57600054827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b346101005760203660031901126101005760043569ffffffffffffffffffff8116036101005760046040517fd6234725000000000000000000000000000000000000000000000000000000008152fd5b346101005760003660031901126101005760206001600160a01b0360005416604051908152f35b3461010057600036600319011261010057604051606081019080821067ffffffffffffffff8311176102ce576102ca91604052602581527f436861696e6c696e6b204d6964646c657761726520666f72204461746120537460208201527f7265616d730000000000000000000000000000000000000000000000000000006040820152604051918291602083526020830190610f88565b0390f35b634e487b7160e01b600052604160045260246000fd5b3461010057600036600319011261010057602060405160648152f35b346101005760003660031901126101005760206040516001600160a01b037f00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb168152f35b346101005760403660031901126101005761035d610f4f565b602435906001600160a01b0382168092036101005761037a610fad565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526020928382602481845afa91821561057657600092610547575b50811561051d576040517fa9059cbb000000000000000000000000000000000000000000000000000000008582019081526001600160a01b0394909416602482015260448082019390935291825261048a926000908190610422606486610f11565b6040519461042f86610ef5565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af13d15610515573d9161046e83610f33565b9261047c6040519485610f11565b83523d60008785013e6110e6565b8051908161049457005b82806104a493830101910161108a565b156104ab57005b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b6060916110e6565b60046040517fd0d04f60000000000000000000000000000000000000000000000000000000008152fd5b9091508381813d831161056f575b61055f8183610f11565b81010312610100575190846103c0565b503d610555565b6040513d6000823e3d90fd5b34610100576040366003190112610100576001600160a01b036105a3610f4f565b6105ab610fad565b166000526002602052602435604060002055600080f35b34610100576020366003190112610100576004359067ffffffffffffffff821161010057366023830112156101005781600401359161060083610f33565b9261060e6040519485610f11565b8084526020840191366024838301011161010057816000926024602093018537850101528251830190608084602084019303126101005781603f85011215610100576040516060810181811067ffffffffffffffff8211176102ce57604052608085019183831161010057905b828210610ee5575050519067ffffffffffffffff82116101005760206106a392850101610ff1565b805115610ecf5761ff00602082015160f01c16815160011015610ecf57602182015160f81c1790600282141580610ec4575b80610eb9575b610e88576040517f38416b5b0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb165afa90811561057657600091610e46575b506001600160a01b03811615610e1757604051907fea4b861b0000000000000000000000000000000000000000000000000000000082526020826004816001600160a01b0385165afa91821561057657600092610dd5575b5060a06107e693604051809581927fe03dab1a000000000000000000000000000000000000000000000000000000008352306004840152606060248401526064830190610f88565b6001600160a01b0386166044830152038160006001600160a01b0386165af192831561057657600093610d80575b5060206001600160a01b03916004604051809481937f3aa5ac07000000000000000000000000000000000000000000000000000000008352165afa90811561057657600091610d3c575b506020928301516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0390921660048301526024820152918280604481015b038160006001600160a01b0386165af19081156105765760009261092c92610d0d575b506001600160a01b0360405191166020820152602081526108eb81610ef5565b945b61093e60405196879384937ff7e83aee000000000000000000000000000000000000000000000000000000008552604060048601526044850190610f88565b83810360031901602485015290610f88565b0381836001600160a01b037f00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb165af192831561057657600093610ccc575b5060028103610aaa575090818180518101031261010057604051908282019082821067ffffffffffffffff8311176102ce577fb7b796012b3907a022b7f0fbaa0c22fabf9f574e8e172709f8f3059e3c55044d92602092604052828201519485825260c0610a426109ef604086016110a2565b92868501938452610a02606087016110a2565b9560408601968752610a16608082016110b3565b6060870152610a2760a082016110b3565b6080870152610a378482016110a2565b60a0870152016110d8565b920191825285600052600184526004604060002069ffffffffffffffffffff42169269ffffffffffffffffffff199484868454161783555160170b9586600184015563ffffffff809251166002840155511660038201550191825416179055604051908152a2005b600303610bfb5761012091828180518101031261010057604051928084019184831067ffffffffffffffff8411176102ce577fb7b796012b3907a022b7f0fbaa0c22fabf9f574e8e172709f8f3059e3c55044d936020936040528382015195868152610b18604084016110a2565b91858201928352610b95610b2e606086016110a2565b9560408401968752610b42608087016110b3565b6060850152610b5360a087016110b3565b6080850152610b6460c087016110a2565b60a0850152610b748387016110d8565b9560c0850196875261010093610b8b8583016110d8565b90860152016110d8565b91015285600052600184526004604060002069ffffffffffffffffffff42169269ffffffffffffffffffff199484868454161783555160170b9586600184015563ffffffff809251166002840155511660038201550191825416179055604051908152a2005b61010091828180518101031261010057604051928084019184831067ffffffffffffffff8411176102ce577fb7b796012b3907a022b7f0fbaa0c22fabf9f574e8e172709f8f3059e3c55044d936020936040528382015195868152610c62604084016110a2565b91858201928352610b95610c78606086016110a2565b9560408401968752610c8c608087016110b3565b6060850152610c9d60a087016110b3565b6080850152610cae60c087016110a2565b60a0850152610cbe8387016110d8565b9560c08501968752016110a2565b9092503d806000833e610cdf8183610f11565b810160208282031261010057815167ffffffffffffffff811161010057610d069201610ff1565b918361097c565b610d2e9060203d602011610d35575b610d268183610f11565b81019061108a565b50866108cb565b503d610d1c565b90506020813d602011610d78575b81610d5760209383610f11565b81010312610100576108a8926020610d6f8193611036565b9250509261085e565b3d9150610d4a565b90925060a03d8111610dce575b610d978183610f11565b810160a0828203126101005781610dc5826040610dbe6020956001600160a01b039761104a565b930161104a565b50939150610814565b503d610d8d565b9291506020833d602011610e0f575b81610df160209383610f11565b810103126101005760a0610e076107e694611036565b92935061079e565b3d9150610de4565b50506040516020810181811067ffffffffffffffff8211176102ce5760009161092c91604052828152946108ed565b90506020813d602011610e80575b81610e6160209383610f11565b8101031261010057516001600160a01b03811681036101005785610746565b3d9150610e54565b602482604051907f6a75f7df0000000000000000000000000000000000000000000000000000000082526004820152fd5b5060048214156106db565b5060038214156106d5565b634e487b7160e01b600052603260045260246000fd5b815181526020918201910161067b565b6040810190811067ffffffffffffffff8211176102ce57604052565b90601f8019910116810190811067ffffffffffffffff8211176102ce57604052565b67ffffffffffffffff81116102ce57601f01601f191660200190565b600435906001600160a01b038216820361010057565b60005b838110610f785750506000910152565b8181015183820152602001610f68565b90602091610fa181518092818552858086019101610f65565b601f01601f1916010190565b6001600160a01b03600054163303610fc157565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b81601f8201121561010057805161100781610f33565b926110156040519485610f11565b81845260208284010111610100576110339160208085019101610f65565b90565b51906001600160a01b038216820361010057565b9190826040910312610100576040516040810181811067ffffffffffffffff8211176102ce57604052602080829461108181611036565b84520151910152565b90816020910312610100575180151581036101005790565b519063ffffffff8216820361010057565b519077ffffffffffffffffffffffffffffffffffffffffffffffff8216820361010057565b51908160170b820361010057565b9192901561114757508151156110fa575090565b3b156111035790565b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b82519091501561115a5750805190602001fd5b61117e9060405191829162461bcd60e51b8352602060048401526024830190610f88565b0390fdfea2646970667358221220043efa827e84a150ba8efc4c8a0e2ac43bc3ef7bf88639fd8d3ac48d59ceafd764736f6c63430008130033

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

00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb

-----Decoded View---------------
Arg [0] : _verifierProxy (address): 0x60fAa7faC949aF392DFc858F5d97E3EEfa07E9EB

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb


Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.