ETH Price: $1,960.78 (-4.78%)
 

More Info

Private Name Tags

Multichain Info

Transaction Hash
Method
Block
From
To
Swap And Start B...302169542026-02-16 0:41:221 hr ago1771202482IN
LI.FI: LiFi Diamond
0.00062925 ETH0.000000040.0001315
Start Bridge Tok...302167422026-02-16 0:34:221 hr ago1771202062IN
LI.FI: LiFi Diamond
0.0001 ETH0.000000020.00014412
Start Bridge Tok...302134442026-02-15 22:59:113 hrs ago1771196351IN
LI.FI: LiFi Diamond
0.01595 ETH0.000000030.0001201
Start Bridge Tok...302124912026-02-15 22:26:583 hrs ago1771194418IN
LI.FI: LiFi Diamond
0.384 ETH0.000000040.00012015
Start Bridge Tok...302122362026-02-15 22:20:083 hrs ago1771194008IN
LI.FI: LiFi Diamond
0.0007185 ETH0.000000030.0001201
Swap And Start B...302114292026-02-15 21:53:214 hrs ago1771192401IN
LI.FI: LiFi Diamond
0.01603336 ETH0.00000050.005029
Swap And Start B...302114042026-02-15 21:52:154 hrs ago1771192335IN
LI.FI: LiFi Diamond
0.00015634 ETH0.000000050.00018016
Start Bridge Tok...302113692026-02-15 21:50:554 hrs ago1771192255IN
LI.FI: LiFi Diamond
0.0104 ETH0.000000030.0001201
Swap And Start B...302109432026-02-15 21:35:054 hrs ago1771191305IN
LI.FI: LiFi Diamond
0 ETH0.000000060.0001201
Start Bridge Tok...302102412026-02-15 21:14:594 hrs ago1771190099IN
LI.FI: LiFi Diamond
0.01692 ETH0.000000020.0001201
Start Bridge Tok...302099702026-02-15 21:06:514 hrs ago1771189611IN
LI.FI: LiFi Diamond
0 ETH0.000000040.0001201
Swap And Start B...302098692026-02-15 21:03:514 hrs ago1771189431IN
LI.FI: LiFi Diamond
0.00005697 ETH0.000000040.000147
Start Bridge Tok...302097862026-02-15 21:01:495 hrs ago1771189309IN
LI.FI: LiFi Diamond
0.00549638 ETH0.000000070.00042
Swap And Start B...302085422026-02-15 20:22:515 hrs ago1771186971IN
LI.FI: LiFi Diamond
0.00485216 ETH0.00000050.005028
Start Bridge Tok...302073642026-02-15 19:49:476 hrs ago1771184987IN
LI.FI: LiFi Diamond
0.00508614 ETH0.000000040.0001201
Swap And Start B...302073152026-02-15 19:48:196 hrs ago1771184899IN
LI.FI: LiFi Diamond
0.00658448 ETH0.000000060.0001471
Swap And Start B...302068502026-02-15 19:37:236 hrs ago1771184243IN
LI.FI: LiFi Diamond
0.00628372 ETH0.000000080.0001487
Swap And Start B...302064812026-02-15 19:26:336 hrs ago1771183593IN
LI.FI: LiFi Diamond
0.00680172 ETH0.000000070.000273
Start Bridge Tok...302061182026-02-15 19:19:106 hrs ago1771183150IN
LI.FI: LiFi Diamond
0.01293129 ETH0.000000070.0001201
Swap And Start B...302060892026-02-15 19:18:096 hrs ago1771183089IN
LI.FI: LiFi Diamond
0.00620344 ETH0.000000520.005027
Swap And Start B...302038672026-02-15 18:33:587 hrs ago1771180438IN
LI.FI: LiFi Diamond
0.01339245 ETH0.000000050.0002691
Swap And Start B...302030052026-02-15 18:16:477 hrs ago1771179407IN
LI.FI: LiFi Diamond
0.0025286 ETH0.000000060.0001201
Swap And Start B...302029702026-02-15 18:16:007 hrs ago1771179360IN
LI.FI: LiFi Diamond
0.00633759 ETH0.000000050.0001477
Start Bridge Tok...302026942026-02-15 18:09:597 hrs ago1771178999IN
LI.FI: LiFi Diamond
0.01753 ETH0.000000040.0001201
Swap And Start B...302026242026-02-15 18:08:487 hrs ago1771178928IN
LI.FI: LiFi Diamond
0.00181932 ETH0.000000050.0001602
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
302189652026-02-16 1:45:2917 mins ago1771206329
LI.FI: LiFi Diamond
0.006 ETH
302189652026-02-16 1:45:2917 mins ago1771206329
LI.FI: LiFi Diamond
0.006 ETH
302189412026-02-16 1:44:4917 mins ago1771206289
LI.FI: LiFi Diamond
0.00600421 ETH
302189412026-02-16 1:44:4917 mins ago1771206289
LI.FI: LiFi Diamond
0.00600421 ETH
302169542026-02-16 0:41:221 hr ago1771202482
LI.FI: LiFi Diamond
0.00062767 ETH
302169542026-02-16 0:41:221 hr ago1771202482
LI.FI: LiFi Diamond
0.00062767 ETH
302169542026-02-16 0:41:221 hr ago1771202482
LI.FI: LiFi Diamond
0.00062925 ETH
302167422026-02-16 0:34:221 hr ago1771202062
LI.FI: LiFi Diamond
0.0001 ETH
302166472026-02-16 0:31:101 hr ago1771201870
LI.FI: LiFi Diamond
0.00030869 ETH
302166472026-02-16 0:31:101 hr ago1771201870
LI.FI: LiFi Diamond
0.00030869 ETH
302162232026-02-16 0:17:191 hr ago1771201039
LI.FI: LiFi Diamond
0.00019786 ETH
302162232026-02-16 0:17:191 hr ago1771201039
LI.FI: LiFi Diamond
0.00019786 ETH
302161222026-02-16 0:15:411 hr ago1771200941
LI.FI: LiFi Diamond
0.00239031 ETH
302161222026-02-16 0:15:411 hr ago1771200941
LI.FI: LiFi Diamond
0.00239031 ETH
302160032026-02-16 0:11:011 hr ago1771200661
LI.FI: LiFi Diamond
0.0000014 ETH
302160032026-02-16 0:11:011 hr ago1771200661
LI.FI: LiFi Diamond
0.0000014 ETH
302159832026-02-16 0:10:341 hr ago1771200634
LI.FI: LiFi Diamond
0.0000006 ETH
302159832026-02-16 0:10:341 hr ago1771200634
LI.FI: LiFi Diamond
0.0000006 ETH
302151672026-02-15 23:44:102 hrs ago1771199050
LI.FI: LiFi Diamond
0.00000045 ETH
302151672026-02-15 23:44:102 hrs ago1771199050
LI.FI: LiFi Diamond
0.00000045 ETH
302151552026-02-15 23:43:432 hrs ago1771199023
LI.FI: LiFi Diamond
0.0000005 ETH
302151552026-02-15 23:43:432 hrs ago1771199023
LI.FI: LiFi Diamond
0.0000005 ETH
302151122026-02-15 23:42:062 hrs ago1771198926
LI.FI: LiFi Diamond
0.0000005 ETH
302151122026-02-15 23:42:062 hrs ago1771198926
LI.FI: LiFi Diamond
0.0000005 ETH
302134442026-02-15 22:59:113 hrs ago1771196351
LI.FI: LiFi Diamond
0.01595 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LiFiDiamond

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at scrollscan.com on 2024-03-06
*/

// SPDX-License-Identifier: MIT
pragma solidity =0.8.17;

// src/Errors/GenericErrors.sol

error AlreadyInitialized();
error CannotAuthoriseSelf();
error CannotBridgeToSameNetwork();
error ContractCallNotAllowed();
error CumulativeSlippageTooHigh(uint256 minAmount, uint256 receivedAmount);
error ExternalCallFailed();
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();

// src/Interfaces/IDiamondCut.sol

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

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

    /// @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(
        FacetCut[] calldata _diamondCut,
        address _init,
        bytes calldata _calldata
    ) external;

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

// src/Libraries/LibBytes.sol

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);
    }
}

// src/Libraries/LibUtil.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);
    }
}

