ETH Price: $2,289.20 (-4.17%)

Contract

0xCa46fA156bE53012F44dD71790D9E653EB927EbB

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Set Core1100911752023-09-27 2:18:47355 days ago1695781127IN
0xCa46fA15...3EB927EbB
0 ETH0.000018198880.15377417
0x608060401100909902023-09-27 2:12:37355 days ago1695780757IN
 Create: Executor
0 ETH0.0004597631060.15498019

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1211790662024-06-09 18:15:0998 days ago1717956909
0xCa46fA15...3EB927EbB
0.001 ETH
1211790662024-06-09 18:15:0998 days ago1717956909
0xCa46fA15...3EB927EbB
0.001 ETH
1205217312024-05-25 13:03:59114 days ago1716642239
0xCa46fA15...3EB927EbB
0.00079 ETH
1205217312024-05-25 13:03:59114 days ago1716642239
0xCa46fA15...3EB927EbB
0.00079 ETH
1201718492024-05-17 10:41:15122 days ago1715942475
0xCa46fA15...3EB927EbB
0.0006 ETH
1201718492024-05-17 10:41:15122 days ago1715942475
0xCa46fA15...3EB927EbB
0.0006 ETH
1197349602024-05-07 7:58:17132 days ago1715068697
0xCa46fA15...3EB927EbB
0.0006799999 ETH
1197349602024-05-07 7:58:17132 days ago1715068697
0xCa46fA15...3EB927EbB
0.0006799999 ETH
1197348452024-05-07 7:54:27132 days ago1715068467
0xCa46fA15...3EB927EbB
0.0006 ETH
1197348452024-05-07 7:54:27132 days ago1715068467
0xCa46fA15...3EB927EbB
0.0006 ETH
1190980342024-04-22 14:07:25147 days ago1713794845
0xCa46fA15...3EB927EbB
0.000777 ETH
1190980342024-04-22 14:07:25147 days ago1713794845
0xCa46fA15...3EB927EbB
0.000777 ETH
1186618662024-04-12 11:48:29157 days ago1712922509
0xCa46fA15...3EB927EbB
0.000777 ETH
1186618662024-04-12 11:48:29157 days ago1712922509
0xCa46fA15...3EB927EbB
0.000777 ETH
1185209762024-04-09 5:32:09160 days ago1712640729
0xCa46fA15...3EB927EbB
0.001 ETH
1185209762024-04-09 5:32:09160 days ago1712640729
0xCa46fA15...3EB927EbB
0.001 ETH
1184140302024-04-06 18:07:17162 days ago1712426837
0xCa46fA15...3EB927EbB
0.00043 ETH
1184140302024-04-06 18:07:17162 days ago1712426837
0xCa46fA15...3EB927EbB
0.00043 ETH
1184088072024-04-06 15:13:11163 days ago1712416391
0xCa46fA15...3EB927EbB
0.0004 ETH
1184088072024-04-06 15:13:11163 days ago1712416391
0xCa46fA15...3EB927EbB
0.0004 ETH
1180336932024-03-28 22:49:23171 days ago1711666163
0xCa46fA15...3EB927EbB
0.0008 ETH
1180336932024-03-28 22:49:23171 days ago1711666163
0xCa46fA15...3EB927EbB
0.0008 ETH
1179142302024-03-26 4:27:17174 days ago1711427237
0xCa46fA15...3EB927EbB
0.00044 ETH
1179142302024-03-26 4:27:17174 days ago1711427237
0xCa46fA15...3EB927EbB
0.00044 ETH
1177110392024-03-21 11:34:15179 days ago1711020855
0xCa46fA15...3EB927EbB
0.00176 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Executor

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 18 : Executor.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Callbacks} from "../utils/Callbacks.sol";
import {IExecutor} from "../interfaces/IExecutor.sol";
import {IERC20} from "@openzeppelin-contracts/contracts/interfaces/IERC20.sol";
import {Ownable} from "@openzeppelin-contracts/contracts/access/Ownable.sol";
import {TokenData} from "../lib/CoreStructs.sol";
import {SafeERC20} from "@openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

