FTM Price: $0.99 (-4.29%)
Gas: 33 GWei

Contract

0x114885035DAF6f8E09BE55Ed2169d41A512dad45
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040504286172022-11-03 15:57:44511 days ago1667491064IN
 Create: QuadraticFundingVotingStrategyImplementation
0 FTM0.48057775392.77777777

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
530834342023-01-01 23:59:55452 days ago1672617595
0x11488503...A512dad45
25 FTM
530834342023-01-01 23:59:55452 days ago1672617595
0x11488503...A512dad45
50 FTM
530834342023-01-01 23:59:55452 days ago1672617595
0x11488503...A512dad45
50 FTM
530834002023-01-01 23:56:54452 days ago1672617414
0x11488503...A512dad45
25 FTM
530834002023-01-01 23:56:54452 days ago1672617414
0x11488503...A512dad45
25 FTM
530834002023-01-01 23:56:54452 days ago1672617414
0x11488503...A512dad45
25 FTM
530833972023-01-01 23:56:36452 days ago1672617396
0x11488503...A512dad45
0.1 FTM
530833972023-01-01 23:56:36452 days ago1672617396
0x11488503...A512dad45
0.1 FTM
530833972023-01-01 23:56:36452 days ago1672617396
0x11488503...A512dad45
0.1 FTM
530833972023-01-01 23:56:36452 days ago1672617396
0x11488503...A512dad45
0.1 FTM
530833832023-01-01 23:55:30452 days ago1672617330
0x11488503...A512dad45
6.85 FTM
530833832023-01-01 23:55:30452 days ago1672617330
0x11488503...A512dad45
6.85 FTM
530833832023-01-01 23:55:30452 days ago1672617330
0x11488503...A512dad45
6.85 FTM
530833782023-01-01 23:55:12452 days ago1672617312
0x11488503...A512dad45
3.2 FTM
530833782023-01-01 23:55:12452 days ago1672617312
0x11488503...A512dad45
3.2 FTM
530833782023-01-01 23:55:12452 days ago1672617312
0x11488503...A512dad45
3.2 FTM
530833782023-01-01 23:55:12452 days ago1672617312
0x11488503...A512dad45
3.2 FTM
530833772023-01-01 23:55:04452 days ago1672617304
0x11488503...A512dad45
6 FTM
530833772023-01-01 23:55:04452 days ago1672617304
0x11488503...A512dad45
6 FTM
530833772023-01-01 23:55:04452 days ago1672617304
0x11488503...A512dad45
6 FTM
530833732023-01-01 23:54:41452 days ago1672617281
0x11488503...A512dad45
3.1 FTM
530833732023-01-01 23:54:41452 days ago1672617281
0x11488503...A512dad45
3.1 FTM
530833732023-01-01 23:54:41452 days ago1672617281
0x11488503...A512dad45
3.1 FTM
530833732023-01-01 23:54:41452 days ago1672617281
0x11488503...A512dad45
3.1 FTM
530833682023-01-01 23:54:27452 days ago1672617267
0x11488503...A512dad45
6.9 FTM
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QuadraticFundingVotingStrategyImplementation

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : QuadraticFundingVotingStrategyImplementation.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.17;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";

import "../IVotingStrategy.sol";

/**
 * Allows voters to cast multiple weighted votes to grants with one transaction
 * This is inspired from BulkCheckout documented over at:
 * https://github.com/gitcoinco/BulkTransactions/blob/master/contracts/BulkCheckout.sol
 *
 * Emits event upon every transfer.
 */
