Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Emitter
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 5 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; /// @title StationXFactory Emitter Contract /// @dev Contract Emits events for Factory and Proxy contract Emitter is Initializable, AccessControl { bytes32 constant ADMIN = keccak256("ADMIN"); bytes32 public constant EMITTER = keccak256("EMITTER"); bytes32 public constant FACTORY = keccak256("FACTORY"); //FACTORY EVENTS event DefineContracts( address indexed factory, address ERC20ImplementationAddress, address ERC721ImplementationAddress, address emitterImplementationAddress ); event ChangeMerkleRoot( address indexed factory, address indexed daoAddress, bytes32 newMerkleRoot ); event CreateDaoErc20( address indexed deployerAddress, address indexed proxy, string name, string symbol, uint256 distributionAmount, uint256 pricePerToken, uint256 minDeposit, uint256 maxDeposit, uint256 ownerFee, uint256 _days, uint256 quorum, uint256 threshold, address depositTokenAddress, address emitter, address gnosisAddress, bool isGovernanceActive, bool isTransferable, bool assetsStoredOnGnosis ); event CreateDaoErc721( address indexed deployerAddress, address indexed proxy, string name, string symbol, string tokenURI, uint256 pricePerToken, uint256 distributionAmount, uint256 maxTokensPerUser, uint256 ownerFee, uint256 _days, uint256 quorum, uint256 threshold, address depositTokenAddress, address emitter, address gnosisAddress, bool isGovernanceActive, bool isTransferable, bool assetsStoredOnGnosis ); event FactoryCreated( address indexed _ERC20Implementation, address indexed _ERC721Implementation, address _wrappedTokenAddress, address indexed _factory, address _emitter ); //PROXY EVENTS event Deposited( address indexed _daoAddress, address indexed _depositor, address indexed _depositTokenAddress, uint256 _amount, uint256 _timeStamp, uint256 _ownerFee, uint256 _adminShare ); event StartDeposit( address indexed _proxy, uint256 startTime, uint256 closeTime ); event CloseDeposit(address indexed _proxy, uint256 closeTime); event UpdateMinMaxDeposit( address indexed _proxy, uint256 _minDeposit, uint256 _maxDeposit ); event UpdateOwnerFee(address indexed _proxy, uint256 _ownerFee); event AirDropToken( address indexed _daoAddress, address _token, address _to, uint256 _amount ); event MintGTToAddress( address indexed _daoAddress, uint256[] _amount, address[] _userAddress ); event UpdateGovernanceSettings( address indexed _daoAddress, uint256 _quorum, uint256 _threshold ); event UpdateDistributionAmount( address indexed _daoAddress, uint256 _amount ); event UpdatePricePerToken(address indexed _daoAddress, uint256 _amount); event SendCustomToken( address indexed _daoAddress, address _token, uint256[] _amount, address[] _addresses ); event NewUser( address indexed _daoAddress, address indexed _depositor, address indexed _depositTokenAddress, uint256 _depositTokenAmount, uint256 _timeStamp, uint256 _gtToken, bool _isAdmin ); //nft events event MintNft( address indexed _to, address indexed _daoAddress, string _tokenURI, uint256 _tokenId ); event UpdateMaxTokensPerUser( address indexed _daoAddress, uint256 _maxTokensPerUser ); event UpdateTotalSupplyOfToken( address indexed _daoAddress, uint256 _totalSupplyOfToken ); event UpdateTokenTransferability( address indexed _daoAddress, bool _isTokenTransferable ); event WhitelistAddress( address indexed _daoAddress, address indexed _address ); event RemoveWhitelistAddress( address indexed _daoAddress, address indexed _address ); event DeployRefundModule( address _refundModule, address _safe, address _dao, bytes32 _merkleRoot ); event RefundERC20DAO( address _dao, address _refundModule, address _transferToken, uint256 _burnAmount, uint256 _transferAmount ); event RefundERC721DAO( address _dao, address _refundModule, address _transferToken, uint256 _tokenId, uint256 _transferAmount ); event ChangeRefundModuleMerkleRoot( address indexed refundModule, address indexed daoAddress, bytes32 newMerkleRoot ); address public factoryAddress; function initialize( address _ERC20Implementation, address _ERC721Implementation, address _wrappedTokenAddress, address _factory ) external initializer { _grantRole(ADMIN, msg.sender); _grantRole(FACTORY, _factory); factoryAddress = _factory; emit FactoryCreated( _ERC20Implementation, _ERC721Implementation, _wrappedTokenAddress, _factory, address(this) ); } function changeFactory(address _newFactory) external onlyRole(ADMIN) { _revokeRole(FACTORY, factoryAddress); _grantRole(FACTORY, _newFactory); factoryAddress = _newFactory; } function allowActionContract( address _actionContract ) external onlyRole(ADMIN) { _grantRole(EMITTER, _actionContract); } function defineContracts( address ERC20ImplementationAddress, address ERC721ImplementationAddress, address emitterImplementationAddress ) external payable onlyRole(FACTORY) { emit DefineContracts( msg.sender, ERC20ImplementationAddress, ERC721ImplementationAddress, emitterImplementationAddress ); } function changeMerkleRoot( address factory, address daoAddress, bytes32 newMerkleRoot ) external payable onlyRole(FACTORY) { emit ChangeMerkleRoot(factory, daoAddress, newMerkleRoot); } function createDaoErc20( address _deployerAddress, address _proxy, string memory _name, string memory _symbol, uint256 _distributionAmount, uint256 _pricePerToken, uint256 _minDeposit, uint256 _maxDeposit, uint256 _ownerFee, uint256 _totalDays, uint256 _quorum, uint256 _threshold, address _depositTokenAddress, address _emitter, address _gnosisAddress, bool _isGovernanceActive, bool isTransferable, bool assetsStoredOnGnosis ) external payable onlyRole(FACTORY) { _grantRole(EMITTER, _proxy); _grantRole(EMITTER, msg.sender); emit CreateDaoErc20( _deployerAddress, _proxy, _name, _symbol, _distributionAmount, _pricePerToken, _minDeposit, _maxDeposit, _ownerFee, _totalDays, _quorum, _threshold, _depositTokenAddress, _emitter, _gnosisAddress, _isGovernanceActive, isTransferable, assetsStoredOnGnosis ); } function createDaoErc721( address _deployerAddress, address _proxy, string memory _name, string memory _symbol, string memory _tokenURI, uint256 _pricePerToken, uint256 _distributionAmount, uint256 _maxTokensPerUser, uint256 _ownerFee, uint256 _totalDays, uint256 _quorum, uint256 _threshold, address _depositTokenAddress, address _emitter, address _gnosisAddress, bool _isGovernanceActive, bool isTransferable, bool assetsStoredOnGnosis ) external payable onlyRole(FACTORY) { _grantRole(EMITTER, _proxy); _grantRole(EMITTER, msg.sender); emit CreateDaoErc721( _deployerAddress, _proxy, _name, _symbol, _tokenURI, _pricePerToken, _distributionAmount, _maxTokensPerUser, _ownerFee, _totalDays, _quorum, _threshold, _depositTokenAddress, _emitter, _gnosisAddress, _isGovernanceActive, isTransferable, assetsStoredOnGnosis ); } function deposited( address _daoAddress, address _depositor, address _depositTokenAddress, uint256 _amount, uint256 _timestamp, uint256 _ownerFee, uint256 _adminShare ) external onlyRole(EMITTER) { emit Deposited( _daoAddress, _depositor, _depositTokenAddress, _amount, _timestamp, _ownerFee, _adminShare ); } function newUser( address _daoAddress, address _depositor, address _depositTokenAddress, uint256 _depositTokenAmount, uint256 _timeStamp, uint256 _gtToken, bool _isAdmin ) external onlyRole(EMITTER) { emit NewUser( _daoAddress, _depositor, _depositTokenAddress, _depositTokenAmount, _timeStamp, _gtToken, _isAdmin ); } function startDeposit( address _proxy, uint256 _startTime, uint256 _closeTime ) external onlyRole(EMITTER) { emit StartDeposit(_proxy, _startTime, _closeTime); } function closeDeposit( address _proxy, uint256 _closeTime ) external onlyRole(EMITTER) { emit CloseDeposit(_proxy, _closeTime); } function updateMinMaxDeposit( address _proxy, uint256 _minDeposit, uint256 _maxDeposit ) external onlyRole(EMITTER) { emit UpdateMinMaxDeposit(_proxy, _minDeposit, _maxDeposit); } function updateOwnerFee( address _proxy, uint256 _ownerFee ) external onlyRole(EMITTER) { emit UpdateOwnerFee(_proxy, _ownerFee); } function airDropToken( address _proxy, address _token, address _to, uint256 _amount ) external onlyRole(EMITTER) { emit AirDropToken(_proxy, _token, _to, _amount); } function mintGTToAddress( address _proxy, uint256[] memory _amount, address[] memory _userAddress ) external onlyRole(EMITTER) { emit MintGTToAddress(_proxy, _amount, _userAddress); } function updateGovernanceSettings( address _proxy, uint256 _quorum, uint256 _threshold ) external onlyRole(EMITTER) { emit UpdateGovernanceSettings(_proxy, _quorum, _threshold); } function updateDistributionAmount( address _daoAddress, uint256 _distributionAmount ) external onlyRole(EMITTER) { emit UpdateDistributionAmount(_daoAddress, _distributionAmount); } function updatePricePerToken( address _daoAddress, uint256 _pricePerToken ) external onlyRole(EMITTER) { emit UpdatePricePerToken(_daoAddress, _pricePerToken); } function sendCustomToken( address _daoAddress, address _token, uint256[] memory _amount, address[] memory _addresses ) external onlyRole(EMITTER) { emit SendCustomToken(_daoAddress, _token, _amount, _addresses); } function mintNft( address _to, address _implementation, string memory _tokenURI, uint256 _tokenId ) external onlyRole(EMITTER) { emit MintNft(_to, _implementation, _tokenURI, _tokenId); } function updateMaxTokensPerUser( address _nftAddress, uint256 _maxTokensPerUser ) external onlyRole(EMITTER) { emit UpdateMaxTokensPerUser(_nftAddress, _maxTokensPerUser); } function updateTotalSupplyOfToken( address _nftAddress, uint256 _totalSupplyOfToken ) external onlyRole(EMITTER) { emit UpdateTotalSupplyOfToken(_nftAddress, _totalSupplyOfToken); } function updateTokenTransferability( address _nftAddress, bool _isTokenTransferable ) external onlyRole(EMITTER) { emit UpdateTokenTransferability(_nftAddress, _isTokenTransferable); } function whitelistAddress( address _nftAddress, address _address ) external onlyRole(EMITTER) { emit WhitelistAddress(_nftAddress, _address); } function removeWhitelistAddress( address _nftAddress, address _address ) external onlyRole(EMITTER) { emit RemoveWhitelistAddress(_nftAddress, _address); } function deployRefundModule( address _refundModule, address _safe, address _dao, bytes32 _merkleRoot ) external onlyRole(EMITTER) { _grantRole(EMITTER, _refundModule); emit DeployRefundModule(_refundModule, _safe, _dao, _merkleRoot); } function refundERC20DAO( address _dao, address _refundModule, address _transferToken, uint256 _burnAmount, uint256 _transferAmount ) external onlyRole(EMITTER) { emit RefundERC20DAO( _dao, _refundModule, _transferToken, _burnAmount, _transferAmount ); } function refundERC721DAO( address _dao, address _refundModule, address _transferToken, uint256 _tokenId, uint256 _transferAmount ) external onlyRole(EMITTER) { emit RefundERC721DAO( _dao, _refundModule, _transferToken, _tokenId, _transferAmount ); } function changeRefundModuleMerkleRoot( address _refundModule, address _daoAddress, bytes32 newMerkleRoot ) external onlyRole(EMITTER) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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(account), " 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 // 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/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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 5 }, "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":"_daoAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AirDropToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"factory","type":"address"},{"indexed":true,"internalType":"address","name":"daoAddress","type":"address"},{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"ChangeMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"refundModule","type":"address"},{"indexed":true,"internalType":"address","name":"daoAddress","type":"address"},{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"ChangeRefundModuleMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_proxy","type":"address"},{"indexed":false,"internalType":"uint256","name":"closeTime","type":"uint256"}],"name":"CloseDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"proxy","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"distributionAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minDeposit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxDeposit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ownerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_days","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quorum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"},{"indexed":false,"internalType":"address","name":"depositTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"emitter","type":"address"},{"indexed":false,"internalType":"address","name":"gnosisAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"isGovernanceActive","type":"bool"},{"indexed":false,"internalType":"bool","name":"isTransferable","type":"bool"},{"indexed":false,"internalType":"bool","name":"assetsStoredOnGnosis","type":"bool"}],"name":"CreateDaoErc20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"proxy","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"distributionAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTokensPerUser","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ownerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_days","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quorum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"},{"indexed":false,"internalType":"address","name":"depositTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"emitter","type":"address"},{"indexed":false,"internalType":"address","name":"gnosisAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"isGovernanceActive","type":"bool"},{"indexed":false,"internalType":"bool","name":"isTransferable","type":"bool"},{"indexed":false,"internalType":"bool","name":"assetsStoredOnGnosis","type":"bool"}],"name":"CreateDaoErc721","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"factory","type":"address"},{"indexed":false,"internalType":"address","name":"ERC20ImplementationAddress","type":"address"},{"indexed":false,"internalType":"address","name":"ERC721ImplementationAddress","type":"address"},{"indexed":false,"internalType":"address","name":"emitterImplementationAddress","type":"address"}],"name":"DefineContracts","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_refundModule","type":"address"},{"indexed":false,"internalType":"address","name":"_safe","type":"address"},{"indexed":false,"internalType":"address","name":"_dao","type":"address"},{"indexed":false,"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"DeployRefundModule","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_depositor","type":"address"},{"indexed":true,"internalType":"address","name":"_depositTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timeStamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_ownerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_adminShare","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_ERC20Implementation","type":"address"},{"indexed":true,"internalType":"address","name":"_ERC721Implementation","type":"address"},{"indexed":false,"internalType":"address","name":"_wrappedTokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_factory","type":"address"},{"indexed":false,"internalType":"address","name":"_emitter","type":"address"}],"name":"FactoryCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"indexed":false,"internalType":"address[]","name":"_userAddress","type":"address[]"}],"name":"MintGTToAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"string","name":"_tokenURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MintNft","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_depositor","type":"address"},{"indexed":true,"internalType":"address","name":"_depositTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_depositTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timeStamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_gtToken","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_isAdmin","type":"bool"}],"name":"NewUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_dao","type":"address"},{"indexed":false,"internalType":"address","name":"_refundModule","type":"address"},{"indexed":false,"internalType":"address","name":"_transferToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_burnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_transferAmount","type":"uint256"}],"name":"RefundERC20DAO","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_dao","type":"address"},{"indexed":false,"internalType":"address","name":"_refundModule","type":"address"},{"indexed":false,"internalType":"address","name":"_transferToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_transferAmount","type":"uint256"}],"name":"RefundERC721DAO","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"RemoveWhitelistAddress","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":"_daoAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"indexed":false,"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"SendCustomToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_proxy","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closeTime","type":"uint256"}],"name":"StartDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"UpdateDistributionAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quorum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"UpdateGovernanceSettings","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_maxTokensPerUser","type":"uint256"}],"name":"UpdateMaxTokensPerUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_proxy","type":"address"},{"indexed":false,"internalType":"uint256","name":"_minDeposit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_maxDeposit","type":"uint256"}],"name":"UpdateMinMaxDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_proxy","type":"address"},{"indexed":false,"internalType":"uint256","name":"_ownerFee","type":"uint256"}],"name":"UpdateOwnerFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"UpdatePricePerToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"_isTokenTransferable","type":"bool"}],"name":"UpdateTokenTransferability","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_totalSupplyOfToken","type":"uint256"}],"name":"UpdateTotalSupplyOfToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"WhitelistAddress","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMITTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airDropToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_actionContract","type":"address"}],"name":"allowActionContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFactory","type":"address"}],"name":"changeFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"daoAddress","type":"address"},{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"changeMerkleRoot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_refundModule","type":"address"},{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"changeRefundModuleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"uint256","name":"_closeTime","type":"uint256"}],"name":"closeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_deployerAddress","type":"address"},{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_distributionAmount","type":"uint256"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"},{"internalType":"uint256","name":"_minDeposit","type":"uint256"},{"internalType":"uint256","name":"_maxDeposit","type":"uint256"},{"internalType":"uint256","name":"_ownerFee","type":"uint256"},{"internalType":"uint256","name":"_totalDays","type":"uint256"},{"internalType":"uint256","name":"_quorum","type":"uint256"},{"internalType":"uint256","name":"_threshold","type":"uint256"},{"internalType":"address","name":"_depositTokenAddress","type":"address"},{"internalType":"address","name":"_emitter","type":"address"},{"internalType":"address","name":"_gnosisAddress","type":"address"},{"internalType":"bool","name":"_isGovernanceActive","type":"bool"},{"internalType":"bool","name":"isTransferable","type":"bool"},{"internalType":"bool","name":"assetsStoredOnGnosis","type":"bool"}],"name":"createDaoErc20","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_deployerAddress","type":"address"},{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"},{"internalType":"uint256","name":"_distributionAmount","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerUser","type":"uint256"},{"internalType":"uint256","name":"_ownerFee","type":"uint256"},{"internalType":"uint256","name":"_totalDays","type":"uint256"},{"internalType":"uint256","name":"_quorum","type":"uint256"},{"internalType":"uint256","name":"_threshold","type":"uint256"},{"internalType":"address","name":"_depositTokenAddress","type":"address"},{"internalType":"address","name":"_emitter","type":"address"},{"internalType":"address","name":"_gnosisAddress","type":"address"},{"internalType":"bool","name":"_isGovernanceActive","type":"bool"},{"internalType":"bool","name":"isTransferable","type":"bool"},{"internalType":"bool","name":"assetsStoredOnGnosis","type":"bool"}],"name":"createDaoErc721","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"ERC20ImplementationAddress","type":"address"},{"internalType":"address","name":"ERC721ImplementationAddress","type":"address"},{"internalType":"address","name":"emitterImplementationAddress","type":"address"}],"name":"defineContracts","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_refundModule","type":"address"},{"internalType":"address","name":"_safe","type":"address"},{"internalType":"address","name":"_dao","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"deployRefundModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"address","name":"_depositor","type":"address"},{"internalType":"address","name":"_depositTokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"uint256","name":"_ownerFee","type":"uint256"},{"internalType":"uint256","name":"_adminShare","type":"uint256"}],"name":"deposited","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factoryAddress","outputs":[{"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":[{"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":"_ERC20Implementation","type":"address"},{"internalType":"address","name":"_ERC721Implementation","type":"address"},{"internalType":"address","name":"_wrappedTokenAddress","type":"address"},{"internalType":"address","name":"_factory","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"address[]","name":"_userAddress","type":"address[]"}],"name":"mintGTToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"address","name":"_depositor","type":"address"},{"internalType":"address","name":"_depositTokenAddress","type":"address"},{"internalType":"uint256","name":"_depositTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_timeStamp","type":"uint256"},{"internalType":"uint256","name":"_gtToken","type":"uint256"},{"internalType":"bool","name":"_isAdmin","type":"bool"}],"name":"newUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dao","type":"address"},{"internalType":"address","name":"_refundModule","type":"address"},{"internalType":"address","name":"_transferToken","type":"address"},{"internalType":"uint256","name":"_burnAmount","type":"uint256"},{"internalType":"uint256","name":"_transferAmount","type":"uint256"}],"name":"refundERC20DAO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dao","type":"address"},{"internalType":"address","name":"_refundModule","type":"address"},{"internalType":"address","name":"_transferToken","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_transferAmount","type":"uint256"}],"name":"refundERC721DAO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelistAddress","outputs":[],"stateMutability":"nonpayable","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":"_daoAddress","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"sendCustomToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_closeTime","type":"uint256"}],"name":"startDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"uint256","name":"_distributionAmount","type":"uint256"}],"name":"updateDistributionAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"uint256","name":"_quorum","type":"uint256"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"updateGovernanceSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_maxTokensPerUser","type":"uint256"}],"name":"updateMaxTokensPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"uint256","name":"_minDeposit","type":"uint256"},{"internalType":"uint256","name":"_maxDeposit","type":"uint256"}],"name":"updateMinMaxDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"uint256","name":"_ownerFee","type":"uint256"}],"name":"updateOwnerFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"}],"name":"updatePricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"bool","name":"_isTokenTransferable","type":"bool"}],"name":"updateTokenTransferability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_totalSupplyOfToken","type":"uint256"}],"name":"updateTotalSupplyOfToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_address","type":"address"}],"name":"whitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60808060405234610016576120d1908161001c8239f35b600080fdfe60806040908082526004918236101561001757600080fd5b600091823560e01c90816301ffc9a7146114245750806307713fed146113f357806311c6e741146113405780631303dbd5146112ca5780632268213c1461126057806323850a6014611203578063248a9ca3146111d957806324f1aca41461117c5780632dd31000146111545780632ea024341461113a5780632f16806c146110b25780632f2ff15d1461101a5780632fef82f514610fbd57806336568abe14610f2c5780633c32122814610f0457806348e21cc114610eda5780634c8a552314610d605780635f75b5ef14610d0157806369393be314610c845780636bdf6e6c14610c535780636ff827b814610bfe5780637944ad5314610ba15780637c28875f14610b095780637cdb30bd14610a6a5780638189f0dc146108cd578063903369bb1461084057806391d14854146107f9578063966dae0e146107d1578063a217fddf146107b7578063a2ee8583146106f5578063ad1d31ae14610696578063b9d39705146105e0578063ca9b5e3914610583578063d153caae14610550578063d1d3d4f1146104f3578063d547741f146104b0578063e1e1973314610460578063e89e1467146103e35763f8c8765e146101d257600080fd5b346103df5760803660031901126103df576101eb611478565b926101f4611493565b936101fd6114a9565b6001600160a01b0395606435878116939291908481036103db57875460ff8160081c1615968780986103ce575b80156103b7575b1561035d575098807fcc5133cf1aa8545141d317638c218ba2f4b3274456267acdd6bda9322e43ec1c936102b18a9b9c948d60019c968c60ff199e8f831617835561034b575b5060008051602061205c8339815191529081815260209d8e60018152898320338452815260ff8a8420541615610311575b50505050611cbf565b600280546001600160a01b0319168917905583519582168652308a87015216941692a46102dc575051f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989061ff00198454168455825160018152a151f35b8383526001815289832090338452526001898320918254161790553391600080516020611f7c83398151915233928a51a4388e818e6102a8565b61ffff19166101011790558d38610277565b60849060208a519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156102315750600160ff831614610231565b50600160ff83161061022a565b8780fd5b5080fd5b50346103df577fa06aad8d90c363bdf2acea591021b6e604b335d9107d6fb201d7f38140c2f46161045a61041636611720565b91610422959395611765565b87516001600160a01b0395861681529585166020870152909316604085015260608401929092526080830191909152819060a0820190565b0390a151f35b5060207fd22f2931dd94295be3155cedb74573e6a5b7b55da5d7392d087d1e7badcc999a61048d3661155e565b92919390610499611a65565b85519384526001600160a01b03908116941692a351f35b5082346104ef57816003193601126104ef576104ec90356104cf611493565b9080855260016020526104e760018587200154611b7a565b611d81565b51f35b8280fd5b50346103df57806003193601126103df5761050c611478565b610514611765565b815160243581526001600160a01b03909116907f9ac7f329c8fdc54b591c6b107c27036e120f90ab6f7e7054d5ad8e1fb60dfb5790602090a251f35b50346103df577fc127e571d683cf5ef8f5cc2f2b2be34f51ba6b55280fb37f8cfd049c1e20456d61045a61041636611720565b50346103df57806003193601126103df5761059c611478565b6105a4611765565b815160243581526001600160a01b03909116907fbb8c0285b58ff072c41a21193878e6a2df31dc964fb96dc87f7810be0e68bea790602090a251f35b5082346104ef5760603660031901126104ef576105fb611478565b906001600160401b036024358181116106925761061b9036908401611654565b6044359182116106925761068c6106597f41c54b44e7a188f57fc9fec7bc5a72b1d6d67394b4500f70b0d503d612bc00c994610673943691016116b2565b94610662611765565b865193849388855288850190611f0a565b83810360208501526001600160a01b0390911695611f3e565b0390a251f35b8580fd5b50346103df57806003193601126103df576106af611478565b6106b7611493565b916106c0611765565b51916001600160a01b0390811691167f27271d21e479803300d1dc86efecf818294c1fe9dd06247ebfca01ec6f04a3c28484a3f35b5082346104ef5760803660031901126104ef57610710611478565b610718611493565b916001600160401b03906044358281116107b3576107399036908301611654565b906064359283116107b3577f66c26647169ff2fbdd3ea348856804b5a9a502c0dbaa2f5ee011661f5806ba5c9361077961068c926107a4953691016116b2565b95610782611765565b875194859460018060a01b038093168652606060208701526060860190611f0a565b91848303898601521695611f3e565b8680fd5b50346103df57816003193601126103df5751908152602090f35b50346103df57816003193601126103df5760025490516001600160a01b039091168152602090f35b5082346104ef57816003193601126104ef578160209360ff9261081a611493565b90358252600186528282206001600160a01b039091168252855220549151911615158152f35b50346103df5760e03660031901126103df5761085a611478565b610862611493565b9061086b6114a9565b610873611765565b83516064358152608435602082015260a4358186015260c43560608201526001600160a01b0391821693821692909116907f5d2a5415408fbcc4320e8e235c02da1c6c18b97ff78193cca359e4cb1d6a8d3290608090a451f35b50826102403660031901126104ef576108e4611478565b906108ed611493565b906001600160401b03906044358281116107b35761090e90369083016115e7565b6064358381116103db5761092590369084016115e7565b6084359384116103db576109606109cb937f220fcad8f85f488bafbabfcb19ef0843d0e55228650409b9a1badb4e4d4be115953691016115e7565b906109696114bf565b956109726114d6565b9161097b6114ed565b9361098461152e565b6109e68c61099061153e565b936109d961099c61154e565b966109a5611a65565b6109ae89611d3c565b6109b733611d3c565b83519c8d9c8d610200908181520190611c9a565b8c810360208e015290611c9a565b918a8303908b0152611c9a565b9960a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b5082346104ef5760803660031901126104ef57610a85611478565b90610a8e611493565b90604435906001600160401b03821161069257610ad2610aeb917f8bbd4ca29f6034674790d0975010f2d4b52ca7470c5840143ad5f1ea3dcb57cf933691016115e7565b610ada611765565b855191829187835287830190611c9a565b60643560208301526001600160a01b0394851695909416930390a351f35b50346103df5760e03660031901126103df57610b23611478565b610b2b611493565b90610b346114a9565b60c435908115158092036106925760807f74eeacf5d55e73c248a54e79f33a00303cef41aa31dafc91fbd774108590c4c591610b6e611765565b86516064358152608435602082015260a4358189015260608101949094526001600160a01b03908116958116941692a451f35b50346103df57806003193601126103df57610bba611478565b610bc2611765565b815160243581526001600160a01b03909116907f6e4abca5d2ebb3e14f8f2b0480dccb2261bfe5ce33110bfec9f3968b1d2f091790602090a251f35b50346103df57807fd762abc824e3fb207857fec10493cd750150e17dc806382156ee60fa9861939b610c2f36611504565b610c3b94929194611765565b825194855260208501526001600160a01b031692a251f35b50346103df57807ff6a745366306c106792812403faa5bcc987c70666cd1b23a257c012bacbc2fab610c2f36611504565b50346103df5760803660031901126103df57610c9e611478565b7fdf8d3038f367603dc5412a35b23395b8324bb9fad9a0d75fc40c4562110a761a6060610cc9611493565b92610cd26114a9565b90610cdb611765565b85516001600160a01b03958616815291851660208301526064358287015290931692a251f35b50346103df57806003193601126103df57610d1a611478565b610d22611493565b91610d2b611765565b51916001600160a01b0390811691167f33eaee542d5ebc2e26e8c63bf79e709a63784f13b73ad119e627d1e862e3730d8484a3f35b50826102403660031901126104ef57610d77611478565b90610d80611493565b906001600160401b03906044358281116107b357610da190369083016115e7565b6064359283116107b357610ddc610e41927fef0116c8670f5066bfb73ba18e772e569980029e2174f326c04013d4bc3e1a0f943691016115e7565b610de46114bf565b94610ded6114d6565b90610df66114ed565b92610dff61152e565b610e0761153e565b90610e4f610e1361154e565b93610e1c611a65565b610e2586611d3c565b610e2e33611d3c565b8d51998a99610200808c528b0190611c9a565b9089820360208b0152611c9a565b996084358d89015260a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b50346103df5760203660031901126103df576104ec610ef7611478565b610eff61193e565b611d3c565b50346103df57816003193601126103df5760209051600080516020611fbc8339815191528152f35b5082346104ef57816003193601126104ef57610f46611493565b90336001600160a01b03831603610f6257906104ec9135611d81565b608490602084519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b50346103df57806003193601126103df57610fd6611478565b610fde611765565b815160243581526001600160a01b03909116907f193bb8b066bc48cc248e9ac4610fa7db77cb43f1751240ed2ae213e8eaf2e63090602090a251f35b5082346104ef57816003193601126104ef5735611035611493565b818452600160205261104c60018486200154611b7a565b818452600160209081528385206001600160a01b039092168086529190528284205460ff161561107b57505051f35b8184526001602052828420818552602052828420600160ff198254161790553391600080516020611f7c833981519152858551a451f35b50346103df5760803660031901126103df577fc8e5c9e9d69b73b553e0ab91130603709bf080bca64e4f194463e90c33b0738460806110ef611478565b6110f7611493565b6110ff6114a9565b611107611765565b61111083611d3c565b85516001600160a01b0393841681529183166020830152909116818501526064356060820152a151f35b50346103df576111493661155e565b5050506104ec611765565b50346103df57816003193601126103df576020905160008051602061203c8339815191528152f35b50346103df57806003193601126103df57611195611478565b61119d611765565b815160243581526001600160a01b03909116907f5a0cfc177292d5507f9d349b537a04e177bece6f3fd42b42a0de58b968bac2a490602090a251f35b5082346104ef5760203660031901126104ef57816020936001923581528285522001549051908152f35b50346103df57806003193601126103df5761121c611478565b611224611765565b815160243581526001600160a01b03909116907f8d5f0841716a3b1ce342cfbc73afec999d3b0e2073aad97929446cd97ec3a6d590602090a251f35b50346103df57806003193601126103df57611279611478565b602435908115158092036112c65760207f4e72ed0760c6626b6acaf8f79bc32c83df776a2caf817629199c3d368d1d3950916112b3611765565b84519384526001600160a01b031692a251f35b8380fd5b5060603660031901126103df576112df611478565b6112e7611493565b6112ef6114a9565b6112f7611a65565b83516001600160a01b03938416815291831660208301529091168183015233907f260482593f66c4b7d060db907860b9f0c3591ef2c3f94d9076d7727d353a8f1c90606090a251f35b50346103df5760203660031901126103df5761135a611478565b61136261193e565b60018060a01b0390816002541660008051602061203c83398151915290818652600160205284862081875260205260ff85872054166113bb575b50506113a781611cbf565b1660018060a01b0319600254161760025551f35b818652600160205284862081875260205284862060ff198154169055339160008051602061207c833981519152878751a4848061139c565b50346103df57807f4d8c61012a48664a6ca6e91518f46ca7a3cefddce00d623448b30d2aed6067a9610c2f36611504565b839085346104ef5760203660031901126104ef573563ffffffff60e01b81168091036104ef5760209250637965db0b60e01b8114908115611467575b5015158152f35b6301ffc9a760e01b14905083611460565b600435906001600160a01b038216820361148e57565b600080fd5b602435906001600160a01b038216820361148e57565b604435906001600160a01b038216820361148e57565b61018435906001600160a01b038216820361148e57565b6101a435906001600160a01b038216820361148e57565b6101c435906001600160a01b038216820361148e57565b606090600319011261148e576004356001600160a01b038116810361148e57906024359060443590565b6101e43590811515820361148e57565b6102043590811515820361148e57565b6102243590811515820361148e57565b606090600319011261148e576001600160a01b0390600435828116810361148e5791602435908116810361148e579060443590565b608081019081106001600160401b038211176115ae57604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b038211908210176115ae57604052565b81601f8201121561148e578035906001600160401b0382116115ae576040519261161b601f8401601f1916602001856115c4565b8284526020838301011161148e57816000926020809301838601378301015290565b6001600160401b0381116115ae5760051b60200190565b81601f8201121561148e5780359161166b8361163d565b9261167960405194856115c4565b808452602092838086019260051b82010192831161148e578301905b8282106116a3575050505090565b81358152908301908301611695565b81601f8201121561148e578035916116c98361163d565b926116d760405194856115c4565b808452602092838086019260051b82010192831161148e578301905b828210611701575050505090565b81356001600160a01b038116810361148e5781529083019083016116f3565b60a090600319011261148e576001600160a01b03600435818116810361148e5791602435828116810361148e5791604435908116810361148e57906064359060843590565b336000908152600080516020611fdc83398151915260209081526040808320549092600080516020611fbc8339815191529160019060ff16156117a9575050505050565b6117b233611e0e565b928551916117bf83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b8183116118bc5750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611c77565b010360288101875201856115c4565b5192839262461bcd60e51b845260048401526024830190611c9a565b0390fd5b60648486519062461bcd60e51b82528060048301526024820152600080516020611f9c8339815191526044820152fd5b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a6118ec8587611de7565b5360041c928015611902576000190191906117ec565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fd52cfefb3f6fd7766669e08a03d2ceb3243383019e3a5fed2a519df30ee55b926020908152604080832054909260008051602061205c8339815191529160019060ff1615611994575050505050565b61199d33611e0e565b928551916119aa83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b818311611a1f5750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a611a4f8587611de7565b5360041c928015611902576000190191906119d7565b33600090815260008051602061201c8339815191526020908152604080832054909260008051602061203c8339815191529160019060ff1615611aa9575050505050565b611ab233611e0e565b92855191611abf83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b818311611b345750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a611b648587611de7565b5360041c92801561190257600019019190611aec565b6000818152600191602091838352604093848220338352845260ff858320541615611ba6575050505050565b611baf33611e0e565b92855191611bbc83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b818311611c315750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a611c618587611de7565b5360041c92801561190257600019019190611be9565b60005b838110611c8a5750506000910152565b8181015183820152602001611c7a565b90602091611cb381518092818552858086019101611c77565b601f01601f1916010190565b6001600160a01b0316600081815260008051602061201c833981519152602052604081205490919060008051602061203c8339815191529060ff1615611d0457505050565b80835260016020526040832082845260205260408320600160ff19825416179055600080516020611f7c8339815191523393604051a4565b6001600160a01b03166000818152600080516020611fdc8339815191526020526040812054909190600080516020611fbc8339815191529060ff1615611d0457505050565b906000918083526001602052604083209160018060a01b03169182845260205260ff604084205416611db257505050565b8083526001602052604083208284526020526040832060ff19815416905560008051602061207c8339815191523393604051a4565b908151811015611df8570160200190565b634e487b7160e01b600052603260045260246000fd5b60405190606082016001600160401b038111838210176115ae57604052602a8252602082016040368237825115611df857603090538151600190811015611df857607860218401536029905b808211611e9c575050611e6a5790565b606460405162461bcd60e51b81526020600482015260206024820152600080516020611f9c8339815191526044820152fd5b9091600f81166010811015611ef5576f181899199a1a9b1b9c1cb0b131b232b360811b901a611ecb8486611de7565b5360041c918015611ee0576000190190611e5a565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b90815180825260208080930193019160005b828110611f2a575050505090565b835185529381019392810192600101611f1c565b90815180825260208080930193019160005b828110611f5e575050505090565b83516001600160a01b031685529381019392810192600101611f5056fe2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d537472696e67733a20686578206c656e67746820696e73756666696369656e74adc41ac76b15f32aeb610c830777f0ff36390d5a0b9209eeaf8f214a37f5eca4b608af87228f9c6e6100967ebbefe4d5a50d0705fa8ed3d004042db9d4725c16416363657373436f6e74726f6c3a206163636f756e74200000000000000000002d128c586e3dc9569ffe93ea54b9d7af160489c642284bd8fcf815de411c9ddb547b500e425d72fd0723933cceefc203cef652b4736fd04250c3369b3e1a0a73df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171ba26469706673582212203ad24e486aea71114988683907d381bc7d018d3ba7c5f7690d9441cbcc1c4cea64736f6c63430008100033
Deployed Bytecode
0x60806040908082526004918236101561001757600080fd5b600091823560e01c90816301ffc9a7146114245750806307713fed146113f357806311c6e741146113405780631303dbd5146112ca5780632268213c1461126057806323850a6014611203578063248a9ca3146111d957806324f1aca41461117c5780632dd31000146111545780632ea024341461113a5780632f16806c146110b25780632f2ff15d1461101a5780632fef82f514610fbd57806336568abe14610f2c5780633c32122814610f0457806348e21cc114610eda5780634c8a552314610d605780635f75b5ef14610d0157806369393be314610c845780636bdf6e6c14610c535780636ff827b814610bfe5780637944ad5314610ba15780637c28875f14610b095780637cdb30bd14610a6a5780638189f0dc146108cd578063903369bb1461084057806391d14854146107f9578063966dae0e146107d1578063a217fddf146107b7578063a2ee8583146106f5578063ad1d31ae14610696578063b9d39705146105e0578063ca9b5e3914610583578063d153caae14610550578063d1d3d4f1146104f3578063d547741f146104b0578063e1e1973314610460578063e89e1467146103e35763f8c8765e146101d257600080fd5b346103df5760803660031901126103df576101eb611478565b926101f4611493565b936101fd6114a9565b6001600160a01b0395606435878116939291908481036103db57875460ff8160081c1615968780986103ce575b80156103b7575b1561035d575098807fcc5133cf1aa8545141d317638c218ba2f4b3274456267acdd6bda9322e43ec1c936102b18a9b9c948d60019c968c60ff199e8f831617835561034b575b5060008051602061205c8339815191529081815260209d8e60018152898320338452815260ff8a8420541615610311575b50505050611cbf565b600280546001600160a01b0319168917905583519582168652308a87015216941692a46102dc575051f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989061ff00198454168455825160018152a151f35b8383526001815289832090338452526001898320918254161790553391600080516020611f7c83398151915233928a51a4388e818e6102a8565b61ffff19166101011790558d38610277565b60849060208a519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156102315750600160ff831614610231565b50600160ff83161061022a565b8780fd5b5080fd5b50346103df577fa06aad8d90c363bdf2acea591021b6e604b335d9107d6fb201d7f38140c2f46161045a61041636611720565b91610422959395611765565b87516001600160a01b0395861681529585166020870152909316604085015260608401929092526080830191909152819060a0820190565b0390a151f35b5060207fd22f2931dd94295be3155cedb74573e6a5b7b55da5d7392d087d1e7badcc999a61048d3661155e565b92919390610499611a65565b85519384526001600160a01b03908116941692a351f35b5082346104ef57816003193601126104ef576104ec90356104cf611493565b9080855260016020526104e760018587200154611b7a565b611d81565b51f35b8280fd5b50346103df57806003193601126103df5761050c611478565b610514611765565b815160243581526001600160a01b03909116907f9ac7f329c8fdc54b591c6b107c27036e120f90ab6f7e7054d5ad8e1fb60dfb5790602090a251f35b50346103df577fc127e571d683cf5ef8f5cc2f2b2be34f51ba6b55280fb37f8cfd049c1e20456d61045a61041636611720565b50346103df57806003193601126103df5761059c611478565b6105a4611765565b815160243581526001600160a01b03909116907fbb8c0285b58ff072c41a21193878e6a2df31dc964fb96dc87f7810be0e68bea790602090a251f35b5082346104ef5760603660031901126104ef576105fb611478565b906001600160401b036024358181116106925761061b9036908401611654565b6044359182116106925761068c6106597f41c54b44e7a188f57fc9fec7bc5a72b1d6d67394b4500f70b0d503d612bc00c994610673943691016116b2565b94610662611765565b865193849388855288850190611f0a565b83810360208501526001600160a01b0390911695611f3e565b0390a251f35b8580fd5b50346103df57806003193601126103df576106af611478565b6106b7611493565b916106c0611765565b51916001600160a01b0390811691167f27271d21e479803300d1dc86efecf818294c1fe9dd06247ebfca01ec6f04a3c28484a3f35b5082346104ef5760803660031901126104ef57610710611478565b610718611493565b916001600160401b03906044358281116107b3576107399036908301611654565b906064359283116107b3577f66c26647169ff2fbdd3ea348856804b5a9a502c0dbaa2f5ee011661f5806ba5c9361077961068c926107a4953691016116b2565b95610782611765565b875194859460018060a01b038093168652606060208701526060860190611f0a565b91848303898601521695611f3e565b8680fd5b50346103df57816003193601126103df5751908152602090f35b50346103df57816003193601126103df5760025490516001600160a01b039091168152602090f35b5082346104ef57816003193601126104ef578160209360ff9261081a611493565b90358252600186528282206001600160a01b039091168252855220549151911615158152f35b50346103df5760e03660031901126103df5761085a611478565b610862611493565b9061086b6114a9565b610873611765565b83516064358152608435602082015260a4358186015260c43560608201526001600160a01b0391821693821692909116907f5d2a5415408fbcc4320e8e235c02da1c6c18b97ff78193cca359e4cb1d6a8d3290608090a451f35b50826102403660031901126104ef576108e4611478565b906108ed611493565b906001600160401b03906044358281116107b35761090e90369083016115e7565b6064358381116103db5761092590369084016115e7565b6084359384116103db576109606109cb937f220fcad8f85f488bafbabfcb19ef0843d0e55228650409b9a1badb4e4d4be115953691016115e7565b906109696114bf565b956109726114d6565b9161097b6114ed565b9361098461152e565b6109e68c61099061153e565b936109d961099c61154e565b966109a5611a65565b6109ae89611d3c565b6109b733611d3c565b83519c8d9c8d610200908181520190611c9a565b8c810360208e015290611c9a565b918a8303908b0152611c9a565b9960a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b5082346104ef5760803660031901126104ef57610a85611478565b90610a8e611493565b90604435906001600160401b03821161069257610ad2610aeb917f8bbd4ca29f6034674790d0975010f2d4b52ca7470c5840143ad5f1ea3dcb57cf933691016115e7565b610ada611765565b855191829187835287830190611c9a565b60643560208301526001600160a01b0394851695909416930390a351f35b50346103df5760e03660031901126103df57610b23611478565b610b2b611493565b90610b346114a9565b60c435908115158092036106925760807f74eeacf5d55e73c248a54e79f33a00303cef41aa31dafc91fbd774108590c4c591610b6e611765565b86516064358152608435602082015260a4358189015260608101949094526001600160a01b03908116958116941692a451f35b50346103df57806003193601126103df57610bba611478565b610bc2611765565b815160243581526001600160a01b03909116907f6e4abca5d2ebb3e14f8f2b0480dccb2261bfe5ce33110bfec9f3968b1d2f091790602090a251f35b50346103df57807fd762abc824e3fb207857fec10493cd750150e17dc806382156ee60fa9861939b610c2f36611504565b610c3b94929194611765565b825194855260208501526001600160a01b031692a251f35b50346103df57807ff6a745366306c106792812403faa5bcc987c70666cd1b23a257c012bacbc2fab610c2f36611504565b50346103df5760803660031901126103df57610c9e611478565b7fdf8d3038f367603dc5412a35b23395b8324bb9fad9a0d75fc40c4562110a761a6060610cc9611493565b92610cd26114a9565b90610cdb611765565b85516001600160a01b03958616815291851660208301526064358287015290931692a251f35b50346103df57806003193601126103df57610d1a611478565b610d22611493565b91610d2b611765565b51916001600160a01b0390811691167f33eaee542d5ebc2e26e8c63bf79e709a63784f13b73ad119e627d1e862e3730d8484a3f35b50826102403660031901126104ef57610d77611478565b90610d80611493565b906001600160401b03906044358281116107b357610da190369083016115e7565b6064359283116107b357610ddc610e41927fef0116c8670f5066bfb73ba18e772e569980029e2174f326c04013d4bc3e1a0f943691016115e7565b610de46114bf565b94610ded6114d6565b90610df66114ed565b92610dff61152e565b610e0761153e565b90610e4f610e1361154e565b93610e1c611a65565b610e2586611d3c565b610e2e33611d3c565b8d51998a99610200808c528b0190611c9a565b9089820360208b0152611c9a565b996084358d89015260a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b50346103df5760203660031901126103df576104ec610ef7611478565b610eff61193e565b611d3c565b50346103df57816003193601126103df5760209051600080516020611fbc8339815191528152f35b5082346104ef57816003193601126104ef57610f46611493565b90336001600160a01b03831603610f6257906104ec9135611d81565b608490602084519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b50346103df57806003193601126103df57610fd6611478565b610fde611765565b815160243581526001600160a01b03909116907f193bb8b066bc48cc248e9ac4610fa7db77cb43f1751240ed2ae213e8eaf2e63090602090a251f35b5082346104ef57816003193601126104ef5735611035611493565b818452600160205261104c60018486200154611b7a565b818452600160209081528385206001600160a01b039092168086529190528284205460ff161561107b57505051f35b8184526001602052828420818552602052828420600160ff198254161790553391600080516020611f7c833981519152858551a451f35b50346103df5760803660031901126103df577fc8e5c9e9d69b73b553e0ab91130603709bf080bca64e4f194463e90c33b0738460806110ef611478565b6110f7611493565b6110ff6114a9565b611107611765565b61111083611d3c565b85516001600160a01b0393841681529183166020830152909116818501526064356060820152a151f35b50346103df576111493661155e565b5050506104ec611765565b50346103df57816003193601126103df576020905160008051602061203c8339815191528152f35b50346103df57806003193601126103df57611195611478565b61119d611765565b815160243581526001600160a01b03909116907f5a0cfc177292d5507f9d349b537a04e177bece6f3fd42b42a0de58b968bac2a490602090a251f35b5082346104ef5760203660031901126104ef57816020936001923581528285522001549051908152f35b50346103df57806003193601126103df5761121c611478565b611224611765565b815160243581526001600160a01b03909116907f8d5f0841716a3b1ce342cfbc73afec999d3b0e2073aad97929446cd97ec3a6d590602090a251f35b50346103df57806003193601126103df57611279611478565b602435908115158092036112c65760207f4e72ed0760c6626b6acaf8f79bc32c83df776a2caf817629199c3d368d1d3950916112b3611765565b84519384526001600160a01b031692a251f35b8380fd5b5060603660031901126103df576112df611478565b6112e7611493565b6112ef6114a9565b6112f7611a65565b83516001600160a01b03938416815291831660208301529091168183015233907f260482593f66c4b7d060db907860b9f0c3591ef2c3f94d9076d7727d353a8f1c90606090a251f35b50346103df5760203660031901126103df5761135a611478565b61136261193e565b60018060a01b0390816002541660008051602061203c83398151915290818652600160205284862081875260205260ff85872054166113bb575b50506113a781611cbf565b1660018060a01b0319600254161760025551f35b818652600160205284862081875260205284862060ff198154169055339160008051602061207c833981519152878751a4848061139c565b50346103df57807f4d8c61012a48664a6ca6e91518f46ca7a3cefddce00d623448b30d2aed6067a9610c2f36611504565b839085346104ef5760203660031901126104ef573563ffffffff60e01b81168091036104ef5760209250637965db0b60e01b8114908115611467575b5015158152f35b6301ffc9a760e01b14905083611460565b600435906001600160a01b038216820361148e57565b600080fd5b602435906001600160a01b038216820361148e57565b604435906001600160a01b038216820361148e57565b61018435906001600160a01b038216820361148e57565b6101a435906001600160a01b038216820361148e57565b6101c435906001600160a01b038216820361148e57565b606090600319011261148e576004356001600160a01b038116810361148e57906024359060443590565b6101e43590811515820361148e57565b6102043590811515820361148e57565b6102243590811515820361148e57565b606090600319011261148e576001600160a01b0390600435828116810361148e5791602435908116810361148e579060443590565b608081019081106001600160401b038211176115ae57604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b038211908210176115ae57604052565b81601f8201121561148e578035906001600160401b0382116115ae576040519261161b601f8401601f1916602001856115c4565b8284526020838301011161148e57816000926020809301838601378301015290565b6001600160401b0381116115ae5760051b60200190565b81601f8201121561148e5780359161166b8361163d565b9261167960405194856115c4565b808452602092838086019260051b82010192831161148e578301905b8282106116a3575050505090565b81358152908301908301611695565b81601f8201121561148e578035916116c98361163d565b926116d760405194856115c4565b808452602092838086019260051b82010192831161148e578301905b828210611701575050505090565b81356001600160a01b038116810361148e5781529083019083016116f3565b60a090600319011261148e576001600160a01b03600435818116810361148e5791602435828116810361148e5791604435908116810361148e57906064359060843590565b336000908152600080516020611fdc83398151915260209081526040808320549092600080516020611fbc8339815191529160019060ff16156117a9575050505050565b6117b233611e0e565b928551916117bf83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b8183116118bc5750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611c77565b010360288101875201856115c4565b5192839262461bcd60e51b845260048401526024830190611c9a565b0390fd5b60648486519062461bcd60e51b82528060048301526024820152600080516020611f9c8339815191526044820152fd5b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a6118ec8587611de7565b5360041c928015611902576000190191906117ec565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fd52cfefb3f6fd7766669e08a03d2ceb3243383019e3a5fed2a519df30ee55b926020908152604080832054909260008051602061205c8339815191529160019060ff1615611994575050505050565b61199d33611e0e565b928551916119aa83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b818311611a1f5750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a611a4f8587611de7565b5360041c928015611902576000190191906119d7565b33600090815260008051602061201c8339815191526020908152604080832054909260008051602061203c8339815191529160019060ff1615611aa9575050505050565b611ab233611e0e565b92855191611abf83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b818311611b345750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a611b648587611de7565b5360041c92801561190257600019019190611aec565b6000818152600191602091838352604093848220338352845260ff858320541615611ba6575050505050565b611baf33611e0e565b92855191611bbc83611593565b6042835285830193606036863783511561192a5760308553835182101561192a5790607860218501536041915b818311611c315750505061188c57604861188893869361186c9361185d9851988993600080516020611ffc8339815191528a860152611834815180928c603789019101611c77565b909192600f81166010811015611916576f181899199a1a9b1b9c1cb0b131b232b360811b901a611c618587611de7565b5360041c92801561190257600019019190611be9565b60005b838110611c8a5750506000910152565b8181015183820152602001611c7a565b90602091611cb381518092818552858086019101611c77565b601f01601f1916010190565b6001600160a01b0316600081815260008051602061201c833981519152602052604081205490919060008051602061203c8339815191529060ff1615611d0457505050565b80835260016020526040832082845260205260408320600160ff19825416179055600080516020611f7c8339815191523393604051a4565b6001600160a01b03166000818152600080516020611fdc8339815191526020526040812054909190600080516020611fbc8339815191529060ff1615611d0457505050565b906000918083526001602052604083209160018060a01b03169182845260205260ff604084205416611db257505050565b8083526001602052604083208284526020526040832060ff19815416905560008051602061207c8339815191523393604051a4565b908151811015611df8570160200190565b634e487b7160e01b600052603260045260246000fd5b60405190606082016001600160401b038111838210176115ae57604052602a8252602082016040368237825115611df857603090538151600190811015611df857607860218401536029905b808211611e9c575050611e6a5790565b606460405162461bcd60e51b81526020600482015260206024820152600080516020611f9c8339815191526044820152fd5b9091600f81166010811015611ef5576f181899199a1a9b1b9c1cb0b131b232b360811b901a611ecb8486611de7565b5360041c918015611ee0576000190190611e5a565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b90815180825260208080930193019160005b828110611f2a575050505090565b835185529381019392810192600101611f1c565b90815180825260208080930193019160005b828110611f5e575050505090565b83516001600160a01b031685529381019392810192600101611f5056fe2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d537472696e67733a20686578206c656e67746820696e73756666696369656e74adc41ac76b15f32aeb610c830777f0ff36390d5a0b9209eeaf8f214a37f5eca4b608af87228f9c6e6100967ebbefe4d5a50d0705fa8ed3d004042db9d4725c16416363657373436f6e74726f6c3a206163636f756e74200000000000000000002d128c586e3dc9569ffe93ea54b9d7af160489c642284bd8fcf815de411c9ddb547b500e425d72fd0723933cceefc203cef652b4736fd04250c3369b3e1a0a73df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171ba26469706673582212203ad24e486aea71114988683907d381bc7d018d3ba7c5f7690d9441cbcc1c4cea64736f6c63430008100033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.