ETH Price: $3,018.23 (-3.72%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Register Upgrade216764462024-10-28 19:03:59385 days ago1730142239IN
0xD7C51e49...935144B0A
0 ETH0.000000590.01034742
Accept Ownership216764342024-10-28 19:03:35385 days ago1730142215IN
0xD7C51e49...935144B0A
0 ETH0.000000390.0103054
Deploy Base Cont...196559912024-09-12 0:35:29431 days ago1726101329IN
0xD7C51e49...935144B0A
0 ETH0.000014440.00501156
Deploy Base Cont...160648282024-06-20 21:30:03515 days ago1718919003IN
0xD7C51e49...935144B0A
0 ETH0.000006110.00304139
Deploy Base Cont...160646092024-06-20 21:22:45515 days ago1718918565IN
0xD7C51e49...935144B0A
0 ETH0.000005290.00255755
Deploy Base Cont...139947622024-05-03 23:27:51563 days ago1714778871IN
0xD7C51e49...935144B0A
0 ETH0.00011140.08728191
Deploy Base Cont...139800802024-05-03 15:18:27563 days ago1714749507IN
0xD7C51e49...935144B0A
0 ETH0.000518380.26205745
Deploy Base Cont...139544422024-05-03 1:03:51563 days ago1714698231IN
0xD7C51e49...935144B0A
0 ETH0.000086690.04475211
Deploy Base Cont...137842092024-04-29 2:29:25567 days ago1714357765IN
0xD7C51e49...935144B0A
0 ETH0.000085050.0460935
Deploy Base Cont...137839092024-04-29 2:19:25567 days ago1714357165IN
0xD7C51e49...935144B0A
0 ETH0.000080090.04684377
Deploy Base Cont...137837092024-04-29 2:12:45567 days ago1714356765IN
0xD7C51e49...935144B0A
0 ETH0.000081610.04593392
Deploy Base Cont...137835572024-04-29 2:07:41567 days ago1714356461IN
0xD7C51e49...935144B0A
0 ETH0.000079040.0450451
Deploy Base Cont...137832442024-04-29 1:57:15567 days ago1714355835IN
0xD7C51e49...935144B0A
0 ETH0.000064660.04799824
Deploy Base Cont...136368772024-04-25 16:38:21571 days ago1714063101IN
0xD7C51e49...935144B0A
0 ETH0.000759570.32429789
Deploy Base Cont...133830702024-04-19 19:38:07577 days ago1713555487IN
0xD7C51e49...935144B0A
0 ETH0.000137580.06859053
Deploy Base Cont...133013442024-04-17 22:13:55579 days ago1713392035IN
0xD7C51e49...935144B0A
0 ETH0.000044510.02744175
Deploy Base Cont...133010322024-04-17 22:03:31579 days ago1713391411IN
0xD7C51e49...935144B0A
0 ETH0.000059450.03727734
Deploy Base Cont...132042742024-04-15 16:18:15581 days ago1713197895IN
0xD7C51e49...935144B0A
0 ETH0.00053780.35313666
Deploy Base Cont...132040802024-04-15 16:11:47581 days ago1713197507IN
0xD7C51e49...935144B0A
0 ETH0.000426370.30251939
Deploy Base Cont...127502562024-04-05 4:04:19591 days ago1712289859IN
0xD7C51e49...935144B0A
0 ETH0.000010530.00724198
Deploy Base Cont...127502062024-04-05 4:02:39591 days ago1712289759IN
0xD7C51e49...935144B0A
0 ETH0.000010890.00750073
Deploy Base Cont...127501342024-04-05 4:00:15591 days ago1712289615IN
0xD7C51e49...935144B0A
0 ETH0.000009860.00678085
Deploy Base Cont...127500732024-04-05 3:58:13591 days ago1712289493IN
0xD7C51e49...935144B0A
0 ETH0.000010540.00726044
Deploy Base Cont...127500002024-04-05 3:55:47591 days ago1712289347IN
0xD7C51e49...935144B0A
0 ETH0.00001110.0076382
Deploy Base Cont...127498802024-04-05 3:51:47591 days ago1712289107IN
0xD7C51e49...935144B0A
0 ETH0.000011410.00785324
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
196559912024-09-12 0:35:29431 days ago1726101329
0xD7C51e49...935144B0A
 Contract Creation0 ETH
196559912024-09-12 0:35:29431 days ago1726101329
0xD7C51e49...935144B0A
 Contract Creation0 ETH
196559912024-09-12 0:35:29431 days ago1726101329
0xD7C51e49...935144B0A
 Contract Creation0 ETH
160648282024-06-20 21:30:03515 days ago1718919003
0xD7C51e49...935144B0A
 Contract Creation0 ETH
160648282024-06-20 21:30:03515 days ago1718919003
0xD7C51e49...935144B0A
 Contract Creation0 ETH
160648282024-06-20 21:30:03515 days ago1718919003
0xD7C51e49...935144B0A
 Contract Creation0 ETH
160646092024-06-20 21:22:45515 days ago1718918565
0xD7C51e49...935144B0A
 Contract Creation0 ETH
160646092024-06-20 21:22:45515 days ago1718918565
0xD7C51e49...935144B0A
 Contract Creation0 ETH
160646092024-06-20 21:22:45515 days ago1718918565
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139947622024-05-03 23:27:51563 days ago1714778871
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139947622024-05-03 23:27:51563 days ago1714778871
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139947622024-05-03 23:27:51563 days ago1714778871
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139800802024-05-03 15:18:27563 days ago1714749507
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139800802024-05-03 15:18:27563 days ago1714749507
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139800802024-05-03 15:18:27563 days ago1714749507
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139544422024-05-03 1:03:51563 days ago1714698231
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139544422024-05-03 1:03:51563 days ago1714698231
0xD7C51e49...935144B0A
 Contract Creation0 ETH
139544422024-05-03 1:03:51563 days ago1714698231
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137842092024-04-29 2:29:25567 days ago1714357765
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137842092024-04-29 2:29:25567 days ago1714357765
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137842092024-04-29 2:29:25567 days ago1714357765
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137839092024-04-29 2:19:25567 days ago1714357165
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137839092024-04-29 2:19:25567 days ago1714357165
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137839092024-04-29 2:19:25567 days ago1714357165
0xD7C51e49...935144B0A
 Contract Creation0 ETH
137837092024-04-29 2:12:45567 days ago1714356765
0xD7C51e49...935144B0A
 Contract Creation0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC1967Proxy

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 750 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.22;

import { Proxy } from "@openzeppelin/contracts/proxy/Proxy.sol";

import { IERC1967Upgrade } from "../interfaces/IERC1967Upgrade.sol";
import { ERC1967Upgrade } from "./ERC1967Upgrade.sol";

/// @title ERC1967Proxy
/// @author Rohan Kulkarni
/// @notice Modified from OpenZeppelin Contracts v4.7.3 (proxy/ERC1967/ERC1967Proxy.sol)
/// - Inherits a modern, minimal ERC1967Upgrade
contract ERC1967Proxy is IERC1967Upgrade, Proxy, ERC1967Upgrade {
    ///                                                          ///
    ///                         CONSTRUCTOR                      ///
    ///                                                          ///

    /// @dev Initializes the proxy with an implementation contract and encoded function call
    /// @param _logic The implementation address
    /// @param _data The encoded function call
    constructor(address _logic, bytes memory _data) payable {
        _upgradeToAndCall(_logic, _data, false);
    }

    ///                                                          ///
    ///                          FUNCTIONS                       ///
    ///                                                          ///

    /// @dev The address of the current implementation
    function _implementation() internal view virtual override returns (address) {
        return ERC1967Upgrade._getImplementation();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)

pragma solidity ^0.8.20;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback
     * function and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }
}