contract QuadraticFundingVotingStrategyImplementation is IVotingStrategy, ReentrancyGuard, Initializable {

  using SafeERC20Upgradeable for IERC20Upgradeable;

  // --- Event ---

  /// @notice Emitted when a new vote is sent
  event Voted(
    address  token,                   // voting token
    uint256 amount,                   // voting amount
    address indexed voter,            // voter address
    address indexed grantAddress,     // grant address
    address indexed roundAddress      // round address
  );

  // --- Core methods ---

  function initialize() external initializer {
    // empty initializer
  }

  /**
   * @notice Invoked by RoundImplementation which allows
   * a voted to cast weighted votes to multiple grants during a round
   *
   * @dev
   * - more voters -> higher the gas
   * - this would be triggered when a voter casts their vote via grant explorer
   * - can be invoked by the round
   * - supports ERC20 and Native token transfer
   *
   * @param encodedVotes encoded list of votes
   * @param voterAddress voter address
   */
  function vote(bytes[] calldata encodedVotes, address voterAddress) external override payable nonReentrant isRoundContract {

    /// @dev iterate over multiple donations and transfer funds
    for (uint256 i = 0; i < encodedVotes.length; i++) {

      (address _token, uint256 _amount, address _grantAddress) = abi.decode(encodedVotes[i], (address, uint256, address));

      if (_token == address(0)) {
        /// @dev native token transfer to grant address
        // slither-disable-next-line reentrancy-events
        AddressUpgradeable.sendValue(payable(_grantAddress), _amount);
      } else {

        /// @dev erc20 transfer to grant address
        // slither-disable-next-line arbitrary-send-erc20,reentrancy-events,
        SafeERC20Upgradeable.safeTransferFrom(
          IERC20Upgradeable(_token),
          voterAddress,
          _grantAddress,
          _amount
        );

      }

      /// @dev emit event for transfer
      emit Voted(
        _token,
        _amount,
        voterAddress,
        _grantAddress,
        msg.sender
      );

    }

  }
}