contract Executor is IExecutor, Ownable, Callbacks {
    address public coreAddress;

    /**
     * @dev executes call from dispatcher, creating additional checks on arbitrary calldata
     * @param target The address of the target contract for the payment transaction.
     * @param paymentOperator The operator address for payment transfers requiring erc20 approvals.
     * @param data The token swap data and post bridge execution payload.
     */
    function execute(address target, address paymentOperator, TokenData memory data)
        external
        payable
        returns (bool success)
    {
        if (msg.sender != coreAddress) {
            revert OnlyCoreAuth();
        }

        if (data.tokenOut != address(0)) {
            SafeERC20.safeTransferFrom(IERC20(data.tokenOut), coreAddress, address(this), data.amountOut);
            SafeERC20.safeIncreaseAllowance(IERC20(data.tokenOut), paymentOperator, data.amountOut);
            (success,) = target.call{value: data.nativeOut}(data.payload);
        } else {
            (success,) = target.call{value: data.amountOut + data.nativeOut}(data.payload);
        }

        // send back to core if failed
        if (!success) {
            if (data.tokenOut == address(0)) {
                payable(coreAddress).call{value: data.amountOut}("");
            } else {
                SafeERC20.safeTransfer(IERC20(data.tokenOut), coreAddress, data.amountOut);
            }
        }
    }

    /**
     * @dev sets core address
     * @param core core implementation address
     */
    function setCore(address core) external onlyOwner {
        coreAddress = core;
        emit CoreUpdated(core);
    }
}

File 2 of 18 : Callbacks.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {ERC721Holder} from "@openzeppelin-contracts/contracts/token/ERC721/utils/ERC721Holder.sol";
import {ERC1155Holder} from "@openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import {IERC721Receiver} from "@openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol";
import {IERC1155Receiver} from "@openzeppelin-contracts/contracts/token/ERC1155/IERC1155Receiver.sol";
import {IERC165} from "@openzeppelin-contracts/contracts/utils/introspection/IERC165.sol";

contract Callbacks is ERC721Holder, ERC1155Holder {
    function supportsInterface(bytes4 interfaceId) public pure override returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || interfaceId == type(IERC721Receiver).interfaceId
            || interfaceId == type(IERC165).interfaceId;
    }
}

File 3 of 18 : IExecutor.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {TokenData} from "../lib/CoreStructs.sol";

interface IExecutor {
    error OnlyCoreAuth();

    event CoreUpdated(address newCore);

    /**
     * @dev executes call from dispatcher, creating additional checks on arbitrary calldata
     * @param target The address of the target contract for the payment transaction.
     * @param paymentOperator The operator address for payment transfers requiring erc20 approvals.
     * @param data The token swap data and post bridge execution payload.
     */
    function execute(address target, address paymentOperator, TokenData memory data)
        external
        payable
        returns (bool success);

    /**
     * @dev sets core address
     * @param core core implementation address
     */
    function setCore(address core) external;
}

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

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 5 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 6 of 18 : CoreStructs.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

/*
 * @dev A parameter object containing data for bridging funds and an  between chains
 */
struct LzBridgeData {
    uint120 _srcPoolId;
    uint120 _dstPoolId;
    uint16 _dstChainId;
    address _bridgeAddress;
    uint96 fee;
}

/*
 * @dev A parameter object containing token swap data and a payment transaction payload
 */
struct TokenData {
    uint256 amountIn;
    uint256 amountOut;
    uint256 nativeOut;
    address tokenIn;
    address tokenOut;
    bytes path;
    bytes payload;
}

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