// src/Libraries/LibDiamond.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;
    }

    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
    );

    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();
    }

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

    // Internal function version of diamondCut
    function diamondCut(
        IDiamondCut.FacetCut[] memory _diamondCut,
        address _init,
        bytes memory _calldata
    ) internal {
        for (uint256 facetIndex; facetIndex < _diamondCut.length; ) {
            IDiamondCut.FacetCutAction action = _diamondCut[facetIndex].action;
            if (action == IDiamondCut.FacetCutAction.Add) {
                addFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else if (action == IDiamondCut.FacetCutAction.Replace) {
                replaceFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else if (action == IDiamondCut.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();
        }
    }
}

// src/LiFiDiamond.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
        IDiamondCut.FacetCut[] memory cut = new IDiamondCut.FacetCut[](1);
        bytes4[] memory functionSelectors = new bytes4[](1);
        functionSelectors[0] = IDiamondCut.diamondCut.selector;
        cut[0] = IDiamondCut.FacetCut({
            facetAddress: _diamondCutFacet,
            action: IDiamondCut.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 {}
}

Contract Security Audit

Contract ABI

API
[{"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"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

60806040526040516200243438038062002434833981016040819052620000269162000d95565b6200003c826200015660201b620000d21760201c565b604080516001808252818301909252600091816020015b60408051606080820183526000808352602083015291810191909152815260200190600190039081620000535750506040805160018082528183019092529192506000919060208083019080368337019050509050631f931c1c60e01b81600081518110620000c657620000c662000dcd565b6001600160e01b031990921660209283029190910182015260408051606081019091526001600160a01b038516815290810160008152602001828152508260008151811062000119576200011962000dcd565b60200260200101819052506200014c82600060405180602001604052806000815250620001da60201b6200018c1760201c565b5050505062000fcc565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080546001600160a01b031981166001600160a01b0384811691821790935560405160008051602062002414833981519152939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b835181101562000396576000848281518110620001fe57620001fe62000dcd565b60200260200101516020015190506000600281111562000222576200022262000de3565b81600281111562000237576200023762000de3565b0362000295576200028f85838151811062000256576200025662000dcd565b60200260200101516000015186848151811062000277576200027762000dcd565b602002602001015160400151620003e560201b60201c565b6200038c565b6001816002811115620002ac57620002ac62000de3565b0362000304576200028f858381518110620002cb57620002cb62000dcd565b602002602001015160000151868481518110620002ec57620002ec62000dcd565b602002602001015160400151620005c160201b60201c565b60028160028111156200031b576200031b62000de3565b0362000373576200028f8583815181106200033a576200033a62000dcd565b6020026020010151600001518684815181106200035b576200035b62000dcd565b6020026020010151604001516200079560201b60201c565b60405163e548e6b560e01b815260040160405180910390fd5b50600101620001dd565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673838383604051620003cc9392919062000e4d565b60405180910390a1620003e0828262000874565b505050565b805160000362000408576040516307bc559560e41b815260040160405180910390fd5b60006000805160206200241483398151915290506200043283620009a460201b6200036d1760201c565b156200045157604051636347641d60e11b815260040160405180910390fd5b6001600160a01b0383166000908152600182016020526040812054906001600160601b03821690036200048a576200048a8285620009b1565b60005b8351811015620005ba576000848281518110620004ae57620004ae62000dcd565b6020908102919091018101516001600160e01b03198116600090815286835260409020549092506001600160a01b031690620004f59082906200036d620009a4821b17901c565b620005135760405163a023275d60e01b815260040160405180910390fd5b6001600160e01b0319821660008181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b0319161790555050600191820191016200048d565b5050505050565b8051600003620005e4576040516307bc559560e41b815260040160405180910390fd5b60006000805160206200241483398151915290506200060e83620009a460201b6200036d1760201c565b156200062d57604051636347641d60e11b815260040160405180910390fd5b6001600160a01b0383166000908152600182016020526040812054906001600160601b03821690036200066657620006668285620009b1565b60005b8351811015620005ba5760008482815181106200068a576200068a62000dcd565b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b039081169087168103620006e15760405163a023275d60e01b815260040160405180910390fd5b620006ee85828462000a04565b6001600160e01b0319821660008181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b03191617905550506001918201910162000669565b8051600003620007b8576040516307bc559560e41b815260040160405180910390fd5b6000600080516020620024148339815191529050620007e283620009a460201b6200036d1760201c565b6200080057604051633ce4ef9160e11b815260040160405180910390fd5b60005b82518110156200086e57600083828151811062000824576200082462000dcd565b6020908102919091018101516001600160e01b031981166000908152918590526040909120549091506001600160a01b03166200086384828462000a04565b505060010162000803565b50505050565b6200088a82620009a460201b6200036d1760201c565b15620008b557805115620008b1576040516304c08b4360e51b815260040160405180910390fd5b5050565b8051600003620008d85760405163211002b360e11b815260040160405180910390fd5b6001600160a01b0382163014620008f457620008f48262000d54565b600080836001600160a01b03168360405162000911919062000f54565b600060405180830381855af49150503d80600081146200094e576040519150601f19603f3d011682016040523d82523d6000602084013e62000953565b606091505b5091509150816200086e578051156200098b578060405162461bcd60e51b815260040162000982919062000f72565b60405180910390fd5b60405163c53ebed560e01b815260040160405180910390fd5b6001600160a01b03161590565b620009bc8162000d54565b6002820180546001600160a01b0390921660008181526001948501602090815260408220860185905594840183559182529290200180546001600160a01b0319169091179055565b62000a1a82620009a460201b6200036d1760201c565b1562000a3957604051631535ac5f60e31b815260040160405180910390fd5b306001600160a01b0383160362000a635760405163c3c5ec3760e01b815260040160405180910390fd5b6001600160e01b03198116600090815260208481526040808320546001600160a01b0386168452600180880190935290832054600160a01b9091046001600160601b0316929162000ab49162000f8e565b905080821462000bad576001600160a01b0384166000908152600186016020526040812080548390811062000aed5762000aed62000dcd565b600091825260208083206008830401546001600160a01b038916845260018a019091526040909220805460079092166004026101000a90920460e01b92508291908590811062000b415762000b4162000dcd565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b03199290921682528690526040902080546001600160a01b0316600160a01b6001600160601b038516021790555b6001600160a01b0384166000908152600186016020526040902080548062000bd95762000bd962000fb6565b60008281526020808220600860001990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b03198516825286905260408120819055819003620005ba57600285015460009062000c3f9060019062000f8e565b6001600160a01b038616600090815260018089016020526040909120015490915080821462000cf557600087600201838154811062000c825762000c8262000dcd565b6000918252602090912001546002890180546001600160a01b03909216925082918490811062000cb65762000cb662000dcd565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055929091168152600189810190925260409020018190555b8660020180548062000d0b5762000d0b62000fb6565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0388168252600189810190915260408220015550505050505050565b803b6000819003620008b1576040516271a80360e91b815260040160405180910390fd5b80516001600160a01b038116811462000d9057600080fd5b919050565b6000806040838503121562000da957600080fd5b62000db48362000d78565b915062000dc46020840162000d78565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60005b8381101562000e1657818101518382015260200162000dfc565b50506000910152565b6000815180845262000e3981602086016020860162000df9565b601f01601f19169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b8481101562000f2257898403607f19018652815180516001600160a01b0316855283810151898601906003811062000ebe57634e487b7160e01b600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b8083101562000f0c5783516001600160e01b031916825292860192600192909201919086019062000ee0565b5097850197955050509082019060010162000e76565b50506001600160a01b038a1690880152868103604088015262000f46818962000e1f565b9a9950505050505050505050565b6000825162000f6881846020870162000df9565b9190910192915050565b60208152600062000f87602083018462000e1f565b9392505050565b8181038181111562000fb057634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052603160045260246000fd5b6114388062000fdc6000396000f3fe60806040523661000b57005b600080357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff16806100ae576040517fa9ad62f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3660008037600080366000845af43d6000803e8080156100cd573d6000f35b3d6000fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff8481169182179093556040517fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b83518110156103225760008482815181106101ac576101ac611129565b6020026020010151602001519050600060028111156101cd576101cd611158565b8160028111156101df576101df611158565b0361022d576102288583815181106101f9576101f9611129565b60200260200101516000015186848151811061021757610217611129565b602002602001015160400151610387565b610319565b600181600281111561024157610241611158565b0361028a5761022885838151811061025b5761025b611129565b60200260200101516000015186848151811061027957610279611129565b602002602001015160400151610627565b600281600281111561029e5761029e611158565b036102e7576102288583815181106102b8576102b8611129565b6020026020010151600001518684815181106102d6576102d6611129565b6020026020010151604001516108d0565b6040517fe548e6b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060010161018f565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673838383604051610356939291906111f5565b60405180910390a16103688282610a0c565b505050565b73ffffffffffffffffffffffffffffffffffffffff161590565b80516000036103c2576040517f7bc5595000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff8316610430576040517fc68ec83a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff82169003610478576104788285610bad565b60005b835181101561062057600084828151811061049857610498611129565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff168015610527576040517fa023275d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905550506001918201910161047b565b5050505050565b8051600003610662576040517f7bc5595000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff83166106d0576040517fc68ec83a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff82169003610718576107188285610bad565b60005b835181101561062057600084828151811061073857610738611129565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff90811690871681036107cc576040517fa023275d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107d7858284610c23565b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905550506001918201910161071b565b805160000361090b576040517f7bc5595000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff83161561097a576040517f79c9df2200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8251811015610a0657600083828151811061099a5761099a611129565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529185905260409091205490915073ffffffffffffffffffffffffffffffffffffffff166109fc848284610c23565b505060010161097d565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8216610a6457805115610a60576040517f9811686000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b8051600003610a9f576040517f4220056600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82163014610ac557610ac5826110ec565b6000808373ffffffffffffffffffffffffffffffffffffffff1683604051610aed919061135d565b600060405180830381855af49150503d8060008114610b28576040519150601f19603f3d011682016040523d82523d6000602084013e610b2d565b606091505b509150915081610a0657805115610b7b57806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b729190611379565b60405180910390fd5b6040517fc53ebed500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bb6816110ec565b60028201805473ffffffffffffffffffffffffffffffffffffffff90921660008181526001948501602090815260408220860185905594840183559182529290200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b73ffffffffffffffffffffffffffffffffffffffff8216610c70576040517fa9ad62f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff831603610cbf576040517fc3c5ec3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081166000908152602084815260408083205473ffffffffffffffffffffffffffffffffffffffff86168452600180880190935290832054740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169291610d4991611393565b9050808214610e905773ffffffffffffffffffffffffffffffffffffffff841660009081526001860160205260408120805483908110610d8b57610d8b611129565b6000918252602080832060088304015473ffffffffffffffffffffffffffffffffffffffff8916845260018a019091526040909220805460079092166004026101000a90920460e01b925082919085908110610de957610de9611129565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790557fffffffff0000000000000000000000000000000000000000000000000000000092909216825286905260409020805473ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000006bffffffffffffffffffffffff8516021790555b73ffffffffffffffffffffffffffffffffffffffff841660009081526001860160205260409020805480610ec657610ec66113d3565b6000828152602080822060087fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90940193840401805463ffffffff600460078716026101000a0219169055919092557fffffffff000000000000000000000000000000000000000000000000000000008516825286905260408120819055819003610620576002850154600090610f5f90600190611393565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260018089016020526040909120015490915080821461104d576000876002018381548110610fab57610fab611129565b60009182526020909120015460028901805473ffffffffffffffffffffffffffffffffffffffff9092169250829184908110610fe957610fe9611129565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055929091168152600189810190925260409020018190555b86600201805480611060576110606113d3565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff88168252600189810190915260408220015550505050505050565b803b6000819003610a60576040517fe350060000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60005b838110156111a257818101518382015260200161118a565b50506000910152565b600081518084526111c3816020860160208601611187565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b84811015611320577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808a8503018652815188850173ffffffffffffffffffffffffffffffffffffffff825116865284820151600381106112a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b8083101561130b5783517fffffffff000000000000000000000000000000000000000000000000000000001682529286019260019290920191908601906112c9565b5097850197955050509082019060010161121e565b505073ffffffffffffffffffffffffffffffffffffffff8a1690880152868103604088015261134f81896111ab565b9a9950505050505050505050565b6000825161136f818460208701611187565b9190910192915050565b60208152600061138c60208301846111ab565b9392505050565b818103818111156113cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220244eacf3b1cbd2dda7fc6859be7c4e38c31b932a358fa5436a5aec68728b07b064736f6c63430008110033c8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c00000000000000000000000011f11121df7256c40339393b0fb045321022ce44000000000000000000000000b09e20930242327f9ac4da95dd0c421fbe15d4db

Deployed Bytecode

0x60806040523661000b57005b600080357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff16806100ae576040517fa9ad62f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3660008037600080366000845af43d6000803e8080156100cd573d6000f35b3d6000fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff8481169182179093556040517fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b83518110156103225760008482815181106101ac576101ac611129565b6020026020010151602001519050600060028111156101cd576101cd611158565b8160028111156101df576101df611158565b0361022d576102288583815181106101f9576101f9611129565b60200260200101516000015186848151811061021757610217611129565b602002602001015160400151610387565b610319565b600181600281111561024157610241611158565b0361028a5761022885838151811061025b5761025b611129565b60200260200101516000015186848151811061027957610279611129565b602002602001015160400151610627565b600281600281111561029e5761029e611158565b036102e7576102288583815181106102b8576102b8611129565b6020026020010151600001518684815181106102d6576102d6611129565b6020026020010151604001516108d0565b6040517fe548e6b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060010161018f565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673838383604051610356939291906111f5565b60405180910390a16103688282610a0c565b505050565b73ffffffffffffffffffffffffffffffffffffffff161590565b80516000036103c2576040517f7bc5595000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff8316610430576040517fc68ec83a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff82169003610478576104788285610bad565b60005b835181101561062057600084828151811061049857610498611129565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff168015610527576040517fa023275d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905550506001918201910161047b565b5050505050565b8051600003610662576040517f7bc5595000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff83166106d0576040517fc68ec83a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600182016020526040812054906bffffffffffffffffffffffff82169003610718576107188285610bad565b60005b835181101561062057600084828151811061073857610738611129565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529186905260409091205490915073ffffffffffffffffffffffffffffffffffffffff90811690871681036107cc576040517fa023275d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107d7858284610c23565b7fffffffff000000000000000000000000000000000000000000000000000000008216600081815260208781526040808320805473ffffffffffffffffffffffffffffffffffffffff908116740100000000000000000000000000000000000000006bffffffffffffffffffffffff8c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905550506001918201910161071b565b805160000361090b576040517f7bc5595000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c73ffffffffffffffffffffffffffffffffffffffff83161561097a576040517f79c9df2200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8251811015610a0657600083828151811061099a5761099a611129565b6020908102919091018101517fffffffff00000000000000000000000000000000000000000000000000000000811660009081529185905260409091205490915073ffffffffffffffffffffffffffffffffffffffff166109fc848284610c23565b505060010161097d565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8216610a6457805115610a60576040517f9811686000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b8051600003610a9f576040517f4220056600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82163014610ac557610ac5826110ec565b6000808373ffffffffffffffffffffffffffffffffffffffff1683604051610aed919061135d565b600060405180830381855af49150503d8060008114610b28576040519150601f19603f3d011682016040523d82523d6000602084013e610b2d565b606091505b509150915081610a0657805115610b7b57806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b729190611379565b60405180910390fd5b6040517fc53ebed500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bb6816110ec565b60028201805473ffffffffffffffffffffffffffffffffffffffff90921660008181526001948501602090815260408220860185905594840183559182529290200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055565b73ffffffffffffffffffffffffffffffffffffffff8216610c70576040517fa9ad62f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff831603610cbf576040517fc3c5ec3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081166000908152602084815260408083205473ffffffffffffffffffffffffffffffffffffffff86168452600180880190935290832054740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169291610d4991611393565b9050808214610e905773ffffffffffffffffffffffffffffffffffffffff841660009081526001860160205260408120805483908110610d8b57610d8b611129565b6000918252602080832060088304015473ffffffffffffffffffffffffffffffffffffffff8916845260018a019091526040909220805460079092166004026101000a90920460e01b925082919085908110610de957610de9611129565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790557fffffffff0000000000000000000000000000000000000000000000000000000092909216825286905260409020805473ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000006bffffffffffffffffffffffff8516021790555b73ffffffffffffffffffffffffffffffffffffffff841660009081526001860160205260409020805480610ec657610ec66113d3565b6000828152602080822060087fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90940193840401805463ffffffff600460078716026101000a0219169055919092557fffffffff000000000000000000000000000000000000000000000000000000008516825286905260408120819055819003610620576002850154600090610f5f90600190611393565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260018089016020526040909120015490915080821461104d576000876002018381548110610fab57610fab611129565b60009182526020909120015460028901805473ffffffffffffffffffffffffffffffffffffffff9092169250829184908110610fe957610fe9611129565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055929091168152600189810190925260409020018190555b86600201805480611060576110606113d3565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff88168252600189810190915260408220015550505050505050565b803b6000819003610a60576040517fe350060000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60005b838110156111a257818101518382015260200161118a565b50506000910152565b600081518084526111c3816020860160208601611187565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b84811015611320577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808a8503018652815188850173ffffffffffffffffffffffffffffffffffffffff825116865284820151600381106112a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b8083101561130b5783517fffffffff000000000000000000000000000000000000000000000000000000001682529286019260019290920191908601906112c9565b5097850197955050509082019060010161121e565b505073ffffffffffffffffffffffffffffffffffffffff8a1690880152868103604088015261134f81896111ab565b9a9950505050505050505050565b6000825161136f818460208701611187565b9190910192915050565b60208152600061138c60208301846111ab565b9392505050565b818103818111156113cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220244eacf3b1cbd2dda7fc6859be7c4e38c31b932a358fa5436a5aec68728b07b064736f6c63430008110033

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

00000000000000000000000011f11121df7256c40339393b0fb045321022ce44000000000000000000000000b09e20930242327f9ac4da95dd0c421fbe15d4db

-----Decoded View---------------
Arg [0] : _contractOwner (address): 0x11F11121DF7256C40339393b0FB045321022ce44
Arg [1] : _diamondCutFacet (address): 0xb09e20930242327f9aC4DA95dd0c421fbE15D4db

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000011f11121df7256c40339393b0fb045321022ce44
Arg [1] : 000000000000000000000000b09e20930242327f9ac4da95dd0c421fbe15d4db


Deployed Bytecode Sourcemap

20309:2297:0:-:0;;;;;;;;21226:36;21586:7;;;;21556:38;;7817:45;21556:38;;;;;;;;:51;7817:45;;21556:51;;;21620:92;;21667:33;;;;;;;;;;;;;;21620:92;21971:14;21968:1;21965;21952:34;22117:1;22114;22098:14;22095:1;22088:5;22081;22068:51;22191:16;22188:1;22185;22170:38;22297:6;22317:68;;;;22436:16;22433:1;22426:27;22317:68;22353:16;22350:1;22343:27;9774:269;9918:16;;;9945:28;;;9918:16;9945:28;;;;;;;;;9989:46;;7817:45;;9918:16;;;;;;9989:46;;9839:25;;9989:46;9828:215;;9774:269;:::o;10536:1311::-;10697:18;10692:1042;10730:11;:18;10717:10;:31;10692:1042;;;10767:33;10803:11;10815:10;10803:23;;;;;;;;:::i;:::-;;;;;;;:30;;;10767:66;;10862:30;10852:40;;;;;;;;:::i;:::-;:6;:40;;;;;;;;:::i;:::-;;10848:804;;10913:154;10948:11;10960:10;10948:23;;;;;;;;:::i;:::-;;;;;;;:36;;;11007:11;11019:10;11007:23;;;;;;;;:::i;:::-;;;;;;;:41;;;10913:12;:154::i;:::-;10848:804;;;11103:34;11093:6;:44;;;;;;;;:::i;:::-;;11089:563;;11158:158;11197:11;11209:10;11197:23;;;;;;;;:::i;:::-;;;;;;;:36;;;11256:11;11268:10;11256:23;;;;;;;;:::i;:::-;;;;;;;:41;;;11158:16;:158::i;11089:563::-;11352:33;11342:6;:43;;;;;;;;:::i;:::-;;11338:314;;11406:157;11444:11;11456:10;11444:23;;;;;;;;:::i;:::-;;;;;;;:36;;;11503:11;11515:10;11503:23;;;;;;;;:::i;:::-;;;;;;;:41;;;11406:15;:157::i;11338:314::-;11611:25;;;;;;;;;;;;;;11338:314;-1:-1:-1;11695:12:0;;10692:1042;;;;11749:41;11760:11;11773:5;11780:9;11749:41;;;;;;;;:::i;:::-;;;;;;;;11801:38;11822:5;11829:9;11801:20;:38::i;:::-;10536:1311;;;:::o;7483:110::-;7567:18;;;;7483:110::o;11855:1299::-;11985:18;:25;12014:1;11985:30;11981:89;;12039:19;;;;;;;;;;;;;;11981:89;7817:45;7567:18;;;12135:96;;12199:20;;;;;;;;;;;;;;12135:96;12288:40;;;12241:23;12288:40;;;:25;;;:40;;;;;:65;;12434:21;;;;;12430:81;;12472:27;12481:2;12485:13;12472:8;:27::i;:::-;12540:21;12521:626;12592:18;:25;12576:13;:41;12521:626;;;12647:15;12665:18;12684:13;12665:33;;;;;;;;:::i;:::-;;;;;;;;;;;;12739:57;;;12713:23;12739:57;;;;;;;;;;;:88;12665:33;;-1:-1:-1;12739:88:0;;7567:18;;12842:110;;12913:23;;;;;;;;;;;;;;12842:110;15971:54;;;:43;:54;;;;;;;;;;;:113;;;;;;;;;;;;;;16095:40;;;;;-1:-1:-1;16095:25:0;;;:40;;;;;:98;;;;;;;;;;;;;;;;;;;;;;;;;15971:113;16095:98;;;;;;;;;;;;;;;;;;;;;16204:40;;;;;;;:69;;15971:113;16204:69;;;;-1:-1:-1;;13068:18:0;;;;;13105:15;12521:626;;;;11970:1184;;11855:1299;;:::o;13162:1356::-;13296:18;:25;13325:1;13296:30;13292:89;;13350:19;;;;;;;;;;;;;;13292:89;7817:45;7567:18;;;13446:96;;13510:20;;;;;;;;;;;;;;13446:96;13599:40;;;13552:23;13599:40;;;:25;;;:40;;;;;:65;;13745:21;;;;;13741:81;;13783:27;13792:2;13796:13;13783:8;:27::i;:::-;13851:21;13832:679;13903:18;:25;13887:13;:41;13832:679;;;13958:15;13976:18;13995:13;13976:33;;;;;;;;:::i;:::-;;;;;;;;;;;;14050:57;;;14024:23;14050:57;;;;;;;;;;;:88;13976:33;;-1:-1:-1;14050:88:0;;;;;14157:32;;;;14153:103;;14217:23;;;;;;;;;;;;;;14153:103;14270:45;14285:2;14289:15;14306:8;14270:14;:45::i;:::-;15971:54;;;:43;:54;;;;;;;;;;;:113;;;;;;;;;;;;;;16095:40;;;;;-1:-1:-1;16095:25:0;;;:40;;;;;:98;;;;;;;;;;;;;;;;;;;;;;;;;15971:113;16095:98;;;;;;;;;;;;;;;;;;;;;16204:40;;;;;;;:69;;15971:113;16204:69;;;;-1:-1:-1;;14432:18:0;;;;;14469:15;13832:679;;14526:918;14659:18;:25;14688:1;14659:30;14655:89;;14713:19;;;;;;;;;;;;;;14655:89;7817:45;7567:18;;;;14875:100;;14940:23;;;;;;;;;;;;;;14875:100;15004:21;14985:452;15056:18;:25;15040:13;:41;14985:452;;;15111:15;15129:18;15148:13;15129:33;;;;;;;;:::i;:::-;;;;;;;;;;;;15203:57;;;15177:23;15203:57;;;;;;;;;;;:88;15129:33;;-1:-1:-1;15203:88:0;;15306:45;15203:2;:88;15129:33;15306:14;:45::i;:::-;-1:-1:-1;;15395:15:0;;14985:452;;;;14644:800;14526:918;;:::o;18876:922::-;7567:18;;;18990:801;;19043:16;;:21;19039:98;;19092:29;;;;;;;;;;;;;;19039:98;18876:922;;:::o;18990:801::-;19173:9;:16;19193:1;19173:21;19169:98;;19222:29;;;;;;;;;;;;;;19169:98;19285:22;;;19302:4;19285:22;19281:92;;19328:29;19351:5;19328:22;:29::i;:::-;19452:12;19466:18;19488:5;:18;;19507:9;19488:29;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19451:66;;;;19537:7;19532:248;;19569:12;;:16;19565:200;;19668:5;19654:21;;;;;;;;;;;:::i;:::-;;;;;;;;19565:200;19731:14;;;;;;;;;;;;;;15452:333;15565:37;15588:13;15565:22;:37::i;:::-;15677:31;;;:52;;15613:40;;;;;;;;:25;;;;:40;;;;;;;:61;;:116;;;15740:37;;;;;;;;;;;;;;;;;;;;;15452:333::o;16289:2579::-;7567:18;;;16435:98;;16499:22;;;;;;;;;;;;;;16435:98;16650:4;16625:30;;;;16621:91;;16679:21;;;;;;;;;;;;;;16621:91;16824:54;;;16797:24;16824:54;;;;;;;;;;;:93;16959:54;;;;;17069:1;16959:39;;;:54;;;;;;:107;16824:93;;;;;;;16797:24;16959:111;;;:::i;:::-;16928:142;;17174:20;17154:16;:40;17150:495;;17233:58;;;17211:19;17233:58;;;:43;;;:58;;;;;:116;;17328:20;;17233:116;;;;;;:::i;:::-;;;;;;;;;;;;;;17364:40;;;;;:25;;;:40;;;;;;;:108;;17233:116;;;;;;;;;;;;;;-1:-1:-1;17233:116:0;;17364:40;17441:16;;17364:108;;;;;;:::i;:::-;;;;;;;;;;;;;:123;;;:108;;;;;;:123;;;;;;;;;;;;;;;;;;;;;;17502:61;;;;;;;;;;;;;:131;;;;;;;;;;;;17150:495;17692:40;;;;;;;:25;;;:40;;;;;:64;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17774:40;;;;;;;;;;;17767:47;;;17912:25;;;17908:953;;18081:17;;;:24;18046:32;;18081:28;;18108:1;;18081:28;:::i;:::-;18155:58;;;18124:28;18155:58;;;:43;;;;:58;;;;;;:97;;18046:63;;-1:-1:-1;18271:48:0;;;18267:426;;18340:24;18367:2;:17;;18407:24;18367:83;;;;;;;;:::i;:::-;;;;;;;;;;;18469:17;;;:39;;18367:83;;;;;-1:-1:-1;18367:83:0;;18487:20;;18469:39;;;;;;:::i;:::-;;;;;;;;;;;;;:58;;;;;;;;;;;18546:65;;;;;;-1:-1:-1;18546:47:0;;;:65;;;;;;:108;:131;;;18267:426;18707:2;:17;;:23;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;18752:58;;;;18707:23;18752:43;;;:58;;;;;;:97;18745:104;-1:-1:-1;;16424:2444:0;;16289:2579;;;:::o;19806:332::-;20010:22;;19882:20;20057:17;;;20053:78;;20098:21;;;;;;;;;;;;;;14:184:1;66:77;63:1;56:88;163:4;160:1;153:15;187:4;184:1;177:15;203:184;255:77;252:1;245:88;352:4;349:1;342:15;376:4;373:1;366:15;524:250;609:1;619:113;633:6;630:1;627:13;619:113;;;709:11;;;703:18;690:11;;;683:39;655:2;648:10;619:113;;;-1:-1:-1;;766:1:1;748:16;;741:27;524:250::o;779:329::-;820:3;858:5;852:12;885:6;880:3;873:19;901:76;970:6;963:4;958:3;954:14;947:4;940:5;936:16;901:76;:::i;:::-;1022:2;1010:15;1027:66;1006:88;997:98;;;;1097:4;993:109;;779:329;-1:-1:-1;;779:329:1:o;1113:2270::-;1377:4;1406:2;1446;1435:9;1431:18;1476:2;1465:9;1458:21;1499:6;1534;1528:13;1565:6;1557;1550:22;1591:3;1581:13;;1625:2;1614:9;1610:18;1603:25;;1687:2;1677:6;1674:1;1670:14;1659:9;1655:30;1651:39;1709:4;1748:2;1740:6;1736:15;1769:1;1779:1433;1793:6;1790:1;1787:13;1779:1433;;;1882:66;1870:9;1862:6;1858:22;1854:95;1849:3;1842:108;1979:6;1973:13;2025:2;2017:6;2013:15;2071:42;2066:2;2060:9;2056:58;2048:6;2041:74;2162:2;2158;2154:11;2148:18;2206:1;2192:12;2189:19;2179:227;;2250:77;2247:1;2240:88;2355:4;2352:1;2345:15;2387:4;2384:1;2377:15;2179:227;2426:15;;;2419:37;2479:4;2524:11;;;2518:18;2556:15;;;2549:27;;;2637:21;;2671:24;;;;2761:23;;;;-1:-1:-1;;2717:15:1;;;;2822:282;2838:8;2833:3;2830:17;2822:282;;;2919:15;;2936:66;2915:88;2901:103;;3073:17;;;;2866:1;2857:11;;;;;3030:14;;;;2822:282;;;-1:-1:-1;3190:12:1;;;;3127:5;-1:-1:-1;;;3155:15:1;;;;1815:1;1808:9;1779:1433;;;-1:-1:-1;;469:42:1;458:54;;3248:18;;;446:67;3305:22;;;3298:4;3283:20;;3276:52;3345:32;3309:6;3362;3345:32;:::i;:::-;3337:40;1113:2270;-1:-1:-1;;;;;;;;;;1113:2270:1:o;3388:287::-;3517:3;3555:6;3549:13;3571:66;3630:6;3625:3;3618:4;3610:6;3606:17;3571:66;:::i;:::-;3653:16;;;;;3388:287;-1:-1:-1;;3388:287:1:o;3680:219::-;3829:2;3818:9;3811:21;3792:4;3849:44;3889:2;3878:9;3874:18;3866:6;3849:44;:::i;:::-;3841:52;3680:219;-1:-1:-1;;;3680:219:1:o;3904:282::-;3971:9;;;3992:11;;;3989:191;;;4036:77;4033:1;4026:88;4137:4;4134:1;4127:15;4165:4;4162:1;4155:15;3989:191;3904:282;;;;:::o;4191:184::-;4243:77;4240:1;4233:88;4340:4;4337:1;4330:15;4364:4;4361:1;4354:15

Swarm Source

ipfs://244eacf3b1cbd2dda7fc6859be7c4e38c31b932a358fa5436a5aec68728b07b0

Block Transaction Gas Used Reward
view all blocks sequenced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE
Net Worth in USD
$12,209.58

Net Worth in ETH
Scroll LogoScroll LogoScroll Logo 6.22691

Token Allocations
ETH 96.04%
HYPE 3.94%
PRESALE 0.01%
Others 0.01%
Chain Token Portfolio % Price Amount Value
LINEA89.77%$1,962.635.5843$10,959.99
ABSTRACT6.04%$1,961.480.3762$737.96
HYPEREVM3.94%$30.2115.9216$481.03
TAIKO0.18%$1,962.630.011$21.59
KATANA0.04%$1,961.930.00229687$4.51
UNI0.01%$1,960.860.0009$1.76
BSC0.01%$0.001415951.4263$1.35
ETH$0.4044951.5$0.6067
ETH$0.03293410$0.3293
ETH$0.00021484.6509$0.1018
MONAD$0.02354613.8911$0.327078
APE$0.1306850.1629$0.02129
BERA$0.6447140.00901217$0.00581
MEMECORE$1.290.00226395$0.002926
PLASMA$0.0964720.019$0.001833
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.

`; } let ensZeroWidthWarningHtml = ""; if ($("#hdnIsEnsContainZeroWidthChars").val() == "true") { ensZeroWidthWarningHtml = `
${zeroWidthWarningMessage} Check the actual text at ENS.
`; } const ensOnL2NoteHtml = ensOnL2Note != "" ? `
  • ${ensOnL2Note}
  • ` : ""; const contentHtml = `
    Additional Info
    Full Name:
    ${ensNameForkIconSrc}


    Note:
    • Name tag is displayed due to forward and reverse resolution. Find out more.
    • ${ensOnL2NoteHtml}
    ${ensUnicodeWarningHtml} ${ensZeroWidthWarningHtml}
    `; $('#ensName').popover({ html: true, content: contentHtml, trigger: 'manual', placement: 'right' }); $('#ensName').click(function (event) { $("#udName").popover('hide') $("#ensName").popover('toggle'); event.stopPropagation(); }); $('#ensName').on('shown.bs.popover', async () => { //disable tooltip when hovering over ens name in the main page $("[rel='tooltipEns']").each(function () { $(this).tooltip('hide'); $(this).tooltip('disable'); }); //call ajax here to get result if (!otherENSNamesHtml) { const resolvedAddressesModel = await getEnsResolvedAddress($("#hdnAddress").val(), primaryDomainNameLabel); otherENSNamesHtml = generateEnsPopoverGrid(resolvedAddressesModel.d); if (!otherENSNamesHtml) { otherENSNamesHtml = "There are no other names resolving to this address." } } $(".popOverEnsOwnedAddressTable").html(otherENSNamesHtml); $("#divENSDisplayName").html(ensDisplayName); // append more copy button for ENS let domainName = $("#hdnEnsText").val(); const copyEnsButtonHtml = ` `; $("#spanCopyENSAddress").html(copyEnsButtonHtml); $("[data-bs-toggle='tooltip']").tooltip(); }); $('#ensName').on('hidden.bs.popover', () => { $("[rel='tooltipEns']").each(function () { $(this).tooltip('enable'); }); }); $('#ensName').on('hide.bs.popover', () => { $("[data-bs-toggle='tooltip']").tooltip('hide'); }); $(document).click(function (e) { const popoverElement = document.getElementById('popover-ens-preview'); const popoverTrigger = document.getElementById('ensName'); if (!popoverTrigger.contains(e.target) && (!popoverElement || !popoverElement.contains(e.target))) { $("#ensName").popover('hide'); } }) } async function getEnsResolvedAddress(address, currentEnsText) { try { const requestModel = { "lookupAddress": address, "primaryDomainName": currentEnsText, "provider": ensNameProvider }; const response = await $.ajax({ url: "/name-lookup-search.aspx/GetOtherDomainNameForAddress", type: "POST", contentType: "application/json", dataType: "json", data: JSON.stringify({ requestModel: requestModel }) }) return response; } catch { return ""; } } function generateEnsPopoverGrid(model) { if (!model || model.DomainNames.length == 0) { return ""; } let listOtherENSNames = ""; model.DomainNames.forEach(x => listOtherENSNames += x.Name); let moreOtherENSNames = ""; if (model.Total > 5) { moreOtherENSNames = `More ` } const result = `
    Other names resolving to this address:
    ${listOtherENSNames} ${moreOtherENSNames}
    `; return result; } function removeSpecificDomain(url, domain) { return url.replace(new RegExp(domain + '$'), ''); } // ===== UD name tag const displayUDName = ''; const primaryUDName = ''; const showUDPublicNote = 'false'; let otherUDNamesHtml = ""; function initUDNamePopOver() { //required to allow bootstrap popover to support table $.fn.popover.Constructor.Default.allowList.table = []; $.fn.popover.Constructor.Default.allowList.tr = []; $.fn.popover.Constructor.Default.allowList.td = []; $.fn.popover.Constructor.Default.allowList.th = []; $.fn.popover.Constructor.Default.allowList.div = []; $.fn.popover.Constructor.Default.allowList.tbody = []; $.fn.popover.Constructor.Default.allowList.thead = []; //allowList my inline styling for bootstrap $.fn.popover.Constructor.Default.allowList['*'].push('style') let unicodeWarningHtml = ""; if ($("#hdnIsUDContainUnicodeChars").val() == "true") { unicodeWarningHtml = `
    ${unicodeWarningMessage} Check the actual text at Unstoppable Domains.
    `; } let zeroWidthWarningHtml = ""; if ($("#hdnIsUDContainZeroWidthChars").val() == "true") { zeroWidthWarningHtml = `
    ${unicodeWarningMessage} Check the actual text at Unstoppable Domains.
    `; } const contentHtml = `
    Additional Info
    Full Name:
    Unstoppable Domains Name


    Note:
    • Name tag is displayed due to forward and reverse resolution. Find out more
    ${unicodeWarningHtml} ${zeroWidthWarningHtml}
    `; $('#udName').popover({ html: true, content: contentHtml, trigger: 'manual' }); $('#udName').click(function (event) { $("#ensName").popover('hide'); $("#udName").popover('toggle'); event.stopPropagation(); }); $('#udName').on('shown.bs.popover', async () => { //disable tooltip when hovering over SID name in the main page $("[rel='tooltipUDName']").each(function () { $(this).tooltip('hide'); $(this).tooltip('disable'); }); //call ajax here to get result if (!otherUDNamesHtml) { const resolvedAddressesModel = await getUDNamesResolvedAddress($("#hdnAddress").val(), primaryUDName); //format the ajax to otherUDNamesHtml otherUDNamesHtml = generateUDPopoverGrid(resolvedAddressesModel.d); if (!otherUDNamesHtml) { otherUDNamesHtml = "There are no other names resolving to this address." } } $(".popoverUDNamesOwnedByAddress").html(otherUDNamesHtml); $("#divDisplayUDName").html(displayUDName); if (showUDPublicNote == true) { $("#noteUD").html('The Unstoppable Domains NFT is minted on the Ethereum blockchain. View and verify its details on Etherscan.'); $("#noteUD").show(); } $("[data-bs-toggle='tooltip']").tooltip(); }); $('#udName').on('hidden.bs.popover', () => { $("[rel='tooltipUDName']").each(function () { $(this).tooltip('enable'); }); }); $('#udName').on('hide.bs.popover', () => { $("[data-bs-toggle='tooltip']").tooltip('hide'); }); // Hide Unstoppable Domains Name popover when click outside the popover popup. $(document).click(function () { $("#udName").popover('hide') }); } async function getUDNamesResolvedAddress(address, primaryUDName) { try { const requestModel = { "lookupAddress": address, "primaryDomainName": primaryUDName, "provider": "UD" }; const response = await $.ajax({ url: "/name-lookup-search.aspx/GetOtherDomainNameForAddress", type: "POST", contentType: "application/json", dataType: "json", data: JSON.stringify({ requestModel: requestModel }) }) return response; } catch { return ""; } } function generateUDPopoverGrid(model) { if (!model || model.DomainNames.length == 0) { return ""; } let listOtherUDNames = ""; model.DomainNames.forEach(x => listOtherUDNames += x.Name); let moreOtherUDNames = ""; if (model.Total > 5) { moreOtherUDNames = `More `; } const result = `
    Other names resolving to this address:
    ${listOtherUDNames} ${moreOtherUDNames}
    `; return result; } // ===== end UD name tag const tooltipForTokenHolding = 'More than 101 tokens found, listing and displaying the total balance of the first 100 tokens only. Click on the Coins icon to see the full list and balance.'; var adjustPosition = 0; $(document).ready(function () { switchAmountToValue(document.getElementById("headerAmountValue"), 'Value (USD)', 'Amount', true); switchAmountToValue(document.getElementById("headerIntAmountValue"), 'Value (USD)', 'Amount', true); switchMethodColumn(document.getElementById("headerMethod"), 'Method', 'Action', true); onDocumentReady(); $("[rel='tooltip']").tooltip(); $("[data-bs-toggle-second='tooltip']").tooltip({ trigger: 'hover' }); $("[rel='tooltipEns']").each(function () { $(this).tooltip({ title: $(this).attr("tooltip-title") }); }); if (hash != '') { activaTab(hash); }; onAddressDocReady(); // Note: this is causing "Copied" tooltip not showing when copy button is clicked in V3, and seems like not applicable to v3, comment out first in case there is issue //$('[data-bs-toggle="tooltip"]').click(function () { // $('[data-bs-toggle="tooltip"]').tooltip("hide"); //}); document.getElementById("copyaddressbutton").classList.remove("disabled"); if ($("#txtSearchContract").length) { initialiseKeyupOnDocReady(); } if (!!$('#ensName')[0]) { initEnsNamePopOver(); } if (!!$("#udName")[0]) { initUDNamePopOver(); } handleToggle(); if (window.matchMedia("(max-width: 767px)").matches) { // Mobile adjustPosition = 90; } else { // Others adjustPosition = 50; } if (tooltipForTokenHolding) { const dropdownMenuBalance = document.getElementById("dropdownMenuBalance"); if (dropdownMenuBalance) { const dropdownWrapper = dropdownMenuBalance.closest(".dropdown"); if (dropdownWrapper) { dropdownWrapper.setAttribute("title", tooltipForTokenHolding); new bootstrap.Tooltip(dropdownWrapper); } } } }); function displayAudit() { $('html, body').animate({ scrollTop: $("#auditReportId").offset().top - adjustPosition }); } var cThemeMode = getCookie('displaymode'); function handleToggle() { var className = document.getElementsByClassName('editor'); var classNameCount = className.length; for (var j = 0; j t.innerWidth()) { if (mb + d > tb) { t.css('padding-bottom', ((mb + d) - tb)); } } else { t.css('overflow', 'visible'); } }).on('hidden.bs.dropdown', function () { $(this).css({ 'padding-bottom': '', 'overflow': '' }); }); var btn_ERC20_sort = { count: 0, reminder_count: 2, list: [], default_list: [], ERC20_sort_start: function (count) { if (document.getElementsByClassName('list-custom-divider-ERC20')[0]) { var self = this if (count != undefined) { self.count = count } var before_el = document.getElementsByClassName('list-custom-divider-ERC20')[0] var parent_el = before_el.parentNode var element_selector = parent_el.querySelectorAll(".list-custom-ERC20"); if (self.list.length == 0) { element_selector.forEach(function (e) { self.list.push(e); self.default_list.push(e); }); } $(".list-custom-ERC20").remove() var type = self.count % self.reminder_count self.sortList(type, parent_el, before_el); self.count++ } }, sortList: function (type, parent_el, before_el) { var self = this var sorted_list = [] var icon_el = $(before_el).find('button').find('i') switch (type) { case 1: icon_el.attr("class", "fad fa-sort-up") sorted_list = self.sortUsdAsc() break; default: icon_el.attr("class", "fad fa-sort-down") sorted_list = self.sortUsdDesc() } for (var i = sorted_list.length - 1; i >= 0; i--) { before_el.insertAdjacentElement('afterend', sorted_list[i]) } }, sortUsdAsc: function () { var self = this var sort_list = self.list sort_list.sort(function (a, b) { var target_a_value = self.formatCurrencyToNumber(a.querySelector('.list-usd-value').textContent.trim() || -1); var target_b_value = self.formatCurrencyToNumber(b.querySelector('.list-usd-value').textContent.trim() || -1); if (target_a_value == -1 || target_b_value == -1) { return 1; } if (target_a_value target_b_value) { return 1; } return 0 }); return sort_list }, sortUsdDesc: function () { var self = this var sort_list = self.list sort_list.sort(function (a, b) { var target_a_value = self.formatCurrencyToNumber(a.querySelector('.list-usd-value').textContent.trim() || -1); var target_b_value = self.formatCurrencyToNumber(b.querySelector('.list-usd-value').textContent.trim() || -1); if (target_a_value target_b_value) { return -1; } return 0 }); return sort_list }, formatCurrencyToNumber: function (strCurrency) { if (typeof strCurrency == "number") return strCurrency else return Number(strCurrency.replace(/[^0-9.-]+/g, "")); }, } function hrefTokenHolding() { var location = "/tokenholdings?a=0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae" var queryString = $("input.form-control.form-control-xs.search.mb-3")[0].value if (queryString) { location += "&q=" + queryString } window.location.href = location } $(document).ready(function () { $("#btn_ERC20_sort").on("click", function (event) { event.preventDefault(); setTimeout(function () { btn_ERC20_sort.ERC20_sort_start() }, 10) }) btn_ERC20_sort.ERC20_sort_start() var mainAddress = $("#hdnAddress").val(); // user search for method filters var searchFuncTimeOut; $("#ContentPlaceHolder1_inputMethodName").on("keyup", function ($event) { if (searchFuncTimeOut) { clearTimeout(searchFuncTimeOut) } var searchTerm = $(this).val(); searchFuncTimeOut = setTimeout(function () { searchFunctions(searchTerm); }, 350); }); var isSearchFunctions = false; $("#dropdownMethod").on("click", function (e) { if (isSearchFunctions === false) { searchFunctions(''); isSearchFunctions = true; } }); const litDefaultMethodFilterHtml = ''; function searchFunctions(searchTerm) { if (searchTerm === '' || searchTerm.length > 3) { const curPath = encodeURIComponent(window.location.search); $.ajax({ type: 'Get', url: `/functionSearchHandler.ashx?ca=${mainAddress}&func=${searchTerm ?? ''}&curPath=${curPath}`, success: function (response) { $("#searchFunctionResult").html(''); if (response && response.length > 0) { for (var i = 0; i ${response[i].name} ${response[i].methodId} ` ); } $("[data-bs-toggle='tooltip']").tooltip(); } else { $("#searchFunctionResult").append( `` ); } $("#inputMethodSpinner").hide(); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#searchFunctionResult").html(''); $("#inputMethodSpinner").hide(); } }); } else { $("#inputMethodSpinner").hide(); $("#searchFunctionResult").html(litDefaultMethodFilterHtml); } } // Resize window for analytic tab let isBusy = false; $(window).resize(function () { isBusy = true; if (isBusy) { let analyticFrame = document.getElementById('analytics_pageiframe'); if (analyticFrame && analyticFrame.contentWindow != undefined) { let navtab = analyticFrame.contentWindow.document.getElementsByClassName("nav_tabs1"); let hIframe = "0px"; if (navtab != null && navtab != undefined && navtab.length > 0) { let navH = Number(navtab[0].scrollHeight); hIframe = (Number(analyticFrame.contentWindow.document.getElementsByClassName("tab-content")[0].scrollHeight) + navH + 20) + 'px'; } else { hIframe = analyticFrame.contentWindow.document.body.scrollHeight + 'px'; } analyticFrame.style.height = hIframe } } }); // detect tooltip for token holding dropdown if ($(".addresses-tooltip-over").length > 0) { if (!isMobile()) { $(".addresses-tooltip-over").attr("data-bs-trigger", "hover"); let tooltip = bootstrap.Tooltip.getInstance(".addresses-tooltip-over"); if (tooltip !== null) { tooltip.dispose(); tooltip = new bootstrap.Tooltip($(".addresses-tooltip-over")); tooltip._config.trigger = 'hover'; tooltip.update(); } } } // Quick export transaction csv const quickExportCsvData = '[{"Txhash":"0x2564bc6115d2f31fb1a639734722f695eeef36da4f41060d2e029e38179211eb","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30216954","DateTime":"2026-02-16 00:41:22","Sender":"0x2f1B163d061Da596459f0d1392431c48E9DA2516","SenderLable":"supiwit.eth","Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00062925 ETH","Value":"$1.23","TxnFee":"0.00000004"},{"Txhash":"0x7245fdc5906c79d4aeadab3700b5f15ada86c4179333806d9271518276d9f84e","Status":"Success","Method":"Start Bridge Tokens Via Gas Zip","Blockno":"30216742","DateTime":"2026-02-16 00:34:22","Sender":"0xe64dEfFF20a6494087fCA45e2fF56880cAaeEccc","SenderLable":"leoric.eth","Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.0001 ETH","Value":"$0.20","TxnFee":"0.00000002"},{"Txhash":"0x0d626c662808944f72b0d1e69da9d4914b4de9065bad656b6788a1005dde0c3b","Status":"Success","Method":"Start Bridge Tokens Via Relay Depository","Blockno":"30213444","DateTime":"2026-02-15 22:59:11","Sender":"0x5961a4FA7ca200Bb0cf4C2cdf0874970a8bBee71","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.01595 ETH","Value":"$31.27","TxnFee":"0.00000003"},{"Txhash":"0x778c627db7d7bf7c5ce27a3c4b34c25332db65521b030d1bf5861a56788cf1a7","Status":"Success","Method":"Start Bridge Tokens Via Across V4","Blockno":"30212491","DateTime":"2026-02-15 22:26:58","Sender":"0x4B22781F46a5C90f72788681b323322f80A8Ca7F","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.384 ETH","Value":"$752.94","TxnFee":"0.00000004"},{"Txhash":"0x6751ed96f2d5e6d07ef6370ff48c74546a89b2838271cfc4c2498229a093f176","Status":"Success","Method":"Start Bridge Tokens Via Gas Zip","Blockno":"30212236","DateTime":"2026-02-15 22:20:08","Sender":"0xaD3ac31D46D7106640f0a628430264968467784E","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.0007185 ETH","Value":"$1.41","TxnFee":"0.00000003"},{"Txhash":"0x6739bbbab474fbed05153d7fcfa73c9e848e0531e0dc0ae79e765edca8f2f0a3","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30211429","DateTime":"2026-02-15 21:53:21","Sender":"0x7aF9663A6F1BF7C173255801088015FcBb875cf3","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.01603336 ETH","Value":"$31.44","TxnFee":"0.0000005"},{"Txhash":"0xcd79fd0a8c66385a85651c9f03bb8899746d0f72a1e7f2b6a21d822466ee5679","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30211404","DateTime":"2026-02-15 21:52:15","Sender":"0x74F99333Fd0f63fBb46AF3D1cce27175E62DAe0b","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00015634 ETH","Value":"$0.31","TxnFee":"0.00000005"},{"Txhash":"0x410921386fecea515a060204bb5b852ff9aa76e7e3517c224094831684a5ed64","Status":"Success","Method":"Start Bridge Tokens Via Relay Depository","Blockno":"30211369","DateTime":"2026-02-15 21:50:55","Sender":"0x19d9FFa2C57764Ee635B7D005922718f52087e53","SenderLable":"fhermontiel.eth","Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.0104 ETH","Value":"$20.39","TxnFee":"0.00000003"},{"Txhash":"0x4473daa2caf235121b4063a06fbfc6a4085fc290d84dbefb0ea649e38264c829","Status":"Success","Method":"Swap And Start Bridge Tokens Via Across V4","Blockno":"30210943","DateTime":"2026-02-15 21:35:05","Sender":"0x97bC9ae171e9d1e0E60689e1C5afab3783986279","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000006"},{"Txhash":"0x4e7af28cb04795bd9854d94729a630d08d8e671da201a93931d41f96867ce53b","Status":"Success","Method":"Start Bridge Tokens Via Gas Zip","Blockno":"30210241","DateTime":"2026-02-15 21:14:59","Sender":"0x17047C02890411fed2E4A2F1AC2266DF5E74c059","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.01692 ETH","Value":"$33.18","TxnFee":"0.00000002"},{"Txhash":"0xa5c54901bf4bade791335130e971026614f315622c4bd6b072a177bd009531ad","Status":"Success","Method":"Start Bridge Tokens Via Across V4","Blockno":"30209970","DateTime":"2026-02-15 21:06:51","Sender":"0xC06ebbefD94032B85424D51906e2A335EFAe264B","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000004"},{"Txhash":"0x59b0ce1956af29e5ea0180ca50608c80859ef3df87ab968574180d898094b745","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30209869","DateTime":"2026-02-15 21:03:51","Sender":"0x7c1b94A0d777Eb1a3Db8Ed461feCDAD72FB9AF78","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00005697 ETH","Value":"$0.11","TxnFee":"0.00000004"},{"Txhash":"0x7a5b472929d4f53230210eaeb7d80a99a31350293176e20f3e895737f8b4b414","Status":"Success","Method":"Start Bridge Tokens Via Across V4","Blockno":"30209786","DateTime":"2026-02-15 21:01:49","Sender":"0x8016546229D303f8E7A6508c92784b9a91Fc99dd","SenderLable":"kalric.eth","Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00549638 ETH","Value":"$10.78","TxnFee":"0.00000007"},{"Txhash":"0x22a2d2b781fa41531ffd661b4c5729af6c6da38b9cd29420d1d5fea3c2632634","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30208542","DateTime":"2026-02-15 20:22:51","Sender":"0xa7BB6d9782D78C27940855A209fA5D87A5528D7b","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00485216 ETH","Value":"$9.51","TxnFee":"0.0000005"},{"Txhash":"0x764f1a3db5bc8c277f54cd76998a9e710e37f63ccd4399d19bc45d44a8761870","Status":"Success","Method":"Start Bridge Tokens Via Gas Zip","Blockno":"30207364","DateTime":"2026-02-15 19:49:47","Sender":"0xC3b641a9b76F2f67431218E1f1340Fd9EEF2A5Bb","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00508614 ETH","Value":"$9.97","TxnFee":"0.00000004"},{"Txhash":"0x503951e33c45961107a78f02178d9b504fec5e1fb93963c9d57351b76a7f6b65","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30207315","DateTime":"2026-02-15 19:48:19","Sender":"0xd7ac9a59738f0100e7d8140dCe0a7F9eA4f2865f","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00658448 ETH","Value":"$12.91","TxnFee":"0.00000006"},{"Txhash":"0x68dadc71d9b2992bf4b9cac5a3ab4755f35715e8a195f28edae98d834af29d6c","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30206850","DateTime":"2026-02-15 19:37:23","Sender":"0x6e60f5E55EC674B13EF2f8131010F504988584E3","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00628372 ETH","Value":"$12.32","TxnFee":"0.00000008"},{"Txhash":"0xc193aab540695af271c2f455d55ea0bca159f941c0df5a2992c37a1103bbd6f3","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30206481","DateTime":"2026-02-15 19:26:33","Sender":"0x64caab3797a94B925B8b3a3cB1dcB2ED452253C3","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00680172 ETH","Value":"$13.34","TxnFee":"0.00000007"},{"Txhash":"0xa0ac9eec2585540bdc75b052aac9d586d94a0d2dfb8cc848be65568102793990","Status":"Success","Method":"Start Bridge Tokens Via Stargate","Blockno":"30206118","DateTime":"2026-02-15 19:19:10","Sender":"0x6113d60AB1F7325924dA421EB89Dc7dC682Fcd6E","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.01293129 ETH","Value":"$25.36","TxnFee":"0.00000007"},{"Txhash":"0xb43311bab2483f633df965a612ac541960d661b94cfb7cdc5ccf063462e3d692","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30206089","DateTime":"2026-02-15 19:18:09","Sender":"0x9c476515115845f2adf59315979dB6d1d4c852B1","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00620344 ETH","Value":"$12.16","TxnFee":"0.00000052"},{"Txhash":"0x85b4cb9ae838a3840241e3106da29ffacddc896a72f23a9bab7ac0121608900f","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30203867","DateTime":"2026-02-15 18:33:58","Sender":"0xd1e1176F49b04B74AF3379D085dAbe732229D4f5","SenderLable":"johnwicks.eth","Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.01339245 ETH","Value":"$26.26","TxnFee":"0.00000005"},{"Txhash":"0xc07482be53fb7886bd1f97ea099b9db2983c65d08824ead7c3005aad4c72e39c","Status":"Success","Method":"Swap And Start Bridge Tokens Via Across V4","Blockno":"30203005","DateTime":"2026-02-15 18:16:47","Sender":"0x9f98B34269aF1cc7137E94b5dF0Dc9c83864e634","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.0025286 ETH","Value":"$4.96","TxnFee":"0.00000006"},{"Txhash":"0xfca3c75fe42141851da4ae95b4fd73719f81b1b1b79a52571e777dd8b5885bf7","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30202970","DateTime":"2026-02-15 18:16:00","Sender":"0xC6DaC26FEa9C60d832fC30F1e71B5529e7415442","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00633759 ETH","Value":"$12.43","TxnFee":"0.00000005"},{"Txhash":"0x7a2fdb01752c974b05203a1c2488133af4e3b36f91b1fcd0d0b540f2d783037f","Status":"Success","Method":"Start Bridge Tokens Via Across V4","Blockno":"30202694","DateTime":"2026-02-15 18:09:59","Sender":"0xB2ddBa62e50476A763A9F9a306c5121D5CF3cD11","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.01753 ETH","Value":"$34.37","TxnFee":"0.00000004"},{"Txhash":"0xe8eb3d48de136b2971a2838004c8a61ca3f6261405b32005195949521846c26c","Status":"Success","Method":"Swap And Start Bridge Tokens Via Gas Zip","Blockno":"30202624","DateTime":"2026-02-15 18:08:48","Sender":"0xeDF6AFBF1D161F8683bed00236766e49b7ea576b","SenderLable":null,"Receiver":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","ReceiverLable":"LI.FI: LiFi Diamond","Amount":"0.00181932 ETH","Value":"$3.57","TxnFee":"0.00000005"}]'; const quickExportCsvTitle = 'Transaction Hash,Status,Method,Blockno,"DateTime (UTC)",From,From_Nametag,To,To_Nametag,Amount,Value (USD),Txn Fee'; let isExportFinish = true; if ($("#btnExportQuickTableToCSV").length > 0 && quickExportCsvData) { $("#btnExportQuickTableToCSV").click(function () { if (isExportFinish == true) { isExportFinish = false; $("#btnExportQuickTableToCSV").append(''); let lstTxsObj = JSON.parse(quickExportCsvData); if (lstTxsObj.length > 0) { let csvRows = []; csvRows.push(quickExportCsvTitle.replace(/"/g, "")); for (let i = 0; i 0 && quickExportInternalTxsData) { $("#ContentPlaceHolder1_btnQuickExportInternalTxs").click(function () { if (isExportFinish == true) { isExportFinish = false; $("#ContentPlaceHolder1_btnQuickExportInternalTxs").append(''); let lstTxsObj = JSON.parse(quickExportInternalTxsData); if (lstTxsObj.length > 0) { let csvRows = []; csvRows.push(quickExportInternalTxsTitle.replace(/"/g, "")); for (let i = 0; i { if (x.startsWith("F")) { file = x.replace("F", ""); } else if (x.startsWith("L")) { line = x.replace("L", ""); } }) var editorId = "editor" + file var editorElem = $("#" + editorId); if (!editorElem.length) { return; } if (!line) { return; } var editor = ace.edit(editorId); editor.resize(true); editor.scrollToLine(line, true, true, function () { }); editor.gotoLine(line); var Range = ace.require('ace/range').Range $(document).scrollTop($("#" + editorId).offset().top - 95); //document.getElementById(editorId).scrollIntoView(); editor.session.addMarker(new Range(line - 1, 0, line - 1, 1), "myMarker", "fullLine"); //window.onbeforeunload = function () { $(document).scrollTop($("#" + editorId).offset().top); }; } setTimeout(function () { editorGoToLine(); }, 500); }); $("body,html").click(function (evt) { let elm = $(evt.target).attr("id"); let isClickedMode = elm === "darkModaBtn" || elm === "darkModaBtnIcon"; if (isClickedMode) { let isClickedSunMode = false; let clrBorder = "#112641"; if (elm === "darkModaBtn") isClickedSunMode = $(evt.target).find("#darkModaBtnIcon").hasClass("fa-moon"); if (elm === "darkModaBtnIcon") isClickedSunMode = $(evt.target).hasClass("fa-moon"); if (isClickedSunMode) { clrBorder = "#fff"; } let iframes = document.getElementById('analytics_pageiframe'); let heatcell = iframes.contentWindow.document.getElementsByClassName("ch-day").length; for (let i = 0; i