Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 255 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Multiple Pri... | 15320599 | 910 days ago | IN | 0 ETH | 0.0009952 | ||||
Set Multiple Pri... | 15319040 | 911 days ago | IN | 0 ETH | 0.00079029 | ||||
Set Multiple Pri... | 15317446 | 911 days ago | IN | 0 ETH | 0.00115284 | ||||
Set Multiple Pri... | 15315841 | 911 days ago | IN | 0 ETH | 0.00217845 | ||||
Set Multiple Pri... | 15314230 | 911 days ago | IN | 0 ETH | 0.00066057 | ||||
Set Multiple Pri... | 15312646 | 912 days ago | IN | 0 ETH | 0.00099829 | ||||
Set Multiple Pri... | 15311056 | 912 days ago | IN | 0 ETH | 0.00046992 | ||||
Set Multiple Pri... | 15309425 | 912 days ago | IN | 0 ETH | 0.00122983 | ||||
Set Multiple Pri... | 15307853 | 912 days ago | IN | 0 ETH | 0.00065661 | ||||
Set Multiple Pri... | 15306272 | 913 days ago | IN | 0 ETH | 0.00048631 | ||||
Set Multiple Pri... | 15304694 | 913 days ago | IN | 0 ETH | 0.00107392 | ||||
Set Multiple Pri... | 15303010 | 913 days ago | IN | 0 ETH | 0.00162982 | ||||
Set Multiple Pri... | 15301433 | 913 days ago | IN | 0 ETH | 0.00035988 | ||||
Set Multiple Pri... | 15299838 | 914 days ago | IN | 0 ETH | 0.00049838 | ||||
Set Multiple Pri... | 15298262 | 914 days ago | IN | 0 ETH | 0.00042238 | ||||
Set Multiple Pri... | 15296672 | 914 days ago | IN | 0 ETH | 0.00049859 | ||||
Set Multiple Pri... | 15295005 | 915 days ago | IN | 0 ETH | 0.00036048 | ||||
Set Multiple Pri... | 15293373 | 915 days ago | IN | 0 ETH | 0.00022696 | ||||
Set Multiple Pri... | 15291796 | 915 days ago | IN | 0 ETH | 0.00028538 | ||||
Set Multiple Pri... | 15290151 | 915 days ago | IN | 0 ETH | 0.00073441 | ||||
Set Multiple Pri... | 15288551 | 916 days ago | IN | 0 ETH | 0.00031224 | ||||
Set Multiple Pri... | 15286972 | 916 days ago | IN | 0 ETH | 0.00028653 | ||||
Set Multiple Pri... | 15285382 | 916 days ago | IN | 0 ETH | 0.00058924 | ||||
Set Multiple Pri... | 15283737 | 916 days ago | IN | 0 ETH | 0.00091321 | ||||
Set Multiple Pri... | 15282116 | 917 days ago | IN | 0 ETH | 0.00094528 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
NFTFloorOracle
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; import "../openzeppelin/contracts/AccessControl.sol"; /// @title A simple on-chain price oracle mechanism /// @author github.com/drbh /// @notice Offchain clients can update the prices in this contract. The public can read prices contract NFTFloorOracle is AccessControl { bytes32 public constant UPDATER_ROLE = keccak256("UPDATER_ROLE"); struct OracleConfig { uint128 twapPeriod; } struct PriceInformation { /// @dev last reported floor price uint128 twap; uint64 lastUpdateTime; } /// @dev address of the NFT contract -> price information mapping (address => PriceInformation) priceMap; /// @dev storage for oracle configurations OracleConfig config; /// @notice Allow contract creator to set admin and first updater /// @param admin The admin who can change roles /// @param updaters The inital updaters constructor(address admin, address[] memory updaters) { _setupRole(DEFAULT_ADMIN_ROLE, admin); for (uint i=0; i < updaters.length; i++) { _setupRole(UPDATER_ROLE, updaters[i]); } } /// @notice Allows owner to set new price on PriceInformation and updates the /// internal TWAP cumulativePrice. /// @param token The nft contracts to set a floor price for /// @param twap The last floor twap function setPrice(address token, uint128 twap) onlyRole(UPDATER_ROLE) public { /// @dev get storage ref for gas savings PriceInformation storage priceMapEntry = priceMap[token]; /// @dev set values priceMapEntry.twap = twap; priceMapEntry.lastUpdateTime = uint64(block.timestamp); } /// @notice Allows owner to set new price on PriceInformation and updates the /// internal TWAP cumulativePrice. /// @param tokens The nft contract to set a floor price for function setMultiplePrices(address[] calldata tokens, uint128[] calldata twaps) onlyRole(UPDATER_ROLE) public { require(tokens.length == twaps.length, "Tokens and price length differ"); for(uint i; i<tokens.length; i++) { setPrice(tokens[i], twaps[i]); } } /// @notice Allows owner to update oracle configs /// @param twapPeriod The period of the time weighted average price function setConfig(uint128 twapPeriod) onlyRole(UPDATER_ROLE) public { config.twapPeriod = twapPeriod; } /// @param token The nft contract /// @return twap The most recent twap on chain function getTwap(address token) view public returns(uint128 twap) { return priceMap[token].twap; } /// @param token The nft contract /// @return timestamp The timestamp of the last update for an asset function getLastUpdateTime(address token) view public returns(uint128 timestamp) { return priceMap[token].lastUpdateTime; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import './IAccessControl.sol'; import './Context.sol'; import './Strings.sol'; import './ERC165.sol'; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( 'AccessControl: account ', Strings.toHexString(uint160(account), 20), ' is missing role ', Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), 'AccessControl: can only renounce roles for self'); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged( bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole ); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /* * @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 GSN 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 payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = '0123456789abcdef'; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return '0'; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return '0x00'; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = '0'; buffer[1] = 'x'; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, 'Strings: hex length insufficient'); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import './IERC165.sol'; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 100000 }, "evmVersion": "london", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address[]","name":"updaters","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getLastUpdateTime","outputs":[{"internalType":"uint128","name":"timestamp","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getTwap","outputs":[{"internalType":"uint128","name":"twap","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"twapPeriod","type":"uint128"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint128[]","name":"twaps","type":"uint128[]"}],"name":"setMultiplePrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint128","name":"twap","type":"uint128"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620012b7380380620012b783398101604081905262000034916200019d565b62000041600083620000ba565b60005b8151811015620000b1576200009c7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab83838151811062000088576200008862000286565b6020026020010151620000ba60201b60201c565b80620000a8816200029c565b91505062000044565b505050620002c6565b620000c68282620000ca565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000c6576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001263390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516001600160a01b03811681146200018257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620001b157600080fd5b620001bc836200016a565b602084810151919350906001600160401b0380821115620001dc57600080fd5b818601915086601f830112620001f157600080fd5b81518181111562000206576200020662000187565b8060051b604051601f19603f830116810181811085821117156200022e576200022e62000187565b6040529182528482019250838101850191898311156200024d57600080fd5b938501935b82851015620002765762000266856200016a565b8452938501939285019262000252565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620002bf57634e487b7160e01b600052601160045260246000fd5b5060010190565b610fe180620002d66000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80636e8c271b1161008c578063a673d31c11610066578063a673d31c14610295578063d547741f146102a8578063ed6d5227146102bb578063f90488a3146102ce57600080fd5b80636e8c271b146101f557806391d1485414610249578063a217fddf1461028d57600080fd5b806336568abe116100bd57806336568abe146101525780633d47d2271461016557806347e63380146101ce57600080fd5b806301ffc9a7146100e4578063248a9ca31461010c5780632f2ff15d1461013d575b600080fd5b6100f76100f2366004610b71565b6102e1565b60405190151581526020015b60405180910390f35b61012f61011a366004610bb3565b60009081526020819052604090206001015490565b604051908152602001610103565b61015061014b366004610bf5565b61037a565b005b610150610160366004610bf5565b6103a5565b6101ad610173366004610c21565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546fffffffffffffffffffffffffffffffff1690565b6040516fffffffffffffffffffffffffffffffff9091168152602001610103565b61012f7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab81565b6101ad610203366004610c21565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b6100f7610257366004610bf5565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b61012f600081565b6101506102a3366004610c5c565b61045d565b6101506102b6366004610bf5565b610511565b6101506102c9366004610c86565b610537565b6101506102dc366004610ced565b6105a6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061037457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60008281526020819052604090206001015461039681336106b0565b6103a08383610780565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461044f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6104598282610870565b5050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab61048881336106b0565b5073ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffff000000000000000000000000000000000000000000000000909216919091177001000000000000000000000000000000004267ffffffffffffffff1602179055565b60008281526020819052604090206001015461052d81336106b0565b6103a08383610870565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab61056281336106b0565b50600280547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6105d181336106b0565b83821461063a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f546f6b656e7320616e64207072696365206c656e6774682064696666657200006044820152606401610446565b60005b848110156106a85761069686868381811061065a5761065a610d59565b905060200201602081019061066f9190610c21565b85858481811061068157610681610d59565b90506020020160208101906102a39190610c86565b806106a081610db7565b91505061063d565b505050505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610459576107068173ffffffffffffffffffffffffffffffffffffffff166014610927565b610711836020610927565b604051602001610722929190610e20565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261044691600401610ea1565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166104595760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556108123390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156104595760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610936836002610ef2565b610941906002610f2f565b67ffffffffffffffff81111561095957610959610f47565b6040519080825280601f01601f191660200182016040528015610983576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106109ba576109ba610d59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610a1d57610a1d610d59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000610a59846002610ef2565b610a64906001610f2f565b90505b6001811115610b01577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610aa557610aa5610d59565b1a60f81b828281518110610abb57610abb610d59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93610afa81610f76565b9050610a67565b508315610b6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610446565b9392505050565b600060208284031215610b8357600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610b6a57600080fd5b600060208284031215610bc557600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610bf057600080fd5b919050565b60008060408385031215610c0857600080fd5b82359150610c1860208401610bcc565b90509250929050565b600060208284031215610c3357600080fd5b610b6a82610bcc565b80356fffffffffffffffffffffffffffffffff81168114610bf057600080fd5b60008060408385031215610c6f57600080fd5b610c7883610bcc565b9150610c1860208401610c3c565b600060208284031215610c9857600080fd5b610b6a82610c3c565b60008083601f840112610cb357600080fd5b50813567ffffffffffffffff811115610ccb57600080fd5b6020830191508360208260051b8501011115610ce657600080fd5b9250929050565b60008060008060408587031215610d0357600080fd5b843567ffffffffffffffff80821115610d1b57600080fd5b610d2788838901610ca1565b90965094506020870135915080821115610d4057600080fd5b50610d4d87828801610ca1565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610de957610de9610d88565b5060010190565b60005b83811015610e0b578181015183820152602001610df3565b83811115610e1a576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610e58816017850160208801610df0565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351610e95816028840160208801610df0565b01602801949350505050565b6020815260008251806020840152610ec0816040850160208701610df0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610f2a57610f2a610d88565b500290565b60008219821115610f4257610f42610d88565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081610f8557610f85610d88565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea264697066735822122076c6f6e4bd3fa4dae2334ce64a559999a1eda9d1f45e537b1b3ba3e086cfcc6764736f6c634300080a003300000000000000000000000067a7e7576ea8e4d78cb402b219951375a0a2c14e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009abbd826e721f3a3379d9ecf4381869cc8262114
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80636e8c271b1161008c578063a673d31c11610066578063a673d31c14610295578063d547741f146102a8578063ed6d5227146102bb578063f90488a3146102ce57600080fd5b80636e8c271b146101f557806391d1485414610249578063a217fddf1461028d57600080fd5b806336568abe116100bd57806336568abe146101525780633d47d2271461016557806347e63380146101ce57600080fd5b806301ffc9a7146100e4578063248a9ca31461010c5780632f2ff15d1461013d575b600080fd5b6100f76100f2366004610b71565b6102e1565b60405190151581526020015b60405180910390f35b61012f61011a366004610bb3565b60009081526020819052604090206001015490565b604051908152602001610103565b61015061014b366004610bf5565b61037a565b005b610150610160366004610bf5565b6103a5565b6101ad610173366004610c21565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546fffffffffffffffffffffffffffffffff1690565b6040516fffffffffffffffffffffffffffffffff9091168152602001610103565b61012f7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab81565b6101ad610203366004610c21565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b6100f7610257366004610bf5565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b61012f600081565b6101506102a3366004610c5c565b61045d565b6101506102b6366004610bf5565b610511565b6101506102c9366004610c86565b610537565b6101506102dc366004610ced565b6105a6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061037457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60008281526020819052604090206001015461039681336106b0565b6103a08383610780565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461044f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6104598282610870565b5050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab61048881336106b0565b5073ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffff000000000000000000000000000000000000000000000000909216919091177001000000000000000000000000000000004267ffffffffffffffff1602179055565b60008281526020819052604090206001015461052d81336106b0565b6103a08383610870565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab61056281336106b0565b50600280547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6105d181336106b0565b83821461063a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f546f6b656e7320616e64207072696365206c656e6774682064696666657200006044820152606401610446565b60005b848110156106a85761069686868381811061065a5761065a610d59565b905060200201602081019061066f9190610c21565b85858481811061068157610681610d59565b90506020020160208101906102a39190610c86565b806106a081610db7565b91505061063d565b505050505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610459576107068173ffffffffffffffffffffffffffffffffffffffff166014610927565b610711836020610927565b604051602001610722929190610e20565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261044691600401610ea1565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166104595760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556108123390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156104595760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610936836002610ef2565b610941906002610f2f565b67ffffffffffffffff81111561095957610959610f47565b6040519080825280601f01601f191660200182016040528015610983576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106109ba576109ba610d59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610a1d57610a1d610d59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000610a59846002610ef2565b610a64906001610f2f565b90505b6001811115610b01577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610aa557610aa5610d59565b1a60f81b828281518110610abb57610abb610d59565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93610afa81610f76565b9050610a67565b508315610b6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610446565b9392505050565b600060208284031215610b8357600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610b6a57600080fd5b600060208284031215610bc557600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610bf057600080fd5b919050565b60008060408385031215610c0857600080fd5b82359150610c1860208401610bcc565b90509250929050565b600060208284031215610c3357600080fd5b610b6a82610bcc565b80356fffffffffffffffffffffffffffffffff81168114610bf057600080fd5b60008060408385031215610c6f57600080fd5b610c7883610bcc565b9150610c1860208401610c3c565b600060208284031215610c9857600080fd5b610b6a82610c3c565b60008083601f840112610cb357600080fd5b50813567ffffffffffffffff811115610ccb57600080fd5b6020830191508360208260051b8501011115610ce657600080fd5b9250929050565b60008060008060408587031215610d0357600080fd5b843567ffffffffffffffff80821115610d1b57600080fd5b610d2788838901610ca1565b90965094506020870135915080821115610d4057600080fd5b50610d4d87828801610ca1565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610de957610de9610d88565b5060010190565b60005b83811015610e0b578181015183820152602001610df3565b83811115610e1a576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610e58816017850160208801610df0565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351610e95816028840160208801610df0565b01602801949350505050565b6020815260008251806020840152610ec0816040850160208701610df0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610f2a57610f2a610d88565b500290565b60008219821115610f4257610f42610d88565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081610f8557610f85610d88565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea264697066735822122076c6f6e4bd3fa4dae2334ce64a559999a1eda9d1f45e537b1b3ba3e086cfcc6764736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000067a7e7576ea8e4d78cb402b219951375a0a2c14e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009abbd826e721f3a3379d9ecf4381869cc8262114
-----Decoded View---------------
Arg [0] : admin (address): 0x67a7E7576eA8e4d78CB402b219951375A0A2C14e
Arg [1] : updaters (address[]): 0x9abBD826e721F3A3379d9ECf4381869cc8262114
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000067a7e7576ea8e4d78cb402b219951375a0a2c14e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000009abbd826e721f3a3379d9ecf4381869cc8262114
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.