ETH Price: $3,264.85 (+4.84%)

Contract

0x4f8C9056bb8A3616693a76922FA35d53C056E5b3

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Start Bridge Tok...5279302025-01-30 23:02:4625 secs ago1738278166IN
0x4f8C9056...3C056E5b3
0.00152535 ETH0.000008410.04525
Start Bridge Tok...5279172025-01-30 23:02:3338 secs ago1738278153IN
0x4f8C9056...3C056E5b3
0.07376398 ETH0.000006660.04525
Start Bridge Tok...5278552025-01-30 23:01:311 min ago1738278091IN
0x4f8C9056...3C056E5b3
0.04001669 ETH0.000012690.0543
Start Bridge Tok...5277992025-01-30 23:00:352 mins ago1738278035IN
0x4f8C9056...3C056E5b3
0.00210384 ETH0.000006660.04525
Start Bridge Tok...5275412025-01-30 22:56:146 mins ago1738277774IN
0x4f8C9056...3C056E5b3
0.031 ETH0.000006330.04525
Start Bridge Tok...5274552025-01-30 22:54:488 mins ago1738277688IN
0x4f8C9056...3C056E5b3
0.001 ETH0.000007190.04525
Swap Tokens Gene...5274542025-01-30 22:54:478 mins ago1738277687IN
0x4f8C9056...3C056E5b3
0 ETH0.000006630.04525
Start Bridge Tok...5273692025-01-30 22:53:209 mins ago1738277600IN
0x4f8C9056...3C056E5b3
0.15044733 ETH0.000006690.04525
Start Bridge Tok...5273622025-01-30 22:53:139 mins ago1738277593IN
0x4f8C9056...3C056E5b3
0.00014831 ETH0.00000690.04525
Start Bridge Tok...5272492025-01-30 22:51:1911 mins ago1738277479IN
0x4f8C9056...3C056E5b3
0.1327724 ETH0.00000830.04525
Start Bridge Tok...5270942025-01-30 22:48:4214 mins ago1738277322IN
0x4f8C9056...3C056E5b3
0.00000843 ETH0.000011020.0543
Start Bridge Tok...5270942025-01-30 22:48:4214 mins ago1738277322IN
0x4f8C9056...3C056E5b3
0.00093549 ETH0.000008330.0543
Swap Tokens Gene...5269172025-01-30 22:45:4317 mins ago1738277143IN
0x4f8C9056...3C056E5b3
0 ETH0.000011050.0543
Start Bridge Tok...5268622025-01-30 22:44:4818 mins ago1738277088IN
0x4f8C9056...3C056E5b3
0.1386 ETH0.000007420.04525
Start Bridge Tok...5268622025-01-30 22:44:4818 mins ago1738277088IN
0x4f8C9056...3C056E5b3
0.1 ETH0.000007940.04525
Start Bridge Tok...5267122025-01-30 22:42:1720 mins ago1738276937IN
0x4f8C9056...3C056E5b3
0.00000843 ETH0.000014260.04525
Start Bridge Tok...5265642025-01-30 22:39:4523 mins ago1738276785IN
0x4f8C9056...3C056E5b3
0.07 ETH0.000006260.04525
Start Bridge Tok...5265212025-01-30 22:39:0224 mins ago1738276742IN
0x4f8C9056...3C056E5b3
0.0066 ETH0.000007660.0543
Start Bridge Tok...5265102025-01-30 22:38:5124 mins ago1738276731IN
0x4f8C9056...3C056E5b3
0.01374517 ETH0.00000630.04525
Swap Tokens Gene...5264992025-01-30 22:38:3924 mins ago1738276719IN
0x4f8C9056...3C056E5b3
0 ETH0.000006580.04525
Swap Tokens Gene...5264862025-01-30 22:38:2524 mins ago1738276705IN
0x4f8C9056...3C056E5b3
0 ETH0.000006380.04525
Start Bridge Tok...5263842025-01-30 22:36:4226 mins ago1738276602IN
0x4f8C9056...3C056E5b3
0.01079335 ETH0.000006260.04525
Start Bridge Tok...5263192025-01-30 22:35:3527 mins ago1738276535IN
0x4f8C9056...3C056E5b3
0.13336722 ETH0.000008350.04525
Start Bridge Tok...5262872025-01-30 22:35:0228 mins ago1738276502IN
0x4f8C9056...3C056E5b3
0.19 ETH0.000006880.04525
Swap Tokens Gene...5262772025-01-30 22:34:5228 mins ago1738276492IN
0x4f8C9056...3C056E5b3
0.0015 ETH0.000008450.0543
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
5279302025-01-30 23:02:4625 secs ago1738278166
0x4f8C9056...3C056E5b3
0.00152535 ETH
5279302025-01-30 23:02:4625 secs ago1738278166
0x4f8C9056...3C056E5b3
0.00152535 ETH
5279302025-01-30 23:02:4625 secs ago1738278166
0x4f8C9056...3C056E5b3
0.00152535 ETH
5279172025-01-30 23:02:3338 secs ago1738278153
0x4f8C9056...3C056E5b3
0.07376398 ETH
5279172025-01-30 23:02:3338 secs ago1738278153
0x4f8C9056...3C056E5b3
0.07376398 ETH
5279172025-01-30 23:02:3338 secs ago1738278153
0x4f8C9056...3C056E5b3
0.07376398 ETH
5278552025-01-30 23:01:311 min ago1738278091
0x4f8C9056...3C056E5b3
0.04001669 ETH
5278552025-01-30 23:01:311 min ago1738278091
0x4f8C9056...3C056E5b3
0.04001669 ETH
5278552025-01-30 23:01:311 min ago1738278091
0x4f8C9056...3C056E5b3
0.04001669 ETH
5277992025-01-30 23:00:352 mins ago1738278035
0x4f8C9056...3C056E5b3
0.00210384 ETH
5277992025-01-30 23:00:352 mins ago1738278035
0x4f8C9056...3C056E5b3
0.00210384 ETH
5277992025-01-30 23:00:352 mins ago1738278035
0x4f8C9056...3C056E5b3
0.00210384 ETH
5275412025-01-30 22:56:146 mins ago1738277774
0x4f8C9056...3C056E5b3
0.031 ETH
5275412025-01-30 22:56:146 mins ago1738277774
0x4f8C9056...3C056E5b3
0.031 ETH
5275412025-01-30 22:56:146 mins ago1738277774
0x4f8C9056...3C056E5b3
0.031 ETH
5274552025-01-30 22:54:488 mins ago1738277688
0x4f8C9056...3C056E5b3
0.001 ETH
5274552025-01-30 22:54:488 mins ago1738277688
0x4f8C9056...3C056E5b3
0.001 ETH
5274552025-01-30 22:54:488 mins ago1738277688
0x4f8C9056...3C056E5b3
0.001 ETH
5274542025-01-30 22:54:478 mins ago1738277687
0x4f8C9056...3C056E5b3
0.019698 ETH
5274542025-01-30 22:54:478 mins ago1738277687
0x4f8C9056...3C056E5b3
0.019698 ETH
5273692025-01-30 22:53:209 mins ago1738277600
0x4f8C9056...3C056E5b3
0.15044733 ETH
5273692025-01-30 22:53:209 mins ago1738277600
0x4f8C9056...3C056E5b3
0.15044733 ETH
5273692025-01-30 22:53:209 mins ago1738277600
0x4f8C9056...3C056E5b3
0.15044733 ETH
5273622025-01-30 22:53:139 mins ago1738277593
0x4f8C9056...3C056E5b3
0.00014831 ETH
5273622025-01-30 22:53:139 mins ago1738277593
0x4f8C9056...3C056E5b3
0.00014831 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LiFiDiamond