File 3 of 7 : IERC1967Upgrade.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.22;

/// @title IERC1967Upgrade
/// @author Rohan Kulkarni
/// @notice The external ERC1967Upgrade events and errors
interface IERC1967Upgrade {
    ///                                                          ///
    ///                            EVENTS                        ///
    ///                                                          ///

    /// @notice Emitted when the implementation is upgraded
    /// @param impl The address of the implementation
    event Upgraded(address impl);

    ///                                                          ///
    ///                            ERRORS                        ///
    ///                                                          ///

    /// @dev Reverts if an implementation is an invalid upgrade
    /// @param impl The address of the invalid implementation
    error INVALID_UPGRADE(address impl);

    /// @dev Reverts if an implementation upgrade is not stored at the storage slot of the original
    error UNSUPPORTED_UUID();

    /// @dev Reverts if an implementation does not support ERC1822 proxiableUUID()
    error ONLY_UUPS();
}

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.22;

import { IERC1822Proxiable } from "@openzeppelin/contracts/interfaces/draft-IERC1822.sol";
import { StorageSlot } from "@openzeppelin/contracts/utils/StorageSlot.sol";

import { IERC1967Upgrade } from "../interfaces/IERC1967Upgrade.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";

/// @title ERC1967Upgrade
/// @author Rohan Kulkarni
/// @notice Modified from OpenZeppelin Contracts v4.7.3 (proxy/ERC1967/ERC1967Upgrade.sol)
/// - Uses custom errors declared in IERC1967Upgrade
/// - Removes ERC1967 admin and beacon support
abstract contract ERC1967Upgrade is IERC1967Upgrade {
    ///                                                          ///
    ///                          CONSTANTS                       ///
    ///                                                          ///

    /// @dev bytes32(uint256(keccak256('eip1967.proxy.rollback')) - 1)
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /// @dev bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1)
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    ///                                                          ///
    ///                          FUNCTIONS                       ///
    ///                                                          ///

    /// @dev Upgrades to an implementation with security checks for UUPS proxies and an additional function call
    /// @param _newImpl The new implementation address
    /// @param _data The encoded function call
    function _upgradeToAndCallUUPS(address _newImpl, bytes memory _data, bool _forceCall) internal {
        if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(_newImpl);
        } else {
            try IERC1822Proxiable(_newImpl).proxiableUUID() returns (bytes32 slot) {
                if (slot != _IMPLEMENTATION_SLOT) revert UNSUPPORTED_UUID();
            } catch {
                revert ONLY_UUPS();
            }

            _upgradeToAndCall(_newImpl, _data, _forceCall);
        }
    }

    /// @dev Upgrades to an implementation with an additional function call
    /// @param _newImpl The new implementation address
    /// @param _data The encoded function call
    function _upgradeToAndCall(address _newImpl, bytes memory _data, bool _forceCall) internal {
        _upgradeTo(_newImpl);

        if (_data.length > 0 || _forceCall) {
            Address.functionDelegateCall(_newImpl, _data);
        }
    }

    /// @dev Performs an implementation upgrade
    /// @param _newImpl The new implementation address
    function _upgradeTo(address _newImpl) internal {
        _setImplementation(_newImpl);

        emit Upgraded(_newImpl);
    }

    /// @dev If an address is a contract
    function isContract(address _account) internal view returns (bool rv) {
        assembly {
            rv := gt(extcodesize(_account), 0)
        }
    }

    /// @dev Stores the address of an implementation
    /// @param _impl The implementation address
    function _setImplementation(address _impl) private {
        if (!isContract(_impl)) revert INVALID_UPGRADE(_impl);

        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = _impl;
    }

    /// @dev The address of the current implementation
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.20;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

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

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

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