File 2 of 7 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @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 proxied contracts do not make use of 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.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * 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 {ERC1967Proxy-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.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 3 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^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 ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 4 of 7 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 5 of 7 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

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

File 6 of 7 : IVotingStrategy.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.17;

/**
 * @notice Defines the abstract contract for voting algorithms on grants
 * within a round. Any new voting algorithm would be expected to
 * extend this abstract contract.
 * Every IVotingStrategy contract would be unique to RoundImplementation
 * and would be deployed before creating a round
 */
abstract contract IVotingStrategy {

   // --- Data ---

  /// @notice Round address
  address public roundAddress;


  // --- Modifier ---

  /// @notice modifier to check if sender is round contract.
  modifier isRoundContract() {
    require(roundAddress != address(0), "error: voting contract not linked to a round");
    require(msg.sender == roundAddress, "error: can be invoked only by round contract");
    _;
  }


  // --- Core methods ---

  /**
   * @notice Invoked by RoundImplementation on creation to
   * set the round for which the voting contracts is to be used
   *
   */
  function init() external {
    require(roundAddress == address(0), "init: roundAddress already set");
    roundAddress = msg.sender;
  }

  /**
   * @notice Invoked by RoundImplementation to allow voter to case
   * vote for grants during a round.
   *
   * @dev
   * - allows contributor to do cast multiple votes which could be weighted.
   * - should be invoked by RoundImplementation contract
   * - ideally IVotingStrategy implementation should emit events after a vote is cast
   * - this would be triggered when a voter casts their vote via grant explorer
   *
   * @param _encodedVotes encoded votes
   * @param _voterAddress voter address
   */
  function vote(bytes[] calldata _encodedVotes, address _voterAddress) external virtual payable;
}

File 7 of 7 : IERC20Upgradeable.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 IERC20Upgradeable {
    /**
     * @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);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":true,"internalType":"address","name":"grantAddress","type":"address"},{"indexed":true,"internalType":"address","name":"roundAddress","type":"address"}],"name":"Voted","type":"event"},{"inputs":[],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roundAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"encodedVotes","type":"bytes[]"},{"internalType":"address","name":"voterAddress","type":"address"}],"name":"vote","outputs":[],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b50600180819055506114e3806100276000396000f3fe60806040526004361061003f5760003560e01c80630b67d925146100445780638129fc1c1461006f578063e1c7392a14610086578063fc6d4e391461009d575b600080fd5b34801561005057600080fd5b506100596100b9565b6040516100669190610a10565b60405180910390f35b34801561007b57600080fd5b506100846100dd565b005b34801561009257600080fd5b5061009b61016a565b005b6100b760048036038101906100b29190610ac6565b61023b565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006100e960016104e1565b9050801561010d576001600260016101000a81548160ff0219169083151502179055505b8015610167576000600260016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161015e9190610b78565b60405180910390a15b50565b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101f090610bf0565b60405180910390fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260015403610280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027790610c5c565b60405180910390fd5b6002600181905550600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030e90610cee565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039c90610d80565b60405180910390fd5b60005b838390508110156104d45760008060008686858181106103cb576103ca610da0565b5b90506020028101906103dd9190610dde565b8101906103ea9190610eb5565b925092509250600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104335761042e81836105d5565b610440565b61043f838683856106c9565b5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f023f5e053cbb2c4e0d563d51f8cafaa385fc620caa979fbcac023059ad1687d986866040516104b6929190610f17565b60405180910390a450505080806104cc90610f6f565b9150506103a8565b5060018081905550505050565b6000600260019054906101000a900460ff16156105595760018260ff16148015610511575061050f30610752565b155b610550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054790611029565b60405180910390fd5b600090506105d0565b8160ff16600260009054906101000a900460ff1660ff16106105b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a790611029565b60405180910390fd5b81600260006101000a81548160ff021916908360ff160217905550600190505b919050565b80471015610618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060f90611095565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161063e906110e6565b60006040518083038185875af1925050503d806000811461067b576040519150601f19603f3d011682016040523d82523d6000602084013e610680565b606091505b50509050806106c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106bb9061116d565b60405180910390fd5b505050565b61074c846323b872dd60e01b8585856040516024016106ea9392919061118d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610775565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006107d7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661083c9092919063ffffffff16565b905060008151111561083757808060200190518101906107f791906111fc565b610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d9061129b565b60405180910390fd5b5b505050565b606061084b8484600085610854565b90509392505050565b606082471015610899576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108909061132d565b60405180910390fd5b6108a285610752565b6108e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d890611399565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161090a919061141f565b60006040518083038185875af1925050503d8060008114610947576040519150601f19603f3d011682016040523d82523d6000602084013e61094c565b606091505b509150915061095c828286610968565b92505050949350505050565b60608315610978578290506109c8565b60008351111561098b5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bf919061148b565b60405180910390fd5b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109fa826109cf565b9050919050565b610a0a816109ef565b82525050565b6000602082019050610a256000830184610a01565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610a5a57610a59610a35565b5b8235905067ffffffffffffffff811115610a7757610a76610a3a565b5b602083019150836020820283011115610a9357610a92610a3f565b5b9250929050565b610aa3816109ef565b8114610aae57600080fd5b50565b600081359050610ac081610a9a565b92915050565b600080600060408486031215610adf57610ade610a2b565b5b600084013567ffffffffffffffff811115610afd57610afc610a30565b5b610b0986828701610a44565b93509350506020610b1c86828701610ab1565b9150509250925092565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000610b62610b5d610b5884610b26565b610b3d565b610b30565b9050919050565b610b7281610b47565b82525050565b6000602082019050610b8d6000830184610b69565b92915050565b600082825260208201905092915050565b7f696e69743a20726f756e644164647265737320616c7265616479207365740000600082015250565b6000610bda601e83610b93565b9150610be582610ba4565b602082019050919050565b60006020820190508181036000830152610c0981610bcd565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000610c46601f83610b93565b9150610c5182610c10565b602082019050919050565b60006020820190508181036000830152610c7581610c39565b9050919050565b7f6572726f723a20766f74696e6720636f6e7472616374206e6f74206c696e6b6560008201527f6420746f206120726f756e640000000000000000000000000000000000000000602082015250565b6000610cd8602c83610b93565b9150610ce382610c7c565b604082019050919050565b60006020820190508181036000830152610d0781610ccb565b9050919050565b7f6572726f723a2063616e20626520696e766f6b6564206f6e6c7920627920726f60008201527f756e6420636f6e74726163740000000000000000000000000000000000000000602082015250565b6000610d6a602c83610b93565b9150610d7582610d0e565b604082019050919050565b60006020820190508181036000830152610d9981610d5d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112610dfb57610dfa610dcf565b5b80840192508235915067ffffffffffffffff821115610e1d57610e1c610dd4565b5b602083019250600182023603831315610e3957610e38610dd9565b5b509250929050565b6000610e4c826109cf565b9050919050565b610e5c81610e41565b8114610e6757600080fd5b50565b600081359050610e7981610e53565b92915050565b6000819050919050565b610e9281610e7f565b8114610e9d57600080fd5b50565b600081359050610eaf81610e89565b92915050565b600080600060608486031215610ece57610ecd610a2b565b5b6000610edc86828701610e6a565b9350506020610eed86828701610ea0565b9250506040610efe86828701610e6a565b9150509250925092565b610f1181610e7f565b82525050565b6000604082019050610f2c6000830185610a01565b610f396020830184610f08565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f7a82610e7f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610fac57610fab610f40565b5b600182019050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000611013602e83610b93565b915061101e82610fb7565b604082019050919050565b6000602082019050818103600083015261104281611006565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061107f601d83610b93565b915061108a82611049565b602082019050919050565b600060208201905081810360008301526110ae81611072565b9050919050565b600081905092915050565b50565b60006110d06000836110b5565b91506110db826110c0565b600082019050919050565b60006110f1826110c3565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000611157603a83610b93565b9150611162826110fb565b604082019050919050565b600060208201905081810360008301526111868161114a565b9050919050565b60006060820190506111a26000830186610a01565b6111af6020830185610a01565b6111bc6040830184610f08565b949350505050565b60008115159050919050565b6111d9816111c4565b81146111e457600080fd5b50565b6000815190506111f6816111d0565b92915050565b60006020828403121561121257611211610a2b565b5b6000611220848285016111e7565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611285602a83610b93565b915061129082611229565b604082019050919050565b600060208201905081810360008301526112b481611278565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611317602683610b93565b9150611322826112bb565b604082019050919050565b600060208201905081810360008301526113468161130a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611383601d83610b93565b915061138e8261134d565b602082019050919050565b600060208201905081810360008301526113b281611376565b9050919050565b600081519050919050565b60005b838110156113e25780820151818401526020810190506113c7565b60008484015250505050565b60006113f9826113b9565b61140381856110b5565b93506114138185602086016113c4565b80840191505092915050565b600061142b82846113ee565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b600061145d82611436565b6114678185610b93565b93506114778185602086016113c4565b61148081611441565b840191505092915050565b600060208201905081810360008301526114a58184611452565b90509291505056fea2646970667358221220f6d2734d607b777af9e08c20b08b39fa78fb04486e248bee83b872c085d9586a64736f6c63430008110033

Deployed Bytecode

0x60806040526004361061003f5760003560e01c80630b67d925146100445780638129fc1c1461006f578063e1c7392a14610086578063fc6d4e391461009d575b600080fd5b34801561005057600080fd5b506100596100b9565b6040516100669190610a10565b60405180910390f35b34801561007b57600080fd5b506100846100dd565b005b34801561009257600080fd5b5061009b61016a565b005b6100b760048036038101906100b29190610ac6565b61023b565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006100e960016104e1565b9050801561010d576001600260016101000a81548160ff0219169083151502179055505b8015610167576000600260016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161015e9190610b78565b60405180910390a15b50565b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101f090610bf0565b60405180910390fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260015403610280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027790610c5c565b60405180910390fd5b6002600181905550600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030e90610cee565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039c90610d80565b60405180910390fd5b60005b838390508110156104d45760008060008686858181106103cb576103ca610da0565b5b90506020028101906103dd9190610dde565b8101906103ea9190610eb5565b925092509250600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104335761042e81836105d5565b610440565b61043f838683856106c9565b5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f023f5e053cbb2c4e0d563d51f8cafaa385fc620caa979fbcac023059ad1687d986866040516104b6929190610f17565b60405180910390a450505080806104cc90610f6f565b9150506103a8565b5060018081905550505050565b6000600260019054906101000a900460ff16156105595760018260ff16148015610511575061050f30610752565b155b610550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054790611029565b60405180910390fd5b600090506105d0565b8160ff16600260009054906101000a900460ff1660ff16106105b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a790611029565b60405180910390fd5b81600260006101000a81548160ff021916908360ff160217905550600190505b919050565b80471015610618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060f90611095565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161063e906110e6565b60006040518083038185875af1925050503d806000811461067b576040519150601f19603f3d011682016040523d82523d6000602084013e610680565b606091505b50509050806106c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106bb9061116d565b60405180910390fd5b505050565b61074c846323b872dd60e01b8585856040516024016106ea9392919061118d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610775565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006107d7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661083c9092919063ffffffff16565b905060008151111561083757808060200190518101906107f791906111fc565b610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d9061129b565b60405180910390fd5b5b505050565b606061084b8484600085610854565b90509392505050565b606082471015610899576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108909061132d565b60405180910390fd5b6108a285610752565b6108e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d890611399565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161090a919061141f565b60006040518083038185875af1925050503d8060008114610947576040519150601f19603f3d011682016040523d82523d6000602084013e61094c565b606091505b509150915061095c828286610968565b92505050949350505050565b60608315610978578290506109c8565b60008351111561098b5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bf919061148b565b60405180910390fd5b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109fa826109cf565b9050919050565b610a0a816109ef565b82525050565b6000602082019050610a256000830184610a01565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610a5a57610a59610a35565b5b8235905067ffffffffffffffff811115610a7757610a76610a3a565b5b602083019150836020820283011115610a9357610a92610a3f565b5b9250929050565b610aa3816109ef565b8114610aae57600080fd5b50565b600081359050610ac081610a9a565b92915050565b600080600060408486031215610adf57610ade610a2b565b5b600084013567ffffffffffffffff811115610afd57610afc610a30565b5b610b0986828701610a44565b93509350506020610b1c86828701610ab1565b9150509250925092565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000610b62610b5d610b5884610b26565b610b3d565b610b30565b9050919050565b610b7281610b47565b82525050565b6000602082019050610b8d6000830184610b69565b92915050565b600082825260208201905092915050565b7f696e69743a20726f756e644164647265737320616c7265616479207365740000600082015250565b6000610bda601e83610b93565b9150610be582610ba4565b602082019050919050565b60006020820190508181036000830152610c0981610bcd565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000610c46601f83610b93565b9150610c5182610c10565b602082019050919050565b60006020820190508181036000830152610c7581610c39565b9050919050565b7f6572726f723a20766f74696e6720636f6e7472616374206e6f74206c696e6b6560008201527f6420746f206120726f756e640000000000000000000000000000000000000000602082015250565b6000610cd8602c83610b93565b9150610ce382610c7c565b604082019050919050565b60006020820190508181036000830152610d0781610ccb565b9050919050565b7f6572726f723a2063616e20626520696e766f6b6564206f6e6c7920627920726f60008201527f756e6420636f6e74726163740000000000000000000000000000000000000000602082015250565b6000610d6a602c83610b93565b9150610d7582610d0e565b604082019050919050565b60006020820190508181036000830152610d9981610d5d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112610dfb57610dfa610dcf565b5b80840192508235915067ffffffffffffffff821115610e1d57610e1c610dd4565b5b602083019250600182023603831315610e3957610e38610dd9565b5b509250929050565b6000610e4c826109cf565b9050919050565b610e5c81610e41565b8114610e6757600080fd5b50565b600081359050610e7981610e53565b92915050565b6000819050919050565b610e9281610e7f565b8114610e9d57600080fd5b50565b600081359050610eaf81610e89565b92915050565b600080600060608486031215610ece57610ecd610a2b565b5b6000610edc86828701610e6a565b9350506020610eed86828701610ea0565b9250506040610efe86828701610e6a565b9150509250925092565b610f1181610e7f565b82525050565b6000604082019050610f2c6000830185610a01565b610f396020830184610f08565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f7a82610e7f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610fac57610fab610f40565b5b600182019050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000611013602e83610b93565b915061101e82610fb7565b604082019050919050565b6000602082019050818103600083015261104281611006565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061107f601d83610b93565b915061108a82611049565b602082019050919050565b600060208201905081810360008301526110ae81611072565b9050919050565b600081905092915050565b50565b60006110d06000836110b5565b91506110db826110c0565b600082019050919050565b60006110f1826110c3565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000611157603a83610b93565b9150611162826110fb565b604082019050919050565b600060208201905081810360008301526111868161114a565b9050919050565b60006060820190506111a26000830186610a01565b6111af6020830185610a01565b6111bc6040830184610f08565b949350505050565b60008115159050919050565b6111d9816111c4565b81146111e457600080fd5b50565b6000815190506111f6816111d0565b92915050565b60006020828403121561121257611211610a2b565b5b6000611220848285016111e7565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611285602a83610b93565b915061129082611229565b604082019050919050565b600060208201905081810360008301526112b481611278565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611317602683610b93565b9150611322826112bb565b604082019050919050565b600060208201905081810360008301526113468161130a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611383601d83610b93565b915061138e8261134d565b602082019050919050565b600060208201905081810360008301526113b281611376565b9050919050565b600081519050919050565b60005b838110156113e25780820151818401526020810190506113c7565b60008484015250505050565b60006113f9826113b9565b61140381856110b5565b93506114138185602086016113c4565b80840191505092915050565b600061142b82846113ee565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b600061145d82611436565b6114678185610b93565b93506114778185602086016113c4565b61148081611441565b840191505092915050565b600060208201905081810360008301526114a58184611452565b90509291505056fea2646970667358221220f6d2734d607b777af9e08c20b08b39fa78fb04486e248bee83b872c085d9586a64736f6c63430008110033

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.