Compiler Version
v0.8.26+commit.8a97fa7a

ZkSolc Version
v1.5.3

Optimization Enabled:
Yes with Mode 3

Other Settings:
shanghai EvmVersion
File 1 of 6 : LiFiDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import { LibDiamond } from "./Libraries/LibDiamond.sol";
import { IDiamondCut } from "./Interfaces/IDiamondCut.sol";
import { LibUtil } from "./Libraries/LibUtil.sol";

/// @title LIFI Diamond
/// @author LI.FI (https://li.fi)
/// @notice Base EIP-2535 Diamond Proxy Contract.
/// @custom:version 1.0.0
contract LiFiDiamond {
    constructor(address _contractOwner, address _diamondCutFacet) payable {
        LibDiamond.setContractOwner(_contractOwner);

        // Add the diamondCut external function from the diamondCutFacet
        LibDiamond.FacetCut[] memory cut = new LibDiamond.FacetCut[](1);
        bytes4[] memory functionSelectors = new bytes4[](1);
        functionSelectors[0] = IDiamondCut.diamondCut.selector;
        cut[0] = LibDiamond.FacetCut({
            facetAddress: _diamondCutFacet,
            action: LibDiamond.FacetCutAction.Add,
            functionSelectors: functionSelectors
        });
        LibDiamond.diamondCut(cut, address(0), "");
    }

    // Find facet for function that is called and execute the
    // function if a facet is found and return any value.
    // solhint-disable-next-line no-complex-fallback
    fallback() external payable {
        LibDiamond.DiamondStorage storage ds;
        bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION;

        // get diamond storage
        // solhint-disable-next-line no-inline-assembly
        assembly {
            ds.slot := position
        }

        // get facet from function selector
        address facet = ds.selectorToFacetAndPosition[msg.sig].facetAddress;

        if (facet == address(0)) {
            revert LibDiamond.FunctionDoesNotExist();
        }

        // Execute external function from facet using delegatecall and return any value.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            // copy function selector and any arguments
            calldatacopy(0, 0, calldatasize())
            // execute function call using the facet
            let result := delegatecall(gas(), facet, 0, calldatasize(), 0, 0)
            // get any return value
            returndatacopy(0, 0, returndatasize())
            // return any return value or error back to the caller
            switch result
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    // Able to receive ether
    // solhint-disable-next-line no-empty-blocks
    receive() external payable {}
}

File 2 of 6 : LibDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

// import { IDiamondCut } from "../Interfaces/LibDiamond.sol";
import { LibDiamond } from "../Libraries/LibDiamond.sol";
import { LibUtil } from "../Libraries/LibUtil.sol";
import { OnlyContractOwner } from "../Errors/GenericErrors.sol";

/// Implementation of EIP-2535 Diamond Standard
/// https://eips.ethereum.org/EIPS/eip-2535
library LibDiamond {
    bytes32 internal constant DIAMOND_STORAGE_POSITION =
        keccak256("diamond.standard.diamond.storage");

    // Diamond specific errors
    error IncorrectFacetCutAction();
    error NoSelectorsInFace();
    error FunctionAlreadyExists();
    error FacetAddressIsZero();
    error FacetAddressIsNotZero();
    error FacetContainsNoCode();
    error FunctionDoesNotExist();
    error FunctionIsImmutable();
    error InitZeroButCalldataNotEmpty();
    error CalldataEmptyButInitNotZero();
    error InitReverted();
    // ----------------

    struct FacetAddressAndPosition {
        address facetAddress;
        uint96 functionSelectorPosition; // position in facetFunctionSelectors.functionSelectors array
    }

    struct FacetFunctionSelectors {
        bytes4[] functionSelectors;
        uint256 facetAddressPosition; // position of facetAddress in facetAddresses array
    }

    struct DiamondStorage {
        // maps function selector to the facet address and
        // the position of the selector in the facetFunctionSelectors.selectors array
        mapping(bytes4 => FacetAddressAndPosition) selectorToFacetAndPosition;
        // maps facet addresses to function selectors
        mapping(address => FacetFunctionSelectors) facetFunctionSelectors;
        // facet addresses
        address[] facetAddresses;
        // Used to query if a contract implements an interface.
        // Used to implement ERC-165.
        mapping(bytes4 => bool) supportedInterfaces;
        // owner of the contract
        address contractOwner;
    }

    enum FacetCutAction {
        Add,
        Replace,
        Remove
    }
    // Add=0, Replace=1, Remove=2

    struct FacetCut {
        address facetAddress;
        FacetCutAction action;
        bytes4[] functionSelectors;
    }

    function diamondStorage()
        internal
        pure
        returns (DiamondStorage storage ds)
    {
        bytes32 position = DIAMOND_STORAGE_POSITION;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            ds.slot := position
        }
    }

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

    event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);

    function setContractOwner(address _newOwner) internal {
        DiamondStorage storage ds = diamondStorage();
        address previousOwner = ds.contractOwner;
        ds.contractOwner = _newOwner;
        emit OwnershipTransferred(previousOwner, _newOwner);
    }

    function contractOwner() internal view returns (address contractOwner_) {
        contractOwner_ = diamondStorage().contractOwner;
    }

    function enforceIsContractOwner() internal view {
        if (msg.sender != diamondStorage().contractOwner)
            revert OnlyContractOwner();
    }

    // Internal function version of diamondCut
    function diamondCut(
        FacetCut[] memory _diamondCut,
        address _init,
        bytes memory _calldata
    ) internal {
        for (uint256 facetIndex; facetIndex < _diamondCut.length; ) {
            LibDiamond.FacetCutAction action = _diamondCut[facetIndex].action;
            if (action == LibDiamond.FacetCutAction.Add) {
                addFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else if (action == LibDiamond.FacetCutAction.Replace) {
                replaceFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else if (action == LibDiamond.FacetCutAction.Remove) {
                removeFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else {
                revert IncorrectFacetCutAction();
            }
            unchecked {
                ++facetIndex;
            }
        }
        emit DiamondCut(_diamondCut, _init, _calldata);
        initializeDiamondCut(_init, _calldata);
    }

    function addFunctions(
        address _facetAddress,
        bytes4[] memory _functionSelectors
    ) internal {
        if (_functionSelectors.length == 0) {
            revert NoSelectorsInFace();
        }
        DiamondStorage storage ds = diamondStorage();
        if (LibUtil.isZeroAddress(_facetAddress)) {
            revert FacetAddressIsZero();
        }
        uint96 selectorPosition = uint96(
            ds.facetFunctionSelectors[_facetAddress].functionSelectors.length
        );
        // add new facet address if it does not exist
        if (selectorPosition == 0) {
            addFacet(ds, _facetAddress);
        }
        for (
            uint256 selectorIndex;
            selectorIndex < _functionSelectors.length;

        ) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress = ds
                .selectorToFacetAndPosition[selector]
                .facetAddress;
            if (!LibUtil.isZeroAddress(oldFacetAddress)) {
                revert FunctionAlreadyExists();
            }
            addFunction(ds, selector, selectorPosition, _facetAddress);
            unchecked {
                ++selectorPosition;
                ++selectorIndex;
            }
        }
    }

    function replaceFunctions(
        address _facetAddress,
        bytes4[] memory _functionSelectors
    ) internal {
        if (_functionSelectors.length == 0) {
            revert NoSelectorsInFace();
        }
        DiamondStorage storage ds = diamondStorage();
        if (LibUtil.isZeroAddress(_facetAddress)) {
            revert FacetAddressIsZero();
        }
        uint96 selectorPosition = uint96(
            ds.facetFunctionSelectors[_facetAddress].functionSelectors.length
        );
        // add new facet address if it does not exist
        if (selectorPosition == 0) {
            addFacet(ds, _facetAddress);
        }
        for (
            uint256 selectorIndex;
            selectorIndex < _functionSelectors.length;

        ) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress = ds
                .selectorToFacetAndPosition[selector]
                .facetAddress;
            if (oldFacetAddress == _facetAddress) {
                revert FunctionAlreadyExists();
            }
            removeFunction(ds, oldFacetAddress, selector);
            addFunction(ds, selector, selectorPosition, _facetAddress);
            unchecked {
                ++selectorPosition;
                ++selectorIndex;
            }
        }
    }

    function removeFunctions(
        address _facetAddress,
        bytes4[] memory _functionSelectors
    ) internal {
        if (_functionSelectors.length == 0) {
            revert NoSelectorsInFace();
        }
        DiamondStorage storage ds = diamondStorage();
        // if function does not exist then do nothing and return
        if (!LibUtil.isZeroAddress(_facetAddress)) {
            revert FacetAddressIsNotZero();
        }
        for (
            uint256 selectorIndex;
            selectorIndex < _functionSelectors.length;

        ) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress = ds
                .selectorToFacetAndPosition[selector]
                .facetAddress;
            removeFunction(ds, oldFacetAddress, selector);
            unchecked {
                ++selectorIndex;
            }
        }
    }

    function addFacet(
        DiamondStorage storage ds,
        address _facetAddress
    ) internal {
        enforceHasContractCode(_facetAddress);
        ds.facetFunctionSelectors[_facetAddress].facetAddressPosition = ds
            .facetAddresses
            .length;
        ds.facetAddresses.push(_facetAddress);
    }

    function addFunction(
        DiamondStorage storage ds,
        bytes4 _selector,
        uint96 _selectorPosition,
        address _facetAddress
    ) internal {
        ds
            .selectorToFacetAndPosition[_selector]
            .functionSelectorPosition = _selectorPosition;
        ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(
            _selector
        );
        ds.selectorToFacetAndPosition[_selector].facetAddress = _facetAddress;
    }

    function removeFunction(
        DiamondStorage storage ds,
        address _facetAddress,
        bytes4 _selector
    ) internal {
        if (LibUtil.isZeroAddress(_facetAddress)) {
            revert FunctionDoesNotExist();
        }
        // an immutable function is a function defined directly in a diamond
        if (_facetAddress == address(this)) {
            revert FunctionIsImmutable();
        }
        // replace selector with last selector, then delete last selector
        uint256 selectorPosition = ds
            .selectorToFacetAndPosition[_selector]
            .functionSelectorPosition;
        uint256 lastSelectorPosition = ds
            .facetFunctionSelectors[_facetAddress]
            .functionSelectors
            .length - 1;
        // if not the same then replace _selector with lastSelector
        if (selectorPosition != lastSelectorPosition) {
            bytes4 lastSelector = ds
                .facetFunctionSelectors[_facetAddress]
                .functionSelectors[lastSelectorPosition];
            ds.facetFunctionSelectors[_facetAddress].functionSelectors[
                selectorPosition
            ] = lastSelector;
            ds
                .selectorToFacetAndPosition[lastSelector]
                .functionSelectorPosition = uint96(selectorPosition);
        }
        // delete the last selector
        ds.facetFunctionSelectors[_facetAddress].functionSelectors.pop();
        delete ds.selectorToFacetAndPosition[_selector];

        // if no more selectors for facet address then delete the facet address
        if (lastSelectorPosition == 0) {
            // replace facet address with last facet address and delete last facet address
            uint256 lastFacetAddressPosition = ds.facetAddresses.length - 1;
            uint256 facetAddressPosition = ds
                .facetFunctionSelectors[_facetAddress]
                .facetAddressPosition;
            if (facetAddressPosition != lastFacetAddressPosition) {
                address lastFacetAddress = ds.facetAddresses[
                    lastFacetAddressPosition
                ];
                ds.facetAddresses[facetAddressPosition] = lastFacetAddress;
                ds
                    .facetFunctionSelectors[lastFacetAddress]
                    .facetAddressPosition = facetAddressPosition;
            }
            ds.facetAddresses.pop();
            delete ds
                .facetFunctionSelectors[_facetAddress]
                .facetAddressPosition;
        }
    }

    function initializeDiamondCut(
        address _init,
        bytes memory _calldata
    ) internal {
        if (LibUtil.isZeroAddress(_init)) {
            if (_calldata.length != 0) {
                revert InitZeroButCalldataNotEmpty();
            }
        } else {
            if (_calldata.length == 0) {
                revert CalldataEmptyButInitNotZero();
            }
            if (_init != address(this)) {
                enforceHasContractCode(_init);
            }
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, bytes memory error) = _init.delegatecall(_calldata);
            if (!success) {
                if (error.length > 0) {
                    // bubble up the error
                    revert(string(error));
                } else {
                    revert InitReverted();
                }
            }
        }
    }

    function enforceHasContractCode(address _contract) internal view {
        uint256 contractSize;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            contractSize := extcodesize(_contract)
        }
        if (contractSize == 0) {
            revert FacetContainsNoCode();
        }
    }
}