Settings
{
  "remappings": [
    "ds-test/=node_modules/ds-test/src/",
    "forge-std/=node_modules/forge-std/src/",
    "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
    "@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
    "solmate/=node_modules/solmate/",
    "@cobuild/protocol-rewards/src/=node_modules/@cobuild/protocol-rewards/src/",
    "@cobuild/splits/src/=node_modules/@cobuild/splits/src/",
    "@cobuild/utility-contracts/src/=node_modules/@cobuild/utility-contracts/src/",
    "@gnosis.pm/=node_modules/@gnosis.pm/",
    "contests/=script/contests/",
    "extensions/=script/extensions/",
    "solmate/=node_modules/solmate/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 750
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"impl","type":"address"}],"name":"INVALID_UPGRADE","type":"error"},{"inputs":[],"name":"ONLY_UUPS","type":"error"},{"inputs":[],"name":"UNSUPPORTED_UUID","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"impl","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"}]

60806040526102d9803803806100148161018f565b92833981019060408183031261018a5780516001600160a01b03811680820361018a5760208381015190936001600160401b03821161018a570184601f8201121561018a5780519061006d610068836101ca565b61018f565b9582875285838301011161018a57849060005b83811061017657505060009186010152813b1561015e577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790556040519081527fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b908390a182518015801590610156575b610112575b604051609090816102498239f35b60008091846101439601845af4903d1561014d573d610133610068826101ca565b908152600081943d92013e6101e5565b5038808080610104565b606092506101e5565b5060006100ff565b6024906040519063310365cd60e21b82526004820152fd5b818101830151888201840152869201610080565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176101b457604052565b634e487b7160e01b600052604160045260246000fd5b6001600160401b0381116101b457601f01601f191660200190565b9061020c57508051156101fa57805190602001fd5b604051630a12f52160e11b8152600490fd5b8151158061023f575b61021d575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b1561021556fe608060405273ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54166000808092368280378136915af43d82803e156056573d90f35b3d90fdfea26469706673582212204ecd947e3fda8d00cc179ae751d6894a6fdcb54d589da17a3de2299a6bf933e664736f6c634300081600330000000000000000000000004da48e19e4db30c74d43d87cd5791c6010b513f500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de8000000000000000000000000459b40643251f10d93334d91cf256f97d31f69de00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405273ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54166000808092368280378136915af43d82803e156056573d90f35b3d90fdfea26469706673582212204ecd947e3fda8d00cc179ae751d6894a6fdcb54d589da17a3de2299a6bf933e664736f6c63430008160033

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

0000000000000000000000004da48e19e4db30c74d43d87cd5791c6010b513f500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de8000000000000000000000000459b40643251f10d93334d91cf256f97d31f69de00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _logic (address): 0x4dA48E19e4dB30C74d43d87cd5791C6010B513F5
Arg [1] : _data (bytes): 0xc4d66de8000000000000000000000000459b40643251f10d93334d91cf256f97d31f69de

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004da48e19e4db30c74d43d87cd5791c6010b513f5
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [3] : c4d66de8000000000000000000000000459b40643251f10d93334d91cf256f97
Arg [4] : d31f69de00000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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