More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 168,902 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake Nfts And B... | 15735110 | 5 mins ago | IN | 0 CRO | 2.85222485 | ||||
Update Shares | 15734799 | 34 mins ago | IN | 0 CRO | 1.4092833 | ||||
Unstake Nfts | 15734792 | 35 mins ago | IN | 0 CRO | 3.3720163 | ||||
Update Shares | 15734778 | 36 mins ago | IN | 0 CRO | 1.4092833 | ||||
Unstake Nfts | 15734769 | 37 mins ago | IN | 0 CRO | 3.424001 | ||||
Update Shares | 15734072 | 1 hr ago | IN | 0 CRO | 1.4396641 | ||||
Harvest Boost An... | 15732886 | 3 hrs ago | IN | 0 CRO | 1.54035605 | ||||
Harvest Boost An... | 15732885 | 3 hrs ago | IN | 0 CRO | 1.2529555 | ||||
Harvest Boost An... | 15732522 | 4 hrs ago | IN | 0 CRO | 1.7675202 | ||||
Update Shares | 15731957 | 5 hrs ago | IN | 0 CRO | 1.666702 | ||||
Harvest Boost An... | 15731937 | 5 hrs ago | IN | 0 CRO | 1.67481735 | ||||
Harvest Boost An... | 15731719 | 5 hrs ago | IN | 0 CRO | 1.14741298 | ||||
Harvest Boost An... | 15731664 | 5 hrs ago | IN | 0 CRO | 1.34381982 | ||||
Harvest Boost An... | 15731580 | 5 hrs ago | IN | 0 CRO | 1.1666005 | ||||
Harvest Boost An... | 15731462 | 5 hrs ago | IN | 0 CRO | 1.6083846 | ||||
Update Shares | 15730923 | 6 hrs ago | IN | 0 CRO | 1.1522686 | ||||
Harvest Boost An... | 15730903 | 6 hrs ago | IN | 0 CRO | 1.1603183 | ||||
Harvest Boost An... | 15730899 | 6 hrs ago | IN | 0 CRO | 1.08459355 | ||||
Update Shares | 15730827 | 6 hrs ago | IN | 0 CRO | 1.1632473 | ||||
Move Boost | 15730648 | 7 hrs ago | IN | 0 CRO | 2.0537744 | ||||
Update Shares | 15730052 | 8 hrs ago | IN | 0 CRO | 1.9665306 | ||||
Update Shares | 15729943 | 8 hrs ago | IN | 0 CRO | 1.984549 | ||||
Harvest Boost An... | 15728608 | 10 hrs ago | IN | 0 CRO | 1.73667985 | ||||
Update Shares | 15728461 | 10 hrs ago | IN | 0 CRO | 7.5 | ||||
Update Shares | 15726753 | 13 hrs ago | IN | 0 CRO | 2.06581865 |
Loading...
Loading
Contract Name:
ERC1967ProxyWithAdminControl
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at cronoscan.com on 2022-09-14 */ // Sources flattened with hardhat v2.9.9 https://hardhat.org // SPDX-License-Identifier: UNLICENSED // File lib/openzeppelin-contracts/contracts/proxy/Proxy.sol // OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) pragma solidity ^0.8.0; /** * @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 { _beforeFallback(); _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(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } /** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overridden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} } // File lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @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); } // File lib/openzeppelin-contracts/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @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, it is bubbled up by this * function (like regular Solidity function calls). * * 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. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @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`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage); } } } // File lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @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: * ``` * 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(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 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 } } } // File lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Upgrade.sol // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967Upgrade { // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( Address.isContract(IBeacon(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } } } // File lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol // OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol) pragma solidity ^0.8.0; /** * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an * implementation address that can be changed. This address is stored in storage in the location specified by * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the * implementation behind the proxy. */ contract ERC1967Proxy is Proxy, ERC1967Upgrade { /** * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. * * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded * function call, and allows initializing the storage of the proxy like a Solidity constructor. */ constructor(address _logic, bytes memory _data) payable { _upgradeToAndCall(_logic, _data, false); } /** * @dev Returns the current implementation address. */ function _implementation() internal view virtual override returns (address impl) { return ERC1967Upgrade._getImplementation(); } } // File src/ERC1967ProxyWithAdminControl.sol pragma solidity ^0.8.13; contract ERC1967ProxyWithAdminControl is ERC1967Proxy { event ImplementationChanged( uint256 indexed timestamp, address newImplementationAddress ); modifier onlyAdmin() { require( msg.sender == _getAdmin(), "ERC1967ProxyWithAdminControl: caller is not the admin" ); _; } function upgradeTo(address _newImplementation) external onlyAdmin { _upgradeTo(_newImplementation); emit ImplementationChanged(block.timestamp, _newImplementation); } function changeProxyAdmin(address _newAdmin) external onlyAdmin { require( _newAdmin != address(0), "New admin cannot be the zero address" ); _changeAdmin(_newAdmin); } function implementation() external view returns (address) { return _implementation(); } function getProxyAdmin() external view returns (address) { return _getAdmin(); } constructor(address _logic, bytes memory _data) ERC1967Proxy(_logic, _data) { _changeAdmin(msg.sender); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"newImplementationAddress","type":"address"}],"name":"ImplementationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"changeProxyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getProxyAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000d6638038062000d66833981016040819052620000349162000490565b818162000044828260006200005a565b506200005290503362000097565b5050620005be565b6200006583620000f2565b600082511180620000735750805b1562000092576200009083836200013460201b6200023c1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f620000c262000163565b604080516001600160a01b03928316815291841660208301520160405180910390a1620000ef816200019c565b50565b620000fd8162000251565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606200015c838360405180606001604052806027815260200162000d3f6027913962000305565b9392505050565b60006200018d60008051602062000d1f83398151915260001b6200038460201b620002681760201c565b546001600160a01b0316919050565b6001600160a01b038116620002075760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b806200023060008051602062000d1f83398151915260001b6200038460201b620002681760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b62000267816200038760201b6200026b1760201c565b620002cb5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620001fe565b80620002307f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200038460201b620002681760201c565b6060600080856001600160a01b0316856040516200032491906200056b565b600060405180830381855af49150503d806000811462000361576040519150601f19603f3d011682016040523d82523d6000602084013e62000366565b606091505b5090925090506200037a8683838762000396565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200040a57825160000362000402576001600160a01b0385163b620004025760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620001fe565b508162000416565b6200041683836200041e565b949350505050565b8151156200042f5781518083602001fd5b8060405162461bcd60e51b8152600401620001fe919062000589565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200047e57818101518382015260200162000464565b83811115620000905750506000910152565b60008060408385031215620004a457600080fd5b82516001600160a01b0381168114620004bc57600080fd5b60208401519092506001600160401b0380821115620004da57600080fd5b818501915085601f830112620004ef57600080fd5b8151818111156200050457620005046200044b565b604051601f8201601f19908116603f011681019083821181831017156200052f576200052f6200044b565b816040528281528860208487010111156200054957600080fd5b6200055c83602083016020880162000461565b80955050505050509250929050565b600082516200057f81846020870162000461565b9190910192915050565b6020815260008251806020840152620005aa81604085016020870162000461565b601f01601f19169190910160400192915050565b61075180620005ce6000396000f3fe6080604052600436106100435760003560e01c80633659cfe61461005a5780635c60da1b1461007a5780638b3240a0146100ab5780639f712f2f146100c057610052565b36610052576100506100e0565b005b6100506100e0565b34801561006657600080fd5b506100506100753660046105f7565b6100f2565b34801561008657600080fd5b5061008f61017d565b6040516001600160a01b03909116815260200160405180910390f35b3480156100b757600080fd5b5061008f61018c565b3480156100cc57600080fd5b506100506100db3660046105f7565b610196565b6100f06100eb61027a565b610284565b565b6100fa6102a8565b6001600160a01b0316336001600160a01b0316146101335760405162461bcd60e51b815260040161012a90610620565b60405180910390fd5b61013c816102db565b6040516001600160a01b038216815242907fd9f266625586f1434161fb2b5873b4869b7595dad10f23e8825da8ea987202029060200160405180910390a250565b600061018761027a565b905090565b60006101876102a8565b61019e6102a8565b6001600160a01b0316336001600160a01b0316146101ce5760405162461bcd60e51b815260040161012a90610620565b6001600160a01b0381166102305760405162461bcd60e51b8152602060048201526024808201527f4e65772061646d696e2063616e6e6f7420626520746865207a65726f206164646044820152637265737360e01b606482015260840161012a565b6102398161031b565b50565b606061026183836040518060600160405280602781526020016106f56027913961036f565b9392505050565b90565b6001600160a01b03163b151590565b60006101876103e7565b3660008037600080366000845af43d6000803e8080156102a3573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b6102e48161040f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103446102a8565b604080516001600160a01b03928316815291841660208301520160405180910390a1610239816104c0565b6060600080856001600160a01b03168560405161038c91906106a5565b600060405180830381855af49150503d80600081146103c7576040519150601f19603f3d011682016040523d82523d6000602084013e6103cc565b606091505b50915091506103dd8683838761054c565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6102cc565b6001600160a01b0381163b61047c5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161012a565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b0381166105255760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b606482015260840161012a565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610361049f565b606083156105bb5782516000036105b4576001600160a01b0385163b6105b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161012a565b50816105c5565b6105c583836105cd565b949350505050565b8151156105dd5781518083602001fd5b8060405162461bcd60e51b815260040161012a91906106c1565b60006020828403121561060957600080fd5b81356001600160a01b038116811461026157600080fd5b60208082526035908201527f4552433139363750726f78795769746841646d696e436f6e74726f6c3a206361604082015274363632b91034b9903737ba103a34329030b236b4b760591b606082015260800190565b60005b83811015610690578181015183820152602001610678565b8381111561069f576000848401525b50505050565b600082516106b7818460208701610675565b9190910192915050565b60208152600082518060208401526106e0816040850160208701610675565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d42ecfe09529486eff11891f4c49f9a8fa7f89659ef01909baa28146abb130cd64736f6c634300080f0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000028214603170c175504775a987c34554a0a17afa000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000048129fc1c00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106100435760003560e01c80633659cfe61461005a5780635c60da1b1461007a5780638b3240a0146100ab5780639f712f2f146100c057610052565b36610052576100506100e0565b005b6100506100e0565b34801561006657600080fd5b506100506100753660046105f7565b6100f2565b34801561008657600080fd5b5061008f61017d565b6040516001600160a01b03909116815260200160405180910390f35b3480156100b757600080fd5b5061008f61018c565b3480156100cc57600080fd5b506100506100db3660046105f7565b610196565b6100f06100eb61027a565b610284565b565b6100fa6102a8565b6001600160a01b0316336001600160a01b0316146101335760405162461bcd60e51b815260040161012a90610620565b60405180910390fd5b61013c816102db565b6040516001600160a01b038216815242907fd9f266625586f1434161fb2b5873b4869b7595dad10f23e8825da8ea987202029060200160405180910390a250565b600061018761027a565b905090565b60006101876102a8565b61019e6102a8565b6001600160a01b0316336001600160a01b0316146101ce5760405162461bcd60e51b815260040161012a90610620565b6001600160a01b0381166102305760405162461bcd60e51b8152602060048201526024808201527f4e65772061646d696e2063616e6e6f7420626520746865207a65726f206164646044820152637265737360e01b606482015260840161012a565b6102398161031b565b50565b606061026183836040518060600160405280602781526020016106f56027913961036f565b9392505050565b90565b6001600160a01b03163b151590565b60006101876103e7565b3660008037600080366000845af43d6000803e8080156102a3573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b6102e48161040f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103446102a8565b604080516001600160a01b03928316815291841660208301520160405180910390a1610239816104c0565b6060600080856001600160a01b03168560405161038c91906106a5565b600060405180830381855af49150503d80600081146103c7576040519150601f19603f3d011682016040523d82523d6000602084013e6103cc565b606091505b50915091506103dd8683838761054c565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6102cc565b6001600160a01b0381163b61047c5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161012a565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b0381166105255760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b606482015260840161012a565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610361049f565b606083156105bb5782516000036105b4576001600160a01b0385163b6105b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161012a565b50816105c5565b6105c583836105cd565b949350505050565b8151156105dd5781518083602001fd5b8060405162461bcd60e51b815260040161012a91906106c1565b60006020828403121561060957600080fd5b81356001600160a01b038116811461026157600080fd5b60208082526035908201527f4552433139363750726f78795769746841646d696e436f6e74726f6c3a206361604082015274363632b91034b9903737ba103a34329030b236b4b760591b606082015260800190565b60005b83811015610690578181015183820152602001610678565b8381111561069f576000848401525b50505050565b600082516106b7818460208701610675565b9190910192915050565b60208152600082518060208401526106e0816040850160208701610675565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d42ecfe09529486eff11891f4c49f9a8fa7f89659ef01909baa28146abb130cd64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000028214603170c175504775a987c34554a0a17afa000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000048129fc1c00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _logic (address): 0x028214603170C175504775A987C34554a0a17AfA
Arg [1] : _data (bytes): 0x8129fc1c
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000028214603170c175504775a987c34554a0a17afa
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 8129fc1c00000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
25178:1149:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3110:11;:9;:11::i;:::-;25178:1149;;2879:11;:9;:11::i;25549:189::-;;;;;;;;;;-1:-1:-1;25549:189:0;;;;;:::i;:::-;;:::i;25980:101::-;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;469:32:1;;;451:51;;439:2;424:18;25980:101:0;;;;;;;26089:94;;;;;;;;;;;;;:::i;25746:226::-;;;;;;;;;;-1:-1:-1;25746:226:0;;;;;:::i;:::-;;:::i;2516:113::-;2593:28;2603:17;:15;:17::i;:::-;2593:9;:28::i;:::-;2516:113::o;25549:189::-;25429:11;:9;:11::i;:::-;-1:-1:-1;;;;;25415:25:0;:10;-1:-1:-1;;;;;25415:25:0;;25393:128;;;;-1:-1:-1;;;25393:128:0;;;;;;;:::i;:::-;;;;;;;;;25626:30:::1;25637:18;25626:10;:30::i;:::-;25672:58;::::0;-1:-1:-1;;;;;469:32:1;;451:51;;25694:15:0::1;::::0;25672:58:::1;::::0;439:2:1;424:18;25672:58:0::1;;;;;;;25549:189:::0;:::o;25980:101::-;26029:7;26056:17;:15;:17::i;:::-;26049:24;;25980:101;:::o;26089:94::-;26137:7;26164:11;:9;:11::i;25746:226::-;25429:11;:9;:11::i;:::-;-1:-1:-1;;;;;25415:25:0;:10;-1:-1:-1;;;;;25415:25:0;;25393:128;;;;-1:-1:-1;;;25393:128:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;25843:23:0;::::1;25821:109;;;::::0;-1:-1:-1;;;25821:109:0;;1137:2:1;25821:109:0::1;::::0;::::1;1119:21:1::0;1176:2;1156:18;;;1149:30;1215:34;1195:18;;;1188:62;-1:-1:-1;;;1266:18:1;;;1259:34;1310:19;;25821:109:0::1;935:400:1::0;25821:109:0::1;25941:23;25954:9;25941:12;:23::i;:::-;25746:226:::0;:::o;11609:200::-;11692:12;11724:77;11745:6;11753:4;11724:77;;;;;;;;;;;;;;;;;:20;:77::i;:::-;11717:84;11609:200;-1:-1:-1;;;11609:200:0:o;16082:195::-;16255:4;16082:195::o;6181:326::-;-1:-1:-1;;;;;6476:19:0;;:23;;;6181:326::o;24951:142::-;25018:12;25050:35;:33;:35::i;1106:918::-;1449:14;1446:1;1443;1430:34;1667:1;1664;1648:14;1645:1;1629:14;1622:5;1609:60;1746:16;1743:1;1740;1725:38;1786:6;1855:68;;;;1974:16;1971:1;1964:27;1855:68;1891:16;1888:1;1881:27;21303:124;21347:7;21027:66;21374:39;:45;-1:-1:-1;;;;;21374:45:0;;21303:124;-1:-1:-1;21303:124:0:o;19031:155::-;19098:37;19117:17;19098:18;:37::i;:::-;19151:27;;-1:-1:-1;;;;;19151:27:0;;;;;;;;19031:155;:::o;21836:138::-;21901:35;21914:11;:9;:11::i;:::-;21901:35;;;-1:-1:-1;;;;;1570:15:1;;;1552:34;;1622:15;;;1617:2;1602:18;;1595:43;1487:18;21901:35:0;;;;;;;21947:19;21957:8;21947:9;:19::i;12003:332::-;12148:12;12174;12188:23;12215:6;-1:-1:-1;;;;;12215:19:0;12235:4;12215:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12173:67;;;;12258:69;12285:6;12293:7;12302:10;12314:12;12258:26;:69::i;:::-;12251:76;12003:332;-1:-1:-1;;;;;;12003:332:0:o;18418:142::-;18471:7;18137:66;18498:48;16082:195;18656:262;-1:-1:-1;;;;;6476:19:0;;;18730:95;;;;-1:-1:-1;;;18730:95:0;;2393:2:1;18730:95:0;;;2375:21:1;2432:2;2412:18;;;2405:30;2471:34;2451:18;;;2444:62;-1:-1:-1;;;2522:18:1;;;2515:43;2575:19;;18730:95:0;2191:409:1;18730:95:0;18893:17;18137:66;18836:48;:74;;-1:-1:-1;;;;;;18836:74:0;-1:-1:-1;;;;;18836:74:0;;;;;;;;;;-1:-1:-1;18656:262:0:o;21514:204::-;-1:-1:-1;;;;;21578:22:0;;21570:73;;;;-1:-1:-1;;;21570:73:0;;2807:2:1;21570:73:0;;;2789:21:1;2846:2;2826:18;;;2819:30;2885:34;2865:18;;;2858:62;-1:-1:-1;;;2936:18:1;;;2929:36;2982:19;;21570:73:0;2605:402:1;21570:73:0;21702:8;21027:66;21654:39;16082:195;12631:644;12816:12;12845:7;12841:427;;;12873:10;:17;12894:1;12873:22;12869:290;;-1:-1:-1;;;;;6476:19:0;;;13083:60;;;;-1:-1:-1;;;13083:60:0;;3214:2:1;13083:60:0;;;3196:21:1;3253:2;3233:18;;;3226:30;3292:31;3272:18;;;3265:59;3341:18;;13083:60:0;3012:353:1;13083:60:0;-1:-1:-1;13180:10:0;13173:17;;12841:427;13223:33;13231:10;13243:12;13223:7;:33::i;:::-;12631:644;;;;;;:::o;13817:552::-;13978:17;;:21;13974:388;;14210:10;14204:17;14267:15;14254:10;14250:2;14246:19;14239:44;13974:388;14337:12;14330:20;;-1:-1:-1;;;14330:20:0;;;;;;;;:::i;14:286:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;513:417;715:2;697:21;;;754:2;734:18;;;727:30;793:34;788:2;773:18;;766:62;-1:-1:-1;;;859:2:1;844:18;;837:51;920:3;905:19;;513:417::o;1649:258::-;1721:1;1731:113;1745:6;1742:1;1739:13;1731:113;;;1821:11;;;1815:18;1802:11;;;1795:39;1767:2;1760:10;1731:113;;;1862:6;1859:1;1856:13;1853:48;;;1897:1;1888:6;1883:3;1879:16;1872:27;1853:48;;1649:258;;;:::o;1912:274::-;2041:3;2079:6;2073:13;2095:53;2141:6;2136:3;2129:4;2121:6;2117:17;2095:53;:::i;:::-;2164:16;;;;;1912:274;-1:-1:-1;;1912:274:1:o;3370:383::-;3519:2;3508:9;3501:21;3482:4;3551:6;3545:13;3594:6;3589:2;3578:9;3574:18;3567:34;3610:66;3669:6;3664:2;3653:9;3649:18;3644:2;3636:6;3632:15;3610:66;:::i;:::-;3737:2;3716:15;-1:-1:-1;;3712:29:1;3697:45;;;;3744:2;3693:54;;3370:383;-1:-1:-1;;3370:383:1:o
Swarm Source
ipfs://d42ecfe09529486eff11891f4c49f9a8fa7f89659ef01909baa28146abb130cd
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
CRONOS | 100.00% | $0.000002 | 29,449,697,075.2998 | $68,028.8 |
[ 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.