File 3 of 6 : IDiamondCut.sol
// SPDX-License-Identifier: MIT
/// @custom:version 2.0.0
pragma solidity ^0.8.17;

import { LibDiamond } from "../Libraries/LibDiamond.sol";

interface IDiamondCut {
    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @param _diamondCut Contains the facet addresses and function selectors
    /// @param _init The address of the contract or facet to execute _calldata
    /// @param _calldata A function call, including function selector and arguments
    ///                  _calldata is executed with delegatecall on _init
    function diamondCut(
        LibDiamond.FacetCut[] calldata _diamondCut,
        address _init,
        bytes calldata _calldata
    ) external;

    event DiamondCut(
        LibDiamond.FacetCut[] _diamondCut,
        address _init,
        bytes _calldata
    );
}

File 4 of 6 : LibUtil.sol
// SPDX-License-Identifier: MIT
/// @custom:version 1.0.0
pragma solidity ^0.8.17;

import "./LibBytes.sol";

library LibUtil {
    using LibBytes for bytes;

    function getRevertMsg(
        bytes memory _res
    ) internal pure returns (string memory) {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_res.length < 68) return "Transaction reverted silently";
        bytes memory revertData = _res.slice(4, _res.length - 4); // Remove the selector which is the first 4 bytes
        return abi.decode(revertData, (string)); // All that remains is the revert string
    }

    /// @notice Determines whether the given address is the zero address
    /// @param addr The address to verify
    /// @return Boolean indicating if the address is the zero address
    function isZeroAddress(address addr) internal pure returns (bool) {
        return addr == address(0);
    }

    function revertWith(bytes memory data) internal pure {
        assembly {
            let dataSize := mload(data) // Load the size of the data
            let dataPtr := add(data, 0x20) // Advance data pointer to the next word
            revert(dataPtr, dataSize) // Revert with the given data
        }
    }
}

