Source Code (Proxy)
Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 12,254 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| 0x810c705b | 28322876 | 8 mins ago | IN | 0.00080813 ETH | 0.00001634 | ||||
| 0x810c705b | 28322819 | 10 mins ago | IN | 0 ETH | 0.00001771 | ||||
| 0x810c705b | 28321093 | 1 hr ago | IN | 0.003 ETH | 0.00001864 | ||||
| 0x810c705b | 28318875 | 2 hrs ago | IN | 0 ETH | 0.00003252 | ||||
| 0x810c705b | 28308303 | 9 hrs ago | IN | 0.00014559 ETH | 0.00000395 | ||||
| 0x810c705b | 28304011 | 12 hrs ago | IN | 0.00016799 ETH | 0.00001228 | ||||
| 0x810c705b | 28303201 | 13 hrs ago | IN | 0.00994111 ETH | 0.00000612 | ||||
| 0x810c705b | 28301763 | 14 hrs ago | IN | 0.00148067 ETH | 0.0000055 | ||||
| 0x810c705b | 28299336 | 15 hrs ago | IN | 0.373 ETH | 0.00000609 | ||||
| 0x810c705b | 28299109 | 15 hrs ago | IN | 0 ETH | 0.00000906 | ||||
| 0x810c705b | 28298237 | 16 hrs ago | IN | 0 ETH | 0.00002986 | ||||
| 0x810c705b | 28297399 | 16 hrs ago | IN | 0 ETH | 0.00003231 | ||||
| 0x810c705b | 28296515 | 17 hrs ago | IN | 0.04695909 ETH | 0.00001399 | ||||
| 0x810c705b | 28295708 | 17 hrs ago | IN | 0 ETH | 0.00001578 | ||||
| 0x810c705b | 28292933 | 19 hrs ago | IN | 0 ETH | 0.00001333 | ||||
| 0x810c705b | 28292050 | 20 hrs ago | IN | 0.01195571 ETH | 0.0000179 | ||||
| 0x810c705b | 28291788 | 20 hrs ago | IN | 0.00063663 ETH | 0.00001346 | ||||
| 0x810c705b | 28289936 | 21 hrs ago | IN | 0 ETH | 0.00001486 | ||||
| 0x810c705b | 28289113 | 21 hrs ago | IN | 0.00098449 ETH | 0.00000537 | ||||
| 0x810c705b | 28287750 | 22 hrs ago | IN | 0.003 ETH | 0.00001441 | ||||
| 0x810c705b | 28286405 | 23 hrs ago | IN | 0 ETH | 0.00001444 | ||||
| 0x810c705b | 28283369 | 25 hrs ago | IN | 0 ETH | 0.00001601 | ||||
| 0x810c705b | 28281315 | 26 hrs ago | IN | 0 ETH | 0.0000231 | ||||
| 0x810c705b | 28281268 | 26 hrs ago | IN | 0.0045 ETH | 0.00001349 | ||||
| 0x810c705b | 28278988 | 28 hrs ago | IN | 0.0033 ETH | 0.00003156 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 28322876 | 8 mins ago | 0 ETH | ||||
| 28322876 | 8 mins ago | 0 ETH | ||||
| 28322876 | 8 mins ago | 0.00080813 ETH | ||||
| 28322876 | 8 mins ago | 0 ETH | ||||
| 28322876 | 8 mins ago | 0 ETH | ||||
| 28322876 | 8 mins ago | 0.00080813 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28322819 | 10 mins ago | 0 ETH | ||||
| 28321093 | 1 hr ago | 0 ETH | ||||
| 28321093 | 1 hr ago | 0 ETH | ||||
| 28321093 | 1 hr ago | 0.002985 ETH | ||||
| 28321093 | 1 hr ago | 0 ETH | ||||
| 28321093 | 1 hr ago | 0.000015 ETH | ||||
| 28321093 | 1 hr ago | 0 ETH | ||||
| 28321093 | 1 hr ago | 0.003 ETH | ||||
| 28318875 | 2 hrs ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Diamond
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import {LibDiamond} from "./Libraries/LibDiamond.sol";
import {IDiamondCut} from "./Interfaces/IDiamondCut.sol";
import {LibUtil} from "./Libraries/LibUtil.sol";
contract Diamond {
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 {}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import {IDiamondCut} from "../Interfaces/IDiamondCut.sol";
import {LibUtil} from "../Libraries/LibUtil.sol";
import {OnlyContractOwner} from "../Errors/GenericErrors.sol";
/// Implementation of EIP-2535 Diamond Standard
/// https://eips.ethereum.org/EIPS/eip-2535
library LibDiamond {
bytes32 internal constant DIAMOND_STORAGE_POSITION = keccak256("com.binance.w3w.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();
}
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
interface IDiamondCut {
// Add=0, Replace=1, Remove=2
enum FacetCutAction {
Add,
Replace,
Remove
}
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);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import "./LibBytes.sol";
library LibUtil {
using LibBytes for bytes;
function getRevertMsg(bytes memory _res) internal pure returns (string memory) {
// If the _res length is less than 68, then the transaction failed silently (without a revert message)
if (_res.length < 68) return "Transaction reverted silently";
bytes memory revertData = _res.slice(4, _res.length - 4); // Remove the selector which is the first 4 bytes
return abi.decode(revertData, (string)); // All that remains is the revert string
}
/// @notice Determines whether the given address is the zero address
/// @param addr The address to verify
/// @return Boolean indicating if the address is the zero address
function isZeroAddress(address addr) internal pure returns (bool) {
return addr == address(0);
}
}// SPDX-License-Identifier: MIT pragma solidity 0.8.23; error OnlyContractOwner();
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
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) {
unchecked {
if (_length + 31 < _length) revert SliceOverflow();
if (_bytes.length < _start + _length) revert SliceOutOfBounds();
if (_start + _length < _start) revert SliceOverflow();
}
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);
}
}{
"remappings": [
"forge-std/=lib/forge-std/src/",
"@1inch/solidity-utils/contracts/=lib/solidity-utils/contracts/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@1inch/limit-order-protocol-contract/contracts/=lib/limit-order-protocol/contracts/",
"ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"limit-order-protocol/=lib/limit-order-protocol/contracts/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"solidity-utils/=lib/solidity-utils/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
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"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum IDiamondCut.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"indexed":false,"internalType":"struct IDiamondCut.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"indexed":false,"internalType":"address","name":"_init","type":"address"},{"indexed":false,"internalType":"bytes","name":"_calldata","type":"bytes"}],"name":"DiamondCut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806001600160401b03601f610bd738819003918201601f1916840191838311858410176105d057808592604094855283398101031261060e5761004e602061004784610651565b9301610651565b7f5e12654f390e4153c4f63b3dfcc122cf7876a5cdfb496dccf7284c10517a35c980546001600160a01b039485166001600160a01b03198216811790925591939091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36100be610632565b916001835260005b602081106105e657506100d7610632565b60018152602036818301376307e4c70760e21b6100f382610665565b526100fc610613565b6001600160a01b03909216825260006020830152604082015261011e83610665565b5261012882610665565b506040519060208201908111828210176105d0576040526000808252825b805182101561047057602061015b8383610688565b510151600381101561045a578061029857506001600160a01b0361017f8383610688565b515116604061018e8484610688565b510151805115610286578115610274576001600160a01b0382166000908152600080516020610bb783398151915260205260409020546001600160601b0393908416908115610266575b6000915b8351831015610252576001600160e01b03196101f88486610688565b51166000818152600080516020610b7783398151915260205260409020549091906001600160a01b031661024057600181610236888a9484966109f3565b01169201916101dc565b60405163a023275d60e01b8152600490fd5b50959492505050600191505b019091610146565b61026f84610977565b6101d8565b604051636347641d60e11b8152600490fd5b6040516307bc559560e41b8152600490fd5b6001810361039d57506001600160a01b036102b38383610688565b5151169260406102c38484610688565b510151805115610286578415610274576001600160a01b0385166000908152600080516020610bb783398151915260205260409020546001600160601b039390841690811561038f575b6000915b8351831015610380576001600160e01b031961032d8486610688565b51166000818152600080516020610b7783398151915260205260409020546001600160a01b03169089821461024057826103768b6001958461037188968e986106e6565b6109f3565b0116920191610311565b5095505050916001915061025e565b61039887610977565b61030d565b600203610448576001600160a01b036103b68383610688565b5151169060406103c68483610688565b51015191825115610286576104365760005b825181101561042a576001906104246001600160e01b03196103fa8387610688565b511680600052600080516020610b77833981519152602052838060a01b03604060002054166106e6565b016103d8565b5092916001915061025e565b604051633ce4ef9160e11b8152600490fd5b60405163e548e6b560e01b8152600490fd5b634e487b7160e01b600052602160045260246000fd5b905060405190606082016060835281518091526080830190602060808260051b8601019301916000905b8282106105395750505050600060208301528181036040830152825180825260005b81811061052457508282826000602080957f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6739897010152601f801991011601030190a1516105125760405160b59081610ac28239f35b6040516304c08b4360e51b8152600490fd5b806020809287010151828286010152016104bc565b858503607f19018152835180516001600160a01b031686526020810151949593949293919290600382101561045a5760409160208401520151906060604082015260206080835192836060820152019201906000905b8082106105ad5750505060208060019296019201920190929161049a565b82516001600160e01b03191684526020938401939092019160019091019061058f565b634e487b7160e01b600052604160045260246000fd5b6020906105f1610613565b6000815260008382015260606040820152828287010152016100c6565b600080fd5b60405190606082016001600160401b038111838210176105d057604052565b60408051919082016001600160401b038111838210176105d057604052565b51906001600160a01b038216820361060e57565b8051156106725760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156106725760209160051b010190565b919091805483101561067257600052601c60206000208360031c019260021b1690565b600080516020610b9783398151915280548210156106725760005260206000200190600090565b9091906001600160a01b039081168015610965573081146109535763ffffffff60e01b809416600092818452600080516020610b77833981519152926020918483526040948587205460a01c90838852600080516020610bb78339815191529586865287892054926000199b8c850194851161093f57908991888c898c898087036108b4575b5050905250505087875250878920805480156108a0578c019061078f828261069c565b63ffffffff82549160031b1b1916905555885284528686812055156107b9575b5050505050509050565b600080516020610b97833981519152805489810190811161088c57838852858552826001888a2001549180830361083c575b50505080549889156108285760019798990191610807836106bf565b909182549160031b1b191690555585525282200155803880808080806107af565b634e487b7160e01b88526031600452602488fd5b610845906106bf565b90549060031b1c166108788161085a846106bf565b90919060018060a01b038084549260031b9316831b921b1916179055565b8852858552600187892001553882816107eb565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b8b52603160045260248bfd5b61093297846108e9936108d38a94876109069952828a5284842061069c565b90549060031b1c60e01b9788968352522061069c565b90919063ffffffff83549160031b9260e01c831b921b1916179055565b168b52838852898b2080546001600160a01b031660a09290921b6001600160a01b031916919091179055565b873880888c898c8961076c565b634e487b7160e01b8b52601160045260248bfd5b60405163c3c5ec3760e01b8152600490fd5b604051631535ac5f60e31b8152600490fd5b803b156109e257600080516020610b9783398151915280546001600160a01b0383166000908152600080516020610bb7833981519152602052604090206001018190559190680100000000000000008310156105d0578261085a9160016109e0950190556106bf565b565b6040516271a80360e91b8152600490fd5b6001600160e01b031981166000818152600080516020610b7783398151915260208190526040822080546001600160a01b031660a09690961b6001600160a01b031916959095179094559194939092906001600160a01b0316808352600080516020610bb78339815191526020526040832080549194919068010000000000000000821015610aad57966108e98260409798996001610a949501815561069c565b82526020522080546001600160a01b0319169091179055565b634e487b7160e01b85526041600452602485fdfe60806040523615607d57600080356001600160e01b03191681527f5e12654f390e4153c4f63b3dfcc122cf7876a5cdfb496dccf7284c10517a35c560205260408120546001600160a01b03168015606c57818091368280378136915af43d82803e156068573d90f35b3d90fd5b631535ac5f60e31b60805260046080fd5b00fea2646970667358221220446c69a65183f3495687f57cda7ddf0b0224afd42d86126996be68c63a570d5b64736f6c634300081700335e12654f390e4153c4f63b3dfcc122cf7876a5cdfb496dccf7284c10517a35c55e12654f390e4153c4f63b3dfcc122cf7876a5cdfb496dccf7284c10517a35c75e12654f390e4153c4f63b3dfcc122cf7876a5cdfb496dccf7284c10517a35c6000000000000000000000000ee7b429ea01f76102f053213463d4e95d5d24ae8000000000000000000000000cb44cc5192f0c7d67c86f9c132d7eef89be20b18
Deployed Bytecode
0x60806040523615607d57600080356001600160e01b03191681527f5e12654f390e4153c4f63b3dfcc122cf7876a5cdfb496dccf7284c10517a35c560205260408120546001600160a01b03168015606c57818091368280378136915af43d82803e156068573d90f35b3d90fd5b631535ac5f60e31b60805260046080fd5b00fea2646970667358221220446c69a65183f3495687f57cda7ddf0b0224afd42d86126996be68c63a570d5b64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ee7b429ea01f76102f053213463d4e95d5d24ae8000000000000000000000000cb44cc5192f0c7d67c86f9c132d7eef89be20b18
-----Decoded View---------------
Arg [0] : _contractOwner (address): 0xEe7b429Ea01F76102f053213463D4e95D5D24AE8
Arg [1] : _diamondCutFacet (address): 0xCB44Cc5192F0C7d67C86F9C132d7eEF89be20B18
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ee7b429ea01f76102f053213463d4e95d5d24ae8
Arg [1] : 000000000000000000000000cb44cc5192f0c7d67c86f9c132d7eef89be20b18
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.