ETH Price: $3,050.39 (+0.75%)

Contract

0x66C0499B1Df146dbaf4B1DEa1df436ba26DAfF21

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BatchDistributor

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 999999 runs

Other Settings:
cancun EvmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @dev Error that occurs when transferring ether has failed.
 * @param emitter The contract that emits the error.
 */
error EtherTransferFail(address emitter);

/**
 * @title Native and ERC-20 Token Batch Distributor
 * @author 0x7761676d69
 * @notice Helper smart contract for batch sending both
 * native and ERC-20 tokens.
 * @dev Since we use nested struct objects, we rely on the ABI coder v2.
 * The ABI coder v2 is activated by default since Solidity `v0.8.0`.
 */
contract BatchDistributor {
    using SafeERC20 for IERC20;

    /**
     * @dev Transaction struct for the transaction payload.
     */
    struct Transaction {
        address payable recipient;
        uint256 amount;
    }

    /**
     * @dev Batch struct for the array of transactions.
     */
    struct Batch {
        Transaction[] txns;
    }

    /**
     * @dev You can cut out 10 opcodes in the creation-time EVM bytecode
     * if you declare a constructor `payable`.
     *
     * For more in-depth information see here:
     * https://forum.openzeppelin.com/t/a-collection-of-gas-optimisation-tricks/19966/5.
     */
    constructor() payable {}

    /**
     * @dev Distributes ether, denominated in wei, to a predefined batch
     * of recipient addresses.
     * @notice In the event that excessive ether is sent, the residual
     * amount is returned back to the `msg.sender`.
     * @param batch Nested struct object that contains an array of tuples that
     * contain each a recipient address & ether amount in wei.
     */
    function distributeEther(Batch calldata batch) external payable {
        /**
         * @dev Caching the length in for loops saves 3 additional gas
         * for a `calldata` array for each iteration except for the first.
         */
        uint256 length = batch.txns.length;

        /**
         * @dev If a variable is not set/initialised, it is assumed to have
         * the default value. The default value for the `uint` types is 0.
         */
        for (uint256 i; i < length; ++i) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool sent, ) = batch.txns[i].recipient.call{value: batch.txns[i].amount}("");
            if (!sent) revert EtherTransferFail(address(this));
        }

        uint256 balance = address(this).balance;
        if (balance != 0) {
            /**
             * @dev Any wei amount previously forced into this contract (e.g. by
             * using the `SELFDESTRUCT` opcode) will be part of the refund transaction.
             */
            // solhint-disable-next-line avoid-low-level-calls
            (bool refunded, ) = payable(msg.sender).call{value: balance}("");
            if (!refunded) revert EtherTransferFail(address(this));
        }
    }

    /**
     * @dev Distributes ERC-20 tokens, denominated in their corresponding
     * lowest unit, to a predefined batch of recipient addresses.
     * @notice To deal with (potentially) non-compliant ERC-20 tokens that
     * do have no return value, we use the `SafeERC20` library for external calls.
     * Note: Since we cast the token address into the official ERC-20 interface,
     * the use of non-compliant ERC-20 tokens is prevented by design. Nevertheless,
     * we keep this guardrail for security reasons.
     * @param token ERC-20 token contract address.
     * @param batch Nested struct object that contains an array of tuples that
     * contain each a recipient address & token amount.
     */
    function distributeToken(IERC20 token, Batch calldata batch) external {
        /**
         * @dev Caching the length in for loops saves 3 additional gas
         * for a `calldata` array for each iteration except for the first.
         */
        uint256 length = batch.txns.length;

        /**
         * @dev If a variable is not set/initialised, it is assumed to have
         * the default value. The default value for the `uint` types is 0.
         */
        uint256 total;
        for (uint256 i; i < length; ++i) {
            total += batch.txns[i].amount;
        }

        /**
         * @dev By combining a `transferFrom` call to itself and then
         * distributing the tokens from its own address using `transfer`,
         * 5'000 gas is saved on each transfer as `allowance` is only
         * touched once.
         */
        token.safeTransferFrom(msg.sender, address(this), total);

        for (uint256 i; i < length; ++i) {
            token.safeTransfer(batch.txns[i].recipient, batch.txns[i].amount);
        }
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

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

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

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

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

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

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

Settings
{
  "remappings": [
    "@openzeppelin/=node_modules/@openzeppelin/",
    "hardhat/=node_modules/hardhat/",
    "xdeployer/=node_modules/xdeployer/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"emitter","type":"address"}],"name":"EtherTransferFail","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"components":[{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BatchDistributor.Transaction[]","name":"txns","type":"tuple[]"}],"internalType":"struct BatchDistributor.Batch","name":"batch","type":"tuple"}],"name":"distributeEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"components":[{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BatchDistributor.Transaction[]","name":"txns","type":"tuple[]"}],"internalType":"struct BatchDistributor.Batch","name":"batch","type":"tuple"}],"name":"distributeToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052610662806100115f395ff3fe608060405260043610610028575f3560e01c80633bd08a791461002c5780639d0918b51461004d575b5f5ffd5b348015610037575f5ffd5b5061004b6100463660046104ad565b610060565b005b61004b61005b3660046104fa565b61016c565b5f61006b8280610534565b905090505f5f5b828110156100b3576100848480610534565b828181106100945761009461059f565b90506040020160200135826100a991906105cc565b9150600101610072565b506100d673ffffffffffffffffffffffffffffffffffffffff851633308461030d565b5f5b828110156101655761015d6100ed8580610534565b838181106100fd576100fd61059f565b610113926020604090920201908101915061060a565b61011d8680610534565b8481811061012d5761012d61059f565b905060400201602001358773ffffffffffffffffffffffffffffffffffffffff166103969092919063ffffffff16565b6001016100d8565b5050505050565b5f6101778280610534565b905090505f5b8181101561027d575f6101908480610534565b838181106101a0576101a061059f565b6101b6926020604090920201908101915061060a565b73ffffffffffffffffffffffffffffffffffffffff166101d68580610534565b848181106101e6576101e661059f565b905060400201602001356040515f6040518083038185875af1925050503d805f811461022d576040519150601f19603f3d011682016040523d82523d5f602084013e610232565b606091505b5050905080610274576040517fdd74906f0000000000000000000000000000000000000000000000000000000081523060048201526024015b60405180910390fd5b5060010161017d565b50478015610308576040515f90339083908381818185875af1925050503d805f81146102c4576040519150601f19603f3d011682016040523d82523d5f602084013e6102c9565b606091505b5050905080610306576040517fdd74906f00000000000000000000000000000000000000000000000000000000815230600482015260240161026b565b505b505050565b60405173ffffffffffffffffffffffffffffffffffffffff84811660248301528381166044830152606482018390526103069186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506103d4565b60405173ffffffffffffffffffffffffffffffffffffffff83811660248301526044820183905261030891859182169063a9059cbb9060640161034f565b5f5f60205f8451602086015f885af1806103f3576040513d5f823e3d81fd5b50505f513d9150811561040a578060011415610424565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610306576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260240161026b565b73ffffffffffffffffffffffffffffffffffffffff81168114610494575f5ffd5b50565b5f602082840312156104a7575f5ffd5b50919050565b5f5f604083850312156104be575f5ffd5b82356104c981610473565b9150602083013567ffffffffffffffff8111156104e4575f5ffd5b6104f085828601610497565b9150509250929050565b5f6020828403121561050a575f5ffd5b813567ffffffffffffffff811115610520575f5ffd5b61052c84828501610497565b949350505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112610567575f5ffd5b83018035915067ffffffffffffffff821115610581575f5ffd5b6020019150600681901b3603821315610598575f5ffd5b9250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b80820180821115610604577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b92915050565b5f6020828403121561061a575f5ffd5b813561062581610473565b939250505056fea26469706673582212208efa38f83692ce21acab60a89f51849a3b2210862b4556ff6d57da64e0e878d164736f6c634300081e0033

Deployed Bytecode

0x608060405260043610610028575f3560e01c80633bd08a791461002c5780639d0918b51461004d575b5f5ffd5b348015610037575f5ffd5b5061004b6100463660046104ad565b610060565b005b61004b61005b3660046104fa565b61016c565b5f61006b8280610534565b905090505f5f5b828110156100b3576100848480610534565b828181106100945761009461059f565b90506040020160200135826100a991906105cc565b9150600101610072565b506100d673ffffffffffffffffffffffffffffffffffffffff851633308461030d565b5f5b828110156101655761015d6100ed8580610534565b838181106100fd576100fd61059f565b610113926020604090920201908101915061060a565b61011d8680610534565b8481811061012d5761012d61059f565b905060400201602001358773ffffffffffffffffffffffffffffffffffffffff166103969092919063ffffffff16565b6001016100d8565b5050505050565b5f6101778280610534565b905090505f5b8181101561027d575f6101908480610534565b838181106101a0576101a061059f565b6101b6926020604090920201908101915061060a565b73ffffffffffffffffffffffffffffffffffffffff166101d68580610534565b848181106101e6576101e661059f565b905060400201602001356040515f6040518083038185875af1925050503d805f811461022d576040519150601f19603f3d011682016040523d82523d5f602084013e610232565b606091505b5050905080610274576040517fdd74906f0000000000000000000000000000000000000000000000000000000081523060048201526024015b60405180910390fd5b5060010161017d565b50478015610308576040515f90339083908381818185875af1925050503d805f81146102c4576040519150601f19603f3d011682016040523d82523d5f602084013e6102c9565b606091505b5050905080610306576040517fdd74906f00000000000000000000000000000000000000000000000000000000815230600482015260240161026b565b505b505050565b60405173ffffffffffffffffffffffffffffffffffffffff84811660248301528381166044830152606482018390526103069186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506103d4565b60405173ffffffffffffffffffffffffffffffffffffffff83811660248301526044820183905261030891859182169063a9059cbb9060640161034f565b5f5f60205f8451602086015f885af1806103f3576040513d5f823e3d81fd5b50505f513d9150811561040a578060011415610424565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610306576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260240161026b565b73ffffffffffffffffffffffffffffffffffffffff81168114610494575f5ffd5b50565b5f602082840312156104a7575f5ffd5b50919050565b5f5f604083850312156104be575f5ffd5b82356104c981610473565b9150602083013567ffffffffffffffff8111156104e4575f5ffd5b6104f085828601610497565b9150509250929050565b5f6020828403121561050a575f5ffd5b813567ffffffffffffffff811115610520575f5ffd5b61052c84828501610497565b949350505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112610567575f5ffd5b83018035915067ffffffffffffffff821115610581575f5ffd5b6020019150600681901b3603821315610598575f5ffd5b9250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b80820180821115610604577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b92915050565b5f6020828403121561061a575f5ffd5b813561062581610473565b939250505056fea26469706673582212208efa38f83692ce21acab60a89f51849a3b2210862b4556ff6d57da64e0e878d164736f6c634300081e0033

Deployed Bytecode Sourcemap

689:4056:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;3694:1049;;;;;;;;;;-1:-1:-1;3694:1049:0;;;;;:::i;:::-;;:::i;:::-;;1741:1230;;;;;;:::i;:::-;;:::i;3694:1049::-;3944:14;3961:10;:5;;:10;:::i;:::-;:17;;3944:34;;4164:13;4192:9;4187:87;4207:6;4203:1;:10;4187:87;;;4243:10;:5;;:10;:::i;:::-;4254:1;4243:13;;;;;;;:::i;:::-;;;;;;:20;;;4234:29;;;;;:::i;:::-;;-1:-1:-1;4215:3:0;;4187:87;;;-1:-1:-1;4547:56:0;:22;;;4570:10;4590:4;4597:5;4547:22;:56::i;:::-;4619:9;4614:123;4634:6;4630:1;:10;4614:123;;;4661:65;4680:10;:5;;:10;:::i;:::-;4691:1;4680:13;;;;;;;:::i;:::-;:23;;;:13;;;;;:23;;;;-1:-1:-1;4680:23:0;:::i;:::-;4705:10;:5;;:10;:::i;:::-;4716:1;4705:13;;;;;;;:::i;:::-;;;;;;:20;;;4661:5;:18;;;;:65;;;;;:::i;:::-;4642:3;;4614:123;;;;3764:979;;3694:1049;;:::o;1741:1230::-;1985:14;2002:10;:5;;:10;:::i;:::-;:17;;1985:34;;2210:9;2205:262;2225:6;2221:1;:10;2205:262;;;2316:9;2331:10;:5;;:10;:::i;:::-;2342:1;2331:13;;;;;;;:::i;:::-;:23;;;:13;;;;;:23;;;;-1:-1:-1;2331:23:0;:::i;:::-;:28;;2367:10;:5;;:10;:::i;:::-;2378:1;2367:13;;;;;;;:::i;:::-;;;;;;:20;;;2331:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2315:77;;;2411:4;2406:50;;2424:32;;;;;2450:4;2424:32;;;2941:74:7;2914:18;;2424:32:0;;;;;;;;2406:50;-1:-1:-1;2233:3:0;;2205:262;;;-1:-1:-1;2495:21:0;2530:12;;2526:439;;2842:44;;2823:13;;2850:10;;2874:7;;2823:13;2842:44;2823:13;2842:44;2874:7;2850:10;2842:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2822:64;;;2905:8;2900:54;;2922:32;;;;;2948:4;2922:32;;;2941:74:7;2914:18;;2922:32:0;2795:226:7;2900:54:0;2544:421;2526:439;1805:1166;;1741:1230;:::o;1618:188:5:-;1745:53;;1760:18;3246:55:7;;;1745:53:5;;;3228:74:7;3338:55;;;3318:18;;;3311:83;3410:18;;;3403:34;;;1718:81:5;;1738:5;;1760:18;;;;;3201::7;;1745:53:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1718:19;:81::i;1219:160::-;1328:43;;1343:14;3640:55:7;;;1328:43:5;;;3622:74:7;3712:18;;;3705:34;;;1301:71:5;;1321:5;;1343:14;;;;;3595:18:7;;1328:43:5;3448:297:7;8370:720:5;8450:18;8478:19;8616:4;8613:1;8606:4;8600:11;8593:4;8587;8583:15;8580:1;8573:5;8566;8561:60;8673:7;8663:176;;8717:4;8711:11;8762:16;8759:1;8754:3;8739:40;8808:16;8803:3;8796:29;8663:176;-1:-1:-1;;8916:1:5;8910:8;8866:16;;-1:-1:-1;8942:15:5;;:68;;8994:11;9009:1;8994:16;;8942:68;;;8960:26;;;;:31;8942:68;8938:146;;;9033:40;;;;;2971:42:7;2959:55;;9033:40:5;;;2941:74:7;2914:18;;9033:40:5;2795:226:7;14:162;108:42;101:5;97:54;90:5;87:65;77:93;;166:1;163;156:12;77:93;14:162;:::o;181:153::-;239:5;284:2;275:6;270:3;266:16;262:25;259:45;;;300:1;297;290:12;259:45;-1:-1:-1;322:6:7;181:153;-1:-1:-1;181:153:7:o;339:507::-;444:6;452;505:2;493:9;484:7;480:23;476:32;473:52;;;521:1;518;511:12;473:52;560:9;547:23;579:39;612:5;579:39;:::i;:::-;637:5;-1:-1:-1;693:2:7;678:18;;665:32;720:18;709:30;;706:50;;;752:1;749;742:12;706:50;775:65;832:7;823:6;812:9;808:22;775:65;:::i;:::-;765:75;;;339:507;;;;;:::o;851:350::-;933:6;986:2;974:9;965:7;961:23;957:32;954:52;;;1002:1;999;992:12;954:52;1042:9;1029:23;1075:18;1067:6;1064:30;1061:50;;;1107:1;1104;1097:12;1061:50;1130:65;1187:7;1178:6;1167:9;1163:22;1130:65;:::i;:::-;1120:75;851:350;-1:-1:-1;;;;851:350:7:o;1206:633::-;1328:4;1334:6;1394:11;1381:25;1484:66;1473:8;1457:14;1453:29;1449:102;1429:18;1425:127;1415:155;;1566:1;1563;1556:12;1415:155;1593:33;;1645:20;;;-1:-1:-1;1688:18:7;1677:30;;1674:50;;;1720:1;1717;1710:12;1674:50;1753:4;1741:17;;-1:-1:-1;1804:1:7;1800:14;;;1784;1780:35;1770:46;;1767:66;;;1829:1;1826;1819:12;1767:66;1206:633;;;;;:::o;1844:184::-;1896:77;1893:1;1886:88;1993:4;1990:1;1983:15;2017:4;2014:1;2007:15;2033:279;2098:9;;;2119:10;;;2116:190;;;2162:77;2159:1;2152:88;2263:4;2260:1;2253:15;2291:4;2288:1;2281:15;2116:190;2033:279;;;;:::o;2317:263::-;2384:6;2437:2;2425:9;2416:7;2412:23;2408:32;2405:52;;;2453:1;2450;2443:12;2405:52;2492:9;2479:23;2511:39;2544:5;2511:39;:::i;:::-;2569:5;2317:263;-1:-1:-1;;;2317:263:7:o

Swarm Source

ipfs://8efa38f83692ce21acab60a89f51849a3b2210862b4556ff6d57da64e0e878d1

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.