More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 378 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Accept T Token A... | 14769557 | 65 days ago | IN | 0 CRO | 0.88375 | ||||
Pull Reserves | 14743540 | 66 days ago | IN | 0 CRO | 2.33550272 | ||||
Enable Pull Rese... | 14691334 | 70 days ago | IN | 0 CRO | 0.88375 | ||||
Pull Reserves | 14131994 | 107 days ago | IN | 0 CRO | 1.67316882 | ||||
Set Fallback Add... | 12997804 | 181 days ago | IN | 0 CRO | 0.30984647 | ||||
Withdraw ETH | 12997801 | 181 days ago | IN | 0 CRO | 0.40416061 | ||||
_reduce Reserves | 12997798 | 181 days ago | IN | 0 CRO | 0.92295842 | ||||
Set Fallback Add... | 12997795 | 181 days ago | IN | 0 CRO | 0.53127968 | ||||
Transfer Ownersh... | 12832090 | 192 days ago | IN | 0 CRO | 0.34369154 | ||||
Set Fallback Add... | 11245044 | 295 days ago | IN | 0 CRO | 0.14307018 | ||||
Set Tectonic Boo... | 11244925 | 295 days ago | IN | 0 CRO | 0.21294297 | ||||
_set Implementat... | 11244923 | 295 days ago | IN | 0 CRO | 0.22875553 | ||||
Set Fallback Add... | 11244921 | 295 days ago | IN | 0 CRO | 0.16634583 | ||||
Set Tectonic Boo... | 11244917 | 295 days ago | IN | 0 CRO | 0.21294299 | ||||
_set Implementat... | 11244915 | 295 days ago | IN | 0 CRO | 0.22875555 | ||||
Set Fallback Add... | 11244913 | 295 days ago | IN | 0 CRO | 0.16634584 | ||||
Set Tectonic Boo... | 11244907 | 295 days ago | IN | 0 CRO | 0.21294301 | ||||
_set Implementat... | 11244905 | 295 days ago | IN | 0 CRO | 0.22875557 | ||||
Set Fallback Add... | 11244902 | 295 days ago | IN | 0 CRO | 0.16634586 | ||||
Set Tectonic Boo... | 11244897 | 295 days ago | IN | 0 CRO | 0.21294303 | ||||
_set Implementat... | 11244895 | 295 days ago | IN | 0 CRO | 0.22875559 | ||||
Set Fallback Add... | 11244893 | 295 days ago | IN | 0 CRO | 0.16634587 | ||||
Set Tectonic Boo... | 11244888 | 295 days ago | IN | 0 CRO | 0.21294305 | ||||
_set Implementat... | 11244886 | 295 days ago | IN | 0 CRO | 0.22875561 | ||||
Set Fallback Add... | 11244884 | 295 days ago | IN | 0 CRO | 0.16623505 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15763547 | 51 mins ago | 8.37155989 CRO | ||||
15763547 | 51 mins ago | 8.37155989 CRO | ||||
15762758 | 2 hrs ago | 4.36650267 CRO | ||||
15762758 | 2 hrs ago | 4.36650267 CRO | ||||
15762748 | 2 hrs ago | 4.36650267 CRO | ||||
15762748 | 2 hrs ago | 4.36650267 CRO | ||||
15762743 | 2 hrs ago | 4.36650267 CRO | ||||
15762743 | 2 hrs ago | 4.36650267 CRO | ||||
15762372 | 2 hrs ago | 6.50755632 CRO | ||||
15762372 | 2 hrs ago | 6.50755632 CRO | ||||
15761617 | 3 hrs ago | 5.40098578 CRO | ||||
15761617 | 3 hrs ago | 5.40098578 CRO | ||||
15761144 | 4 hrs ago | 2.9319274 CRO | ||||
15761144 | 4 hrs ago | 2.9319274 CRO | ||||
15760772 | 5 hrs ago | 6.76569543 CRO | ||||
15760772 | 5 hrs ago | 6.76569543 CRO | ||||
15759790 | 6 hrs ago | 9.33681025 CRO | ||||
15759790 | 6 hrs ago | 9.33681025 CRO | ||||
15758884 | 8 hrs ago | 3.83186192 CRO | ||||
15758884 | 8 hrs ago | 3.83186192 CRO | ||||
15758260 | 9 hrs ago | 13.0607655 CRO | ||||
15758260 | 9 hrs ago | 13.0607655 CRO | ||||
15757111 | 10 hrs ago | 7.32109787 CRO | ||||
15757111 | 10 hrs ago | 7.32109787 CRO | ||||
15756474 | 11 hrs ago | 20.23530935 CRO |
Loading...
Loading
Contract Name:
TTokenAdminProxy
Compiler Version
v0.8.3+commit.8d00100c
Contract Source Code (Solidity)
/** *Submitted for verification at cronoscan.com on 2022-03-22 */ // Sources flattened with hardhat v2.6.4 https://hardhat.org // File openzeppelin-solidity/contracts/utils/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File openzeppelin-solidity/contracts/access/[email protected] pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File openzeppelin-solidity/contracts/proxy/[email protected] 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 internall 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 overriden 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 internall 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 overriden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} } // File openzeppelin-solidity/contracts/proxy/beacon/[email protected] 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 openzeppelin-solidity/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File openzeppelin-solidity/contracts/utils/[email protected] 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) { assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } } } // File openzeppelin-solidity/contracts/proxy/ERC1967/[email protected] 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 _upgradeToAndCallSecure( address newImplementation, bytes memory data, bool forceCall ) internal { address oldImplementation = _getImplementation(); // Initial upgrade and setup call _setImplementation(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } // Perform rollback test if not already in progress StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT); if (!rollbackTesting.value) { // Trigger rollback using upgradeTo from the new implementation rollbackTesting.value = true; Address.functionDelegateCall( newImplementation, abi.encodeWithSignature("upgradeTo(address)", oldImplementation) ); rollbackTesting.value = false; // Check rollback was effective require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades"); // Finally reset to the new implementation and log the upgrade _upgradeTo(newImplementation); } } /** * @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 openzeppelin-solidity/contracts/proxy/ERC1967/[email protected] 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 initializating the storage of the proxy like a Solidity constructor. */ constructor(address _logic, bytes memory _data) payable { assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)); _upgradeToAndCall(_logic, _data, false); } /** * @dev Returns the current implementation address. */ function _implementation() internal view virtual override returns (address impl) { return ERC1967Upgrade._getImplementation(); } } // File contracts/ERC1967ProxyWithAdminControl.sol pragma solidity ^0.8.0; 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); } } // File openzeppelin-solidity/contracts/utils/structs/[email protected] pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File contracts/TTokenAdminStorage.sol pragma solidity ^0.8.0; contract TectonicAdminTEtherStorage { // Address of tEther address address public tEther; } /** * @title Admin contract for TToken Contracts * @author Tectonic */ contract TTokenAdminStorageV1 { address public currentFallbackAddress; address public reserveRecipient; mapping (address => uint256) public lastPulledReserve; EnumerableSet.AddressSet internal tokensToPull; // Boolean indicating wether access to the pulLReserves method is publicly enabled bool public pullReservesPublicAccess; // Ratio of reserves to pull uint public reserveRatio; uint public constant reserveRatioBase = 1e18; // Ratio of pulled reserves to use to reward the caller of pullReserves uint public rewardRatio; uint public constant rewardRatioBase = 1e18; // ERROR CODES // TODO: Review values (started from 99 backwards to avoid collision with error codes in tToken contracts, see if there is a better way) uint constant ERROR_RESIGN_WITHOUT_DEREGISTERING = 96; uint constant ERROR_NEW_ADMIN_ZERO_ADDRESS = 97; uint constant ERROR_REGISTER_WITHOUT_ADMIN_TRANSFER = 98; uint constant ERROR_TETHER_ALREADY_REGISTERED = 99; } // File contracts/TTokenAdminProxy.sol pragma solidity ^0.8.0; contract TTokenAdminProxy is TectonicAdminTEtherStorage, ERC1967ProxyWithAdminControl { constructor(address _logic, bytes memory _data) ERC1967ProxyWithAdminControl(_logic, _data) {} /** * Method to receive ether from the tEther contract */ receive() external override payable { // Had to move this function here to avoid gas cost exceeding maximum for transfer function require(msg.sender == tEther, "Only tEther contract allowed to send ETH"); } }
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":[],"name":"tEther","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
60806040523480156200001157600080fd5b50604051620019ae380380620019ae833981810160405281019062000037919062000649565b8181818160017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd60001c6200006d919062000902565b60001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b14620000c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b620000dd82826000620000fa60201b60201c565b5050620000f0336200013d60201b60201c565b5050505062000b5d565b6200010b836200019b60201b60201c565b600082511180620001195750805b156200013857620001368383620001f260201b620003c61760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200016e6200022860201b60201c565b826040516200017f929190620007ba565b60405180910390a162000198816200028c60201b60201c565b50565b620001ac816200037d60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606062000220838360405180606001604052806027815260200162001987602791396200045360201b60201c565b905092915050565b6000620002637fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b6200053760201b620003f31760201c565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620002ff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f6906200080b565b60405180910390fd5b80620003397fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b6200053760201b620003f31760201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b62000393816200054160201b620003fd1760201c565b620003d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003cc906200082d565b60405180910390fd5b806200040f7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200053760201b620003f31760201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606062000466846200054160201b60201c565b620004a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200049f906200084f565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1685604051620004d29190620007a1565b600060405180830381855af49150503d80600081146200050f576040519150601f19603f3d011682016040523d82523d6000602084013e62000514565b606091505b50915091506200052c8282866200055460201b60201c565b925050509392505050565b6000819050919050565b600080823b905060008111915050919050565b606083156200056657829050620005b9565b6000835111156200057a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005b09190620007e7565b60405180910390fd5b9392505050565b6000620005d7620005d1846200089a565b62000871565b905082815260208101848484011115620005f057600080fd5b620005fd8482856200097b565b509392505050565b600081519050620006168162000b43565b92915050565b600082601f8301126200062e57600080fd5b815162000640848260208601620005c0565b91505092915050565b600080604083850312156200065d57600080fd5b60006200066d8582860162000605565b925050602083015167ffffffffffffffff8111156200068b57600080fd5b62000699858286016200061c565b9150509250929050565b620006ae816200093d565b82525050565b6000620006c182620008d0565b620006cd8185620008e6565b9350620006df8185602086016200097b565b80840191505092915050565b6000620006f882620008db565b620007048185620008f1565b9350620007168185602086016200097b565b620007218162000a45565b840191505092915050565b60006200073b602683620008f1565b9150620007488262000a56565b604082019050919050565b600062000762602d83620008f1565b91506200076f8262000aa5565b604082019050919050565b600062000789602683620008f1565b9150620007968262000af4565b604082019050919050565b6000620007af8284620006b4565b915081905092915050565b6000604082019050620007d16000830185620006a3565b620007e06020830184620006a3565b9392505050565b60006020820190508181036000830152620008038184620006eb565b905092915050565b6000602082019050818103600083015262000826816200072c565b9050919050565b60006020820190508181036000830152620008488162000753565b9050919050565b600060208201905081810360008301526200086a816200077a565b9050919050565b60006200087d62000890565b90506200088b8282620009b1565b919050565b6000604051905090565b600067ffffffffffffffff821115620008b857620008b762000a16565b5b620008c38262000a45565b9050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006200090f8262000971565b91506200091c8362000971565b925082821015620009325762000931620009e7565b5b828203905092915050565b60006200094a8262000951565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200099b5780820151818401526020810190506200097e565b83811115620009ab576000848401525b50505050565b620009bc8262000a45565b810181811067ffffffffffffffff82111715620009de57620009dd62000a16565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243313936373a206e65772061646d696e20697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b62000b4e816200093d565b811462000b5a57600080fd5b50565b610e1a8062000b6d6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100ed5780635c60da1b146101165780638b3240a01461014157806394635c461461016c5780639f712f2f14610197576100e3565b366100e35760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100d890610aa4565b60405180910390fd5b005b6100eb6101c0565b005b3480156100f957600080fd5b50610114600480360381019061010f9190610873565b6101da565b005b34801561012257600080fd5b5061012b610293565b60405161013891906109fe565b60405180910390f35b34801561014d57600080fd5b506101566102a2565b60405161016391906109fe565b60405180910390f35b34801561017857600080fd5b506101816102b1565b60405161018e91906109fe565b60405180910390f35b3480156101a357600080fd5b506101be60048036038101906101b99190610873565b6102d5565b005b6101c8610410565b6101d86101d3610412565b610421565b565b6101e2610447565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461024f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024690610a64565b60405180910390fd5b6102588161049e565b427fd9f266625586f1434161fb2b5873b4869b7595dad10f23e8825da8ea987202028260405161028891906109fe565b60405180910390a250565b600061029d610412565b905090565b60006102ac610447565b905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102dd610447565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461034a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034190610a64565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156103ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b190610ae4565b60405180910390fd5b6103c3816104ed565b50565b60606103eb8383604051806060016040528060278152602001610dbe60279139610539565b905092915050565b6000819050919050565b600080823b905060008111915050919050565b565b600061041c610606565b905090565b3660008037600080366000845af43d6000803e8060008114610442573d6000f35b3d6000fd5b60006104757fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b6103f3565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6104a78161065d565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610516610447565b82604051610525929190610a19565b60405180910390a161053681610716565b50565b6060610544846103fd565b610583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057a90610b04565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105ab91906109e7565b600060405180830381855af49150503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e6105eb565b606091505b50915091506105fb8282866107f7565b925050509392505050565b60006106347f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6103f3565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610666816103fd565b6106a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069c90610ac4565b60405180910390fd5b806106d27f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6103f3565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d90610a84565b60405180910390fd5b806107b37fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b6103f3565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060831561080757829050610857565b60008351111561081a5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084e9190610a42565b60405180910390fd5b9392505050565b60008135905061086d81610da6565b92915050565b60006020828403121561088557600080fd5b60006108938482850161085e565b91505092915050565b6108a581610b56565b82525050565b60006108b682610b24565b6108c08185610b3a565b93506108d0818560208601610b88565b80840191505092915050565b60006108e782610b2f565b6108f18185610b45565b9350610901818560208601610b88565b61090a81610bbb565b840191505092915050565b6000610922603583610b45565b915061092d82610bcc565b604082019050919050565b6000610945602683610b45565b915061095082610c1b565b604082019050919050565b6000610968602883610b45565b915061097382610c6a565b604082019050919050565b600061098b602d83610b45565b915061099682610cb9565b604082019050919050565b60006109ae602483610b45565b91506109b982610d08565b604082019050919050565b60006109d1602683610b45565b91506109dc82610d57565b604082019050919050565b60006109f382846108ab565b915081905092915050565b6000602082019050610a13600083018461089c565b92915050565b6000604082019050610a2e600083018561089c565b610a3b602083018461089c565b9392505050565b60006020820190508181036000830152610a5c81846108dc565b905092915050565b60006020820190508181036000830152610a7d81610915565b9050919050565b60006020820190508181036000830152610a9d81610938565b9050919050565b60006020820190508181036000830152610abd8161095b565b9050919050565b60006020820190508181036000830152610add8161097e565b9050919050565b60006020820190508181036000830152610afd816109a1565b9050919050565b60006020820190508181036000830152610b1d816109c4565b9050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000610b6182610b68565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015610ba6578082015181840152602081019050610b8b565b83811115610bb5576000848401525b50505050565b6000601f19601f8301169050919050565b7f4552433139363750726f78795769746841646d696e436f6e74726f6c3a20636160008201527f6c6c6572206973206e6f74207468652061646d696e0000000000000000000000602082015250565b7f455243313936373a206e65772061646d696e20697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c792074457468657220636f6e747261637420616c6c6f77656420746f2060008201527f73656e6420455448000000000000000000000000000000000000000000000000602082015250565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b7f4e65772061646d696e2063616e6e6f7420626520746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b610daf81610b56565b8114610dba57600080fd5b5056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204c62294551df06eef7d5b4191273e2e6a31f63611331764d65b94cb0cfd4c08864736f6c63430008030033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000487e35b1ee7011ac089ee4a3a06aba182dc14d8900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084e24df75400000000000000000000000000000957896fcb916bacccfdb55caecfaecfb58700000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000e165132fda537fa89ca1b52a647240c2b84c8f89000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061004e5760003560e01c80633659cfe6146100ed5780635c60da1b146101165780638b3240a01461014157806394635c461461016c5780639f712f2f14610197576100e3565b366100e35760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100d890610aa4565b60405180910390fd5b005b6100eb6101c0565b005b3480156100f957600080fd5b50610114600480360381019061010f9190610873565b6101da565b005b34801561012257600080fd5b5061012b610293565b60405161013891906109fe565b60405180910390f35b34801561014d57600080fd5b506101566102a2565b60405161016391906109fe565b60405180910390f35b34801561017857600080fd5b506101816102b1565b60405161018e91906109fe565b60405180910390f35b3480156101a357600080fd5b506101be60048036038101906101b99190610873565b6102d5565b005b6101c8610410565b6101d86101d3610412565b610421565b565b6101e2610447565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461024f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024690610a64565b60405180910390fd5b6102588161049e565b427fd9f266625586f1434161fb2b5873b4869b7595dad10f23e8825da8ea987202028260405161028891906109fe565b60405180910390a250565b600061029d610412565b905090565b60006102ac610447565b905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102dd610447565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461034a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034190610a64565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156103ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b190610ae4565b60405180910390fd5b6103c3816104ed565b50565b60606103eb8383604051806060016040528060278152602001610dbe60279139610539565b905092915050565b6000819050919050565b600080823b905060008111915050919050565b565b600061041c610606565b905090565b3660008037600080366000845af43d6000803e8060008114610442573d6000f35b3d6000fd5b60006104757fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b6103f3565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6104a78161065d565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610516610447565b82604051610525929190610a19565b60405180910390a161053681610716565b50565b6060610544846103fd565b610583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057a90610b04565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105ab91906109e7565b600060405180830381855af49150503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e6105eb565b606091505b50915091506105fb8282866107f7565b925050509392505050565b60006106347f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6103f3565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610666816103fd565b6106a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069c90610ac4565b60405180910390fd5b806106d27f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6103f3565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d90610a84565b60405180910390fd5b806107b37fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b6103f3565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060831561080757829050610857565b60008351111561081a5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084e9190610a42565b60405180910390fd5b9392505050565b60008135905061086d81610da6565b92915050565b60006020828403121561088557600080fd5b60006108938482850161085e565b91505092915050565b6108a581610b56565b82525050565b60006108b682610b24565b6108c08185610b3a565b93506108d0818560208601610b88565b80840191505092915050565b60006108e782610b2f565b6108f18185610b45565b9350610901818560208601610b88565b61090a81610bbb565b840191505092915050565b6000610922603583610b45565b915061092d82610bcc565b604082019050919050565b6000610945602683610b45565b915061095082610c1b565b604082019050919050565b6000610968602883610b45565b915061097382610c6a565b604082019050919050565b600061098b602d83610b45565b915061099682610cb9565b604082019050919050565b60006109ae602483610b45565b91506109b982610d08565b604082019050919050565b60006109d1602683610b45565b91506109dc82610d57565b604082019050919050565b60006109f382846108ab565b915081905092915050565b6000602082019050610a13600083018461089c565b92915050565b6000604082019050610a2e600083018561089c565b610a3b602083018461089c565b9392505050565b60006020820190508181036000830152610a5c81846108dc565b905092915050565b60006020820190508181036000830152610a7d81610915565b9050919050565b60006020820190508181036000830152610a9d81610938565b9050919050565b60006020820190508181036000830152610abd8161095b565b9050919050565b60006020820190508181036000830152610add8161097e565b9050919050565b60006020820190508181036000830152610afd816109a1565b9050919050565b60006020820190508181036000830152610b1d816109c4565b9050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000610b6182610b68565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015610ba6578082015181840152602081019050610b8b565b83811115610bb5576000848401525b50505050565b6000601f19601f8301169050919050565b7f4552433139363750726f78795769746841646d696e436f6e74726f6c3a20636160008201527f6c6c6572206973206e6f74207468652061646d696e0000000000000000000000602082015250565b7f455243313936373a206e65772061646d696e20697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c792074457468657220636f6e747261637420616c6c6f77656420746f2060008201527f73656e6420455448000000000000000000000000000000000000000000000000602082015250565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b7f4e65772061646d696e2063616e6e6f7420626520746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b610daf81610b56565b8114610dba57600080fd5b5056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204c62294551df06eef7d5b4191273e2e6a31f63611331764d65b94cb0cfd4c08864736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000487e35b1ee7011ac089ee4a3a06aba182dc14d8900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084e24df75400000000000000000000000000000957896fcb916bacccfdb55caecfaecfb58700000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000e165132fda537fa89ca1b52a647240c2b84c8f89000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _logic (address): 0x487E35B1Ee7011aC089eE4A3A06ABA182DC14D89
Arg [1] : _data (bytes): 0xe24df75400000000000000000000000000000957896fcb916bacccfdb55caecfaecfb58700000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000e165132fda537fa89ca1b52a647240c2b84c8f890000000000000000000000000000000000000000000000000000000000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000487e35b1ee7011ac089ee4a3a06aba182dc14d89
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000084
Arg [3] : e24df75400000000000000000000000000000957896fcb916bacccfdb55caecf
Arg [4] : aecfb58700000000000000000000000000000000000000000000000006f05b59
Arg [5] : d3b20000000000000000000000000000e165132fda537fa89ca1b52a647240c2
Arg [6] : b84c8f8900000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
37637:482:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38059:6;;;;;;;;;;38045:20;;:10;:20;;;38037:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;37637:482;;5952:11;:9;:11::i;:::-;37637:482;26004:179;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;26374:95;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26475:88;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;36412:21;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26189:179;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;5589:113;5638:17;:15;:17::i;:::-;5666:28;5676:17;:15;:17::i;:::-;5666:9;:28::i;:::-;5589:113::o;26004:179::-;25913:11;:9;:11::i;:::-;25899:25;;:10;:25;;;25891:91;;;;;;;;;;;;:::i;:::-;;;;;;;;;26077:30:::1;26088:18;26077:10;:30::i;:::-;26141:15;26119:58;26158:18;26119:58;;;;;;:::i;:::-;;;;;;;;26004:179:::0;:::o;26374:95::-;26423:7;26446:17;:15;:17::i;:::-;26439:24;;26374:95;:::o;26475:88::-;26523:7;26546:11;:9;:11::i;:::-;26539:18;;26475:88;:::o;36412:21::-;;;;;;;;;;;;:::o;26189:179::-;25913:11;:9;:11::i;:::-;25899:25;;:10;:25;;;25891:91;;;;;;;;;;;;:::i;:::-;;;;;;;;;26289:1:::1;26268:23;;:9;:23;;;;26260:72;;;;;;;;;;;;:::i;:::-;;;;;;;;;26339:23;26352:9;26339:12;:23::i;:::-;26189:179:::0;:::o;13375:200::-;13458:12;13490:77;13511:6;13519:4;13490:77;;;;;;;;;;;;;;;;;:20;:77::i;:::-;13483:84;;13375:200;;;;:::o;16528:151::-;16589:21;16657:4;16647:14;;16632:40;;;:::o;7779:387::-;7839:4;8047:12;8114:7;8102:20;8094:28;;8157:1;8150:4;:8;8143:15;;;7779:387;;;:::o;6491:46::-;:::o;25455:142::-;25522:12;25554:35;:33;:35::i;:::-;25547:42;;25455:142;:::o;4179:918::-;4522:14;4519:1;4516;4503:34;4740:1;4737;4721:14;4718:1;4702:14;4695:5;4682:60;4819:16;4816:1;4813;4798:38;4859:6;4933:1;4928:68;;;;5047:16;5044:1;5037:27;4928:68;4964:16;4961:1;4954:27;21779:124;21823:7;21850:39;21503:66;21877:11;;21850:26;:39::i;:::-;:45;;;;;;;;;;;;21843:52;;21779:124;:::o;19217:155::-;19284:37;19303:17;19284:18;:37::i;:::-;19346:17;19337:27;;;;;;;;;;;;19217:155;:::o;22312:138::-;22377:35;22390:11;:9;:11::i;:::-;22403:8;22377:35;;;;;;;:::i;:::-;;;;;;;;22423:19;22433:8;22423:9;:19::i;:::-;22312:138;:::o;13769:397::-;13914:12;13947:18;13958:6;13947:10;:18::i;:::-;13939:69;;;;;;;;;;;;:::i;:::-;;;;;;;;;14022:12;14036:23;14063:6;:19;;14083:4;14063:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14021:67;;;;14106:52;14124:7;14133:10;14145:12;14106:17;:52::i;:::-;14099:59;;;;13769:397;;;;;:::o;18604:142::-;18657:7;18684:48;18323:66;18711:20;;18684:26;:48::i;:::-;:54;;;;;;;;;;;;18677:61;;18604:142;:::o;18842:262::-;18924:37;18943:17;18924:18;:37::i;:::-;18916:95;;;;;;;;;;;;:::i;:::-;;;;;;;;;19079:17;19022:48;18323:66;19049:20;;19022:26;:48::i;:::-;:54;;;:74;;;;;;;;;;;;;;;;;;18842:262;:::o;21990:204::-;22074:1;22054:22;;:8;:22;;;;22046:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;22178:8;22130:39;21503:66;22157:11;;22130:26;:39::i;:::-;:45;;;:56;;;;;;;;;;;;;;;;;;21990:204;:::o;14174:712::-;14324:12;14353:7;14349:530;;;14384:10;14377:17;;;;14349:530;14518:1;14498:10;:17;:21;14494:374;;;14696:10;14690:17;14757:15;14744:10;14740:2;14736:19;14729:44;14644:148;14839:12;14832:20;;;;;;;;;;;:::i;:::-;;;;;;;;14174:712;;;;;;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:262::-;;260:2;248:9;239:7;235:23;231:32;228:2;;;276:1;273;266:12;228:2;319:1;344:53;389:7;380:6;369:9;365:22;344:53;:::i;:::-;334:63;;290:117;218:196;;;;:::o;420:118::-;507:24;525:5;507:24;:::i;:::-;502:3;495:37;485:53;;:::o;544:373::-;;676:38;708:5;676:38;:::i;:::-;730:88;811:6;806:3;730:88;:::i;:::-;723:95;;827:52;872:6;867:3;860:4;853:5;849:16;827:52;:::i;:::-;904:6;899:3;895:16;888:23;;652:265;;;;;:::o;923:364::-;;1039:39;1072:5;1039:39;:::i;:::-;1094:71;1158:6;1153:3;1094:71;:::i;:::-;1087:78;;1174:52;1219:6;1214:3;1207:4;1200:5;1196:16;1174:52;:::i;:::-;1251:29;1273:6;1251:29;:::i;:::-;1246:3;1242:39;1235:46;;1015:272;;;;;:::o;1293:366::-;;1456:67;1520:2;1515:3;1456:67;:::i;:::-;1449:74;;1532:93;1621:3;1532:93;:::i;:::-;1650:2;1645:3;1641:12;1634:19;;1439:220;;;:::o;1665:366::-;;1828:67;1892:2;1887:3;1828:67;:::i;:::-;1821:74;;1904:93;1993:3;1904:93;:::i;:::-;2022:2;2017:3;2013:12;2006:19;;1811:220;;;:::o;2037:366::-;;2200:67;2264:2;2259:3;2200:67;:::i;:::-;2193:74;;2276:93;2365:3;2276:93;:::i;:::-;2394:2;2389:3;2385:12;2378:19;;2183:220;;;:::o;2409:366::-;;2572:67;2636:2;2631:3;2572:67;:::i;:::-;2565:74;;2648:93;2737:3;2648:93;:::i;:::-;2766:2;2761:3;2757:12;2750:19;;2555:220;;;:::o;2781:366::-;;2944:67;3008:2;3003:3;2944:67;:::i;:::-;2937:74;;3020:93;3109:3;3020:93;:::i;:::-;3138:2;3133:3;3129:12;3122:19;;2927:220;;;:::o;3153:366::-;;3316:67;3380:2;3375:3;3316:67;:::i;:::-;3309:74;;3392:93;3481:3;3392:93;:::i;:::-;3510:2;3505:3;3501:12;3494:19;;3299:220;;;:::o;3525:271::-;;3677:93;3766:3;3757:6;3677:93;:::i;:::-;3670:100;;3787:3;3780:10;;3659:137;;;;:::o;3802:222::-;;3933:2;3922:9;3918:18;3910:26;;3946:71;4014:1;4003:9;3999:17;3990:6;3946:71;:::i;:::-;3900:124;;;;:::o;4030:332::-;;4189:2;4178:9;4174:18;4166:26;;4202:71;4270:1;4259:9;4255:17;4246:6;4202:71;:::i;:::-;4283:72;4351:2;4340:9;4336:18;4327:6;4283:72;:::i;:::-;4156:206;;;;;:::o;4368:313::-;;4519:2;4508:9;4504:18;4496:26;;4568:9;4562:4;4558:20;4554:1;4543:9;4539:17;4532:47;4596:78;4669:4;4660:6;4596:78;:::i;:::-;4588:86;;4486:195;;;;:::o;4687:419::-;;4891:2;4880:9;4876:18;4868:26;;4940:9;4934:4;4930:20;4926:1;4915:9;4911:17;4904:47;4968:131;5094:4;4968:131;:::i;:::-;4960:139;;4858:248;;;:::o;5112:419::-;;5316:2;5305:9;5301:18;5293:26;;5365:9;5359:4;5355:20;5351:1;5340:9;5336:17;5329:47;5393:131;5519:4;5393:131;:::i;:::-;5385:139;;5283:248;;;:::o;5537:419::-;;5741:2;5730:9;5726:18;5718:26;;5790:9;5784:4;5780:20;5776:1;5765:9;5761:17;5754:47;5818:131;5944:4;5818:131;:::i;:::-;5810:139;;5708:248;;;:::o;5962:419::-;;6166:2;6155:9;6151:18;6143:26;;6215:9;6209:4;6205:20;6201:1;6190:9;6186:17;6179:47;6243:131;6369:4;6243:131;:::i;:::-;6235:139;;6133:248;;;:::o;6387:419::-;;6591:2;6580:9;6576:18;6568:26;;6640:9;6634:4;6630:20;6626:1;6615:9;6611:17;6604:47;6668:131;6794:4;6668:131;:::i;:::-;6660:139;;6558:248;;;:::o;6812:419::-;;7016:2;7005:9;7001:18;6993:26;;7065:9;7059:4;7055:20;7051:1;7040:9;7036:17;7029:47;7093:131;7219:4;7093:131;:::i;:::-;7085:139;;6983:248;;;:::o;7237:98::-;;7322:5;7316:12;7306:22;;7295:40;;;:::o;7341:99::-;;7427:5;7421:12;7411:22;;7400:40;;;:::o;7446:147::-;;7584:3;7569:18;;7559:34;;;;:::o;7599:169::-;;7717:6;7712:3;7705:19;7757:4;7752:3;7748:14;7733:29;;7695:73;;;;:::o;7774:96::-;;7840:24;7858:5;7840:24;:::i;:::-;7829:35;;7819:51;;;:::o;7876:126::-;;7953:42;7946:5;7942:54;7931:65;;7921:81;;;:::o;8008:307::-;8076:1;8086:113;8100:6;8097:1;8094:13;8086:113;;;8185:1;8180:3;8176:11;8170:18;8166:1;8161:3;8157:11;8150:39;8122:2;8119:1;8115:10;8110:15;;8086:113;;;8217:6;8214:1;8211:13;8208:2;;;8297:1;8288:6;8283:3;8279:16;8272:27;8208:2;8057:258;;;;:::o;8321:102::-;;8413:2;8409:7;8404:2;8397:5;8393:14;8389:28;8379:38;;8369:54;;;:::o;8429:240::-;8569:34;8565:1;8557:6;8553:14;8546:58;8638:23;8633:2;8625:6;8621:15;8614:48;8535:134;:::o;8675:225::-;8815:34;8811:1;8803:6;8799:14;8792:58;8884:8;8879:2;8871:6;8867:15;8860:33;8781:119;:::o;8906:227::-;9046:34;9042:1;9034:6;9030:14;9023:58;9115:10;9110:2;9102:6;9098:15;9091:35;9012:121;:::o;9139:232::-;9279:34;9275:1;9267:6;9263:14;9256:58;9348:15;9343:2;9335:6;9331:15;9324:40;9245:126;:::o;9377:223::-;9517:34;9513:1;9505:6;9501:14;9494:58;9586:6;9581:2;9573:6;9569:15;9562:31;9483:117;:::o;9606:225::-;9746:34;9742:1;9734:6;9730:14;9723:58;9815:8;9810:2;9802:6;9798:15;9791:33;9712:119;:::o;9837:122::-;9910:24;9928:5;9910:24;:::i;:::-;9903:5;9900:35;9890:2;;9949:1;9946;9939:12;9890:2;9880:79;:::o
Swarm Source
ipfs://4c62294551df06eef7d5b4191273e2e6a31f63611331764d65b94cb0cfd4c088
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.