File 5 of 6 : GenericErrors.sol
// SPDX-License-Identifier: MIT
/// @custom:version 1.0.0
pragma solidity ^0.8.17;

error AlreadyInitialized();
error CannotAuthoriseSelf();
error CannotBridgeToSameNetwork();
error ContractCallNotAllowed();
error CumulativeSlippageTooHigh(uint256 minAmount, uint256 receivedAmount);
error DiamondIsPaused();
error ExternalCallFailed();
error FunctionDoesNotExist();
error InformationMismatch();
error InsufficientBalance(uint256 required, uint256 balance);
error InvalidAmount();
error InvalidCallData();
error InvalidConfig();
error InvalidContract();
error InvalidDestinationChain();
error InvalidFallbackAddress();
error InvalidReceiver();
error InvalidSendingToken();
error NativeAssetNotSupported();
error NativeAssetTransferFailed();
error NoSwapDataProvided();
error NoSwapFromZeroBalance();
error NotAContract();
error NotInitialized();
error NoTransferToNullAddress();
error NullAddrIsNotAnERC20Token();
error NullAddrIsNotAValidSpender();
error OnlyContractOwner();
error RecoveryAddressCannotBeZero();
error ReentrancyError();
error TokenNotSupported();
error UnAuthorized();
error UnsupportedChainId(uint256 chainId);
error WithdrawFailed();
error ZeroAmount();