pragma solidity ^0.8.0;

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

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

    /**
     * @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 8 of 18 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 9 of 18 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.
 *
 * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
 * stuck.
 *
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 10 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 18 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 14 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 15 of 18 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

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

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 17 of 18 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 18 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

Settings
{
  "remappings": [
    "@openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "@uniswap/v3-core/=lib/v3-core/",
    "@uniswap/v3-periphery/=lib/v3-periphery/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
    "solmate/=lib/solmate/src/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"OnlyCoreAuth","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newCore","type":"address"}],"name":"CoreUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"coreAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"address","name":"paymentOperator","type":"address"},{"components":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"nativeOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct TokenData","name":"data","type":"tuple"}],"name":"execute","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"core","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610e818061007e6000396000f3fe6080604052600436106100915760003560e01c80638da5cb5b116100595780638da5cb5b14610173578063b560ab5e14610191578063bc197c81146101a4578063f23a6e61146101d0578063f2fde38b146101fc57600080fd5b806301ffc9a714610096578063150b7a02146100cb5780631c0ad64614610104578063715018a61461013c5780638000963014610153575b600080fd5b3480156100a257600080fd5b506100b66100b136600461095b565b61021c565b60405190151581526020015b60405180910390f35b3480156100d757600080fd5b506100eb6100e6366004610a81565b61026e565b6040516001600160e01b031990911681526020016100c2565b34801561011057600080fd5b50600154610124906001600160a01b031681565b6040516001600160a01b0390911681526020016100c2565b34801561014857600080fd5b5061015161027f565b005b34801561015f57600080fd5b5061015161016e366004610ae9565b610293565b34801561017f57600080fd5b506000546001600160a01b0316610124565b6100b661019f366004610b04565b6102ef565b3480156101b057600080fd5b506100eb6101bf366004610c6d565b63bc197c8160e01b95945050505050565b3480156101dc57600080fd5b506100eb6101eb366004610d17565b63f23a6e6160e01b95945050505050565b34801561020857600080fd5b50610151610217366004610ae9565b6104e8565b60006001600160e01b03198216630271189760e51b148061024d57506001600160e01b03198216630a85bd0160e11b145b8061026857506001600160e01b031982166301ffc9a760e01b145b92915050565b630a85bd0160e11b5b949350505050565b610287610566565b61029160006105c0565b565b61029b610566565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f0c9c0f914e121785e2cd2269d6698bc11f59a50b85ef9aa1197fb4ddb96c4e569060200160405180910390a150565b6001546000906001600160a01b0316331461031d5760405163ee6d9e5960e01b815260040160405180910390fd5b60808201516001600160a01b0316156103d4576080820151600154602084015161035392916001600160a01b0316903090610610565b6103668260800151848460200151610681565b836001600160a01b031682604001518360c001516040516103879190610da0565b60006040518083038185875af1925050503d80600081146103c4576040519150601f19603f3d011682016040523d82523d6000602084013e6103c9565b606091505b50508091505061044c565b836001600160a01b0316826040015183602001516103f29190610dbc565b8360c001516040516104049190610da0565b60006040518083038185875af1925050503d8060008114610441576040519150601f19603f3d011682016040523d82523d6000602084013e610446565b606091505b50909150505b806104e15760808201516001600160a01b03166104c05760015460208301516040516001600160a01b0390921691600081818185875af1925050503d80600081146104b3576040519150601f19603f3d011682016040523d82523d6000602084013e6104b8565b606091505b5050506104e1565b608082015160015460208401516104e192916001600160a01b03169061072e565b9392505050565b6104f0610566565b6001600160a01b03811661055a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610563816105c0565b50565b6000546001600160a01b031633146102915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610551565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261067b9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610763565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190610ddd565b905061067b8463095ea7b360e01b8561070e8686610dbc565b6040516001600160a01b0390921660248301526044820152606401610644565b6040516001600160a01b03831660248201526044810182905261075e90849063a9059cbb60e01b90606401610644565b505050565b60006107b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108389092919063ffffffff16565b90508051600014806107d95750808060200190518101906107d99190610df6565b61075e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610551565b6060610277848460008585600080866001600160a01b0316858760405161085f9190610da0565b60006040518083038185875af1925050503d806000811461089c576040519150601f19603f3d011682016040523d82523d6000602084013e6108a1565b606091505b50915091506108b2878383876108bd565b979650505050505050565b6060831561092c578251600003610925576001600160a01b0385163b6109255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610551565b5081610277565b61027783838151156109415781518083602001fd5b8060405162461bcd60e51b81526004016105519190610e18565b60006020828403121561096d57600080fd5b81356001600160e01b0319811681146104e157600080fd5b80356001600160a01b038116811461099c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff811182821017156109da576109da6109a1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610a0957610a096109a1565b604052919050565b600082601f830112610a2257600080fd5b813567ffffffffffffffff811115610a3c57610a3c6109a1565b610a4f601f8201601f19166020016109e0565b818152846020838601011115610a6457600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215610a9757600080fd5b610aa085610985565b9350610aae60208601610985565b925060408501359150606085013567ffffffffffffffff811115610ad157600080fd5b610add87828801610a11565b91505092959194509250565b600060208284031215610afb57600080fd5b6104e182610985565b600080600060608486031215610b1957600080fd5b610b2284610985565b9250610b3060208501610985565b9150604084013567ffffffffffffffff80821115610b4d57600080fd5b9085019060e08288031215610b6157600080fd5b610b696109b7565b823581526020830135602082015260408301356040820152610b8d60608401610985565b6060820152610b9e60808401610985565b608082015260a083013582811115610bb557600080fd5b610bc189828601610a11565b60a08301525060c083013582811115610bd957600080fd5b610be589828601610a11565b60c0830152508093505050509250925092565b600082601f830112610c0957600080fd5b8135602067ffffffffffffffff821115610c2557610c256109a1565b8160051b610c348282016109e0565b9283528481018201928281019087851115610c4e57600080fd5b83870192505b848310156108b257823582529183019190830190610c54565b600080600080600060a08688031215610c8557600080fd5b610c8e86610985565b9450610c9c60208701610985565b9350604086013567ffffffffffffffff80821115610cb957600080fd5b610cc589838a01610bf8565b94506060880135915080821115610cdb57600080fd5b610ce789838a01610bf8565b93506080880135915080821115610cfd57600080fd5b50610d0a88828901610a11565b9150509295509295909350565b600080600080600060a08688031215610d2f57600080fd5b610d3886610985565b9450610d4660208701610985565b93506040860135925060608601359150608086013567ffffffffffffffff811115610d7057600080fd5b610d0a88828901610a11565b60005b83811015610d97578181015183820152602001610d7f565b50506000910152565b60008251610db2818460208701610d7c565b9190910192915050565b8082018082111561026857634e487b7160e01b600052601160045260246000fd5b600060208284031215610def57600080fd5b5051919050565b600060208284031215610e0857600080fd5b815180151581146104e157600080fd5b6020815260008251806020840152610e37816040850160208701610d7c565b601f01601f1916919091016040019291505056fea2646970667358221220fdc7b77c61bbeea0ab1d302fc75340926606537b20d8e8189a4d7e72b08b03c764736f6c63430008110033

Deployed Bytecode

0x6080604052600436106100915760003560e01c80638da5cb5b116100595780638da5cb5b14610173578063b560ab5e14610191578063bc197c81146101a4578063f23a6e61146101d0578063f2fde38b146101fc57600080fd5b806301ffc9a714610096578063150b7a02146100cb5780631c0ad64614610104578063715018a61461013c5780638000963014610153575b600080fd5b3480156100a257600080fd5b506100b66100b136600461095b565b61021c565b60405190151581526020015b60405180910390f35b3480156100d757600080fd5b506100eb6100e6366004610a81565b61026e565b6040516001600160e01b031990911681526020016100c2565b34801561011057600080fd5b50600154610124906001600160a01b031681565b6040516001600160a01b0390911681526020016100c2565b34801561014857600080fd5b5061015161027f565b005b34801561015f57600080fd5b5061015161016e366004610ae9565b610293565b34801561017f57600080fd5b506000546001600160a01b0316610124565b6100b661019f366004610b04565b6102ef565b3480156101b057600080fd5b506100eb6101bf366004610c6d565b63bc197c8160e01b95945050505050565b3480156101dc57600080fd5b506100eb6101eb366004610d17565b63f23a6e6160e01b95945050505050565b34801561020857600080fd5b50610151610217366004610ae9565b6104e8565b60006001600160e01b03198216630271189760e51b148061024d57506001600160e01b03198216630a85bd0160e11b145b8061026857506001600160e01b031982166301ffc9a760e01b145b92915050565b630a85bd0160e11b5b949350505050565b610287610566565b61029160006105c0565b565b61029b610566565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f0c9c0f914e121785e2cd2269d6698bc11f59a50b85ef9aa1197fb4ddb96c4e569060200160405180910390a150565b6001546000906001600160a01b0316331461031d5760405163ee6d9e5960e01b815260040160405180910390fd5b60808201516001600160a01b0316156103d4576080820151600154602084015161035392916001600160a01b0316903090610610565b6103668260800151848460200151610681565b836001600160a01b031682604001518360c001516040516103879190610da0565b60006040518083038185875af1925050503d80600081146103c4576040519150601f19603f3d011682016040523d82523d6000602084013e6103c9565b606091505b50508091505061044c565b836001600160a01b0316826040015183602001516103f29190610dbc565b8360c001516040516104049190610da0565b60006040518083038185875af1925050503d8060008114610441576040519150601f19603f3d011682016040523d82523d6000602084013e610446565b606091505b50909150505b806104e15760808201516001600160a01b03166104c05760015460208301516040516001600160a01b0390921691600081818185875af1925050503d80600081146104b3576040519150601f19603f3d011682016040523d82523d6000602084013e6104b8565b606091505b5050506104e1565b608082015160015460208401516104e192916001600160a01b03169061072e565b9392505050565b6104f0610566565b6001600160a01b03811661055a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610563816105c0565b50565b6000546001600160a01b031633146102915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610551565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261067b9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610763565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190610ddd565b905061067b8463095ea7b360e01b8561070e8686610dbc565b6040516001600160a01b0390921660248301526044820152606401610644565b6040516001600160a01b03831660248201526044810182905261075e90849063a9059cbb60e01b90606401610644565b505050565b60006107b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108389092919063ffffffff16565b90508051600014806107d95750808060200190518101906107d99190610df6565b61075e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610551565b6060610277848460008585600080866001600160a01b0316858760405161085f9190610da0565b60006040518083038185875af1925050503d806000811461089c576040519150601f19603f3d011682016040523d82523d6000602084013e6108a1565b606091505b50915091506108b2878383876108bd565b979650505050505050565b6060831561092c578251600003610925576001600160a01b0385163b6109255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610551565b5081610277565b61027783838151156109415781518083602001fd5b8060405162461bcd60e51b81526004016105519190610e18565b60006020828403121561096d57600080fd5b81356001600160e01b0319811681146104e157600080fd5b80356001600160a01b038116811461099c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff811182821017156109da576109da6109a1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610a0957610a096109a1565b604052919050565b600082601f830112610a2257600080fd5b813567ffffffffffffffff811115610a3c57610a3c6109a1565b610a4f601f8201601f19166020016109e0565b818152846020838601011115610a6457600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215610a9757600080fd5b610aa085610985565b9350610aae60208601610985565b925060408501359150606085013567ffffffffffffffff811115610ad157600080fd5b610add87828801610a11565b91505092959194509250565b600060208284031215610afb57600080fd5b6104e182610985565b600080600060608486031215610b1957600080fd5b610b2284610985565b9250610b3060208501610985565b9150604084013567ffffffffffffffff80821115610b4d57600080fd5b9085019060e08288031215610b6157600080fd5b610b696109b7565b823581526020830135602082015260408301356040820152610b8d60608401610985565b6060820152610b9e60808401610985565b608082015260a083013582811115610bb557600080fd5b610bc189828601610a11565b60a08301525060c083013582811115610bd957600080fd5b610be589828601610a11565b60c0830152508093505050509250925092565b600082601f830112610c0957600080fd5b8135602067ffffffffffffffff821115610c2557610c256109a1565b8160051b610c348282016109e0565b9283528481018201928281019087851115610c4e57600080fd5b83870192505b848310156108b257823582529183019190830190610c54565b600080600080600060a08688031215610c8557600080fd5b610c8e86610985565b9450610c9c60208701610985565b9350604086013567ffffffffffffffff80821115610cb957600080fd5b610cc589838a01610bf8565b94506060880135915080821115610cdb57600080fd5b610ce789838a01610bf8565b93506080880135915080821115610cfd57600080fd5b50610d0a88828901610a11565b9150509295509295909350565b600080600080600060a08688031215610d2f57600080fd5b610d3886610985565b9450610d4660208701610985565b93506040860135925060608601359150608086013567ffffffffffffffff811115610d7057600080fd5b610d0a88828901610a11565b60005b83811015610d97578181015183820152602001610d7f565b50506000910152565b60008251610db2818460208701610d7c565b9190910192915050565b8082018082111561026857634e487b7160e01b600052601160045260246000fd5b600060208284031215610def57600080fd5b5051919050565b600060208284031215610e0857600080fd5b815180151581146104e157600080fd5b6020815260008251806020840152610e37816040850160208701610d7c565b601f01601f1916919091016040019291505056fea2646970667358221220fdc7b77c61bbeea0ab1d302fc75340926606537b20d8e8189a4d7e72b08b03c764736f6c63430008110033

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
[ 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.