ETH Price: $3,013.79 (-3.20%)
 

Overview

ETH Balance

0.160706108313396165 ETH

ETH Value

$484.33 (@ $3,013.79/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw340818512025-08-11 22:57:2998 days ago1754953049IN
0x9f7f714a...dEAbE1710
0 ETH0.000000120.00387641
Withdraw325555592025-07-07 15:01:05133 days ago1751900465IN
0x9f7f714a...dEAbE1710
0 ETH0.000000050.0012146
Withdraw323999182025-07-04 0:33:03137 days ago1751589183IN
0x9f7f714a...dEAbE1710
0 ETH0.000000040.00140764
Withdraw323120952025-07-01 23:45:37139 days ago1751413537IN
0x9f7f714a...dEAbE1710
0 ETH0.000000050.00158923
Withdraw308607572025-05-29 9:27:41172 days ago1748510861IN
0x9f7f714a...dEAbE1710
0 ETH0.00000010.00307798
Withdraw297115532025-05-02 19:00:53199 days ago1746212453IN
0x9f7f714a...dEAbE1710
0 ETH0.000000160.00369047
Withdraw292554362025-04-22 5:36:59209 days ago1745300219IN
0x9f7f714a...dEAbE1710
0 ETH0.000000070.00216209
Withdraw290036332025-04-16 9:43:33215 days ago1744796613IN
0x9f7f714a...dEAbE1710
0 ETH0.000000070.00210155
Withdraw For283885632025-04-02 4:01:13229 days ago1743566473IN
0x9f7f714a...dEAbE1710
0 ETH0.000000090.00229945
Withdraw279803602025-03-23 17:14:27239 days ago1742750067IN
0x9f7f714a...dEAbE1710
0 ETH0.000000090.00308594
Withdraw273124092025-03-08 6:09:25254 days ago1741414165IN
0x9f7f714a...dEAbE1710
0 ETH0.000000090.002818
Withdraw271403692025-03-04 6:34:45258 days ago1741070085IN
0x9f7f714a...dEAbE1710
0 ETH0.000000120.00296069
Withdraw For265173122025-02-17 20:26:11273 days ago1739823971IN
0x9f7f714a...dEAbE1710
0 ETH0.000080572.00205103
Withdraw264407142025-02-16 1:52:55275 days ago1739670775IN
0x9f7f714a...dEAbE1710
0 ETH0.000000090.00309325
Withdraw256082412025-01-27 19:23:49294 days ago1738005829IN
0x9f7f714a...dEAbE1710
0 ETH0.000010950.03866479
Withdraw253398192025-01-21 14:16:25300 days ago1737468985IN
0x9f7f714a...dEAbE1710
0 ETH0.000000230.00599599
Withdraw251241772025-01-16 14:28:21305 days ago1737037701IN
0x9f7f714a...dEAbE1710
0 ETH0.000005630.00660022
Withdraw248595482025-01-10 11:27:23311 days ago1736508443IN
0x9f7f714a...dEAbE1710
0 ETH0.000000540.01581514
Withdraw243789422024-12-30 8:27:11322 days ago1735547231IN
0x9f7f714a...dEAbE1710
0 ETH0.000001220.01467884
Withdraw239025302024-12-19 7:46:47333 days ago1734594407IN
0x9f7f714a...dEAbE1710
0 ETH0.000000110.00231168
Withdraw For238402542024-12-17 21:10:55335 days ago1734469855IN
0x9f7f714a...dEAbE1710
0 ETH0.000000660.01480371
Withdraw232781652024-12-04 20:54:37348 days ago1733345677IN
0x9f7f714a...dEAbE1710
0 ETH0.000003030.02672069
Withdraw231768362024-12-02 12:36:59350 days ago1733143019IN
0x9f7f714a...dEAbE1710
0 ETH0.000002150.03872023
Withdraw For224487922024-11-15 16:08:51367 days ago1731686931IN
0x9f7f714a...dEAbE1710
0 ETH0.000022460.55125799
Withdraw220070242024-11-05 10:43:15377 days ago1730803395IN
0x9f7f714a...dEAbE1710
0 ETH0.00000020.00332831
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
383103132025-11-17 20:06:135 hrs ago1763409973
0x9f7f714a...dEAbE1710
0.000125 ETH
381649592025-11-14 11:21:053 days ago1763119265
0x9f7f714a...dEAbE1710
0.00001088 ETH
381505632025-11-14 3:21:133 days ago1763090473
0x9f7f714a...dEAbE1710
0.00000304 ETH
381505632025-11-14 3:21:133 days ago1763090473
0x9f7f714a...dEAbE1710
0.0000125 ETH
380986522025-11-12 22:30:515 days ago1762986651
0x9f7f714a...dEAbE1710
0.00000609 ETH
380986522025-11-12 22:30:515 days ago1762986651
0x9f7f714a...dEAbE1710
0.000025 ETH
380549012025-11-11 22:12:296 days ago1762899149
0x9f7f714a...dEAbE1710
0.00000609 ETH
380549012025-11-11 22:12:296 days ago1762899149
0x9f7f714a...dEAbE1710
0.000025 ETH
380090172025-11-10 20:43:017 days ago1762807381
0x9f7f714a...dEAbE1710
0.00000304 ETH
380090172025-11-10 20:43:017 days ago1762807381
0x9f7f714a...dEAbE1710
0.0000125 ETH
379632852025-11-09 19:18:378 days ago1762715917
0x9f7f714a...dEAbE1710
0.00000609 ETH
379632852025-11-09 19:18:378 days ago1762715917
0x9f7f714a...dEAbE1710
0.000025 ETH
379053142025-11-08 11:06:159 days ago1762599975
0x9f7f714a...dEAbE1710
0.00000609 ETH
379053142025-11-08 11:06:159 days ago1762599975
0x9f7f714a...dEAbE1710
0.000025 ETH
378546402025-11-07 6:57:0710 days ago1762498627
0x9f7f714a...dEAbE1710
0.00001218 ETH
378546402025-11-07 6:57:0710 days ago1762498627
0x9f7f714a...dEAbE1710
0.00005 ETH
377977522025-11-05 23:20:5112 days ago1762384851
0x9f7f714a...dEAbE1710
0.00001828 ETH
377977522025-11-05 23:20:5112 days ago1762384851
0x9f7f714a...dEAbE1710
0.000075 ETH
377510132025-11-04 21:22:5313 days ago1762291373
0x9f7f714a...dEAbE1710
0.00000304 ETH
377510132025-11-04 21:22:5313 days ago1762291373
0x9f7f714a...dEAbE1710
0.0000125 ETH
377068422025-11-03 20:50:3114 days ago1762203031
0x9f7f714a...dEAbE1710
0.00000335 ETH
377068422025-11-03 20:50:3114 days ago1762203031
0x9f7f714a...dEAbE1710
0.00001375 ETH
376619482025-11-02 19:54:0315 days ago1762113243
0x9f7f714a...dEAbE1710
0.00000304 ETH
376619482025-11-02 19:54:0315 days ago1762113243
0x9f7f714a...dEAbE1710
0.0000125 ETH
375850252025-11-01 1:09:5717 days ago1761959397
0x9f7f714a...dEAbE1710
0.00000609 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProtocolRewards

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 750 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.22;

import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import { IProtocolRewards } from "./interfaces/IProtocolRewards.sol";

// LICENSE
// ProtocolRewards.sol is a modified version of Zora's ProtocolRewards.sol:
// https://github.com/ourzora/zora-protocol/blob/38e9e788c258426037d9bc8a1e8821bf3ce8acf6/packages/protocol-rewards/src/ProtocolRewards.sol
//
// ProtocolRewards.sol source code Copyright Zora licensed under the MIT license.

/// @title ProtocolRewards
/// @notice Manager of deposits & withdrawals for protocol rewards
contract ProtocolRewards is IProtocolRewards, EIP712 {
    /// @notice The EIP-712 typehash for gasless withdraws
    bytes32 public constant WITHDRAW_TYPEHASH =
        keccak256("Withdraw(address from,address to,uint256 amount,uint256 nonce,uint256 deadline)");

    /// @notice An account's balance
    mapping(address => uint256) public balanceOf;

    /// @notice An account's nonce for gasless withdraws
    mapping(address => uint256) public nonces;

    constructor() payable EIP712("ProtocolRewards", "1") {}

    /// @notice The total amount of ETH held in the contract
    function totalRewardsSupply() external view returns (uint256) {
        return address(this).balance;
    }

    /// @notice Generic function to deposit ETH for a recipient, with an optional comment
    /// @param to Address to deposit to
    /// @param to Reason system reason for deposit (used for indexing)
    /// @param comment Optional comment as reason for deposit
    function deposit(address to, bytes4 reason, string calldata comment) external payable {
        if (to == address(0)) revert ADDRESS_ZERO();

        balanceOf[to] += msg.value;

        emit Deposit(msg.sender, to, reason, msg.value, comment);
    }

    /// @notice Generic function to deposit ETH for multiple recipients, with an optional comment
    /// @param recipients recipients to send the amount to, array aligns with amounts
    /// @param amounts amounts to send to each recipient, array aligns with recipients
    /// @param reasons optional bytes4 hash for indexing
    /// @param comment Optional comment to include with purchase
    function depositBatch(
        address[] calldata recipients,
        uint256[] calldata amounts,
        bytes4[] calldata reasons,
        string calldata comment
    ) external payable {
        uint256 numRecipients = recipients.length;

        if (numRecipients != amounts.length || numRecipients != reasons.length) revert ARRAY_LENGTH_MISMATCH();

        uint256 expectedTotalValue;

        for (uint256 i; i < numRecipients; ) {
            expectedTotalValue += amounts[i];

            ++i;
        }

        if (msg.value != expectedTotalValue) revert INVALID_DEPOSIT();

        address currentRecipient;
        uint256 currentAmount;

        for (uint256 i; i < numRecipients; ) {
            currentRecipient = recipients[i];
            currentAmount = amounts[i];

            if (currentRecipient == address(0)) revert ADDRESS_ZERO();

            balanceOf[currentRecipient] += currentAmount;

            emit Deposit(msg.sender, currentRecipient, reasons[i], currentAmount, comment);

            ++i;
        }
    }

    /// @notice Used by Revolution token contracts to deposit protocol rewards
    /// @param builderReferral Builder referral
    /// @param builderReferralReward Builder referral reward
    /// @param purchaseReferral Purchase referral user
    /// @param purchaseReferralReward Purchase referral amount
    /// @param deployer Deployer
    /// @param deployerReward Deployer reward amount
    /// @param revolution Revolution recipient
    /// @param revolutionReward Revolution amount
    function depositRewards(
        address builderReferral,
        uint256 builderReferralReward,
        address purchaseReferral,
        uint256 purchaseReferralReward,
        address deployer,
        uint256 deployerReward,
        address revolution,
        uint256 revolutionReward
    ) external payable {
        if (msg.value != (builderReferralReward + purchaseReferralReward + deployerReward + revolutionReward))
            revert INVALID_DEPOSIT();

        unchecked {
            if (builderReferral != address(0)) balanceOf[builderReferral] += builderReferralReward;

            if (purchaseReferral != address(0)) balanceOf[purchaseReferral] += purchaseReferralReward;

            if (deployer != address(0)) balanceOf[deployer] += deployerReward;

            if (revolution != address(0)) balanceOf[revolution] += revolutionReward;
        }

        emit RewardsDeposit(
            builderReferral,
            purchaseReferral,
            deployer,
            revolution,
            msg.sender,
            builderReferralReward,
            purchaseReferralReward,
            deployerReward,
            revolutionReward
        );
    }

    /// @notice Withdraw protocol rewards
    /// @param to Withdraws from msg.sender to this address
    /// @param amount Amount to withdraw (0 for total balance)
    function withdraw(address to, uint256 amount) external {
        if (to == address(0)) revert ADDRESS_ZERO();

        address owner = msg.sender;

        if (amount > balanceOf[owner]) revert INVALID_WITHDRAW();

        if (amount == 0) amount = balanceOf[owner];

        balanceOf[owner] -= amount;

        emit Withdraw(owner, to, amount);

        (bool success, ) = to.call{ value: amount }("");

        if (!success) revert TRANSFER_FAILED();
    }

    /// @notice Withdraw rewards on behalf of an address
    /// @param to The address to withdraw for
    /// @param amount The amount to withdraw (0 for total balance)
    function withdrawFor(address to, uint256 amount) external {
        if (to == address(0)) revert ADDRESS_ZERO();

        if (amount > balanceOf[to]) revert INVALID_WITHDRAW();

        if (amount == 0) amount = balanceOf[to];

        balanceOf[to] -= amount;

        emit Withdraw(to, to, amount);

        (bool success, ) = to.call{ value: amount }("");

        if (!success) revert TRANSFER_FAILED();
    }

    /// @notice Execute a withdraw of protocol rewards via signature
    /// @param from Withdraw from this address
    /// @param to Withdraw to this address
    /// @param amount Amount to withdraw (0 for total balance)
    /// @param deadline Deadline for the signature to be valid
    /// @param v V component of signature
    /// @param r R component of signature
    /// @param s S component of signature
    function withdrawWithSig(
        address from,
        address to,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external {
        if (block.timestamp > deadline) revert SIGNATURE_DEADLINE_EXPIRED();

        bytes32 withdrawHash;

        withdrawHash = keccak256(abi.encode(WITHDRAW_TYPEHASH, from, to, amount, nonces[from]++, deadline));

        bytes32 digest = _hashTypedDataV4(withdrawHash);

        address recoveredAddress = ecrecover(digest, v, r, s);

        // Ensure signature is valid
        if (recoveredAddress == address(0) || recoveredAddress != from) revert INVALID_SIGNATURE();

        // Ensure to address is not 0
        if (to == address(0)) revert ADDRESS_ZERO();

        // Ensure amount is not greater than balance
        if (amount > balanceOf[from]) revert INVALID_WITHDRAW();

        // Set amount to balance if 0
        if (amount == 0) amount = balanceOf[from];

        balanceOf[from] -= amount;

        emit Withdraw(from, to, amount);

        (bool success, ) = to.call{ value: amount }("");

        if (!success) revert TRANSFER_FAILED();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
 * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
 * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
 * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _name which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Name() internal view returns (string memory) {
        return _name.toStringWithFallback(_nameFallback);
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _version which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Version() internal view returns (string memory) {
        return _version.toStringWithFallback(_versionFallback);
    }
}

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.22;

/// @title IProtocolRewards
/// @notice The interface for deposits & withdrawals for Protocol Rewards
interface IProtocolRewards {
    /// @notice Rewards Deposit Event
    /// @param builderReferral Builder referral
    /// @param purchaseReferral Purchase referral user
    /// @param deployer Deployer reward recipient
    /// @param revolution Revolution recipient
    /// @param from The caller of the deposit
    /// @param builderReferralReward Builder referral reward
    /// @param purchaseReferralReward Purchase referral amount
    /// @param deployerReward Deployer reward amount
    /// @param revolutionReward Revolution amount
    event RewardsDeposit(
        address indexed builderReferral,
        address indexed purchaseReferral,
        address deployer,
        address revolution,
        address from,
        uint256 builderReferralReward,
        uint256 purchaseReferralReward,
        uint256 deployerReward,
        uint256 revolutionReward
    );

    /// @notice Deposit Event
    /// @param from From user
    /// @param to To user (within contract)
    /// @param reason Optional bytes4 reason for indexing
    /// @param amount Amount of deposit
    /// @param comment Optional user comment
    event Deposit(address indexed from, address indexed to, bytes4 indexed reason, uint256 amount, string comment);

    /// @notice Withdraw Event
    /// @param from From user
    /// @param to To user (within contract)
    /// @param amount Amount of deposit
    event Withdraw(address indexed from, address indexed to, uint256 amount);

    /// @notice Cannot send to address zero
    error ADDRESS_ZERO();

    /// @notice Function argument array length mismatch
    error ARRAY_LENGTH_MISMATCH();

    /// @notice Invalid deposit
    error INVALID_DEPOSIT();

    /// @notice Invalid signature for deposit
    error INVALID_SIGNATURE();

    /// @notice Invalid withdraw
    error INVALID_WITHDRAW();

    /// @notice Signature for withdraw is too old and has expired
    error SIGNATURE_DEADLINE_EXPIRED();

    /// @notice Low-level ETH transfer has failed
    error TRANSFER_FAILED();

    /// @notice Generic function to deposit ETH for a recipient, with an optional comment
    /// @param to Address to deposit to
    /// @param to Reason system reason for deposit (used for indexing)
    /// @param comment Optional comment as reason for deposit
    function deposit(address to, bytes4 why, string calldata comment) external payable;

    /// @notice Generic function to deposit ETH for multiple recipients, with an optional comment
    /// @param recipients recipients to send the amount to, array aligns with amounts
    /// @param amounts amounts to send to each recipient, array aligns with recipients
    /// @param reasons optional bytes4 hash for indexing
    /// @param comment Optional comment to include with purchase
    function depositBatch(
        address[] calldata recipients,
        uint256[] calldata amounts,
        bytes4[] calldata reasons,
        string calldata comment
    ) external payable;

    /// @notice Used by Revolution token contracts to deposit protocol rewards
    /// @param builderReferral Builder referral
    /// @param builderReferralReward Builder referral reward
    /// @param purchaseReferral Purchase referral user
    /// @param purchaseReferralReward Purchase referral amount
    /// @param deployer Deployer
    /// @param deployerReward Deployer reward amount
    /// @param revolution Revolution recipient
    /// @param revolutionReward Revolution amount
    function depositRewards(
        address builderReferral,
        uint256 builderReferralReward,
        address purchaseReferral,
        uint256 purchaseReferralReward,
        address deployer,
        uint256 deployerReward,
        address revolution,
        uint256 revolutionReward
    ) external payable;

    /// @notice Withdraw protocol rewards
    /// @param to Withdraws from msg.sender to this address
    /// @param amount amount to withdraw
    function withdraw(address to, uint256 amount) external;

    /// @notice Execute a withdraw of protocol rewards via signature
    /// @param from Withdraw from this address
    /// @param to Withdraw to this address
    /// @param amount Amount to withdraw
    /// @param deadline Deadline for the signature to be valid
    /// @param v V component of signature
    /// @param r R component of signature
    /// @param s S component of signature
    function withdrawWithSig(
        address from,
        address to,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

import {Strings} from "../Strings.sol";

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using
     * {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 6 of 10 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.20;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

Settings
{
  "remappings": [
    "ds-test/=node_modules/ds-test/src/",
    "forge-std/=node_modules/forge-std/src/",
    "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
    "@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
    "solmate/=node_modules/solmate/",
    "@cobuild/protocol-rewards/src/=node_modules/@cobuild/protocol-rewards/src/",
    "@cobuild/splits/src/=node_modules/@cobuild/splits/src/",
    "@cobuild/utility-contracts/src/=node_modules/@cobuild/utility-contracts/src/",
    "solmate/=node_modules/solmate/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 750
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"ADDRESS_ZERO","type":"error"},{"inputs":[],"name":"ARRAY_LENGTH_MISMATCH","type":"error"},{"inputs":[],"name":"INVALID_DEPOSIT","type":"error"},{"inputs":[],"name":"INVALID_SIGNATURE","type":"error"},{"inputs":[],"name":"INVALID_WITHDRAW","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"SIGNATURE_DEADLINE_EXPIRED","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TRANSFER_FAILED","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"bytes4","name":"reason","type":"bytes4"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"comment","type":"string"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"builderReferral","type":"address"},{"indexed":true,"internalType":"address","name":"purchaseReferral","type":"address"},{"indexed":false,"internalType":"address","name":"deployer","type":"address"},{"indexed":false,"internalType":"address","name":"revolution","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"builderReferralReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"purchaseReferralReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deployerReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"revolutionReward","type":"uint256"}],"name":"RewardsDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"WITHDRAW_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes4","name":"reason","type":"bytes4"},{"internalType":"string","name":"comment","type":"string"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes4[]","name":"reasons","type":"bytes4[]"},{"internalType":"string","name":"comment","type":"string"}],"name":"depositBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"builderReferral","type":"address"},{"internalType":"uint256","name":"builderReferralReward","type":"uint256"},{"internalType":"address","name":"purchaseReferral","type":"address"},{"internalType":"uint256","name":"purchaseReferralReward","type":"uint256"},{"internalType":"address","name":"deployer","type":"address"},{"internalType":"uint256","name":"deployerReward","type":"uint256"},{"internalType":"address","name":"revolution","type":"address"},{"internalType":"uint256","name":"revolutionReward","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"withdrawWithSig","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101608060405262000011816200014e565b600f8152602081016e50726f746f636f6c5265776172647360881b8152604051916200003d836200014e565b6001835260208301603160f81b815262000057826200016a565b9261012093845262000069856200033d565b92610140938452519020938460e05251902091610100938385524660a0526040519360208501917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8352604086015260608501524660808501523060a085015260a0845260c084019380851060018060401b038611176200013857846040525190206080523060c052610f779384620004eb853960805184610e4f015260a05184610f1b015260c05184610e20015260e05184610e9e01525183610ec4015251826106b9015251816106e30152f35b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176200013857604052565b8051602091908281101562000209575090601f825111620001a857808251920151908083106200019957501790565b82600019910360031b1b161790565b90604051809263305a27a960e01b82528060048301528251908160248401526000935b828510620001ef575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350620001cb565b6001600160401b03811162000138576000928354926001938481811c9116801562000332575b838210146200031e57601f8111620002e8575b5081601f8411600114620002815750928293918392869462000275575b50501b916000199060031b1c191617905560ff90565b0151925038806200025f565b919083601f1981168780528488209488905b88838310620002cd5750505010620002b3575b505050811b01905560ff90565b015160001960f88460031b161c19169055388080620002a6565b85870151885590960195948501948793509081019062000293565b85805284601f848820920160051c820191601f860160051c015b8281106200031257505062000242565b87815501859062000302565b634e487b7160e01b86526022600452602486fd5b90607f16906200022f565b805160209081811015620003cb5750601f8251116200036a57808251920151908083106200019957501790565b90604051809263305a27a960e01b82528060048301528251908160248401526000935b828510620003b1575050604492506000838284010152601f80199101168101030190fd5b84810182015186860160440152938101938593506200038d565b9192916001600160401b038111620001385760019182548381811c91168015620004df575b82821014620004c957601f811162000490575b5080601f83116001146200044357508192939460009262000437575b5050600019600383901b1c191690821b17905560ff90565b0151905038806200041f565b90601f198316958460005282600020926000905b888210620004785750508385969710620002b357505050811b01905560ff90565b80878596829496860151815501950193019062000457565b8360005283601f83600020920160051c820191601f850160051c015b828110620004bc57505062000403565b60008155018490620004ac565b634e487b7160e01b600052602260045260246000fd5b90607f1690620003f056fe6080604081815260048036101561001557600080fd5b60009260e08435811c918263300def951461086e5750816370a082311461083657816376c5d758146107fa5781637ecebe00146107c257816384b0196e146106a1578163b58ba16314610681578163c27e979414610450578163db518db2146103a0578163dd1ebf801461024d57508063f3fef3a3146101665763f7f8266f1461009e57600080fd5b6060366003190112610162576100b2610a98565b6024359263ffffffff60e01b841680940361015e576044359067ffffffffffffffff821161015a576100ef6001600160a01b039236908601610a6a565b9290931693841561014c57507f5b769452a2090142e059af5137c5b92a3e966cfb03b794cd01ac195d196c000191610146918588526002602052808820610137348254610b14565b90555191829133953484610b46565b0390a480f35b90516366e7950960e01b8152fd5b8580fd5b8480fd5b8280fd5b509034610162578060031936011261016257610180610a98565b602435906001600160a01b038116801561023d57338652600260205283862054831161022d57858381949382949383941561021a575b33845260026020528784206101cc848254610bc8565b905587518381527f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb60203392a35af1610203610bd5565b501561020d578280f35b51631fa55c0760e11b8152fd5b33845260026020528784205492506101b6565b505050516311c1730160e31b8152fd5b505050516366e7950960e01b8152fd5b8491508361010036600319011261016257610266610a98565b91602435604435936001600160a01b039384861680960361039c57606435608435938685168095036103985760a4359260c435978089168099036103945760e435956102bf876102ba886102ba8989610b14565b610b14565b3403610384577f12f5aaf33d99fc55cbe4e8b399e5cbb324c8d3d1c63986c68cefe71673d6797b999a9b9c5016988961036e575b8a610358575b86610342575b8061032c575b8151968752602087015233908601526060850152608084015260a083015260c0820152a380f35b808c526002602052818c20868154019055610305565b868c526002602052818c208581540190556102ff565b8a8c526002602052818c208481540190556102f9565b898c526002602052818c208381540190556102f3565b825163534e04af60e01b81528d90fd5b8a80fd5b8880fd5b8680fd5b505090346101625780600319360112610162576103bb610a98565b602435906001600160a01b038116801561023d57808652600260205283862054831161022d57858381949382949383941561043d575b8084526002602052878420610407848254610bc8565b9055807f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb60208a51868152a35af1610203610bd5565b80845260026020528784205492506103f1565b849391503461067d578060031936011261067d5761046c610a98565b90602435906001600160a01b03908183169182840361067957604435906064356084359060ff8216809203610394578397814211610669578392918c95948b921696878752826020976003895220918254926104c784610b37565b905583519289898501957f7b35c0715842c169bbf11116e8d20b2e74dacbd860d36ad5e47c3d88c15be55b87528501528a606085015287608085015260a084015260c083015260c08252810181811067ffffffffffffffff821117610656579260428c8f946080948a97835251902061053e610e16565b91519161190160f01b83526002830152602282015220908c519182528482015260a4358c82015260c435606082015282805260015afa1561064c57895116838115918215610641575b5050610631578315610621578289526002825286892054811161061157938895919386959386958695156105ff575b7f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb90828752600281528a87206105ed878254610bc8565b90558a51868152a35af1610203610bd5565b818652600281528986205494506105b6565b86516311c1730160e31b81528890fd5b86516366e7950960e01b81528890fd5b8651631468054760e31b81528890fd5b14159050838b610587565b87513d8b823e3d90fd5b634e487b7160e01b8e5260418d5260248efd5b895163cddf40ed60e01b81528b90fd5b8780fd5b8380fd5b5050503461069d578160031936011261069d5751478152602090f35b5080fd5b828486346107bf57806003193601126107bf576106dd7f0000000000000000000000000000000000000000000000000000000000000000610c15565b906107077f0000000000000000000000000000000000000000000000000000000000000000610d3d565b92805193602093602086019686881067ffffffffffffffff8911176107ac575095939061076283602092878b99965286865261075582519a8b9a600f60f81b8c5280878d01528b0190610aae565b91898303908a0152610aae565b924660608801523060808801528460a088015286840360c088015251928381520193925b82811061079557505050500390f35b835185528695509381019392810192600101610786565b634e487b7160e01b855260419052602484fd5b80fd5b5050503461069d57602036600319011261069d57806020926001600160a01b036107ea610a98565b1681526003845220549051908152f35b5050503461069d578160031936011261069d57602090517f7b35c0715842c169bbf11116e8d20b2e74dacbd860d36ad5e47c3d88c15be55b8152f35b5050503461069d57602036600319011261069d57806020926001600160a01b0361085e610a98565b1681526002845220549051908152f35b85908585608036600319011261067d5767ffffffffffffffff90803582811161015a5761089e9036908301610a34565b949093602435848111610679576108b89036908501610a34565b9094604435818111610a30576108d19036908701610a34565b929091606435908111610394576108eb9036908801610a6a565b999095828214801590610a26575b610a1857508a8b5b838a8483106109f35750505034036109e3578a5b818110610920578b80f35b61092b81838c610aee565b35906001600160a01b0382168092036109df5761094981858c610aee565b359180156109cf57878e828152600260205220610967848254610b14565b9055610974828888610aee565b359063ffffffff60e01b82168092036109cb576109c6937f5b769452a2090142e059af5137c5b92a3e966cfb03b794cd01ac195d196c00018f8c6109be8d51928392339684610b46565b0390a4610b37565b610915565b8e80fd5b87516366e7950960e01b81528a90fd5b8c80fd5b845163534e04af60e01b81528790fd5b92610a0683610a0d93610a139596610aee565b3590610b14565b91610b37565b610901565b634456f5e960e11b81528790fd5b50848214156108f9565b8980fd5b9181601f84011215610a655782359167ffffffffffffffff8311610a65576020808501948460051b010111610a6557565b600080fd5b9181601f84011215610a655782359167ffffffffffffffff8311610a655760208381860195010111610a6557565b600435906001600160a01b0382168203610a6557565b919082519283825260005b848110610ada575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610ab9565b9190811015610afe5760051b0190565b634e487b7160e01b600052603260045260246000fd5b91908201809211610b2157565b634e487b7160e01b600052601160045260246000fd5b6000198114610b215760010190565b91926060938192845260406020850152816040850152848401376000828201840152601f01601f1916010190565b6040810190811067ffffffffffffffff821117610b9057604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610b9057604052565b91908203918211610b2157565b3d15610c10573d9067ffffffffffffffff8211610b905760405191610c04601f8201601f191660200184610ba6565b82523d6000602084013e565b606090565b60ff8114610c535760ff811690601f8211610c415760405191610c3783610b74565b8252602082015290565b604051632cd44ac360e21b8152600490fd5b50604051600080549060018260011c9060018416938415610d33575b6020948584108114610d1f5783875286949392918115610cff5750600114610ca3575b5050610ca092500382610ba6565b90565b60008080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56395935091905b818310610ce7575050610ca093508201013880610c92565b85548784018501529485019486945091830191610ccf565b915050610ca094925060ff191682840152151560051b8201013880610c92565b634e487b7160e01b85526022600452602485fd5b91607f1691610c6f565b60ff8114610d5f5760ff811690601f8211610c415760405191610c3783610b74565b506040516000600190600154918260011c9060018416938415610e0c575b6020948584108114610d1f5783875286949392918115610cff5750600114610dad575050610ca092500382610ba6565b9093915060016000527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6936000915b818310610df4575050610ca093508201013880610c92565b85548784018501529485019486945091830191610ddc565b91607f1691610d7d565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016301480610f18575b15610e71577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff821117610b905760405251902090565b507f00000000000000000000000000000000000000000000000000000000000000004614610e4856fea264697066735822122010dd1a514bb5dc1e33c98224635f06570e7b3081eae26396e8507d161925549164736f6c63430008160033

Deployed Bytecode

0x6080604081815260048036101561001557600080fd5b60009260e08435811c918263300def951461086e5750816370a082311461083657816376c5d758146107fa5781637ecebe00146107c257816384b0196e146106a1578163b58ba16314610681578163c27e979414610450578163db518db2146103a0578163dd1ebf801461024d57508063f3fef3a3146101665763f7f8266f1461009e57600080fd5b6060366003190112610162576100b2610a98565b6024359263ffffffff60e01b841680940361015e576044359067ffffffffffffffff821161015a576100ef6001600160a01b039236908601610a6a565b9290931693841561014c57507f5b769452a2090142e059af5137c5b92a3e966cfb03b794cd01ac195d196c000191610146918588526002602052808820610137348254610b14565b90555191829133953484610b46565b0390a480f35b90516366e7950960e01b8152fd5b8580fd5b8480fd5b8280fd5b509034610162578060031936011261016257610180610a98565b602435906001600160a01b038116801561023d57338652600260205283862054831161022d57858381949382949383941561021a575b33845260026020528784206101cc848254610bc8565b905587518381527f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb60203392a35af1610203610bd5565b501561020d578280f35b51631fa55c0760e11b8152fd5b33845260026020528784205492506101b6565b505050516311c1730160e31b8152fd5b505050516366e7950960e01b8152fd5b8491508361010036600319011261016257610266610a98565b91602435604435936001600160a01b039384861680960361039c57606435608435938685168095036103985760a4359260c435978089168099036103945760e435956102bf876102ba886102ba8989610b14565b610b14565b3403610384577f12f5aaf33d99fc55cbe4e8b399e5cbb324c8d3d1c63986c68cefe71673d6797b999a9b9c5016988961036e575b8a610358575b86610342575b8061032c575b8151968752602087015233908601526060850152608084015260a083015260c0820152a380f35b808c526002602052818c20868154019055610305565b868c526002602052818c208581540190556102ff565b8a8c526002602052818c208481540190556102f9565b898c526002602052818c208381540190556102f3565b825163534e04af60e01b81528d90fd5b8a80fd5b8880fd5b8680fd5b505090346101625780600319360112610162576103bb610a98565b602435906001600160a01b038116801561023d57808652600260205283862054831161022d57858381949382949383941561043d575b8084526002602052878420610407848254610bc8565b9055807f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb60208a51868152a35af1610203610bd5565b80845260026020528784205492506103f1565b849391503461067d578060031936011261067d5761046c610a98565b90602435906001600160a01b03908183169182840361067957604435906064356084359060ff8216809203610394578397814211610669578392918c95948b921696878752826020976003895220918254926104c784610b37565b905583519289898501957f7b35c0715842c169bbf11116e8d20b2e74dacbd860d36ad5e47c3d88c15be55b87528501528a606085015287608085015260a084015260c083015260c08252810181811067ffffffffffffffff821117610656579260428c8f946080948a97835251902061053e610e16565b91519161190160f01b83526002830152602282015220908c519182528482015260a4358c82015260c435606082015282805260015afa1561064c57895116838115918215610641575b5050610631578315610621578289526002825286892054811161061157938895919386959386958695156105ff575b7f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb90828752600281528a87206105ed878254610bc8565b90558a51868152a35af1610203610bd5565b818652600281528986205494506105b6565b86516311c1730160e31b81528890fd5b86516366e7950960e01b81528890fd5b8651631468054760e31b81528890fd5b14159050838b610587565b87513d8b823e3d90fd5b634e487b7160e01b8e5260418d5260248efd5b895163cddf40ed60e01b81528b90fd5b8780fd5b8380fd5b5050503461069d578160031936011261069d5751478152602090f35b5080fd5b828486346107bf57806003193601126107bf576106dd7f50726f746f636f6c52657761726473000000000000000000000000000000000f610c15565b906107077f3100000000000000000000000000000000000000000000000000000000000001610d3d565b92805193602093602086019686881067ffffffffffffffff8911176107ac575095939061076283602092878b99965286865261075582519a8b9a600f60f81b8c5280878d01528b0190610aae565b91898303908a0152610aae565b924660608801523060808801528460a088015286840360c088015251928381520193925b82811061079557505050500390f35b835185528695509381019392810192600101610786565b634e487b7160e01b855260419052602484fd5b80fd5b5050503461069d57602036600319011261069d57806020926001600160a01b036107ea610a98565b1681526003845220549051908152f35b5050503461069d578160031936011261069d57602090517f7b35c0715842c169bbf11116e8d20b2e74dacbd860d36ad5e47c3d88c15be55b8152f35b5050503461069d57602036600319011261069d57806020926001600160a01b0361085e610a98565b1681526002845220549051908152f35b85908585608036600319011261067d5767ffffffffffffffff90803582811161015a5761089e9036908301610a34565b949093602435848111610679576108b89036908501610a34565b9094604435818111610a30576108d19036908701610a34565b929091606435908111610394576108eb9036908801610a6a565b999095828214801590610a26575b610a1857508a8b5b838a8483106109f35750505034036109e3578a5b818110610920578b80f35b61092b81838c610aee565b35906001600160a01b0382168092036109df5761094981858c610aee565b359180156109cf57878e828152600260205220610967848254610b14565b9055610974828888610aee565b359063ffffffff60e01b82168092036109cb576109c6937f5b769452a2090142e059af5137c5b92a3e966cfb03b794cd01ac195d196c00018f8c6109be8d51928392339684610b46565b0390a4610b37565b610915565b8e80fd5b87516366e7950960e01b81528a90fd5b8c80fd5b845163534e04af60e01b81528790fd5b92610a0683610a0d93610a139596610aee565b3590610b14565b91610b37565b610901565b634456f5e960e11b81528790fd5b50848214156108f9565b8980fd5b9181601f84011215610a655782359167ffffffffffffffff8311610a65576020808501948460051b010111610a6557565b600080fd5b9181601f84011215610a655782359167ffffffffffffffff8311610a655760208381860195010111610a6557565b600435906001600160a01b0382168203610a6557565b919082519283825260005b848110610ada575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610ab9565b9190811015610afe5760051b0190565b634e487b7160e01b600052603260045260246000fd5b91908201809211610b2157565b634e487b7160e01b600052601160045260246000fd5b6000198114610b215760010190565b91926060938192845260406020850152816040850152848401376000828201840152601f01601f1916010190565b6040810190811067ffffffffffffffff821117610b9057604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610b9057604052565b91908203918211610b2157565b3d15610c10573d9067ffffffffffffffff8211610b905760405191610c04601f8201601f191660200184610ba6565b82523d6000602084013e565b606090565b60ff8114610c535760ff811690601f8211610c415760405191610c3783610b74565b8252602082015290565b604051632cd44ac360e21b8152600490fd5b50604051600080549060018260011c9060018416938415610d33575b6020948584108114610d1f5783875286949392918115610cff5750600114610ca3575b5050610ca092500382610ba6565b90565b60008080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56395935091905b818310610ce7575050610ca093508201013880610c92565b85548784018501529485019486945091830191610ccf565b915050610ca094925060ff191682840152151560051b8201013880610c92565b634e487b7160e01b85526022600452602485fd5b91607f1691610c6f565b60ff8114610d5f5760ff811690601f8211610c415760405191610c3783610b74565b506040516000600190600154918260011c9060018416938415610e0c575b6020948584108114610d1f5783875286949392918115610cff5750600114610dad575050610ca092500382610ba6565b9093915060016000527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6936000915b818310610df4575050610ca093508201013880610c92565b85548784018501529485019486945091830191610ddc565b91607f1691610d7d565b6001600160a01b037f0000000000000000000000009f7f714a3cd6b6eadbc9629838b0f6ddeabe171016301480610f18575b15610e71577fa61a0514c6a40523d52c92908f540b923f00bbcfa923b14de6b7c7062177424190565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f2c4679fa3806a63bb76094fb31a249690e22248001692948fa20c105d49b623b60408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff821117610b905760405251902090565b507f00000000000000000000000000000000000000000000000000000000000021054614610e4856fea264697066735822122010dd1a514bb5dc1e33c98224635f06570e7b3081eae26396e8507d161925549164736f6c63430008160033

Block Transaction Difficulty 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  ]
[ 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.