File 6 of 6 : LibBytes.sol
// SPDX-License-Identifier: MIT
/// @custom:version 1.0.0
pragma solidity ^0.8.17;

library LibBytes {
    // solhint-disable no-inline-assembly

    // LibBytes specific errors
    error SliceOverflow();
    error SliceOutOfBounds();
    error AddressOutOfBounds();

    bytes16 private constant _SYMBOLS = "0123456789abcdef";

    // -------------------------

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    ) internal pure returns (bytes memory) {
        if (_length + 31 < _length) revert SliceOverflow();
        if (_bytes.length < _start + _length) revert SliceOutOfBounds();

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
                // Get a location of some free memory and store it in tempBytes as
                // Solidity does for memory variables.
                tempBytes := mload(0x40)

                // The first word of the slice result is potentially a partial
                // word read from the original array. To read it, we calculate
                // the length of that partial word and start copying that many
                // bytes into the array. The first word we copy will start with
                // data we don't care about, but the last `lengthmod` bytes will
                // land at the beginning of the contents of the new array. When
                // we're done copying, we overwrite the full first word with
                // the actual length of the slice.
                let lengthmod := and(_length, 31)

                // The multiplication in the next line is necessary
                // because when slicing multiples of 32 bytes (lengthmod == 0)
                // the following copy loop was copying the origin's length
                // and then ending prematurely not copying everything it should.
                let mc := add(
                    add(tempBytes, lengthmod),
                    mul(0x20, iszero(lengthmod))
                )
                let end := add(mc, _length)

                for {
                    // The multiplication in the next line has the same exact purpose
                    // as the one above.
                    let cc := add(
                        add(
                            add(_bytes, lengthmod),
                            mul(0x20, iszero(lengthmod))
                        ),
                        _start
                    )
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

                //update free-memory pointer
                //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
                //zero out the 32 bytes slice we are about to return
                //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(
        bytes memory _bytes,
        uint256 _start
    ) internal pure returns (address) {
        if (_bytes.length < _start + 20) {
            revert AddressOutOfBounds();
        }
        address tempAddress;

        assembly {
            tempAddress := div(
                mload(add(add(_bytes, 0x20), _start)),
                0x1000000000000000000000000
            )
        }

        return tempAddress;
    }

    /// Copied from OpenZeppelin's `Strings.sol` utility library.
    /// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/8335676b0e99944eef6a742e16dcd9ff6e68e609/contracts/utils/Strings.sol
    function toHexString(
        uint256 value,
        uint256 length
    ) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

Settings
{
  "viaIR": false,
  "remappings": [
    "@eth-optimism/=node_modules/@hop-protocol/sdk/node_modules/@eth-optimism/",
    "@uniswap/=node_modules/@uniswap/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "hardhat/=node_modules/hardhat/",
    "hardhat-deploy/=node_modules/hardhat-deploy/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "celer-network/=lib/sgn-v2-contracts/",
    "create3-factory/=lib/create3-factory/src/",
    "solmate/=lib/solmate/src/",
    "solady/=lib/solady/src/",
    "permit2/=lib/Permit2/src/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "lifi/=src/",
    "test/=test/",
    "Permit2/=lib/Permit2/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-gas-snapshot/=lib/Permit2/lib/forge-gas-snapshot/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "sgn-v2-contracts/=lib/sgn-v2-contracts/contracts/"
  ],
  "evmVersion": "shanghai",
  "outputSelection": {
    "*": {
      "*": [
        "abi"
      ]
    }
  },
  "optimizer": {
    "enabled": true,
    "mode": "3",
    "fallback_to_optimizing_for_size": false,
    "disable_system_request_memoization": true
  },
  "metadata": {},
  "libraries": {},
  "detectMissingLibraries": false,
  "enableEraVMExtensions": false,
  "forceEVMLA": false
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_contractOwner","type":"address"},{"internalType":"address","name":"_diamondCutFacet","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"CalldataEmptyButInitNotZero","type":"error"},{"inputs":[],"name":"FacetAddressIsNotZero","type":"error"},{"inputs":[],"name":"FacetAddressIsZero","type":"error"},{"inputs":[],"name":"FacetContainsNoCode","type":"error"},{"inputs":[],"name":"FunctionAlreadyExists","type":"error"},{"inputs":[],"name":"FunctionDoesNotExist","type":"error"},{"inputs":[],"name":"FunctionIsImmutable","type":"error"},{"inputs":[],"name":"IncorrectFacetCutAction","type":"error"},{"inputs":[],"name":"InitReverted","type":"error"},{"inputs":[],"name":"InitZeroButCalldataNotEmpty","type":"error"},{"inputs":[],"name":"NoSelectorsInFace","type":"error"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum LibDiamond.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"indexed":false,"internalType":"struct LibDiamond.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"indexed":false,"internalType":"address","name":"_init","type":"address"},{"indexed":false,"internalType":"bytes","name":"_calldata","type":"bytes"}],"name":"DiamondCut","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"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

3cda3351d53126e050f22e75e8da8b6e6311f6d440509b490dd75d726038d6df24f9ca34010001ab9cad7ee2c346636c1de5c22f4c0c6f62ac31a2a22bd51ef9dea702320000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000004000000000000000000000000011f1022ca6adef6400e5677528a80d49a069c00c000000000000000000000000a9bd7d5304a24c005d37dc7dfe844464f9ca718c

Deployed Bytecode

0x0004000000000002001100000000000200000000030100190000006004300270000001850340019700030000003103550002000000010355000001850040019d0000000100200190000000100000c13d0000008002000039000000400020043f000000000003004b0000006f0000c13d00000000010000190000060f0001042e0000001f0230003900000186022001970000008002200039000000400020043f0000001f0430018f000001870530019800000080025000390000001e0000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b0000001a0000c13d000000000004004b0000002b0000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000400030008c000005aa0000413d000000800600043d000001880060009c000005aa0000213d000000a00400043d000001880040009c000005aa0000213d0000018901000041000000000201041a0000018a03200197000000000363019f000000000031041b0000000001000414001100000004001d0000018805200197000001850010009c0000018501008041000000c0011002100000018b011001c70000800d0200003900000003030000390000018c04000041060e05ff0000040f00000011050000290000000100200190000005aa0000613d000000400100043d000400000001001d0000018d0010009c000000690000213d00000004020000290000004001200039000000400010043f00000001010000390000000002120436000300000002001d000000400200043d0000018e0020009c000000690000213d0000006003200039000000400030043f00000040032000390000006004000039000000000043043500000020032000390000000000030435000000000002043500000003030000290000000000230435000000400200043d0000018d0020009c000000690000213d0000004003200039000000400030043f00000020032000390000018f0400004100000000004304350000000000120435000000400100043d0000018e0010009c000000e20000a13d000001a001000041000000000010043f0000004101000039000000040010043f000001a1010000410000061000010430000000000101043b0000019901100197000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a0000018802100198000000850000c13d000001a701000041000000000010043f0000019c01000041000006100001043000000002050003670000000001000031000001a8041001980000001f0610018f000000900000613d000000000705034f0000000008000019000000007907043c0000000008980436000000000048004b0000008c0000c13d000000000006004b0000009d0000613d000000000545034f0000000306600210000000000704043300000000076701cf000000000767022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000575019f00000000005404350000000004000414000000040020008c000000b90000c13d00000003040003670000000101000031000001a8021001980000001f0310018f000000ab0000613d000000000504034f0000000006000019000000005705043c0000000006760436000000000026004b000000a70000c13d000000000003004b000000dc0000613d000000000424034f0000000303300210000000000502043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f0000000000320435000000dc0000013d0000006001100210000001850040009c0000018504008041000000c0034002100000000001130019060e06090000040f0003000000010355000000000301001900000060033002700000001f0530018f000101850030019d0000018704300198000000cc0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000000c80000c13d000000000005004b000000d90000613d000000000141034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000185013001970000000100200190000000e00000613d000001850010009c000001850100804100000060011002100000060f0001042e000000600110021000000610000104300000006003100039000000400030043f000000400310003900000000002304350000000002510436000000000002043500000004020000290000000002020433000000000002004b000000f20000c13d000001a001000041000000000010043f0000003201000039000000040010043f000001a101000041000006100001043000000003020000290000000000120435000000400100043d000200000001001d000001900010009c000000690000213d00000002010000290000002002100039000100000002001d000000400020043f000000000001043500000004010000290000000001010433000000000001004b000001420000c13d000000400100043d000000600c0000390000000002c104360000000403000029000000000403043300000060031000390000000000430435000000800510003900000005034002100000000003530019000000000004004b000000030b000029000005ac0000c13d0000000004130049000000400510003900000000004504350000000000020435000000020200002900000000020204330000000003230436000000000002004b0000000108000029000001200000613d000000000500001900000000063500190000000007850019000000000707043300000000007604350000002005500039000000000025004b000001190000413d0000001f05200039000001a8055001970000000004540019000000000232001900000000000204350000002002400039000001850020009c00000185020080410000006002200210000001850010009c00000185010080410000004001100210000000000112019f0000000002000414000001850020009c0000018502008041000000c002200210000000000112019f0000018b011001c70000800d020000390000000103000039000001a404000041060e05ff0000040f0000000100200190000005aa0000613d00000002010000290000000001010433000000000001004b000005d50000c13d000000200100003900000100001004430000012000000443000001a6010000410000060f0001042e000080100400003900000000050000190000014b0000013d0000000505000029000000010550003900000004010000290000000001010433000000000015004b000001010000813d00000005015002100000000301100029000000000101043300000020021000390000000002020433000000030020008c000005cf0000813d00000040031000390000000003030433000d00000003001d0000000063030434000c00000006001d000000000002004b000500000005001d000003720000613d000000010020008c0000043d0000c13d000000000003004b000005ed0000613d00000000010104330000018801100198000005f10000613d000e00000001001d000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000000002040019060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a000b01930010019c000001ac0000c13d000001940100004100000000001004430000000e0100002900000004001004430000000001000414000001850010009c0000018501008041000000c00110021000000195011001c70000800202000039060e06040000040f0000000100200190000005f90000613d000000000101043b000000000001004b0000801002000039000005fa0000613d0000019601000041000000000101041a001100000001001d0000000e01000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b00000001011000390000001102000029000000000021041b000001970020009c000000690000213d000000110100002900000001011000390000019602000041000000000012041b000000000020043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b0000001101100029000000000201041a0000018a022001970000000e022001af000000000021041b0000000d010000290000000001010433000000000001004b0000801004000039000001450000613d0000000002000019000800000002001d00000005012002100000000c011000290000000001010433000900000001001d0000019901100197001100000001001d000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000000002040019060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a00000188031001970000000e0030006c000005e90000613d000000000003004b0000801002000039000000810000613d0000000001000410001000000003001d000000000013004b000005e50000613d0000001101000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a000a00000001001d0000001001000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a000000000001004b0000801002000039000005d90000613d0000000a03000029000000a003300270000f0001001000920000000f0030006c00000010010000290000025c0000613d000700000003001d000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a0000000f0020006c0000801002000039000000ec0000a13d000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b0000000f0200002900000003022002700000000001210019000000000101041a000600000001001d0000001001000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a000000070020006c0000801002000039000000ec0000a13d000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000000f020000290000000502200210000000e00220018f000000060220024f000000e00320021000000007040000290000000504400210000000e00440018f000001850540021f000001a9055001670000000a06000029000000a306600270000000000101043b0000000001610019000000000601041a000000000556016f000001850220019700000000024201cf000000000225019f000000000021041b000000000030043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d0000000a020000290000018a02200197000000000101043b000000000301041a0000018803300197000000000223019f000000000021041b00008010020000390000001001000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a000a00000002001d000000000002004b0000801002000039000005df0000613d000700000001001d000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000000a02000029000000010220008a0000000503200210000000e00330018f000001850330021f000001a903300167000000000101043b00000003042002700000000001410019000000000401041a000000000334016f000000000031041b0000000701000029000000000021041b0000001101000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000001041b0000000f0000006b000003140000c13d0000019601000041000000000101041a000f00000001001d000000000001004b0000801002000039000005d90000613d0000001001000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d0000000f02000029000000010220008a000000000101043b0000000101100039000000000101041a000f00000001001d000000000021004b000002eb0000613d0000019601000041000000000101041a000a00000002001d000000000021004b0000801002000039000000ec0000a13d0000019601000041000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b0000019602000041000000000202041a0000000f0020006c0000801002000039000000ec0000a13d0000000a01100029000000000101041a000a00000001001d0000019601000041000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000000a020000290000018802200197000000000101043b0000000f01100029000000000301041a0000018a03300197000000000323019f000000000031041b000000000020043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b00000001011000390000000f02000029000000000021041b0000019601000041000000000101041a000f00000001001d000000000001004b0000801002000039000005df0000613d0000019601000041000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000000f02000029000000010220008a000000000101043b0000000001210019000000000301041a0000018a03300197000000000031041b0000019601000041000000000021041b0000001001000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b0000000101100039000000000001041b0000001101000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d0000000b02000029000000a002200210000000000101043b000000000301041a0000018803300197000000000223019f000000000021041b0000000e01000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a000001970020009c000000690000213d001000000002001d0000000102200039000000000021041b000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d00000010050000290000000502500210000000e00220018f000001850320021f000001a9033001670000000304500270000000000101043b0000000001410019000000000401041a000000000334016f0000000904000029000000e00440027000000000022401cf000000000223019f000000000021041b0000001101000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a0000018a022001970000000e022001af000000000021041b0000000b010000290000000101100039000b01930010019b000000080200002900000001022000390000000d010000290000000001010433000000000012004b0000801004000039000001b20000413d000001450000013d000000000003004b000005ed0000613d00000000010104330000018801100198000005f10000613d000f00000001001d000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000000002040019060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a001101930010019c000003c20000c13d000001940100004100000000001004430000000f0100002900000004001004430000000001000414000001850010009c0000018501008041000000c00110021000000195011001c70000800202000039060e06040000040f0000000100200190000005f90000613d000000000101043b000000000001004b0000801002000039000005fa0000613d0000019601000041000000000101041a001000000001001d0000000f01000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b00000001011000390000001002000029000000000021041b000001970020009c000000690000213d000000100100002900000001011000390000019602000041000000000012041b000000000020043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b0000001001100029000000000201041a0000018a022001970000000f022001af000000000021041b0000000d010000290000000001010433000000000001004b0000801004000039000001450000613d0000000002000019000b00000002001d00000005012002100000000c011000290000000001010433000e00000001001d0000019901100197001000000001001d000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000000002040019060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a0000018800100198000005e90000c13d0000001001000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d0000001102000029000000a002200210000000000101043b000000000301041a0000018803300197000000000223019f000000000021041b0000000f01000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a000001970020009c000000690000213d000a00000002001d0000000102200039000000000021041b000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d0000000a050000290000000502500210000000e00220018f000001850320021f000001a9033001670000000304500270000000000101043b0000000001410019000000000401041a000000000334016f0000000e04000029000000e00440027000000000022401cf000000000223019f000000000021041b0000001001000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a0000018a022001970000000f022001af000000000021041b00000011010000290000000101100039001101930010019b0000000b0200002900000001022000390000000d010000290000000001010433000000000012004b0000801004000039000003c80000413d000001450000013d000000000003004b000005ed0000613d00000000010104330000018800100198000005f50000c13d00000000020000190000044b0000013d0000000b0200002900000001022000390000000d010000290000000001010433000000000012004b0000801004000039000001450000813d000b00000002001d00000005012002100000000c0110002900000000010104330000019901100197000f00000001001d000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000000002040019060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a00000188031001980000801002000039000000810000613d0000000001000410001100000003001d000000000013004b000005e50000613d0000000f01000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a000e00000001001d0000001101000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000101041a000000000001004b0000801002000039000005d90000613d0000000e03000029000000a0033002700010000100100092000000100030006c0000001101000029000004f10000613d000a00000003001d000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a000000100020006c0000801002000039000000ec0000a13d000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000100200002900000003022002700000000001210019000000000101041a000900000001001d0000001101000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a0000000a0020006c0000801002000039000000ec0000a13d000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d00000010020000290000000502200210000000e00220018f000000090220024f000000e0032002100000000a040000290000000504400210000000e00440018f000001850540021f000001a9055001670000000e06000029000000a306600270000000000101043b0000000001610019000000000601041a000000000556016f000001850220019700000000024201cf000000000225019f000000000021041b000000000030043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d0000000e020000290000018a02200197000000000101043b000000000301041a0000018803300197000000000223019f000000000021041b00008010020000390000001101000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000201041a000e00000002001d000000000002004b0000801002000039000005df0000613d000a00000001001d000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000000e02000029000000010220008a0000000503200210000000e00330018f000001850330021f000001a903300167000000000101043b00000003042002700000000001410019000000000401041a000000000334016f000000000031041b0000000a01000029000000000021041b0000000f01000029000000000010043f0000019a01000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b000000000001041b000000100000006b000004440000c13d0000019601000041000000000101041a001000000001001d000000000001004b0000801002000039000005d90000613d0000001101000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c7060e06040000040f0000000100200190000005aa0000613d0000001002000029000000010220008a000000000101043b0000000101100039000000000101041a001000000001001d000000000021004b000005800000613d0000019601000041000000000101041a000f00000002001d000000000021004b0000801002000039000000ec0000a13d0000019601000041000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d000000000101043b0000019602000041000000000202041a000000100020006c0000801002000039000000ec0000a13d0000000f01100029000000000101041a000f00000001001d0000019601000041000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000000f020000290000018802200197000000000101043b0000001001100029000000000301041a0000018a03300197000000000323019f000000000031041b000000000020043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b00000001011000390000001002000029000000000021041b0000019601000041000000000101041a001000000001001d000000000001004b0000801002000039000005df0000613d0000019601000041000000000010043f0000000001000414000001850010009c0000018501008041000000c00110021000000198011001c7060e06040000040f0000000100200190000005aa0000613d0000001002000029000000010220008a000000000101043b0000000001210019000000000301041a0000018a03300197000000000031041b0000019601000041000000000021041b0000001101000029000000000010043f0000019101000041000000200010043f0000000001000414000001850010009c0000018501008041000000c00110021000000192011001c70000801002000039060e06040000040f0000000100200190000005aa0000613d000000000101043b0000000101100039000000000001041b000004440000013d000000000100001900000610000104300000000006000019000005b10000013d0000000106600039000000000046004b0000010e0000813d0000000007130049000000800770008a000000000575043600000000b70b04340000000098070434000001880880019700000000088304360000000009090433000000020090008c000005cf0000213d00000000009804350000004007700039000000000707043300000040083000390000000000c804350000006009300039000000000807043300000000008904350000008003300039000000000008004b000005ae0000613d00000000090000190000002007700039000000000a070433000001990aa001970000000003a304360000000109900039000000000089004b000005c70000413d000005ae0000013d000001a001000041000000000010043f0000002101000039000000040010043f000001a1010000410000061000010430000001a501000041000000000010043f0000019c010000410000061000010430000001a001000041000000000010043f0000001101000039000000040010043f000001a1010000410000061000010430000001a001000041000000000010043f0000003101000039000000040010043f000001a1010000410000061000010430000001a201000041000000000010043f0000019c0100004100000610000104300000019b01000041000000000010043f0000019c010000410000061000010430000001a301000041000000000010043f0000019c0100004100000610000104300000019e01000041000000000010043f0000019c0100004100000610000104300000019f01000041000000000010043f0000019c010000410000061000010430000000000001042f0000019d01000041000000000010043f0000019c010000410000061000010430000000000001042f00000602002104210000000102000039000000000001042d0000000002000019000000000001042d00000607002104230000000102000039000000000001042d0000000002000019000000000001042d0000060c002104250000000102000039000000000001042d0000000002000019000000000001042d0000060e000004320000060f0001042e000006100001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c1320ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0000000000000000000000000000000000000000000000000ffffffffffffffbf000000000000000000000000000000000000000000000000ffffffffffffff9f1f931c1c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffdfc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131d02000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff1806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000c8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131e000000000000000000000000000000000000000000000000ffffffffffffffff0200000000000000000000000000000000000020000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000000c8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131ca023275d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000e350060000000000000000000000000000000000000000000000000000000000c68ec83a0000000000000000000000000000000000000000000000000000000079c9df22000000000000000000000000000000000000000000000000000000004e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000c3c5ec37000000000000000000000000000000000000000000000000000000007bc55950000000000000000000000000000000000000000000000000000000008faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb67398116860000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000a9ad62f800000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff71cc7a929252d85a578746337fe22aa5aed6d7c884daece29c3379ab4a85a43

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

00000000000000000000000011f1022ca6adef6400e5677528a80d49a069c00c000000000000000000000000a9bd7d5304a24c005d37dc7dfe844464f9ca718c

-----Decoded View---------------
Arg [0] : _contractOwner (address): 0x11F1022cA6AdEF6400e5677528a80d49a069C00c
Arg [1] : _diamondCutFacet (address): 0xA9bD7d5304a24c005D37Dc7Dfe844464F9ca718c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000011f1022ca6adef6400e5677528a80d49a069c00c
Arg [1] : 000000000000000000000000a9bd7d5304a24c005d37dc7dfe844464f9ca718c


Block Transaction 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.