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 ); event ChangedSigners( address indexed _daoAddress, address indexed _signer, bool indexed _isAdded ); 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) {} function changedSigners( address _dao, address _signer, bool _isAdded ) external onlyRole(EMITTER) { emit ChangedSigners(_dao, _signer, _isAdded); } }
// 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":"_daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_signer","type":"address"},{"indexed":true,"internalType":"bool","name":"_isAdded","type":"bool"}],"name":"ChangedSigners","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":"_dao","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bool","name":"_isAdded","type":"bool"}],"name":"changedSigners","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
608080604052346100165761214f908161001c8239f35b600080fdfe60806040908082526004918236101561001757600080fd5b600091823560e01c90816301ffc9a7146114a25750806307713fed1461147157806311c6e741146113be5780631303dbd5146113485780632268213c146112de57806323850a6014611281578063248a9ca31461125757806324f1aca4146111fa5780632dd31000146111d25780632ea02434146111b85780632f16806c146111305780632f2ff15d146110985780632fef82f51461103b57806336568abe14610faa5780633c32122814610f8257806348e21cc114610f585780634c8a552314610dde5780635f75b5ef14610d7f57806369393be314610d025780636bdf6e6c14610cd15780636ff827b814610c7c5780637944ad5314610c1f5780637c28875f14610b875780637cdb30bd14610ae85780638189f0dc1461094b578063831fb55e146108d8578063903369bb1461084b57806391d1485414610804578063966dae0e146107dc578063a217fddf146107c2578063a2ee858314610700578063ad1d31ae146106a1578063b9d39705146105eb578063ca9b5e391461058e578063d153caae1461055b578063d1d3d4f1146104fe578063d547741f146104bb578063e1e197331461046b578063e89e1467146103ee5763f8c8765e146101dd57600080fd5b346103ea5760803660031901126103ea576101f66114f6565b926101ff611511565b93610208611527565b6001600160a01b0395606435878116939291908481036103e657875460ff8160081c1615968780986103d9575b80156103c2575b15610368575098807fcc5133cf1aa8545141d317638c218ba2f4b3274456267acdd6bda9322e43ec1c936102bc8a9b9c948d60019c968c60ff199e8f8316178355610356575b506000805160206120da8339815191529081815260209d8e60018152898320338452815260ff8a842054161561031c575b50505050611d3d565b600280546001600160a01b0319168917905583519582168652308a87015216941692a46102e7575051f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989061ff00198454168455825160018152a151f35b8383526001815289832090338452526001898320918254161790553391600080516020611ffa83398151915233928a51a4388e818e6102b3565b61ffff19166101011790558d38610282565b60849060208a519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b15801561023c5750600160ff83161461023c565b50600160ff831610610235565b8780fd5b5080fd5b50346103ea577fa06aad8d90c363bdf2acea591021b6e604b335d9107d6fb201d7f38140c2f4616104656104213661179e565b9161042d9593956117e3565b87516001600160a01b0395861681529585166020870152909316604085015260608401929092526080830191909152819060a0820190565b0390a151f35b5060207fd22f2931dd94295be3155cedb74573e6a5b7b55da5d7392d087d1e7badcc999a610498366115dc565b929193906104a4611ae3565b85519384526001600160a01b03908116941692a351f35b5082346104fa57816003193601126104fa576104f790356104da611511565b9080855260016020526104f260018587200154611bf8565b611dff565b51f35b8280fd5b50346103ea57806003193601126103ea576105176114f6565b61051f6117e3565b815160243581526001600160a01b03909116907f9ac7f329c8fdc54b591c6b107c27036e120f90ab6f7e7054d5ad8e1fb60dfb5790602090a251f35b50346103ea577fc127e571d683cf5ef8f5cc2f2b2be34f51ba6b55280fb37f8cfd049c1e20456d6104656104213661179e565b50346103ea57806003193601126103ea576105a76114f6565b6105af6117e3565b815160243581526001600160a01b03909116907fbb8c0285b58ff072c41a21193878e6a2df31dc964fb96dc87f7810be0e68bea790602090a251f35b5082346104fa5760603660031901126104fa576106066114f6565b906001600160401b0360243581811161069d5761062690369084016116d2565b60443591821161069d576106976106647f41c54b44e7a188f57fc9fec7bc5a72b1d6d67394b4500f70b0d503d612bc00c99461067e94369101611730565b9461066d6117e3565b865193849388855288850190611f88565b83810360208501526001600160a01b0390911695611fbc565b0390a251f35b8580fd5b50346103ea57806003193601126103ea576106ba6114f6565b6106c2611511565b916106cb6117e3565b51916001600160a01b0390811691167f27271d21e479803300d1dc86efecf818294c1fe9dd06247ebfca01ec6f04a3c28484a3f35b5082346104fa5760803660031901126104fa5761071b6114f6565b610723611511565b916001600160401b03906044358281116107be5761074490369083016116d2565b906064359283116107be577f66c26647169ff2fbdd3ea348856804b5a9a502c0dbaa2f5ee011661f5806ba5c93610784610697926107af95369101611730565b9561078d6117e3565b875194859460018060a01b038093168652606060208701526060860190611f88565b91848303898601521695611fbc565b8680fd5b50346103ea57816003193601126103ea5751908152602090f35b50346103ea57816003193601126103ea5760025490516001600160a01b039091168152602090f35b5082346104fa57816003193601126104fa578160209360ff92610825611511565b90358252600186528282206001600160a01b039091168252855220549151911615158152f35b50346103ea5760e03660031901126103ea576108656114f6565b61086d611511565b90610876611527565b61087e6117e3565b83516064358152608435602082015260a4358186015260c43560608201526001600160a01b0391821693821692909116907f5d2a5415408fbcc4320e8e235c02da1c6c18b97ff78193cca359e4cb1d6a8d3290608090a451f35b50346103ea5760603660031901126103ea576108f26114f6565b906108fb611511565b9160443591821515809303610947576109126117e3565b51926001600160a01b0390811691167f074a05128af1e060305429cb95db6407aff955784db0e33a66fc8a0c59307ef88585a4f35b8480fd5b50826102403660031901126104fa576109626114f6565b9061096b611511565b906001600160401b03906044358281116107be5761098c9036908301611665565b6064358381116103e6576109a39036908401611665565b6084359384116103e6576109de610a49937f220fcad8f85f488bafbabfcb19ef0843d0e55228650409b9a1badb4e4d4be11595369101611665565b906109e761153d565b956109f0611554565b916109f961156b565b93610a026115ac565b610a648c610a0e6115bc565b93610a57610a1a6115cc565b96610a23611ae3565b610a2c89611dba565b610a3533611dba565b83519c8d9c8d610200908181520190611d18565b8c810360208e015290611d18565b918a8303908b0152611d18565b9960a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b5082346104fa5760803660031901126104fa57610b036114f6565b90610b0c611511565b90604435906001600160401b03821161069d57610b50610b69917f8bbd4ca29f6034674790d0975010f2d4b52ca7470c5840143ad5f1ea3dcb57cf93369101611665565b610b586117e3565b855191829187835287830190611d18565b60643560208301526001600160a01b0394851695909416930390a351f35b50346103ea5760e03660031901126103ea57610ba16114f6565b610ba9611511565b90610bb2611527565b60c4359081151580920361069d5760807f74eeacf5d55e73c248a54e79f33a00303cef41aa31dafc91fbd774108590c4c591610bec6117e3565b86516064358152608435602082015260a4358189015260608101949094526001600160a01b03908116958116941692a451f35b50346103ea57806003193601126103ea57610c386114f6565b610c406117e3565b815160243581526001600160a01b03909116907f6e4abca5d2ebb3e14f8f2b0480dccb2261bfe5ce33110bfec9f3968b1d2f091790602090a251f35b50346103ea57807fd762abc824e3fb207857fec10493cd750150e17dc806382156ee60fa9861939b610cad36611582565b610cb9949291946117e3565b825194855260208501526001600160a01b031692a251f35b50346103ea57807ff6a745366306c106792812403faa5bcc987c70666cd1b23a257c012bacbc2fab610cad36611582565b50346103ea5760803660031901126103ea57610d1c6114f6565b7fdf8d3038f367603dc5412a35b23395b8324bb9fad9a0d75fc40c4562110a761a6060610d47611511565b92610d50611527565b90610d596117e3565b85516001600160a01b03958616815291851660208301526064358287015290931692a251f35b50346103ea57806003193601126103ea57610d986114f6565b610da0611511565b91610da96117e3565b51916001600160a01b0390811691167f33eaee542d5ebc2e26e8c63bf79e709a63784f13b73ad119e627d1e862e3730d8484a3f35b50826102403660031901126104fa57610df56114f6565b90610dfe611511565b906001600160401b03906044358281116107be57610e1f9036908301611665565b6064359283116107be57610e5a610ebf927fef0116c8670f5066bfb73ba18e772e569980029e2174f326c04013d4bc3e1a0f94369101611665565b610e6261153d565b94610e6b611554565b90610e7461156b565b92610e7d6115ac565b610e856115bc565b90610ecd610e916115cc565b93610e9a611ae3565b610ea386611dba565b610eac33611dba565b8d51998a99610200808c528b0190611d18565b9089820360208b0152611d18565b996084358d89015260a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b50346103ea5760203660031901126103ea576104f7610f756114f6565b610f7d6119bc565b611dba565b50346103ea57816003193601126103ea576020905160008051602061203a8339815191528152f35b5082346104fa57816003193601126104fa57610fc4611511565b90336001600160a01b03831603610fe057906104f79135611dff565b608490602084519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b50346103ea57806003193601126103ea576110546114f6565b61105c6117e3565b815160243581526001600160a01b03909116907f193bb8b066bc48cc248e9ac4610fa7db77cb43f1751240ed2ae213e8eaf2e63090602090a251f35b5082346104fa57816003193601126104fa57356110b3611511565b81845260016020526110ca60018486200154611bf8565b818452600160209081528385206001600160a01b039092168086529190528284205460ff16156110f957505051f35b8184526001602052828420818552602052828420600160ff198254161790553391600080516020611ffa833981519152858551a451f35b50346103ea5760803660031901126103ea577fc8e5c9e9d69b73b553e0ab91130603709bf080bca64e4f194463e90c33b07384608061116d6114f6565b611175611511565b61117d611527565b6111856117e3565b61118e83611dba565b85516001600160a01b0393841681529183166020830152909116818501526064356060820152a151f35b50346103ea576111c7366115dc565b5050506104f76117e3565b50346103ea57816003193601126103ea57602090516000805160206120ba8339815191528152f35b50346103ea57806003193601126103ea576112136114f6565b61121b6117e3565b815160243581526001600160a01b03909116907f5a0cfc177292d5507f9d349b537a04e177bece6f3fd42b42a0de58b968bac2a490602090a251f35b5082346104fa5760203660031901126104fa57816020936001923581528285522001549051908152f35b50346103ea57806003193601126103ea5761129a6114f6565b6112a26117e3565b815160243581526001600160a01b03909116907f8d5f0841716a3b1ce342cfbc73afec999d3b0e2073aad97929446cd97ec3a6d590602090a251f35b50346103ea57806003193601126103ea576112f76114f6565b602435908115158092036113445760207f4e72ed0760c6626b6acaf8f79bc32c83df776a2caf817629199c3d368d1d3950916113316117e3565b84519384526001600160a01b031692a251f35b8380fd5b5060603660031901126103ea5761135d6114f6565b611365611511565b61136d611527565b611375611ae3565b83516001600160a01b03938416815291831660208301529091168183015233907f260482593f66c4b7d060db907860b9f0c3591ef2c3f94d9076d7727d353a8f1c90606090a251f35b50346103ea5760203660031901126103ea576113d86114f6565b6113e06119bc565b60018060a01b039081600254166000805160206120ba83398151915290818652600160205284862081875260205260ff8587205416611439575b505061142581611d3d565b1660018060a01b0319600254161760025551f35b818652600160205284862081875260205284862060ff19815416905533916000805160206120fa833981519152878751a4848061141a565b50346103ea57807f4d8c61012a48664a6ca6e91518f46ca7a3cefddce00d623448b30d2aed6067a9610cad36611582565b839085346104fa5760203660031901126104fa573563ffffffff60e01b81168091036104fa5760209250637965db0b60e01b81149081156114e5575b5015158152f35b6301ffc9a760e01b149050836114de565b600435906001600160a01b038216820361150c57565b600080fd5b602435906001600160a01b038216820361150c57565b604435906001600160a01b038216820361150c57565b61018435906001600160a01b038216820361150c57565b6101a435906001600160a01b038216820361150c57565b6101c435906001600160a01b038216820361150c57565b606090600319011261150c576004356001600160a01b038116810361150c57906024359060443590565b6101e43590811515820361150c57565b6102043590811515820361150c57565b6102243590811515820361150c57565b606090600319011261150c576001600160a01b0390600435828116810361150c5791602435908116810361150c579060443590565b608081019081106001600160401b0382111761162c57604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b0382119082101761162c57604052565b81601f8201121561150c578035906001600160401b03821161162c5760405192611699601f8401601f191660200185611642565b8284526020838301011161150c57816000926020809301838601378301015290565b6001600160401b03811161162c5760051b60200190565b81601f8201121561150c578035916116e9836116bb565b926116f76040519485611642565b808452602092838086019260051b82010192831161150c578301905b828210611721575050505090565b81358152908301908301611713565b81601f8201121561150c57803591611747836116bb565b926117556040519485611642565b808452602092838086019260051b82010192831161150c578301905b82821061177f575050505090565b81356001600160a01b038116810361150c578152908301908301611771565b60a090600319011261150c576001600160a01b03600435818116810361150c5791602435828116810361150c5791604435908116810361150c57906064359060843590565b33600090815260008051602061205a8339815191526020908152604080832054909260008051602061203a8339815191529160019060ff1615611827575050505050565b61183033611e8c565b9285519161183d83611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b81831161193a5750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611cf5565b01036028810187520185611642565b5192839262461bcd60e51b845260048401526024830190611d18565b0390fd5b60648486519062461bcd60e51b8252806004830152602482015260008051602061201a8339815191526044820152fd5b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a61196a8587611e65565b5360041c9280156119805760001901919061186a565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fd52cfefb3f6fd7766669e08a03d2ceb3243383019e3a5fed2a519df30ee55b92602090815260408083205490926000805160206120da8339815191529160019060ff1615611a12575050505050565b611a1b33611e8c565b92855191611a2883611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b818311611a9d5750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a611acd8587611e65565b5360041c92801561198057600019019190611a55565b33600090815260008051602061209a833981519152602090815260408083205490926000805160206120ba8339815191529160019060ff1615611b27575050505050565b611b3033611e8c565b92855191611b3d83611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b818311611bb25750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a611be28587611e65565b5360041c92801561198057600019019190611b6a565b6000818152600191602091838352604093848220338352845260ff858320541615611c24575050505050565b611c2d33611e8c565b92855191611c3a83611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b818311611caf5750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a611cdf8587611e65565b5360041c92801561198057600019019190611c67565b60005b838110611d085750506000910152565b8181015183820152602001611cf8565b90602091611d3181518092818552858086019101611cf5565b601f01601f1916010190565b6001600160a01b0316600081815260008051602061209a83398151915260205260408120549091906000805160206120ba8339815191529060ff1615611d8257505050565b80835260016020526040832082845260205260408320600160ff19825416179055600080516020611ffa8339815191523393604051a4565b6001600160a01b0316600081815260008051602061205a833981519152602052604081205490919060008051602061203a8339815191529060ff1615611d8257505050565b906000918083526001602052604083209160018060a01b03169182845260205260ff604084205416611e3057505050565b8083526001602052604083208284526020526040832060ff1981541690556000805160206120fa8339815191523393604051a4565b908151811015611e76570160200190565b634e487b7160e01b600052603260045260246000fd5b60405190606082016001600160401b0381118382101761162c57604052602a8252602082016040368237825115611e7657603090538151600190811015611e7657607860218401536029905b808211611f1a575050611ee85790565b606460405162461bcd60e51b8152602060048201526020602482015260008051602061201a8339815191526044820152fd5b9091600f81166010811015611f73576f181899199a1a9b1b9c1cb0b131b232b360811b901a611f498486611e65565b5360041c918015611f5e576000190190611ed8565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b90815180825260208080930193019160005b828110611fa8575050505090565b835185529381019392810192600101611f9a565b90815180825260208080930193019160005b828110611fdc575050505090565b83516001600160a01b031685529381019392810192600101611fce56fe2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d537472696e67733a20686578206c656e67746820696e73756666696369656e74adc41ac76b15f32aeb610c830777f0ff36390d5a0b9209eeaf8f214a37f5eca4b608af87228f9c6e6100967ebbefe4d5a50d0705fa8ed3d004042db9d4725c16416363657373436f6e74726f6c3a206163636f756e74200000000000000000002d128c586e3dc9569ffe93ea54b9d7af160489c642284bd8fcf815de411c9ddb547b500e425d72fd0723933cceefc203cef652b4736fd04250c3369b3e1a0a73df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171ba26469706673582212208d31faf670df50e7829120b085c9f6eb75ebc9b326a9fd45f1e5a45e4ab3a1f864736f6c63430008100033
Deployed Bytecode
0x60806040908082526004918236101561001757600080fd5b600091823560e01c90816301ffc9a7146114a25750806307713fed1461147157806311c6e741146113be5780631303dbd5146113485780632268213c146112de57806323850a6014611281578063248a9ca31461125757806324f1aca4146111fa5780632dd31000146111d25780632ea02434146111b85780632f16806c146111305780632f2ff15d146110985780632fef82f51461103b57806336568abe14610faa5780633c32122814610f8257806348e21cc114610f585780634c8a552314610dde5780635f75b5ef14610d7f57806369393be314610d025780636bdf6e6c14610cd15780636ff827b814610c7c5780637944ad5314610c1f5780637c28875f14610b875780637cdb30bd14610ae85780638189f0dc1461094b578063831fb55e146108d8578063903369bb1461084b57806391d1485414610804578063966dae0e146107dc578063a217fddf146107c2578063a2ee858314610700578063ad1d31ae146106a1578063b9d39705146105eb578063ca9b5e391461058e578063d153caae1461055b578063d1d3d4f1146104fe578063d547741f146104bb578063e1e197331461046b578063e89e1467146103ee5763f8c8765e146101dd57600080fd5b346103ea5760803660031901126103ea576101f66114f6565b926101ff611511565b93610208611527565b6001600160a01b0395606435878116939291908481036103e657875460ff8160081c1615968780986103d9575b80156103c2575b15610368575098807fcc5133cf1aa8545141d317638c218ba2f4b3274456267acdd6bda9322e43ec1c936102bc8a9b9c948d60019c968c60ff199e8f8316178355610356575b506000805160206120da8339815191529081815260209d8e60018152898320338452815260ff8a842054161561031c575b50505050611d3d565b600280546001600160a01b0319168917905583519582168652308a87015216941692a46102e7575051f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989061ff00198454168455825160018152a151f35b8383526001815289832090338452526001898320918254161790553391600080516020611ffa83398151915233928a51a4388e818e6102b3565b61ffff19166101011790558d38610282565b60849060208a519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b15801561023c5750600160ff83161461023c565b50600160ff831610610235565b8780fd5b5080fd5b50346103ea577fa06aad8d90c363bdf2acea591021b6e604b335d9107d6fb201d7f38140c2f4616104656104213661179e565b9161042d9593956117e3565b87516001600160a01b0395861681529585166020870152909316604085015260608401929092526080830191909152819060a0820190565b0390a151f35b5060207fd22f2931dd94295be3155cedb74573e6a5b7b55da5d7392d087d1e7badcc999a610498366115dc565b929193906104a4611ae3565b85519384526001600160a01b03908116941692a351f35b5082346104fa57816003193601126104fa576104f790356104da611511565b9080855260016020526104f260018587200154611bf8565b611dff565b51f35b8280fd5b50346103ea57806003193601126103ea576105176114f6565b61051f6117e3565b815160243581526001600160a01b03909116907f9ac7f329c8fdc54b591c6b107c27036e120f90ab6f7e7054d5ad8e1fb60dfb5790602090a251f35b50346103ea577fc127e571d683cf5ef8f5cc2f2b2be34f51ba6b55280fb37f8cfd049c1e20456d6104656104213661179e565b50346103ea57806003193601126103ea576105a76114f6565b6105af6117e3565b815160243581526001600160a01b03909116907fbb8c0285b58ff072c41a21193878e6a2df31dc964fb96dc87f7810be0e68bea790602090a251f35b5082346104fa5760603660031901126104fa576106066114f6565b906001600160401b0360243581811161069d5761062690369084016116d2565b60443591821161069d576106976106647f41c54b44e7a188f57fc9fec7bc5a72b1d6d67394b4500f70b0d503d612bc00c99461067e94369101611730565b9461066d6117e3565b865193849388855288850190611f88565b83810360208501526001600160a01b0390911695611fbc565b0390a251f35b8580fd5b50346103ea57806003193601126103ea576106ba6114f6565b6106c2611511565b916106cb6117e3565b51916001600160a01b0390811691167f27271d21e479803300d1dc86efecf818294c1fe9dd06247ebfca01ec6f04a3c28484a3f35b5082346104fa5760803660031901126104fa5761071b6114f6565b610723611511565b916001600160401b03906044358281116107be5761074490369083016116d2565b906064359283116107be577f66c26647169ff2fbdd3ea348856804b5a9a502c0dbaa2f5ee011661f5806ba5c93610784610697926107af95369101611730565b9561078d6117e3565b875194859460018060a01b038093168652606060208701526060860190611f88565b91848303898601521695611fbc565b8680fd5b50346103ea57816003193601126103ea5751908152602090f35b50346103ea57816003193601126103ea5760025490516001600160a01b039091168152602090f35b5082346104fa57816003193601126104fa578160209360ff92610825611511565b90358252600186528282206001600160a01b039091168252855220549151911615158152f35b50346103ea5760e03660031901126103ea576108656114f6565b61086d611511565b90610876611527565b61087e6117e3565b83516064358152608435602082015260a4358186015260c43560608201526001600160a01b0391821693821692909116907f5d2a5415408fbcc4320e8e235c02da1c6c18b97ff78193cca359e4cb1d6a8d3290608090a451f35b50346103ea5760603660031901126103ea576108f26114f6565b906108fb611511565b9160443591821515809303610947576109126117e3565b51926001600160a01b0390811691167f074a05128af1e060305429cb95db6407aff955784db0e33a66fc8a0c59307ef88585a4f35b8480fd5b50826102403660031901126104fa576109626114f6565b9061096b611511565b906001600160401b03906044358281116107be5761098c9036908301611665565b6064358381116103e6576109a39036908401611665565b6084359384116103e6576109de610a49937f220fcad8f85f488bafbabfcb19ef0843d0e55228650409b9a1badb4e4d4be11595369101611665565b906109e761153d565b956109f0611554565b916109f961156b565b93610a026115ac565b610a648c610a0e6115bc565b93610a57610a1a6115cc565b96610a23611ae3565b610a2c89611dba565b610a3533611dba565b83519c8d9c8d610200908181520190611d18565b8c810360208e015290611d18565b918a8303908b0152611d18565b9960a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b5082346104fa5760803660031901126104fa57610b036114f6565b90610b0c611511565b90604435906001600160401b03821161069d57610b50610b69917f8bbd4ca29f6034674790d0975010f2d4b52ca7470c5840143ad5f1ea3dcb57cf93369101611665565b610b586117e3565b855191829187835287830190611d18565b60643560208301526001600160a01b0394851695909416930390a351f35b50346103ea5760e03660031901126103ea57610ba16114f6565b610ba9611511565b90610bb2611527565b60c4359081151580920361069d5760807f74eeacf5d55e73c248a54e79f33a00303cef41aa31dafc91fbd774108590c4c591610bec6117e3565b86516064358152608435602082015260a4358189015260608101949094526001600160a01b03908116958116941692a451f35b50346103ea57806003193601126103ea57610c386114f6565b610c406117e3565b815160243581526001600160a01b03909116907f6e4abca5d2ebb3e14f8f2b0480dccb2261bfe5ce33110bfec9f3968b1d2f091790602090a251f35b50346103ea57807fd762abc824e3fb207857fec10493cd750150e17dc806382156ee60fa9861939b610cad36611582565b610cb9949291946117e3565b825194855260208501526001600160a01b031692a251f35b50346103ea57807ff6a745366306c106792812403faa5bcc987c70666cd1b23a257c012bacbc2fab610cad36611582565b50346103ea5760803660031901126103ea57610d1c6114f6565b7fdf8d3038f367603dc5412a35b23395b8324bb9fad9a0d75fc40c4562110a761a6060610d47611511565b92610d50611527565b90610d596117e3565b85516001600160a01b03958616815291851660208301526064358287015290931692a251f35b50346103ea57806003193601126103ea57610d986114f6565b610da0611511565b91610da96117e3565b51916001600160a01b0390811691167f33eaee542d5ebc2e26e8c63bf79e709a63784f13b73ad119e627d1e862e3730d8484a3f35b50826102403660031901126104fa57610df56114f6565b90610dfe611511565b906001600160401b03906044358281116107be57610e1f9036908301611665565b6064359283116107be57610e5a610ebf927fef0116c8670f5066bfb73ba18e772e569980029e2174f326c04013d4bc3e1a0f94369101611665565b610e6261153d565b94610e6b611554565b90610e7461156b565b92610e7d6115ac565b610e856115bc565b90610ecd610e916115cc565b93610e9a611ae3565b610ea386611dba565b610eac33611dba565b8d51998a99610200808c528b0190611d18565b9089820360208b0152611d18565b996084358d89015260a435606089015260c435608089015260e43560a08901526101043560c08901526101243560e0890152610144356101008901526101643561012089015260018060a01b0396878097818094166101408c0152166101608a01521661018088015215156101a087015215156101c086015215156101e0850152169516930390a351f35b50346103ea5760203660031901126103ea576104f7610f756114f6565b610f7d6119bc565b611dba565b50346103ea57816003193601126103ea576020905160008051602061203a8339815191528152f35b5082346104fa57816003193601126104fa57610fc4611511565b90336001600160a01b03831603610fe057906104f79135611dff565b608490602084519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152fd5b50346103ea57806003193601126103ea576110546114f6565b61105c6117e3565b815160243581526001600160a01b03909116907f193bb8b066bc48cc248e9ac4610fa7db77cb43f1751240ed2ae213e8eaf2e63090602090a251f35b5082346104fa57816003193601126104fa57356110b3611511565b81845260016020526110ca60018486200154611bf8565b818452600160209081528385206001600160a01b039092168086529190528284205460ff16156110f957505051f35b8184526001602052828420818552602052828420600160ff198254161790553391600080516020611ffa833981519152858551a451f35b50346103ea5760803660031901126103ea577fc8e5c9e9d69b73b553e0ab91130603709bf080bca64e4f194463e90c33b07384608061116d6114f6565b611175611511565b61117d611527565b6111856117e3565b61118e83611dba565b85516001600160a01b0393841681529183166020830152909116818501526064356060820152a151f35b50346103ea576111c7366115dc565b5050506104f76117e3565b50346103ea57816003193601126103ea57602090516000805160206120ba8339815191528152f35b50346103ea57806003193601126103ea576112136114f6565b61121b6117e3565b815160243581526001600160a01b03909116907f5a0cfc177292d5507f9d349b537a04e177bece6f3fd42b42a0de58b968bac2a490602090a251f35b5082346104fa5760203660031901126104fa57816020936001923581528285522001549051908152f35b50346103ea57806003193601126103ea5761129a6114f6565b6112a26117e3565b815160243581526001600160a01b03909116907f8d5f0841716a3b1ce342cfbc73afec999d3b0e2073aad97929446cd97ec3a6d590602090a251f35b50346103ea57806003193601126103ea576112f76114f6565b602435908115158092036113445760207f4e72ed0760c6626b6acaf8f79bc32c83df776a2caf817629199c3d368d1d3950916113316117e3565b84519384526001600160a01b031692a251f35b8380fd5b5060603660031901126103ea5761135d6114f6565b611365611511565b61136d611527565b611375611ae3565b83516001600160a01b03938416815291831660208301529091168183015233907f260482593f66c4b7d060db907860b9f0c3591ef2c3f94d9076d7727d353a8f1c90606090a251f35b50346103ea5760203660031901126103ea576113d86114f6565b6113e06119bc565b60018060a01b039081600254166000805160206120ba83398151915290818652600160205284862081875260205260ff8587205416611439575b505061142581611d3d565b1660018060a01b0319600254161760025551f35b818652600160205284862081875260205284862060ff19815416905533916000805160206120fa833981519152878751a4848061141a565b50346103ea57807f4d8c61012a48664a6ca6e91518f46ca7a3cefddce00d623448b30d2aed6067a9610cad36611582565b839085346104fa5760203660031901126104fa573563ffffffff60e01b81168091036104fa5760209250637965db0b60e01b81149081156114e5575b5015158152f35b6301ffc9a760e01b149050836114de565b600435906001600160a01b038216820361150c57565b600080fd5b602435906001600160a01b038216820361150c57565b604435906001600160a01b038216820361150c57565b61018435906001600160a01b038216820361150c57565b6101a435906001600160a01b038216820361150c57565b6101c435906001600160a01b038216820361150c57565b606090600319011261150c576004356001600160a01b038116810361150c57906024359060443590565b6101e43590811515820361150c57565b6102043590811515820361150c57565b6102243590811515820361150c57565b606090600319011261150c576001600160a01b0390600435828116810361150c5791602435908116810361150c579060443590565b608081019081106001600160401b0382111761162c57604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b0382119082101761162c57604052565b81601f8201121561150c578035906001600160401b03821161162c5760405192611699601f8401601f191660200185611642565b8284526020838301011161150c57816000926020809301838601378301015290565b6001600160401b03811161162c5760051b60200190565b81601f8201121561150c578035916116e9836116bb565b926116f76040519485611642565b808452602092838086019260051b82010192831161150c578301905b828210611721575050505090565b81358152908301908301611713565b81601f8201121561150c57803591611747836116bb565b926117556040519485611642565b808452602092838086019260051b82010192831161150c578301905b82821061177f575050505090565b81356001600160a01b038116810361150c578152908301908301611771565b60a090600319011261150c576001600160a01b03600435818116810361150c5791602435828116810361150c5791604435908116810361150c57906064359060843590565b33600090815260008051602061205a8339815191526020908152604080832054909260008051602061203a8339815191529160019060ff1615611827575050505050565b61183033611e8c565b9285519161183d83611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b81831161193a5750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b8401917001034b99036b4b9b9b4b733903937b6329607d1b603784015251809386840190611cf5565b01036028810187520185611642565b5192839262461bcd60e51b845260048401526024830190611d18565b0390fd5b60648486519062461bcd60e51b8252806004830152602482015260008051602061201a8339815191526044820152fd5b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a61196a8587611e65565b5360041c9280156119805760001901919061186a565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fd52cfefb3f6fd7766669e08a03d2ceb3243383019e3a5fed2a519df30ee55b92602090815260408083205490926000805160206120da8339815191529160019060ff1615611a12575050505050565b611a1b33611e8c565b92855191611a2883611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b818311611a9d5750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a611acd8587611e65565b5360041c92801561198057600019019190611a55565b33600090815260008051602061209a833981519152602090815260408083205490926000805160206120ba8339815191529160019060ff1615611b27575050505050565b611b3033611e8c565b92855191611b3d83611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b818311611bb25750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a611be28587611e65565b5360041c92801561198057600019019190611b6a565b6000818152600191602091838352604093848220338352845260ff858320541615611c24575050505050565b611c2d33611e8c565b92855191611c3a83611611565b604283528583019360603686378351156119a8576030855383518210156119a85790607860218501536041915b818311611caf5750505061190a5760486119069386936118ea936118db985198899360008051602061207a8339815191528a8601526118b2815180928c603789019101611cf5565b909192600f81166010811015611994576f181899199a1a9b1b9c1cb0b131b232b360811b901a611cdf8587611e65565b5360041c92801561198057600019019190611c67565b60005b838110611d085750506000910152565b8181015183820152602001611cf8565b90602091611d3181518092818552858086019101611cf5565b601f01601f1916010190565b6001600160a01b0316600081815260008051602061209a83398151915260205260408120549091906000805160206120ba8339815191529060ff1615611d8257505050565b80835260016020526040832082845260205260408320600160ff19825416179055600080516020611ffa8339815191523393604051a4565b6001600160a01b0316600081815260008051602061205a833981519152602052604081205490919060008051602061203a8339815191529060ff1615611d8257505050565b906000918083526001602052604083209160018060a01b03169182845260205260ff604084205416611e3057505050565b8083526001602052604083208284526020526040832060ff1981541690556000805160206120fa8339815191523393604051a4565b908151811015611e76570160200190565b634e487b7160e01b600052603260045260246000fd5b60405190606082016001600160401b0381118382101761162c57604052602a8252602082016040368237825115611e7657603090538151600190811015611e7657607860218401536029905b808211611f1a575050611ee85790565b606460405162461bcd60e51b8152602060048201526020602482015260008051602061201a8339815191526044820152fd5b9091600f81166010811015611f73576f181899199a1a9b1b9c1cb0b131b232b360811b901a611f498486611e65565b5360041c918015611f5e576000190190611ed8565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b90815180825260208080930193019160005b828110611fa8575050505090565b835185529381019392810192600101611f9a565b90815180825260208080930193019160005b828110611fdc575050505090565b83516001600160a01b031685529381019392810192600101611fce56fe2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d537472696e67733a20686578206c656e67746820696e73756666696369656e74adc41ac76b15f32aeb610c830777f0ff36390d5a0b9209eeaf8f214a37f5eca4b608af87228f9c6e6100967ebbefe4d5a50d0705fa8ed3d004042db9d4725c16416363657373436f6e74726f6c3a206163636f756e74200000000000000000002d128c586e3dc9569ffe93ea54b9d7af160489c642284bd8fcf815de411c9ddb547b500e425d72fd0723933cceefc203cef652b4736fd04250c3369b3e1a0a73df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171ba26469706673582212208d31faf670df50e7829120b085c9f6eb75ebc9b326a9fd45f1e5a45e4ab3a1f864736f6c63430008100033
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.