Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Registry
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {IRegistry} from "./interfaces/IRegistry.sol"; contract Registry is AccessControl, IRegistry { address public override maha; address public override locker; address public override gaugeVoter; address public override governor; address public override staker; address public override emissionController; bool public paused; bool internal initialized; bytes32 public constant EMERGENCY_STOP_ROLE = keccak256("EMERGENCY_STOP_ROLE"); function initialize( address _maha, address _gaugeVoter, address _locker, address _governor, address _staker, address _emissionController, address _governance ) external { require(!initialized, "already initialized"); maha = _maha; gaugeVoter = _gaugeVoter; locker = _locker; governor = _governor; staker = _staker; emissionController = _emissionController; _setupRole(DEFAULT_ADMIN_ROLE, _governance); _setupRole(EMERGENCY_STOP_ROLE, _governance); initialized = true; } modifier onlyGovernance() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "not governance"); _; } function toggleProtocol() external { require( hasRole(EMERGENCY_STOP_ROLE, msg.sender) || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "not governance or emergency" ); paused = !paused; } function ensureNotPaused() external view override { require(!paused, "protocol is paused"); } function getAllAddresses() external view override returns ( address, address, address, address, address ) { return (maha, gaugeVoter, locker, governor, staker); } function setMAHA(address _new) external override onlyGovernance { emit MahaChanged(msg.sender, maha, _new); maha = _new; } function setVoter(address _new) external override onlyGovernance { emit VoterChanged(msg.sender, gaugeVoter, _new); gaugeVoter = _new; } function setLocker(address _new) external override onlyGovernance { emit LockerChanged(msg.sender, locker, _new); locker = _new; } function setGovernor(address _new) external override onlyGovernance { emit GovernorChanged(msg.sender, governor, _new); governor = _new; } function setEmissionController(address _new) external override onlyGovernance { emit EmissionControllerChanged(msg.sender, emissionController, _new); emissionController = _new; } function setStaker(address _new) external override onlyGovernance { emit GovernorChanged(msg.sender, governor, _new); staker = _new; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/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); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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 virtual { 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 virtual 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 revoked `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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol"; interface IRegistry is IAccessControl { event MahaChanged(address indexed whom, address _old, address _new); event VoterChanged(address indexed whom, address _old, address _new); event LockerChanged(address indexed whom, address _old, address _new); event GovernorChanged(address indexed whom, address _old, address _new); event StakerChanged(address indexed whom, address _old, address _new); event EmissionControllerChanged( address indexed whom, address _old, address _new ); function maha() external view returns (address); function gaugeVoter() external view returns (address); function locker() external view returns (address); function staker() external view returns (address); function emissionController() external view returns (address); function governor() external view returns (address); function getAllAddresses() external view returns ( address, address, address, address, address ); function ensureNotPaused() external; function setMAHA(address _new) external; function setEmissionController(address _new) external; function setStaker(address _new) external; function setVoter(address _new) external; function setLocker(address _new) external; function setGovernor(address _new) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @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": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whom","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"EmissionControllerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whom","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"GovernorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whom","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"LockerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whom","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"MahaChanged","type":"event"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whom","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"StakerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whom","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"VoterChanged","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMERGENCY_STOP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ensureNotPaused","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gaugeVoter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllAddresses","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"_maha","type":"address"},{"internalType":"address","name":"_gaugeVoter","type":"address"},{"internalType":"address","name":"_locker","type":"address"},{"internalType":"address","name":"_governor","type":"address"},{"internalType":"address","name":"_staker","type":"address"},{"internalType":"address","name":"_emissionController","type":"address"},{"internalType":"address","name":"_governance","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maha","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","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":"address","name":"_new","type":"address"}],"name":"setEmissionController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setMAHA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setVoter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611058806100206000396000f3fe608060405234801561001057600080fd5b50600436106101635760003560e01c80636dee2012116100ce578063a29a43bb11610087578063a29a43bb1461032f578063b641522e14610342578063be21c02614610355578063c42cf53514610368578063d547741f1461037b578063d7b96d4e1461038e578063f9fa2123146103a157600080fd5b80636dee20121461029c57806372233e69146102af57806381ca29a1146102b757806391d14854146102ca5780639516a104146102dd578063a217fddf1461032757600080fd5b80633587647611610120578063358764761461022957806336568abe1461023c5780633de00c361461024f5780634bc2a657146102625780635c975abb146102755780635ebaf1db1461028957600080fd5b806301ffc9a7146101685780630c340a2414610190578063171060ec146101bb5780631bc10541146101d0578063248a9ca3146101f35780632f2ff15d14610216575b600080fd5b61017b610176366004610e62565b6103a9565b60405190151581526020015b60405180910390f35b6004546101a3906001600160a01b031681565b6040516001600160a01b039091168152602001610187565b6101ce6101c9366004610d80565b6103e0565b005b6101e560008051602061100383398151915281565b604051908152602001610187565b6101e5610201366004610e1f565b60009081526020819052604090206001015490565b6101ce610224366004610e37565b610479565b6101ce610237366004610d9a565b6104a3565b6101ce61024a366004610e37565b610594565b6001546101a3906001600160a01b031681565b6101ce610270366004610d80565b610612565b60065461017b90600160a01b900460ff1681565b6005546101a3906001600160a01b031681565b6006546101a3906001600160a01b031681565b6101ce6106a2565b6003546101a3906001600160a01b031681565b61017b6102d8366004610e37565b610738565b600154600354600254600454600554604080516001600160a01b0396871681529486166020860152928516928401929092528316606083015291909116608082015260a001610187565b6101e5600081565b6101ce61033d366004610d80565b610761565b6101ce610350366004610d80565b6107f1565b6101ce610363366004610d80565b610881565b6101ce610376366004610d80565b610911565b6101ce610389366004610e37565b6109a1565b6002546101a3906001600160a01b031681565b6101ce6109c6565b60006001600160e01b03198216637965db0b60e01b14806103da57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103eb600033610738565b6104105760405162461bcd60e51b815260040161040790610f46565b60405180910390fd5b60025460405133917f38ba5bee517df7d94bdc1c81ffad22fb4124b56002795c6c9c9689d092f22aff9161044f916001600160a01b0316908590610ef9565b60405180910390a2600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526020819052604090206001015461049481610a17565b61049e8383610a24565b505050565b600654600160a81b900460ff16156104f35760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610407565b600180546001600160a01b03199081166001600160a01b038a81169190911790925560038054821689841617905560028054821688841617905560048054821687841617905560058054821686841617905560068054909116918416919091179055610560600082610aa8565b61057860008051602061100383398151915282610aa8565b50506006805460ff60a81b1916600160a81b1790555050505050565b6001600160a01b03811633146106045760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610407565b61060e8282610ab2565b5050565b61061d600033610738565b6106395760405162461bcd60e51b815260040161040790610f46565b60035460405133917f9268b9726f38824965649bfcf3b0d32ff50816216bf7cdbd57abc3cc8c5dab1291610678916001600160a01b0316908590610ef9565b60405180910390a2600380546001600160a01b0319166001600160a01b0392909216919091179055565b6106ba60008051602061100383398151915233610738565b806106cb57506106cb600033610738565b6107175760405162461bcd60e51b815260206004820152601b60248201527f6e6f7420676f7665726e616e6365206f7220656d657267656e637900000000006044820152606401610407565b6006805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61076c600033610738565b6107885760405162461bcd60e51b815260040161040790610f46565b60045460405133917f3f1ade8bca28c25684c7fa434465858b42fa8aaade31c7ad794683f8cb136838916107c7916001600160a01b0316908590610ef9565b60405180910390a2600580546001600160a01b0319166001600160a01b0392909216919091179055565b6107fc600033610738565b6108185760405162461bcd60e51b815260040161040790610f46565b60065460405133917f7ecd2f20be54e11699d4206d8493b655613619c8a602b1d28e399ba32a68f08d91610857916001600160a01b0316908590610ef9565b60405180910390a2600680546001600160a01b0319166001600160a01b0392909216919091179055565b61088c600033610738565b6108a85760405162461bcd60e51b815260040161040790610f46565b60015460405133917f2fcfd75e963279beb99392c5e58156adfe8455b1c38d14e8b39aab9952e1588e916108e7916001600160a01b0316908590610ef9565b60405180910390a2600180546001600160a01b0319166001600160a01b0392909216919091179055565b61091c600033610738565b6109385760405162461bcd60e51b815260040161040790610f46565b60045460405133917f3f1ade8bca28c25684c7fa434465858b42fa8aaade31c7ad794683f8cb13683891610977916001600160a01b0316908590610ef9565b60405180910390a2600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152602081905260409020600101546109bc81610a17565b61049e8383610ab2565b600654600160a01b900460ff1615610a155760405162461bcd60e51b81526020600482015260126024820152711c1c9bdd1bd8dbdb081a5cc81c185d5cd95960721b6044820152606401610407565b565b610a218133610b17565b50565b610a2e8282610738565b61060e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a643390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61060e8282610a24565b610abc8282610738565b1561060e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610b218282610738565b61060e57610b39816001600160a01b03166014610b7b565b610b44836020610b7b565b604051602001610b55929190610e8a565b60408051601f198184030181529082905262461bcd60e51b825261040791600401610f13565b60606000610b8a836002610f86565b610b95906002610f6e565b67ffffffffffffffff811115610bbb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610be5576020820181803683370190505b509050600360fc1b81600081518110610c0e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610c4b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610c6f846002610f86565b610c7a906001610f6e565b90505b6001811115610d0e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610cbc57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610ce057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610d0781610fd5565b9050610c7d565b508315610d5d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610407565b9392505050565b80356001600160a01b0381168114610d7b57600080fd5b919050565b600060208284031215610d91578081fd5b610d5d82610d64565b600080600080600080600060e0888a031215610db4578283fd5b610dbd88610d64565b9650610dcb60208901610d64565b9550610dd960408901610d64565b9450610de760608901610d64565b9350610df560808901610d64565b9250610e0360a08901610d64565b9150610e1160c08901610d64565b905092959891949750929550565b600060208284031215610e30578081fd5b5035919050565b60008060408385031215610e49578182fd5b82359150610e5960208401610d64565b90509250929050565b600060208284031215610e73578081fd5b81356001600160e01b031981168114610d5d578182fd5b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351610ebc816017850160208801610fa5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610eed816028840160208801610fa5565b01602801949350505050565b6001600160a01b0392831681529116602082015260400190565b6020815260008251806020840152610f32816040850160208701610fa5565b601f01601f19169190910160400192915050565b6020808252600e908201526d6e6f7420676f7665726e616e636560901b604082015260600190565b60008219821115610f8157610f81610fec565b500190565b6000816000190483118215151615610fa057610fa0610fec565b500290565b60005b83811015610fc0578181015183820152602001610fa8565b83811115610fcf576000848401525b50505050565b600081610fe457610fe4610fec565b506000190190565b634e487b7160e01b600052601160045260246000fdfe06cefb154850384cb30eee1ae7140a3a258768948e755679865172f7ed51edfaa26469706673582212209af5a4620fe22d0e6f8328b04e55a55e0d2c0ebb7380f4c945fe3a3c058a4f9564736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101635760003560e01c80636dee2012116100ce578063a29a43bb11610087578063a29a43bb1461032f578063b641522e14610342578063be21c02614610355578063c42cf53514610368578063d547741f1461037b578063d7b96d4e1461038e578063f9fa2123146103a157600080fd5b80636dee20121461029c57806372233e69146102af57806381ca29a1146102b757806391d14854146102ca5780639516a104146102dd578063a217fddf1461032757600080fd5b80633587647611610120578063358764761461022957806336568abe1461023c5780633de00c361461024f5780634bc2a657146102625780635c975abb146102755780635ebaf1db1461028957600080fd5b806301ffc9a7146101685780630c340a2414610190578063171060ec146101bb5780631bc10541146101d0578063248a9ca3146101f35780632f2ff15d14610216575b600080fd5b61017b610176366004610e62565b6103a9565b60405190151581526020015b60405180910390f35b6004546101a3906001600160a01b031681565b6040516001600160a01b039091168152602001610187565b6101ce6101c9366004610d80565b6103e0565b005b6101e560008051602061100383398151915281565b604051908152602001610187565b6101e5610201366004610e1f565b60009081526020819052604090206001015490565b6101ce610224366004610e37565b610479565b6101ce610237366004610d9a565b6104a3565b6101ce61024a366004610e37565b610594565b6001546101a3906001600160a01b031681565b6101ce610270366004610d80565b610612565b60065461017b90600160a01b900460ff1681565b6005546101a3906001600160a01b031681565b6006546101a3906001600160a01b031681565b6101ce6106a2565b6003546101a3906001600160a01b031681565b61017b6102d8366004610e37565b610738565b600154600354600254600454600554604080516001600160a01b0396871681529486166020860152928516928401929092528316606083015291909116608082015260a001610187565b6101e5600081565b6101ce61033d366004610d80565b610761565b6101ce610350366004610d80565b6107f1565b6101ce610363366004610d80565b610881565b6101ce610376366004610d80565b610911565b6101ce610389366004610e37565b6109a1565b6002546101a3906001600160a01b031681565b6101ce6109c6565b60006001600160e01b03198216637965db0b60e01b14806103da57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103eb600033610738565b6104105760405162461bcd60e51b815260040161040790610f46565b60405180910390fd5b60025460405133917f38ba5bee517df7d94bdc1c81ffad22fb4124b56002795c6c9c9689d092f22aff9161044f916001600160a01b0316908590610ef9565b60405180910390a2600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526020819052604090206001015461049481610a17565b61049e8383610a24565b505050565b600654600160a81b900460ff16156104f35760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610407565b600180546001600160a01b03199081166001600160a01b038a81169190911790925560038054821689841617905560028054821688841617905560048054821687841617905560058054821686841617905560068054909116918416919091179055610560600082610aa8565b61057860008051602061100383398151915282610aa8565b50506006805460ff60a81b1916600160a81b1790555050505050565b6001600160a01b03811633146106045760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610407565b61060e8282610ab2565b5050565b61061d600033610738565b6106395760405162461bcd60e51b815260040161040790610f46565b60035460405133917f9268b9726f38824965649bfcf3b0d32ff50816216bf7cdbd57abc3cc8c5dab1291610678916001600160a01b0316908590610ef9565b60405180910390a2600380546001600160a01b0319166001600160a01b0392909216919091179055565b6106ba60008051602061100383398151915233610738565b806106cb57506106cb600033610738565b6107175760405162461bcd60e51b815260206004820152601b60248201527f6e6f7420676f7665726e616e6365206f7220656d657267656e637900000000006044820152606401610407565b6006805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61076c600033610738565b6107885760405162461bcd60e51b815260040161040790610f46565b60045460405133917f3f1ade8bca28c25684c7fa434465858b42fa8aaade31c7ad794683f8cb136838916107c7916001600160a01b0316908590610ef9565b60405180910390a2600580546001600160a01b0319166001600160a01b0392909216919091179055565b6107fc600033610738565b6108185760405162461bcd60e51b815260040161040790610f46565b60065460405133917f7ecd2f20be54e11699d4206d8493b655613619c8a602b1d28e399ba32a68f08d91610857916001600160a01b0316908590610ef9565b60405180910390a2600680546001600160a01b0319166001600160a01b0392909216919091179055565b61088c600033610738565b6108a85760405162461bcd60e51b815260040161040790610f46565b60015460405133917f2fcfd75e963279beb99392c5e58156adfe8455b1c38d14e8b39aab9952e1588e916108e7916001600160a01b0316908590610ef9565b60405180910390a2600180546001600160a01b0319166001600160a01b0392909216919091179055565b61091c600033610738565b6109385760405162461bcd60e51b815260040161040790610f46565b60045460405133917f3f1ade8bca28c25684c7fa434465858b42fa8aaade31c7ad794683f8cb13683891610977916001600160a01b0316908590610ef9565b60405180910390a2600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152602081905260409020600101546109bc81610a17565b61049e8383610ab2565b600654600160a01b900460ff1615610a155760405162461bcd60e51b81526020600482015260126024820152711c1c9bdd1bd8dbdb081a5cc81c185d5cd95960721b6044820152606401610407565b565b610a218133610b17565b50565b610a2e8282610738565b61060e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a643390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61060e8282610a24565b610abc8282610738565b1561060e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610b218282610738565b61060e57610b39816001600160a01b03166014610b7b565b610b44836020610b7b565b604051602001610b55929190610e8a565b60408051601f198184030181529082905262461bcd60e51b825261040791600401610f13565b60606000610b8a836002610f86565b610b95906002610f6e565b67ffffffffffffffff811115610bbb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610be5576020820181803683370190505b509050600360fc1b81600081518110610c0e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610c4b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610c6f846002610f86565b610c7a906001610f6e565b90505b6001811115610d0e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610cbc57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610ce057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610d0781610fd5565b9050610c7d565b508315610d5d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610407565b9392505050565b80356001600160a01b0381168114610d7b57600080fd5b919050565b600060208284031215610d91578081fd5b610d5d82610d64565b600080600080600080600060e0888a031215610db4578283fd5b610dbd88610d64565b9650610dcb60208901610d64565b9550610dd960408901610d64565b9450610de760608901610d64565b9350610df560808901610d64565b9250610e0360a08901610d64565b9150610e1160c08901610d64565b905092959891949750929550565b600060208284031215610e30578081fd5b5035919050565b60008060408385031215610e49578182fd5b82359150610e5960208401610d64565b90509250929050565b600060208284031215610e73578081fd5b81356001600160e01b031981168114610d5d578182fd5b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351610ebc816017850160208801610fa5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610eed816028840160208801610fa5565b01602801949350505050565b6001600160a01b0392831681529116602082015260400190565b6020815260008251806020840152610f32816040850160208701610fa5565b601f01601f19169190910160400192915050565b6020808252600e908201526d6e6f7420676f7665726e616e636560901b604082015260600190565b60008219821115610f8157610f81610fec565b500190565b6000816000190483118215151615610fa057610fa0610fec565b500290565b60005b83811015610fc0578181015183820152602001610fa8565b83811115610fcf576000848401525b50505050565b600081610fe457610fe4610fec565b506000190190565b634e487b7160e01b600052601160045260246000fdfe06cefb154850384cb30eee1ae7140a3a258768948e755679865172f7ed51edfaa26469706673582212209af5a4620fe22d0e6f8328b04e55a55e0d2c0ebb7380f4c945fe3a3c058a4f9564736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 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.