More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 55 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x994948fd | 39704731 | 3 hrs ago | IN | 0 xDAI | 0.00000059 | ||||
0x994948fd | 39699281 | 11 hrs ago | IN | 0 xDAI | 0.00000041 | ||||
0x994948fd | 39696997 | 14 hrs ago | IN | 0 xDAI | 0.00000041 | ||||
0x994948fd | 39693153 | 19 hrs ago | IN | 0 xDAI | 0.00000028 | ||||
0x994948fd | 39691981 | 21 hrs ago | IN | 0 xDAI | 0.00000149 | ||||
0x994948fd | 39691275 | 22 hrs ago | IN | 0 xDAI | 0.00003534 | ||||
0x994948fd | 39689580 | 24 hrs ago | IN | 0 xDAI | 0.00000375 | ||||
0x994948fd | 39663108 | 2 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39623926 | 4 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39620883 | 5 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39612431 | 5 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39611136 | 5 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39606041 | 5 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39599605 | 6 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39591838 | 6 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39590837 | 6 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39560405 | 8 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39552264 | 9 days ago | IN | 0 xDAI | 0.00005806 | ||||
0x994948fd | 39549406 | 9 days ago | IN | 0 xDAI | 0.00005808 | ||||
0x994948fd | 39536471 | 10 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39527667 | 10 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39498114 | 12 days ago | IN | 0 xDAI | 0.00005806 | ||||
0x994948fd | 39469273 | 14 days ago | IN | 0 xDAI | 0.00003871 | ||||
0x994948fd | 39458932 | 14 days ago | IN | 0 xDAI | 0.00003872 | ||||
0x994948fd | 39458367 | 14 days ago | IN | 0 xDAI | 0.00003871 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
39704731 | 3 hrs ago | 0.01 xDAI | ||||
39699281 | 11 hrs ago | 0.01 xDAI | ||||
39696997 | 14 hrs ago | 0.01 xDAI | ||||
39693153 | 19 hrs ago | 0.01 xDAI | ||||
39691981 | 21 hrs ago | 0.01 xDAI | ||||
39691275 | 22 hrs ago | 0.01 xDAI | ||||
39689580 | 24 hrs ago | 0.01 xDAI | ||||
39663108 | 2 days ago | 0.01 xDAI | ||||
39623926 | 4 days ago | 0.01 xDAI | ||||
39620883 | 5 days ago | 0.01 xDAI | ||||
39612431 | 5 days ago | 0.01 xDAI | ||||
39611136 | 5 days ago | 0.01 xDAI | ||||
39606041 | 5 days ago | 0.01 xDAI | ||||
39599605 | 6 days ago | 0.01 xDAI | ||||
39591838 | 6 days ago | 0.01 xDAI | ||||
39590837 | 6 days ago | 0.01 xDAI | ||||
39560405 | 8 days ago | 0.01 xDAI | ||||
39552264 | 9 days ago | 0.01 xDAI | ||||
39549406 | 9 days ago | 0.01 xDAI | ||||
39536471 | 10 days ago | 0.01 xDAI | ||||
39527667 | 10 days ago | 0.01 xDAI | ||||
39498114 | 12 days ago | 0.01 xDAI | ||||
39469273 | 14 days ago | 0.01 xDAI | ||||
39458932 | 14 days ago | 0.01 xDAI | ||||
39458367 | 14 days ago | 0.01 xDAI |
Loading...
Loading
Contract Name:
Manager
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at gnosisscan.io on 2022-08-08 */ // Sources flattened with hardhat v2.9.6 https://hardhat.org // File @openzeppelin/contracts/access/[email protected] // 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; } // File @openzeppelin/contracts/utils/[email protected] // 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; } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // 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); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require( account == _msgSender(), "AccessControl: can only renounce roles for self" ); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [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 functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}( data ); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value) ); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value) ); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value) ); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require( oldAllowance >= value, "SafeERC20: decreased allowance below zero" ); uint256 newAllowance = oldAllowance - value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall( data, "SafeERC20: low-level call failed" ); if (returndata.length > 0) { // Return data is optional require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } } // File contracts/Manager.sol //SPDX-License-Identifier: MIT // author: spsina (https://github.com/spsina/) pragma solidity ^0.8.4; struct EthRecipient { address to; uint256 amount; } struct Erc20Recipient { address token; address to; uint256 amount; } contract Manager is AccessControl { using SafeERC20 for IERC20; uint256 public ethPeriod; // native asset (eth) period uint256 public ethPeriodicMaxCap; // native asset periodic cap mapping(uint256 => uint256) public ethTotalWithdrawals; // period => amount mapping(address => uint256) public erc20Periods; // erc20 token => period mapping(address => uint256) public erc20PeriodicMaxCap; // erc20 token => erc20 periodic max cap mapping(address => mapping(uint256 => uint256)) public erc20Withdrawals; // erc20 token => period => period withrawals bytes32 public constant UNITAP_ROLE = keccak256("UNITAP_ROLE"); constructor( uint256 period_, uint256 periodicMaxCap_, address admin, address unitap ) { require( admin != address(0) && unitap != address(0), "Manager: ZERO_ADDRESS" ); ethPeriod = period_; ethPeriodicMaxCap = periodicMaxCap_; _setupRole(DEFAULT_ADMIN_ROLE, admin); _setupRole(UNITAP_ROLE, unitap); } modifier onlyUnitapOrAdmin() { require( hasRole(UNITAP_ROLE, msg.sender) || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Manager: UNAUTHORIZED" ); _; } function getActivePeriod(uint256 period_) public view returns (uint256) { return (block.timestamp / period_) * period_; } function _checkAndUpdateEthMaxCap(uint256 amount) internal { if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) { require( ethTotalWithdrawals[getActivePeriod(ethPeriod)] + amount <= ethPeriodicMaxCap, "Manager: PERIODIC_MAX_CAP_EXCEEDED" ); ethTotalWithdrawals[getActivePeriod(ethPeriod)] += amount; } } function _checkAndUpdateErc20MaxCap(address token, uint256 amount) internal { if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) { require( erc20Withdrawals[token][getActivePeriod(erc20Periods[token])] + amount <= erc20PeriodicMaxCap[token], "Manager: PERIODIC_MAX_CAP_EXCEEDED" ); erc20Withdrawals[token][ getActivePeriod(erc20Periods[token]) ] += amount; } } function withdrawEth(uint256 amount, address to) public onlyUnitapOrAdmin { // allow DEFALUT_ADMIN to withdraw as much as he wants _checkAndUpdateEthMaxCap(amount); payable(to).transfer(amount); } function multiWithdrawEth(EthRecipient[] memory recipients) external onlyRole(UNITAP_ROLE) { for (uint8 i = 0; i < recipients.length; i++) withdrawEth(recipients[i].amount, recipients[i].to); } function withdrawErc20( address token, uint256 amount, address to ) public onlyUnitapOrAdmin { _checkAndUpdateErc20MaxCap(token, amount); IERC20(token).safeTransfer(to, amount); } function multiWithdrawErc20(Erc20Recipient[] memory recipients) external onlyRole(UNITAP_ROLE) { for (uint8 i = 0; i < recipients.length; i++) withdrawErc20( recipients[i].token, recipients[i].amount, recipients[i].to ); } function setEthParams(uint256 period_, uint256 periodicMaxCap_) external onlyRole(DEFAULT_ADMIN_ROLE) { ethPeriod = period_; ethPeriodicMaxCap = periodicMaxCap_; } function setErc20Params( address token, uint256 period_, uint256 periodicMaxCap_ ) external onlyRole(DEFAULT_ADMIN_ROLE) { erc20Periods[token] = period_; erc20PeriodicMaxCap[token] = periodicMaxCap_; } receive() external payable {} } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require( currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require( fromBalance >= amount, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "ERC20: insufficient allowance" ); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File contracts/test/token.sol pragma solidity ^0.8.4; contract TestToken is ERC20 { constructor() ERC20("TestToken", "TST") { _mint(msg.sender, 1000 * 10**decimals()); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"period_","type":"uint256"},{"internalType":"uint256","name":"periodicMaxCap_","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"unitap","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNITAP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"erc20PeriodicMaxCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"erc20Periods","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"erc20Withdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethPeriodicMaxCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ethTotalWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period_","type":"uint256"}],"name":"getActivePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Erc20Recipient[]","name":"recipients","type":"tuple[]"}],"name":"multiWithdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct EthRecipient[]","name":"recipients","type":"tuple[]"}],"name":"multiWithdrawEth","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":"token","type":"address"},{"internalType":"uint256","name":"period_","type":"uint256"},{"internalType":"uint256","name":"periodicMaxCap_","type":"uint256"}],"name":"setErc20Params","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"period_","type":"uint256"},{"internalType":"uint256","name":"periodicMaxCap_","type":"uint256"}],"name":"setEthParams","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":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002b2d38038062002b2d8339818101604052810190620000379190620002ea565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015620000a25750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b620000e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000db906200037d565b60405180910390fd5b8360018190555082600281905550620001076000801b836200014360201b60201c565b620001397fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d699031826200014360201b60201c565b505050506200044b565b6200015582826200015960201b60201c565b5050565b6200016b82826200024a60201b60201c565b6200024657600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001eb620002b460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600081519050620002cd8162000417565b92915050565b600081519050620002e48162000431565b92915050565b600080600080608085870312156200030157600080fd5b60006200031187828801620002d3565b94505060206200032487828801620002d3565b93505060406200033787828801620002bc565b92505060606200034a87828801620002bc565b91505092959194509250565b6000620003656015836200039f565b91506200037282620003ee565b602082019050919050565b60006020820190508181036000830152620003988162000356565b9050919050565b600082825260208201905092915050565b6000620003bd82620003c4565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4d616e616765723a205a45524f5f414444524553530000000000000000000000600082015250565b6200042281620003b0565b81146200042e57600080fd5b50565b6200043c81620003e4565b81146200044857600080fd5b50565b6126d2806200045b6000396000f3fe60806040526004361061012e5760003560e01c806391d14854116100ab578063a3dcedc81161006f578063a3dcedc81461041f578063afb5cb671461045c578063b95e518914610485578063d547741f146104b0578063dd1edc03146104d9578063e650fe481461050257610135565b806391d148541461033c578063979e8d7914610379578063994948fd146103a2578063a158657c146103cb578063a217fddf146103f457610135565b806336568abe116100f257806336568abe146102455780633891cc0c1461026e5780634425fa49146102ab5780635e2dfaf9146102d45780636eb500051461031157610135565b806301ffc9a71461013a5780631362915114610177578063228c076c146101a2578063248a9ca3146101df5780632f2ff15d1461021c57610135565b3661013557005b600080fd5b34801561014657600080fd5b50610161600480360381019061015c9190611bfb565b61053f565b60405161016e9190611f51565b60405180910390f35b34801561018357600080fd5b5061018c6105b9565b6040516101999190612089565b60405180910390f35b3480156101ae57600080fd5b506101c960048036038101906101c49190611c24565b6105bf565b6040516101d69190612089565b60405180910390f35b3480156101eb57600080fd5b5061020660048036038101906102019190611b96565b6105df565b6040516102139190611f6c565b60405180910390f35b34801561022857600080fd5b50610243600480360381019061023e9190611bbf565b6105fe565b005b34801561025157600080fd5b5061026c60048036038101906102679190611bbf565b61061f565b005b34801561027a57600080fd5b5061029560048036038101906102909190611a11565b6106a2565b6040516102a29190612089565b60405180910390f35b3480156102b757600080fd5b506102d260048036038101906102cd9190611a9c565b6106c7565b005b3480156102e057600080fd5b506102fb60048036038101906102f691906119e8565b610762565b6040516103089190612089565b60405180910390f35b34801561031d57600080fd5b5061032661077a565b6040516103339190612089565b60405180910390f35b34801561034857600080fd5b50610363600480360381019061035e9190611bbf565b610780565b6040516103709190611f51565b60405180910390f35b34801561038557600080fd5b506103a0600480360381019061039b9190611aeb565b6107ea565b005b3480156103ae57600080fd5b506103c960048036038101906103c49190611b2c565b61091b565b005b3480156103d757600080fd5b506103f260048036038101906103ed9190611c4d565b610a04565b005b34801561040057600080fd5b50610409610ad5565b6040516104169190611f6c565b60405180910390f35b34801561042b57600080fd5b5061044660048036038101906104419190611c24565b610adc565b6040516104539190612089565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190611a4d565b610af4565b005b34801561049157600080fd5b5061049a610bab565b6040516104a79190611f6c565b60405180910390f35b3480156104bc57600080fd5b506104d760048036038101906104d29190611bbf565b610bcf565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190611c89565b610bf0565b005b34801561050e57600080fd5b50610529600480360381019061052491906119e8565b610c10565b6040516105369190612089565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105b257506105b182610c28565b5b9050919050565b60025481565b60008182426105ce91906121b4565b6105d891906121e5565b9050919050565b6000806000838152602001908152602001600020600101549050919050565b610607826105df565b61061081610c92565b61061a8383610ca6565b505050565b610627610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b90612069565b60405180910390fd5b61069e8282610d8e565b5050565b6006602052816000526040600020602052806000526040600020600091509150505481565b6000801b6106d481610c92565b82600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b60046020528060005260406000206000915090505481565b60015481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903161081481610c92565b60005b82518160ff16101561091657610903838260ff1681518110610862577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160000151848360ff16815181106108aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160400151858460ff16815181106108f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160200151610af4565b808061090e90612358565b915050610817565b505050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903161094581610c92565b60005b82518160ff1610156109ff576109ec838260ff1681518110610993577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160200151848360ff16815181106109db577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160000151610a04565b80806109f790612358565b915050610948565b505050565b610a2e7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903133610780565b80610a425750610a416000801b33610780565b5b610a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7890612009565b60405180910390fd5b610a8a82610e6f565b8073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610ad0573d6000803e3d6000fd5b505050565b6000801b81565b60036020528060005260406000206000915090505481565b610b1e7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903133610780565b80610b325750610b316000801b33610780565b5b610b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6890612009565b60405180910390fd5b610b7b8383610f25565b610ba681838573ffffffffffffffffffffffffffffffffffffffff1661110d9092919063ffffffff16565b505050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903181565b610bd8826105df565b610be181610c92565b610beb8383610d8e565b505050565b6000801b610bfd81610c92565b8260018190555081600281905550505050565b60056020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610ca381610c9e610d86565b611193565b50565b610cb08282610780565b610d8257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d27610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610d988282610780565b15610e6b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610e10610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b610e7c6000801b33610780565b610f22576002548160036000610e936001546105bf565b815260200190815260200160002054610eac919061215e565b1115610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490611fc9565b60405180910390fd5b8060036000610efd6001546105bf565b81526020019081526020016000206000828254610f1a919061215e565b925050819055505b50565b610f326000801b33610780565b61110957600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105bf565b815260200190815260200160002054611019919061215e565b111561105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190611fc9565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006110e4600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105bf565b81526020019081526020016000206000828254611101919061215e565b925050819055505b5050565b61118e8363a9059cbb60e01b848460405160240161112c929190611f28565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611230565b505050565b61119d8282610780565b61122c576111c28173ffffffffffffffffffffffffffffffffffffffff1660146112f7565b6111d08360001c60206112f7565b6040516020016111e1929190611eee565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112239190611f87565b60405180910390fd5b5050565b6000611292826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115f19092919063ffffffff16565b90506000815111156112f257808060200190518101906112b29190611b6d565b6112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e890612049565b60405180910390fd5b5b505050565b60606000600283600261130a91906121e5565b611314919061215e565b67ffffffffffffffff811115611353577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113855781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106113e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061146d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026114ad91906121e5565b6114b7919061215e565b90505b60018111156115a3577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061151f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061155c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061159c906122fd565b90506114ba565b50600084146115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de90611fa9565b60405180910390fd5b8091505092915050565b60606116008484600085611609565b90509392505050565b60608247101561164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590611fe9565b60405180910390fd5b6116578561171d565b611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d90612029565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116bf9190611ed7565b60006040518083038185875af1925050503d80600081146116fc576040519150601f19603f3d011682016040523d82523d6000602084013e611701565b606091505b5091509150611711828286611740565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611750578290506117a0565b6000835111156117635782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117979190611f87565b60405180910390fd5b9392505050565b60006117ba6117b5846120c9565b6120a4565b905080838252602082019050828560608602820111156117d957600080fd5b60005b8581101561180957816117ef8882611927565b8452602084019350606083019250506001810190506117dc565b5050509392505050565b6000611826611821846120f5565b6120a4565b9050808382526020820190508285604086028201111561184557600080fd5b60005b85811015611875578161185b8882611987565b845260208401935060408301925050600181019050611848565b5050509392505050565b60008135905061188e81612629565b92915050565b600082601f8301126118a557600080fd5b81356118b58482602086016117a7565b91505092915050565b600082601f8301126118cf57600080fd5b81356118df848260208601611813565b91505092915050565b6000815190506118f781612640565b92915050565b60008135905061190c81612657565b92915050565b6000813590506119218161266e565b92915050565b60006060828403121561193957600080fd5b61194360606120a4565b905060006119538482850161187f565b60008301525060206119678482850161187f565b602083015250604061197b848285016119d3565b60408301525092915050565b60006040828403121561199957600080fd5b6119a360406120a4565b905060006119b38482850161187f565b60008301525060206119c7848285016119d3565b60208301525092915050565b6000813590506119e281612685565b92915050565b6000602082840312156119fa57600080fd5b6000611a088482850161187f565b91505092915050565b60008060408385031215611a2457600080fd5b6000611a328582860161187f565b9250506020611a43858286016119d3565b9150509250929050565b600080600060608486031215611a6257600080fd5b6000611a708682870161187f565b9350506020611a81868287016119d3565b9250506040611a928682870161187f565b9150509250925092565b600080600060608486031215611ab157600080fd5b6000611abf8682870161187f565b9350506020611ad0868287016119d3565b9250506040611ae1868287016119d3565b9150509250925092565b600060208284031215611afd57600080fd5b600082013567ffffffffffffffff811115611b1757600080fd5b611b2384828501611894565b91505092915050565b600060208284031215611b3e57600080fd5b600082013567ffffffffffffffff811115611b5857600080fd5b611b64848285016118be565b91505092915050565b600060208284031215611b7f57600080fd5b6000611b8d848285016118e8565b91505092915050565b600060208284031215611ba857600080fd5b6000611bb6848285016118fd565b91505092915050565b60008060408385031215611bd257600080fd5b6000611be0858286016118fd565b9250506020611bf18582860161187f565b9150509250929050565b600060208284031215611c0d57600080fd5b6000611c1b84828501611912565b91505092915050565b600060208284031215611c3657600080fd5b6000611c44848285016119d3565b91505092915050565b60008060408385031215611c6057600080fd5b6000611c6e858286016119d3565b9250506020611c7f8582860161187f565b9150509250929050565b60008060408385031215611c9c57600080fd5b6000611caa858286016119d3565b9250506020611cbb858286016119d3565b9150509250929050565b611cce8161223f565b82525050565b611cdd81612251565b82525050565b611cec8161225d565b82525050565b6000611cfd82612121565b611d078185612137565b9350611d178185602086016122ca565b80840191505092915050565b6000611d2e8261212c565b611d388185612142565b9350611d488185602086016122ca565b611d518161240f565b840191505092915050565b6000611d678261212c565b611d718185612153565b9350611d818185602086016122ca565b80840191505092915050565b6000611d9a602083612142565b9150611da582612420565b602082019050919050565b6000611dbd602283612142565b9150611dc882612449565b604082019050919050565b6000611de0602683612142565b9150611deb82612498565b604082019050919050565b6000611e03601583612142565b9150611e0e826124e7565b602082019050919050565b6000611e26601d83612142565b9150611e3182612510565b602082019050919050565b6000611e49601783612153565b9150611e5482612539565b601782019050919050565b6000611e6c602a83612142565b9150611e7782612562565b604082019050919050565b6000611e8f601183612153565b9150611e9a826125b1565b601182019050919050565b6000611eb2602f83612142565b9150611ebd826125da565b604082019050919050565b611ed1816122b3565b82525050565b6000611ee38284611cf2565b915081905092915050565b6000611ef982611e3c565b9150611f058285611d5c565b9150611f1082611e82565b9150611f1c8284611d5c565b91508190509392505050565b6000604082019050611f3d6000830185611cc5565b611f4a6020830184611ec8565b9392505050565b6000602082019050611f666000830184611cd4565b92915050565b6000602082019050611f816000830184611ce3565b92915050565b60006020820190508181036000830152611fa18184611d23565b905092915050565b60006020820190508181036000830152611fc281611d8d565b9050919050565b60006020820190508181036000830152611fe281611db0565b9050919050565b6000602082019050818103600083015261200281611dd3565b9050919050565b6000602082019050818103600083015261202281611df6565b9050919050565b6000602082019050818103600083015261204281611e19565b9050919050565b6000602082019050818103600083015261206281611e5f565b9050919050565b6000602082019050818103600083015261208281611ea5565b9050919050565b600060208201905061209e6000830184611ec8565b92915050565b60006120ae6120bf565b90506120ba8282612327565b919050565b6000604051905090565b600067ffffffffffffffff8211156120e4576120e36123e0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156121105761210f6123e0565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612169826122b3565b9150612174836122b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121a9576121a8612382565b5b828201905092915050565b60006121bf826122b3565b91506121ca836122b3565b9250826121da576121d96123b1565b5b828204905092915050565b60006121f0826122b3565b91506121fb836122b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561223457612233612382565b5b828202905092915050565b600061224a82612293565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156122e85780820151818401526020810190506122cd565b838111156122f7576000848401525b50505050565b6000612308826122b3565b9150600082141561231c5761231b612382565b5b600182039050919050565b6123308261240f565b810181811067ffffffffffffffff8211171561234f5761234e6123e0565b5b80604052505050565b6000612363826122bd565b915060ff82141561237757612376612382565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4d616e616765723a20504552494f4449435f4d41585f4341505f45584345454460008201527f4544000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a20554e415554484f52495a45440000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6126328161223f565b811461263d57600080fd5b50565b61264981612251565b811461265457600080fd5b50565b6126608161225d565b811461266b57600080fd5b50565b61267781612267565b811461268257600080fd5b50565b61268e816122b3565b811461269957600080fd5b5056fea2646970667358221220d6788e464c79f78f5ef5b33fded44358c351a9c3bce2862a9b50895bfd45781d64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83
Deployed Bytecode
0x60806040526004361061012e5760003560e01c806391d14854116100ab578063a3dcedc81161006f578063a3dcedc81461041f578063afb5cb671461045c578063b95e518914610485578063d547741f146104b0578063dd1edc03146104d9578063e650fe481461050257610135565b806391d148541461033c578063979e8d7914610379578063994948fd146103a2578063a158657c146103cb578063a217fddf146103f457610135565b806336568abe116100f257806336568abe146102455780633891cc0c1461026e5780634425fa49146102ab5780635e2dfaf9146102d45780636eb500051461031157610135565b806301ffc9a71461013a5780631362915114610177578063228c076c146101a2578063248a9ca3146101df5780632f2ff15d1461021c57610135565b3661013557005b600080fd5b34801561014657600080fd5b50610161600480360381019061015c9190611bfb565b61053f565b60405161016e9190611f51565b60405180910390f35b34801561018357600080fd5b5061018c6105b9565b6040516101999190612089565b60405180910390f35b3480156101ae57600080fd5b506101c960048036038101906101c49190611c24565b6105bf565b6040516101d69190612089565b60405180910390f35b3480156101eb57600080fd5b5061020660048036038101906102019190611b96565b6105df565b6040516102139190611f6c565b60405180910390f35b34801561022857600080fd5b50610243600480360381019061023e9190611bbf565b6105fe565b005b34801561025157600080fd5b5061026c60048036038101906102679190611bbf565b61061f565b005b34801561027a57600080fd5b5061029560048036038101906102909190611a11565b6106a2565b6040516102a29190612089565b60405180910390f35b3480156102b757600080fd5b506102d260048036038101906102cd9190611a9c565b6106c7565b005b3480156102e057600080fd5b506102fb60048036038101906102f691906119e8565b610762565b6040516103089190612089565b60405180910390f35b34801561031d57600080fd5b5061032661077a565b6040516103339190612089565b60405180910390f35b34801561034857600080fd5b50610363600480360381019061035e9190611bbf565b610780565b6040516103709190611f51565b60405180910390f35b34801561038557600080fd5b506103a0600480360381019061039b9190611aeb565b6107ea565b005b3480156103ae57600080fd5b506103c960048036038101906103c49190611b2c565b61091b565b005b3480156103d757600080fd5b506103f260048036038101906103ed9190611c4d565b610a04565b005b34801561040057600080fd5b50610409610ad5565b6040516104169190611f6c565b60405180910390f35b34801561042b57600080fd5b5061044660048036038101906104419190611c24565b610adc565b6040516104539190612089565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190611a4d565b610af4565b005b34801561049157600080fd5b5061049a610bab565b6040516104a79190611f6c565b60405180910390f35b3480156104bc57600080fd5b506104d760048036038101906104d29190611bbf565b610bcf565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190611c89565b610bf0565b005b34801561050e57600080fd5b50610529600480360381019061052491906119e8565b610c10565b6040516105369190612089565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105b257506105b182610c28565b5b9050919050565b60025481565b60008182426105ce91906121b4565b6105d891906121e5565b9050919050565b6000806000838152602001908152602001600020600101549050919050565b610607826105df565b61061081610c92565b61061a8383610ca6565b505050565b610627610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b90612069565b60405180910390fd5b61069e8282610d8e565b5050565b6006602052816000526040600020602052806000526040600020600091509150505481565b6000801b6106d481610c92565b82600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b60046020528060005260406000206000915090505481565b60015481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903161081481610c92565b60005b82518160ff16101561091657610903838260ff1681518110610862577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160000151848360ff16815181106108aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160400151858460ff16815181106108f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160200151610af4565b808061090e90612358565b915050610817565b505050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903161094581610c92565b60005b82518160ff1610156109ff576109ec838260ff1681518110610993577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160200151848360ff16815181106109db577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160000151610a04565b80806109f790612358565b915050610948565b505050565b610a2e7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903133610780565b80610a425750610a416000801b33610780565b5b610a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7890612009565b60405180910390fd5b610a8a82610e6f565b8073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610ad0573d6000803e3d6000fd5b505050565b6000801b81565b60036020528060005260406000206000915090505481565b610b1e7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903133610780565b80610b325750610b316000801b33610780565b5b610b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6890612009565b60405180910390fd5b610b7b8383610f25565b610ba681838573ffffffffffffffffffffffffffffffffffffffff1661110d9092919063ffffffff16565b505050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903181565b610bd8826105df565b610be181610c92565b610beb8383610d8e565b505050565b6000801b610bfd81610c92565b8260018190555081600281905550505050565b60056020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610ca381610c9e610d86565b611193565b50565b610cb08282610780565b610d8257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d27610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610d988282610780565b15610e6b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610e10610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b610e7c6000801b33610780565b610f22576002548160036000610e936001546105bf565b815260200190815260200160002054610eac919061215e565b1115610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490611fc9565b60405180910390fd5b8060036000610efd6001546105bf565b81526020019081526020016000206000828254610f1a919061215e565b925050819055505b50565b610f326000801b33610780565b61110957600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105bf565b815260200190815260200160002054611019919061215e565b111561105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190611fc9565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006110e4600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105bf565b81526020019081526020016000206000828254611101919061215e565b925050819055505b5050565b61118e8363a9059cbb60e01b848460405160240161112c929190611f28565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611230565b505050565b61119d8282610780565b61122c576111c28173ffffffffffffffffffffffffffffffffffffffff1660146112f7565b6111d08360001c60206112f7565b6040516020016111e1929190611eee565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112239190611f87565b60405180910390fd5b5050565b6000611292826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115f19092919063ffffffff16565b90506000815111156112f257808060200190518101906112b29190611b6d565b6112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e890612049565b60405180910390fd5b5b505050565b60606000600283600261130a91906121e5565b611314919061215e565b67ffffffffffffffff811115611353577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113855781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106113e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061146d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026114ad91906121e5565b6114b7919061215e565b90505b60018111156115a3577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061151f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061155c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061159c906122fd565b90506114ba565b50600084146115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de90611fa9565b60405180910390fd5b8091505092915050565b60606116008484600085611609565b90509392505050565b60608247101561164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590611fe9565b60405180910390fd5b6116578561171d565b611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d90612029565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116bf9190611ed7565b60006040518083038185875af1925050503d80600081146116fc576040519150601f19603f3d011682016040523d82523d6000602084013e611701565b606091505b5091509150611711828286611740565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611750578290506117a0565b6000835111156117635782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117979190611f87565b60405180910390fd5b9392505050565b60006117ba6117b5846120c9565b6120a4565b905080838252602082019050828560608602820111156117d957600080fd5b60005b8581101561180957816117ef8882611927565b8452602084019350606083019250506001810190506117dc565b5050509392505050565b6000611826611821846120f5565b6120a4565b9050808382526020820190508285604086028201111561184557600080fd5b60005b85811015611875578161185b8882611987565b845260208401935060408301925050600181019050611848565b5050509392505050565b60008135905061188e81612629565b92915050565b600082601f8301126118a557600080fd5b81356118b58482602086016117a7565b91505092915050565b600082601f8301126118cf57600080fd5b81356118df848260208601611813565b91505092915050565b6000815190506118f781612640565b92915050565b60008135905061190c81612657565b92915050565b6000813590506119218161266e565b92915050565b60006060828403121561193957600080fd5b61194360606120a4565b905060006119538482850161187f565b60008301525060206119678482850161187f565b602083015250604061197b848285016119d3565b60408301525092915050565b60006040828403121561199957600080fd5b6119a360406120a4565b905060006119b38482850161187f565b60008301525060206119c7848285016119d3565b60208301525092915050565b6000813590506119e281612685565b92915050565b6000602082840312156119fa57600080fd5b6000611a088482850161187f565b91505092915050565b60008060408385031215611a2457600080fd5b6000611a328582860161187f565b9250506020611a43858286016119d3565b9150509250929050565b600080600060608486031215611a6257600080fd5b6000611a708682870161187f565b9350506020611a81868287016119d3565b9250506040611a928682870161187f565b9150509250925092565b600080600060608486031215611ab157600080fd5b6000611abf8682870161187f565b9350506020611ad0868287016119d3565b9250506040611ae1868287016119d3565b9150509250925092565b600060208284031215611afd57600080fd5b600082013567ffffffffffffffff811115611b1757600080fd5b611b2384828501611894565b91505092915050565b600060208284031215611b3e57600080fd5b600082013567ffffffffffffffff811115611b5857600080fd5b611b64848285016118be565b91505092915050565b600060208284031215611b7f57600080fd5b6000611b8d848285016118e8565b91505092915050565b600060208284031215611ba857600080fd5b6000611bb6848285016118fd565b91505092915050565b60008060408385031215611bd257600080fd5b6000611be0858286016118fd565b9250506020611bf18582860161187f565b9150509250929050565b600060208284031215611c0d57600080fd5b6000611c1b84828501611912565b91505092915050565b600060208284031215611c3657600080fd5b6000611c44848285016119d3565b91505092915050565b60008060408385031215611c6057600080fd5b6000611c6e858286016119d3565b9250506020611c7f8582860161187f565b9150509250929050565b60008060408385031215611c9c57600080fd5b6000611caa858286016119d3565b9250506020611cbb858286016119d3565b9150509250929050565b611cce8161223f565b82525050565b611cdd81612251565b82525050565b611cec8161225d565b82525050565b6000611cfd82612121565b611d078185612137565b9350611d178185602086016122ca565b80840191505092915050565b6000611d2e8261212c565b611d388185612142565b9350611d488185602086016122ca565b611d518161240f565b840191505092915050565b6000611d678261212c565b611d718185612153565b9350611d818185602086016122ca565b80840191505092915050565b6000611d9a602083612142565b9150611da582612420565b602082019050919050565b6000611dbd602283612142565b9150611dc882612449565b604082019050919050565b6000611de0602683612142565b9150611deb82612498565b604082019050919050565b6000611e03601583612142565b9150611e0e826124e7565b602082019050919050565b6000611e26601d83612142565b9150611e3182612510565b602082019050919050565b6000611e49601783612153565b9150611e5482612539565b601782019050919050565b6000611e6c602a83612142565b9150611e7782612562565b604082019050919050565b6000611e8f601183612153565b9150611e9a826125b1565b601182019050919050565b6000611eb2602f83612142565b9150611ebd826125da565b604082019050919050565b611ed1816122b3565b82525050565b6000611ee38284611cf2565b915081905092915050565b6000611ef982611e3c565b9150611f058285611d5c565b9150611f1082611e82565b9150611f1c8284611d5c565b91508190509392505050565b6000604082019050611f3d6000830185611cc5565b611f4a6020830184611ec8565b9392505050565b6000602082019050611f666000830184611cd4565b92915050565b6000602082019050611f816000830184611ce3565b92915050565b60006020820190508181036000830152611fa18184611d23565b905092915050565b60006020820190508181036000830152611fc281611d8d565b9050919050565b60006020820190508181036000830152611fe281611db0565b9050919050565b6000602082019050818103600083015261200281611dd3565b9050919050565b6000602082019050818103600083015261202281611df6565b9050919050565b6000602082019050818103600083015261204281611e19565b9050919050565b6000602082019050818103600083015261206281611e5f565b9050919050565b6000602082019050818103600083015261208281611ea5565b9050919050565b600060208201905061209e6000830184611ec8565b92915050565b60006120ae6120bf565b90506120ba8282612327565b919050565b6000604051905090565b600067ffffffffffffffff8211156120e4576120e36123e0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156121105761210f6123e0565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612169826122b3565b9150612174836122b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121a9576121a8612382565b5b828201905092915050565b60006121bf826122b3565b91506121ca836122b3565b9250826121da576121d96123b1565b5b828204905092915050565b60006121f0826122b3565b91506121fb836122b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561223457612233612382565b5b828202905092915050565b600061224a82612293565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156122e85780820151818401526020810190506122cd565b838111156122f7576000848401525b50505050565b6000612308826122b3565b9150600082141561231c5761231b612382565b5b600182039050919050565b6123308261240f565b810181811067ffffffffffffffff8211171561234f5761234e6123e0565b5b80604052505050565b6000612363826122bd565b915060ff82141561237757612376612382565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4d616e616765723a20504552494f4449435f4d41585f4341505f45584345454460008201527f4544000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a20554e415554484f52495a45440000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6126328161223f565b811461263d57600080fd5b50565b61264981612251565b811461265457600080fd5b50565b6126608161225d565b811461266b57600080fd5b50565b61267781612267565b811461268257600080fd5b50565b61268e816122b3565b811461269957600080fd5b5056fea2646970667358221220d6788e464c79f78f5ef5b33fded44358c351a9c3bce2862a9b50895bfd45781d64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83
-----Decoded View---------------
Arg [0] : period_ (uint256): 86400
Arg [1] : periodicMaxCap_ (uint256): 1000000000000000000
Arg [2] : admin (address): 0xB10f8E218A9cD738b0F1E2f7169Aa3c0897F2d83
Arg [3] : unitap (address): 0xB10f8E218A9cD738b0F1E2f7169Aa3c0897F2d83
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [1] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [2] : 000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83
Arg [3] : 000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
GNO | ![]() | 100.00% | $1 | 78.6684 | $78.68 |
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.