S Price: $0.480857 (+0.12%)
    /

    Contract

    0x119242eebdA97066045A6E175e508AAeedBe8b68

    Overview

    S Balance

    Sonic LogoSonic LogoSonic Logo0 S

    S Value

    $0.00

    Multichain Info

    No addresses found
    Transaction Hash
    Method
    Block
    Age
    From
    To
    Amount

    There are no matching entries

    Please try again later

    Parent Transaction Hash Block Age From To Amount
    View All Internal Transactions
    Loading...
    Loading

    Contract Source Code Verified (Exact Match)

    Contract Name:
    VaultWrapper

    Compiler Version
    v0.8.28+commit.7893614a

    Optimization Enabled:
    Yes with 10000 runs

    Other Settings:
    cancun EvmVersion
    File 1 of 22 : VaultWrapper.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.28;
    import {OwnableUpgradeable} from "@openzeppelin-upgradeable/contracts/access/OwnableUpgradeable.sol";
    import {UUPSUpgradeable} from "@openzeppelin-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol";
    import {SafeTransferLib, ERC20} from "@solmate/utils/SafeTransferLib.sol";
    import {IFundsFacet} from "src/interfaces/IFundsFacet.sol";
    import {ISwapper, SwapArgs} from "src/interfaces/ISwapper.sol";
    import {IWETH} from "src/interfaces/external/weth/IWETH.sol";
    import {LibErrors} from "src/libraries/LibErrors.sol";
    /**
    * @title VaultWrapper
    * @dev Contract that wraps ETH and interacts with the FundsFacet for deposits and swaps.
    */
    contract VaultWrapper is OwnableUpgradeable, UUPSUpgradeable {
    using SafeTransferLib for ERC20;
    IWETH public immutable weth;
    ISwapper public immutable swapper;
    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(IWETH weth_, ISwapper swapper_) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 22 : OwnableUpgradeable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
    pragma solidity ^0.8.20;
    import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
    import {Initializable} from "../proxy/utils/Initializable.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.
    *
    * The initial owner is set to the address provided by the deployer. 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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    /// @custom:storage-location erc7201:openzeppelin.storage.Ownable
    struct OwnableStorage {
    address _owner;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 22 : Initializable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
    * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
    * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
    * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
    *
    * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
    * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
    * case an upgrade adds a module that needs to be initialized.
    *
    * For example:
    *
    * [.hljs-theme-light.nopadding]
    * ```solidity
    * contract MyToken is ERC20Upgradeable {
    * function initialize() initializer public {
    * __ERC20_init("MyToken", "MTK");
    * }
    * }
    *
    * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 22 : UUPSUpgradeable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (proxy/utils/UUPSUpgradeable.sol)
    pragma solidity ^0.8.20;
    import {IERC1822Proxiable} from "@openzeppelin/contracts/interfaces/draft-IERC1822.sol";
    import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
    import {Initializable} from "./Initializable.sol";
    /**
    * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
    * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
    *
    * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
    * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
    * `UUPSUpgradeable` with a custom implementation of upgrades.
    *
    * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
    */
    abstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    address private immutable __self = address(this);
    /**
    * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`
    * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 22 : ContextUpgradeable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
    pragma solidity ^0.8.20;
    import {Initializable} from "../proxy/utils/Initializable.sol";
    /**
    * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }
    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
    return msg.sender;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 22 : draft-IERC1822.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC1822.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
    * proxy whose upgrades are fully controlled by the current implementation.
    */
    interface IERC1822Proxiable {
    /**
    * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
    * address.
    *
    * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
    * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
    * function revert if invoked through a proxy.
    */
    function proxiableUUID() external view returns (bytes32);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 22 : IERC1967.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
    */
    interface IERC1967 {
    /**
    * @dev Emitted when the implementation is upgraded.
    */
    event Upgraded(address indexed implementation);
    /**
    * @dev Emitted when the admin account has changed.
    */
    event AdminChanged(address previousAdmin, address newAdmin);
    /**
    * @dev Emitted when the beacon is changed.
    */
    event BeaconUpgraded(address indexed beacon);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 22 : IBeacon.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev This is the interface that {BeaconProxy} expects of its beacon.
    */
    interface IBeacon {
    /**
    * @dev Must return an address that can be used as a delegate call target.
    *
    * {UpgradeableBeacon} will check that this address is a contract.
    */
    function implementation() external view returns (address);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 9 of 22 : ERC1967Utils.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (proxy/ERC1967/ERC1967Utils.sol)
    pragma solidity ^0.8.21;
    import {IBeacon} from "../beacon/IBeacon.sol";
    import {IERC1967} from "../../interfaces/IERC1967.sol";
    import {Address} from "../../utils/Address.sol";
    import {StorageSlot} from "../../utils/StorageSlot.sol";
    /**
    * @dev This library provides getters and event emitting update functions for
    * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.
    */
    library ERC1967Utils {
    /**
    * @dev Storage slot with the address of the current implementation.
    * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
    */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
    /**
    * @dev The `implementation` of the proxy is invalid.
    */
    error ERC1967InvalidImplementation(address implementation);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 10 of 22 : IERC1155MetadataURI.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)
    pragma solidity ^0.8.20;
    import {IERC1155} from "../IERC1155.sol";
    /**
    * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
    * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[ERC].
    */
    interface IERC1155MetadataURI is IERC1155 {
    /**
    * @dev Returns the URI for token type `id`.
    *
    * If the `\{id\}` substring is present in the URI, it must be replaced by
    * clients with the actual token type ID.
    */
    function uri(uint256 id) external view returns (string memory);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 11 of 22 : IERC1155.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155.sol)
    pragma solidity ^0.8.20;
    import {IERC165} from "../../utils/introspection/IERC165.sol";
    /**
    * @dev Required interface of an ERC-1155 compliant contract, as defined in the
    * https://eips.ethereum.org/EIPS/eip-1155[ERC].
    */
    interface IERC1155 is IERC165 {
    /**
    * @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`.
    */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
    /**
    * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
    * transfers.
    */
    event TransferBatch(
    address indexed operator,
    address indexed from,
    address indexed to,
    uint256[] ids,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 12 of 22 : Address.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
    pragma solidity ^0.8.20;
    import {Errors} from "./Errors.sol";
    /**
    * @dev Collection of functions related to the address type
    */
    library Address {
    /**
    * @dev There's no code at `target` (it is not a contract).
    */
    error AddressEmptyCode(address target);
    /**
    * @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].
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 13 of 22 : Errors.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev Collection of common custom errors used in multiple contracts
    *
    * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
    * It is recommended to avoid relying on the error API for critical functionality.
    *
    * _Available since v5.1._
    */
    library Errors {
    /**
    * @dev The ETH balance of the account is not enough to perform the operation.
    */
    error InsufficientBalance(uint256 balance, uint256 needed);
    /**
    * @dev A call to an address target failed. The target may have reverted.
    */
    error FailedCall();
    /**
    * @dev The deployment failed.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 14 of 22 : IERC165.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    // 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);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 15 of 22 : StorageSlot.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
    // This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
    pragma solidity ^0.8.20;
    /**
    * @dev Library for reading and writing primitive types to specific storage slots.
    *
    * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
    * This library helps with reading and writing to such slots without the need for inline assembly.
    *
    * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
    *
    * Example usage to set ERC-1967 implementation slot:
    * ```solidity
    * contract ERC1967 {
    * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
    * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
    *
    * function _getImplementation() internal view returns (address) {
    * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    * }
    *
    * function _setImplementation(address newImplementation) internal {
    * require(newImplementation.code.length > 0);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 16 of 22 : ERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: AGPL-3.0-only
    pragma solidity >=0.8.0;
    /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
    /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
    /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
    /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
    abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
    EVENTS
    //////////////////////////////////////////////////////////////*/
    event Transfer(address indexed from, address indexed to, uint256 amount);
    event Approval(address indexed owner, address indexed spender, uint256 amount);
    /*//////////////////////////////////////////////////////////////
    METADATA STORAGE
    //////////////////////////////////////////////////////////////*/
    string public name;
    string public symbol;
    uint8 public immutable decimals;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 17 of 22 : SafeTransferLib.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: AGPL-3.0-only
    pragma solidity >=0.8.0;
    import {ERC20} from "../tokens/ERC20.sol";
    /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
    /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
    /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
    library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
    ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/
    function safeTransferETH(address to, uint256 amount) internal {
    bool success;
    /// @solidity memory-safe-assembly
    assembly {
    // Transfer the ETH and store if it succeeded or not.
    success := call(gas(), to, amount, 0, 0, 0, 0)
    }
    require(success, "ETH_TRANSFER_FAILED");
    }
    /*//////////////////////////////////////////////////////////////
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 18 of 22 : IWETH.sol
    1
    2
    3
    4
    5
    6
    7
    8
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.28;
    interface IWETH {
    function deposit() external payable;
    function withdraw(uint256 wad) external;
    function transfer(address dst, uint256 wad) external returns (bool);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 19 of 22 : IFundsFacet.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.28;
    import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
    import {IERC1155MetadataURI} from "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
    import {Reward} from "./IStrategyBase.sol";
    import {SwapArgs} from "./ISwapper.sol";
    struct StrategyArgs {
    uint256 index;
    uint256 amount;
    }
    interface IFundsFacet is IERC1155, IERC1155MetadataURI {
    /**
    * @dev Returns the total supply of tokens.
    * @return The total supply of tokens.
    */
    function totalSupply() external view returns (uint256);
    /**
    * @dev Returns the total supply of tokens for a given ID.
    * @param id The token ID.
    * @return The total supply of tokens for the given ID.
    */
    function totalSupply(uint256 id) external view returns (uint256);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 20 of 22 : IStrategyBase.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.28;
    struct Reward {
    address token;
    uint256 amount;
    }
    interface IStrategyBase {
    /**
    * @dev Returns the address of the protocol.
    * @return The address of the protocol.
    */
    function protocol() external returns (address);
    /**
    * @dev Deposits the specified amount into the strategy.
    * @param amount The amount to deposit.
    * @param supplement Additional data required for the deposit.
    */
    function deposit(uint256 amount, bytes calldata supplement) external;
    /**
    * @dev Withdraws the specified amount from the strategy.
    * @param amount The amount to withdraw.
    * @param supplement Additional data required for the withdrawal.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 21 of 22 : ISwapper.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.28;
    struct SwapArgs {
    address tokenIn;
    address swapTarget;
    bytes swapCallData;
    }
    struct ExchangeArgs {
    address exchange;
    bool allowed;
    }
    interface ISwapper {
    /**
    * @notice Swaps tokens according to the provided swap arguments.
    * @param swapArgs The swap arguments.
    * @param tokenOut The token to be received.
    * @return tokenOutAmount The amount of tokenOut received.
    */
    function swap(SwapArgs[] memory swapArgs, address tokenOut) external returns (uint256 tokenOutAmount);
    /**
    * @notice Updates the exchange allowlist.
    * @param exchangeArgs The exchange arguments.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 22 of 22 : LibErrors.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.28;
    library LibErrors {
    // ===================== OwnerFacet ================================
    /**
    * @dev The caller account is not authorized to perform an operation.
    * @param account The address of the unauthorized account.
    */
    error OwnableUnauthorizedAccount(address account);
    /**
    * @dev The function selector is invalid.
    * @param selector The invalid function selector.
    */
    error InvalidSelector(bytes4 selector);
    // ===================== ClientsFacet ================================
    /**
    * @dev The owner address is already used by some client.
    */
    error ClientOwnerReserved();
    /**
    * @dev The caller is not the client owner.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    {
    "evmVersion": "cancun",
    "optimizer": {
    "enabled": true,
    "runs": 10000
    },
    "outputSelection": {
    "*": {
    "*": [
    "evm.bytecode",
    "evm.deployedBytecode",
    "devdoc",
    "userdoc",
    "metadata",
    "abi"
    ]
    }
    },
    "libraries": {}
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Contract Security Audit

    Contract ABI

    API
    [{"inputs":[{"internalType":"contract IWETH","name":"weth_","type":"address"},{"internalType":"contract ISwapper","name":"swapper_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NoEth","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NotWeth","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"yelayLiteVault","type":"address"},{"internalType":"uint256","name":"projectId","type":"uint256"},{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"swapTarget","type":"address"},{"internalType":"bytes","name":"swapCallData","type":"bytes"}],"internalType":"struct SwapArgs","name":"swapArgs","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapAndDeposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"swapper","outputs":[{"internalType":"contract ISwapper","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"yelayLiteVault","type":"address"},{"internalType":"uint256","name":"projectId","type":"uint256"}],"name":"wrapEthAndDeposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

    60e060405230608052348015610013575f5ffd5b50604051611c29380380611c298339810160408190526100329161011a565b6001600160a01b0380831660a052811660c05261004d610054565b5050610152565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100a45760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101035780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6001600160a01b0381168114610103575f5ffd5b5f5f6040838503121561012b575f5ffd5b825161013681610106565b602084015190925061014781610106565b809150509250929050565b60805160a05160c051611a616101c85f395f818160fd015281816103f501528181610427015261055101525f8181610168015281816102c10152818161033d015281816103d10152818161078301528181610896015261092a01525f8181610f0201528181610f2b015261114c0152611a615ff3fe6080604052600436106100bb575f3560e01c806352d1902d11610071578063ad3cb1cc1161004c578063ad3cb1cc14610210578063c4d66de814610265578063f2fde38b14610284575f5ffd5b806352d1902d1461019f578063715018a6146101b35780638da5cb5b146101c7575f5ffd5b806331b8eb43116100a157806331b8eb43146101445780633fc8cef3146101575780634f1ef2861461018a575f5ffd5b806318bb27a8146100c65780632b3297f9146100ec575f5ffd5b366100c257005b5f5ffd5b6100d96100d436600461161f565b6102a3565b6040519081526020015b60405180910390f35b3480156100f7575f5ffd5b5061011f7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e3565b6100d9610152366004611680565b61085a565b348015610162575f5ffd5b5061011f7f000000000000000000000000000000000000000000000000000000000000000081565b61019d610198366004611780565b6109f6565b005b3480156101aa575f5ffd5b506100d9610a15565b3480156101be575f5ffd5b5061019d610a43565b3480156101d2575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1661011f565b34801561021b575f5ffd5b506102586040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6040516100e39190611819565b348015610270575f5ffd5b5061019d61027f36600461182b565b610a56565b34801561028f575f5ffd5b5061019d61029e36600461182b565b610bd4565b5f34156104215773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166102ee602085018561182b565b73ffffffffffffffffffffffffffffffffffffffff161461033b576040517fc11f59c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004015f604051808303818588803b1580156103a1575f5ffd5b505af11580156103b3573d5f5f3e3d5ffd5b5061041c93505073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691507f0000000000000000000000000000000000000000000000000000000000000000905034610c3c565b610472565b610472337f000000000000000000000000000000000000000000000000000000000000000084610454602088018861182b565b73ffffffffffffffffffffffffffffffffffffffff16929190610d19565b6040805160018082528183019092525f91816020015b60408051606080820183525f8083526020830152918101919091528152602001906001900390816104885790505090506104c184611846565b815f815181106104d3576104d36118cd565b60200260200101819052505f8673ffffffffffffffffffffffffffffffffffffffff16637158da7c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610528573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061054c91906118fa565b90505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16638961ca5b84846040518363ffffffff1660e01b81526004016105aa929190611915565b6020604051808303815f875af11580156105c6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ea91906119fe565b905061060d73ffffffffffffffffffffffffffffffffffffffff83168983610e13565b6040517f8dbdbe6d000000000000000000000000000000000000000000000000000000008152600481018290526024810188905233604482015273ffffffffffffffffffffffffffffffffffffffff891690638dbdbe6d906064016020604051808303815f875af1158015610684573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106a891906119fe565b93505f6106b8602088018861182b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610722573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061074691906119fe565b9050801561084e57341561081f576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d906024015f604051808303815f87803b1580156107d9575f5ffd5b505af11580156107eb573d5f5f3e3d5ffd5b505060405133925083156108fc02915083905f818181858888f19350505050158015610819573d5f5f3e3d5ffd5b5061084e565b61084e338261083160208b018b61182b565b73ffffffffffffffffffffffffffffffffffffffff169190610c3c565b50505050949350505050565b5f5f3411610894576040517f3dc61b4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004015f604051808303818588803b1580156108fa575f5ffd5b505af115801561090c573d5f5f3e3d5ffd5b5061095593505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016915085905034610e13565b6040517f8dbdbe6d0000000000000000000000000000000000000000000000000000000081523460048201526024810183905233604482015273ffffffffffffffffffffffffffffffffffffffff841690638dbdbe6d906064016020604051808303815f875af11580156109cb573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109ef91906119fe565b9392505050565b6109fe610eea565b610a0782610fee565b610a118282610ff6565b5050565b5f610a1e611134565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610a4b6111a3565b610a545f611231565b565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff165f81158015610aa05750825b90505f8267ffffffffffffffff166001148015610abc5750303b155b905081158015610aca575080155b15610b01576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001660011785558315610b625784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b610b6b866112c6565b8315610bcc5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610bdc6111a3565b73ffffffffffffffffffffffffffffffffffffffff8116610c30576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b610c3981611231565b50565b5f6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015282602482015260205f6044835f895af191505080601f3d1160015f511416151615610cac5750823b153d17155b80610d13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610c27565b50505050565b5f6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273ffffffffffffffffffffffffffffffffffffffff8416602482015282604482015260205f6064835f8a5af191505080601f3d1160015f511416151615610da55750833b153d17155b80610e0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c45440000000000000000000000006044820152606401610c27565b5050505050565b5f6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015282602482015260205f6044835f895af191505080601f3d1160015f511416151615610e835750823b153d17155b80610d13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f415050524f56455f4641494c45440000000000000000000000000000000000006044820152606401610c27565b3073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480610fb757507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f9e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610a54576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c396111a3565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561107b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611078918101906119fe565b60015b6110c9576040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83166004820152602401610c27565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611125576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610c27565b61112f83836112d7565b505050565b3073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610a54576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336111e27f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610a54576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610c27565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6112ce611339565b610c39816113a0565b6112e0826113a8565b60405173ffffffffffffffffffffffffffffffffffffffff8316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113315761112f8282611476565b610a116114f5565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610a54576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bdc611339565b8073ffffffffffffffffffffffffffffffffffffffff163b5f03611410576040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610c27565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60605f5f8473ffffffffffffffffffffffffffffffffffffffff168460405161149f9190611a15565b5f60405180830381855af49150503d805f81146114d7576040519150601f19603f3d011682016040523d82523d5f602084013e6114dc565b606091505b50915091506114ec85838361152d565b95945050505050565b3415610a54576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060826115425761153d826115bc565b6109ef565b8151158015611566575073ffffffffffffffffffffffffffffffffffffffff84163b155b156115b5576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610c27565b5092915050565b8051156115cc5780518082602001fd5b6040517fd6bda27500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610c39575f5ffd5b5f5f5f5f60808587031215611632575f5ffd5b843561163d816115fe565b935060208501359250604085013567ffffffffffffffff81111561165f575f5ffd5b850160608188031215611670575f5ffd5b9396929550929360600135925050565b5f5f60408385031215611691575f5ffd5b823561169c816115fe565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f82601f8301126116e6575f5ffd5b813567ffffffffffffffff811115611700576117006116aa565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff8111828210171561174d5761174d6116aa565b604052818152838201602001851015611764575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60408385031215611791575f5ffd5b823561179c816115fe565b9150602083013567ffffffffffffffff8111156117b7575f5ffd5b6117c3858286016116d7565b9150509250929050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6109ef60208301846117cd565b5f6020828403121561183b575f5ffd5b81356109ef816115fe565b5f60608236031215611856575f5ffd5b6040516060810167ffffffffffffffff81118282101715611879576118796116aa565b6040528235611887816115fe565b81526020830135611897816115fe565b6020820152604083013567ffffffffffffffff8111156118b5575f5ffd5b6118c1368286016116d7565b60408301525092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561190a575f5ffd5b81516109ef816115fe565b5f604082016040835280855180835260608501915060608160051b8601019250602087015f5b828110156119d7577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0878603018452815173ffffffffffffffffffffffffffffffffffffffff815116865273ffffffffffffffffffffffffffffffffffffffff602082015116602087015260408101519050606060408701526119c160608701826117cd565b955050602093840193919091019060010161193b565b50505073ffffffffffffffffffffffffffffffffffffffff851660208501525090506109ef565b5f60208284031215611a0e575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fea2646970667358221220e41e46fa6848f8e39a0c1814d8a0362201a421af79eb371f18e2d6845834490264736f6c634300081c0033000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe88

    Deployed Bytecode

    0x6080604052600436106100bb575f3560e01c806352d1902d11610071578063ad3cb1cc1161004c578063ad3cb1cc14610210578063c4d66de814610265578063f2fde38b14610284575f5ffd5b806352d1902d1461019f578063715018a6146101b35780638da5cb5b146101c7575f5ffd5b806331b8eb43116100a157806331b8eb43146101445780633fc8cef3146101575780634f1ef2861461018a575f5ffd5b806318bb27a8146100c65780632b3297f9146100ec575f5ffd5b366100c257005b5f5ffd5b6100d96100d436600461161f565b6102a3565b6040519081526020015b60405180910390f35b3480156100f7575f5ffd5b5061011f7f00000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe8881565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e3565b6100d9610152366004611680565b61085a565b348015610162575f5ffd5b5061011f7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3881565b61019d610198366004611780565b6109f6565b005b3480156101aa575f5ffd5b506100d9610a15565b3480156101be575f5ffd5b5061019d610a43565b3480156101d2575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1661011f565b34801561021b575f5ffd5b506102586040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6040516100e39190611819565b348015610270575f5ffd5b5061019d61027f36600461182b565b610a56565b34801561028f575f5ffd5b5061019d61029e36600461182b565b610bd4565b5f34156104215773ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38166102ee602085018561182b565b73ffffffffffffffffffffffffffffffffffffffff161461033b576040517fc11f59c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3873ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004015f604051808303818588803b1580156103a1575f5ffd5b505af11580156103b3573d5f5f3e3d5ffd5b5061041c93505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad381691507f00000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe88905034610c3c565b610472565b610472337f00000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe8884610454602088018861182b565b73ffffffffffffffffffffffffffffffffffffffff16929190610d19565b6040805160018082528183019092525f91816020015b60408051606080820183525f8083526020830152918101919091528152602001906001900390816104885790505090506104c184611846565b815f815181106104d3576104d36118cd565b60200260200101819052505f8673ffffffffffffffffffffffffffffffffffffffff16637158da7c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610528573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061054c91906118fa565b90505f7f00000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe8873ffffffffffffffffffffffffffffffffffffffff16638961ca5b84846040518363ffffffff1660e01b81526004016105aa929190611915565b6020604051808303815f875af11580156105c6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ea91906119fe565b905061060d73ffffffffffffffffffffffffffffffffffffffff83168983610e13565b6040517f8dbdbe6d000000000000000000000000000000000000000000000000000000008152600481018290526024810188905233604482015273ffffffffffffffffffffffffffffffffffffffff891690638dbdbe6d906064016020604051808303815f875af1158015610684573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106a891906119fe565b93505f6106b8602088018861182b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610722573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061074691906119fe565b9050801561084e57341561081f576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3873ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d906024015f604051808303815f87803b1580156107d9575f5ffd5b505af11580156107eb573d5f5f3e3d5ffd5b505060405133925083156108fc02915083905f818181858888f19350505050158015610819573d5f5f3e3d5ffd5b5061084e565b61084e338261083160208b018b61182b565b73ffffffffffffffffffffffffffffffffffffffff169190610c3c565b50505050949350505050565b5f5f3411610894576040517f3dc61b4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3873ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004015f604051808303818588803b1580156108fa575f5ffd5b505af115801561090c573d5f5f3e3d5ffd5b5061095593505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3816915085905034610e13565b6040517f8dbdbe6d0000000000000000000000000000000000000000000000000000000081523460048201526024810183905233604482015273ffffffffffffffffffffffffffffffffffffffff841690638dbdbe6d906064016020604051808303815f875af11580156109cb573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109ef91906119fe565b9392505050565b6109fe610eea565b610a0782610fee565b610a118282610ff6565b5050565b5f610a1e611134565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610a4b6111a3565b610a545f611231565b565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff165f81158015610aa05750825b90505f8267ffffffffffffffff166001148015610abc5750303b155b905081158015610aca575080155b15610b01576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001660011785558315610b625784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b610b6b866112c6565b8315610bcc5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610bdc6111a3565b73ffffffffffffffffffffffffffffffffffffffff8116610c30576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b610c3981611231565b50565b5f6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015282602482015260205f6044835f895af191505080601f3d1160015f511416151615610cac5750823b153d17155b80610d13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610c27565b50505050565b5f6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273ffffffffffffffffffffffffffffffffffffffff8416602482015282604482015260205f6064835f8a5af191505080601f3d1160015f511416151615610da55750833b153d17155b80610e0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c45440000000000000000000000006044820152606401610c27565b5050505050565b5f6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015282602482015260205f6044835f895af191505080601f3d1160015f511416151615610e835750823b153d17155b80610d13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f415050524f56455f4641494c45440000000000000000000000000000000000006044820152606401610c27565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000119242eebda97066045a6e175e508aaeedbe8b68161480610fb757507f000000000000000000000000119242eebda97066045a6e175e508aaeedbe8b6873ffffffffffffffffffffffffffffffffffffffff16610f9e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610a54576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c396111a3565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561107b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611078918101906119fe565b60015b6110c9576040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83166004820152602401610c27565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611125576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610c27565b61112f83836112d7565b505050565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000119242eebda97066045a6e175e508aaeedbe8b681614610a54576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336111e27f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610a54576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610c27565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6112ce611339565b610c39816113a0565b6112e0826113a8565b60405173ffffffffffffffffffffffffffffffffffffffff8316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113315761112f8282611476565b610a116114f5565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610a54576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bdc611339565b8073ffffffffffffffffffffffffffffffffffffffff163b5f03611410576040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610c27565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60605f5f8473ffffffffffffffffffffffffffffffffffffffff168460405161149f9190611a15565b5f60405180830381855af49150503d805f81146114d7576040519150601f19603f3d011682016040523d82523d5f602084013e6114dc565b606091505b50915091506114ec85838361152d565b95945050505050565b3415610a54576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060826115425761153d826115bc565b6109ef565b8151158015611566575073ffffffffffffffffffffffffffffffffffffffff84163b155b156115b5576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610c27565b5092915050565b8051156115cc5780518082602001fd5b6040517fd6bda27500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610c39575f5ffd5b5f5f5f5f60808587031215611632575f5ffd5b843561163d816115fe565b935060208501359250604085013567ffffffffffffffff81111561165f575f5ffd5b850160608188031215611670575f5ffd5b9396929550929360600135925050565b5f5f60408385031215611691575f5ffd5b823561169c816115fe565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f82601f8301126116e6575f5ffd5b813567ffffffffffffffff811115611700576117006116aa565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff8111828210171561174d5761174d6116aa565b604052818152838201602001851015611764575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60408385031215611791575f5ffd5b823561179c816115fe565b9150602083013567ffffffffffffffff8111156117b7575f5ffd5b6117c3858286016116d7565b9150509250929050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6109ef60208301846117cd565b5f6020828403121561183b575f5ffd5b81356109ef816115fe565b5f60608236031215611856575f5ffd5b6040516060810167ffffffffffffffff81118282101715611879576118796116aa565b6040528235611887816115fe565b81526020830135611897816115fe565b6020820152604083013567ffffffffffffffff8111156118b5575f5ffd5b6118c1368286016116d7565b60408301525092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561190a575f5ffd5b81516109ef816115fe565b5f604082016040835280855180835260608501915060608160051b8601019250602087015f5b828110156119d7577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0878603018452815173ffffffffffffffffffffffffffffffffffffffff815116865273ffffffffffffffffffffffffffffffffffffffff602082015116602087015260408101519050606060408701526119c160608701826117cd565b955050602093840193919091019060010161193b565b50505073ffffffffffffffffffffffffffffffffffffffff851660208501525090506109ef565b5f60208284031215611a0e575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fea2646970667358221220e41e46fa6848f8e39a0c1814d8a0362201a421af79eb371f18e2d6845834490264736f6c634300081c0033

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

    000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe88

    -----Decoded View---------------
    Arg [0] : weth_ (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
    Arg [1] : swapper_ (address): 0x98732e2FEb854bAd400D4b5336f4439E7E53fe88

    -----Encoded View---------------
    2 Constructor Arguments found :
    Arg [0] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
    Arg [1] : 00000000000000000000000098732e2feb854bad400d4b5336f4439e7e53fe88


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

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

    Validator Index Block Age Amount
    View All Withdrawals

    Transaction Hash Block Age Value Eth2 PubKey Valid
    View All Deposits

    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.