More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 132 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Recover Token | 17591921 | 419 days ago | IN | 0 ETH | 0.0011811 | ||||
Recover ETH | 17591829 | 419 days ago | IN | 0 ETH | 0.00080005 | ||||
Buy Token | 17586066 | 419 days ago | IN | 0.1445 ETH | 0.00504122 | ||||
Buy Token | 17585845 | 419 days ago | IN | 0.09 ETH | 0.0045917 | ||||
Buy Token | 17584308 | 420 days ago | IN | 0.08 ETH | 0.00192874 | ||||
Buy Token | 17580944 | 420 days ago | IN | 0.035 ETH | 0.00220483 | ||||
Buy Token | 17572505 | 421 days ago | IN | 0.06 ETH | 0.00167084 | ||||
Buy Token | 17564730 | 422 days ago | IN | 0.0296 ETH | 0.00205368 | ||||
Recover Token | 17563387 | 423 days ago | IN | 0 ETH | 0.00057179 | ||||
Recover ETH | 17535845 | 426 days ago | IN | 0 ETH | 0.00074048 | ||||
Buy Token | 17484909 | 434 days ago | IN | 0.003 ETH | 0.00242033 | ||||
Buy Token | 17479601 | 434 days ago | IN | 0.0434049 ETH | 0.00382383 | ||||
Buy Token | 17316324 | 457 days ago | IN | 0.38 ETH | 0.00752045 | ||||
Buy Token | 17307133 | 459 days ago | IN | 1.11 ETH | 0.0030387 | ||||
Buy Token | 17305647 | 459 days ago | IN | 1.48 ETH | 0.00290083 | ||||
Buy Token | 17263199 | 465 days ago | IN | 0.21 ETH | 0.00385182 | ||||
Buy Token | 17250160 | 467 days ago | IN | 0.12 ETH | 0.00431309 | ||||
Buy Token | 17250155 | 467 days ago | IN | 0.13 ETH | 0.00446108 | ||||
Buy Token | 17249202 | 467 days ago | IN | 0.068 ETH | 0.00450932 | ||||
Buy Token | 17242100 | 468 days ago | IN | 0.14 ETH | 0.00590426 | ||||
Buy Token | 17242091 | 468 days ago | IN | 0.14 ETH | 0.00610296 | ||||
Buy Token | 17236928 | 469 days ago | IN | 0.088 ETH | 0.00939228 | ||||
Buy Token | 17236881 | 469 days ago | IN | 0.14 ETH | 0.00945245 | ||||
Buy Token | 17229865 | 470 days ago | IN | 0.13519999 ETH | 0.00736841 | ||||
Buy Token | 17229839 | 470 days ago | IN | 0.0545 ETH | 0.00705155 |
Latest 20 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17591829 | 419 days ago | 0.4391 ETH | ||||
17535845 | 426 days ago | 4.3771049 ETH | ||||
17128093 | 484 days ago | 5.038 ETH | ||||
17087498 | 490 days ago | 5.09299999 ETH | ||||
17029363 | 498 days ago | 5.12 ETH | ||||
16973360 | 506 days ago | 5.545 ETH | ||||
16960271 | 508 days ago | 5.48 ETH | ||||
16924311 | 513 days ago | 8.67 ETH | ||||
16923613 | 513 days ago | 2.13 ETH | ||||
16889055 | 518 days ago | 7.531 ETH | ||||
16882859 | 519 days ago | 5.6 ETH | ||||
16867772 | 521 days ago | 7.79499999 ETH | ||||
16805513 | 529 days ago | 5.939 ETH | ||||
16782219 | 533 days ago | 6.089 ETH | ||||
16733330 | 540 days ago | 6.07 ETH | ||||
16733030 | 540 days ago | 6.889 ETH | ||||
16689866 | 546 days ago | 6.73 ETH | ||||
16674591 | 548 days ago | 6.422 ETH | ||||
16596246 | 559 days ago | 6.25419999 ETH | ||||
16575118 | 562 days ago | 6.91234 ETH |
Loading...
Loading
Contract Name:
ICO
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.17; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract ICO is ReentrancyGuard, AccessControl{ event TokenBuyed(address indexed to, uint256 amount); event TokenPerUSDPriceUpdated(uint256 amount); event PaymentTokenDetails(tokenDetail); event TokenAddressUpdated(address indexed tokenAddress); event SignerAddressUpdated( address indexed previousSigner, address indexed newSigner ); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); mapping(uint256 => tokenDetail) public paymentDetails; mapping(uint256 => bool) usedNonce; IERC20 public tokenAddress; address public signer; address public owner; uint256 public tokenAmountPerUSD = 2 * 10 ** 13; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant SIGNER_ROLE = keccak256("SIGNER_ROLE"); struct tokenDetail { string paymentName; address priceFetchContract; address paymentTokenAddress; uint256 decimal; bool status; } struct Sign { uint8 v; bytes32 r; bytes32 s; uint256 nonce; } constructor(IERC20 _tokenAddress) { owner = msg.sender; signer = msg.sender; _setupRole(ADMIN_ROLE, msg.sender); _setupRole(SIGNER_ROLE, msg.sender); tokenAddress = _tokenAddress; paymentDetails[0] = tokenDetail( "ETH", 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 18, true ); paymentDetails[1] = tokenDetail( "WBTC", 0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c, 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599, 8, true ); paymentDetails[2] = tokenDetail( "WMATIC", 0x7bAC85A8a13A4BcD8abb3eB7d6b4d632c5a57676, 0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0, 18, true ); paymentDetails[3] = tokenDetail( "USDC", 0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 6, true );paymentDetails[4] = tokenDetail( "USDT", 0x3E7d1eAB13ad0104d2750B8863b489D65364e32D, 0xdAC17F958D2ee523a2206206994597C13D831ec7, 6, true ); } function transferOwnership(address newOwner) external onlyRole(ADMIN_ROLE) { require(newOwner != address(0), "Invalid Address"); _revokeRole(ADMIN_ROLE, owner); address oldOwner = owner; owner = newOwner; _setupRole(ADMIN_ROLE, owner); emit OwnershipTransferred(oldOwner, owner); } function setSignerAddress(address signerAddress) external onlyRole(SIGNER_ROLE) { require(signerAddress != address(0), "Invalid Address"); _revokeRole(SIGNER_ROLE, signer); address oldSigner = signer; signer = signerAddress; _setupRole(SIGNER_ROLE, signer); emit SignerAddressUpdated(oldSigner, signer); } function getLatestPrice(uint256 paymentType) public view returns(int256) { (, int256 price, , , ) = AggregatorV3Interface( paymentDetails[paymentType].priceFetchContract ).latestRoundData(); return price; } function buyToken( address recipient, uint256 paymentType, uint256 tokenAmount, Sign memory sign ) external payable nonReentrant { require(paymentDetails[paymentType].status, "Invalid Payment"); require(!usedNonce[sign.nonce], "Invalid Nonce"); usedNonce[sign.nonce] = true; require(msg.value > 0 || tokenAmount > 0, "Invalid amount"); uint256 amount; if (paymentType == 0) { verifySign(paymentType, recipient, msg.sender, msg.value, sign); amount = getToken(paymentType, msg.value); } else { verifySign(paymentType, recipient, msg.sender, tokenAmount, sign); amount = getToken(paymentType, tokenAmount); IERC20(paymentDetails[paymentType].paymentTokenAddress).transferFrom( msg.sender, address(this), tokenAmount ); } bool success = tokenAddress.transfer(recipient, amount); require(success, "tx failed"); emit TokenBuyed(msg.sender, amount); } function getToken(uint256 paymentType, uint256 tokenAmount) public view returns (uint256 data) { uint256 price = uint256(getLatestPrice(paymentType)); uint256 amount = price * tokenAmountPerUSD / 1e8; data = amount * tokenAmount / (10 ** paymentDetails[paymentType].decimal); } function recoverETH(address walletAddress) external payable onlyRole(ADMIN_ROLE) { require(walletAddress != address(0), "Null address"); uint256 balance = address(this).balance; payable(walletAddress).transfer(balance); } function recoverToken(address _tokenAddress,address walletAddress, uint256 amount) external onlyRole(ADMIN_ROLE) { require(walletAddress != address(0), "Null address"); require(amount <= IERC20(_tokenAddress).balanceOf(address(this)), "Insufficient amount"); bool success = IERC20(_tokenAddress).transfer( walletAddress, amount ); require(success, "tx failed"); } function setPaymentTokenDetails(uint256 paymentType, tokenDetail memory _tokenDetails) external onlyRole(ADMIN_ROLE) { paymentDetails[paymentType] = _tokenDetails; emit PaymentTokenDetails(_tokenDetails); } function setTokenAddress(address _tokenAddress) external onlyRole(ADMIN_ROLE) { tokenAddress = IERC20(_tokenAddress); emit TokenAddressUpdated(address(tokenAddress)); } function setTokenPricePerUSD(uint256 tokenAmount) external onlyRole(ADMIN_ROLE) { tokenAmountPerUSD = tokenAmount; emit TokenPerUSDPriceUpdated(tokenAmountPerUSD); } function verifySign( uint256 assetType, address recipient, address caller, uint256 amount, Sign memory sign ) internal view { bytes32 hash = keccak256( abi.encodePacked(assetType, recipient, caller, amount, sign.nonce) ); require( signer == ecrecover( keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", hash ) ), sign.v, sign.r, sign.s ), "Owner sign verification failed" ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"string","name":"paymentName","type":"string"},{"internalType":"address","name":"priceFetchContract","type":"address"},{"internalType":"address","name":"paymentTokenAddress","type":"address"},{"internalType":"uint256","name":"decimal","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"indexed":false,"internalType":"struct ICO.tokenDetail","name":"","type":"tuple"}],"name":"PaymentTokenDetails","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousSigner","type":"address"},{"indexed":true,"internalType":"address","name":"newSigner","type":"address"}],"name":"SignerAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenBuyed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenPerUSDPriceUpdated","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"paymentType","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct ICO.Sign","name":"sign","type":"tuple"}],"name":"buyToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"paymentType","type":"uint256"}],"name":"getLatestPrice","outputs":[{"internalType":"int256","name":"","type":"int256"}],"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":"uint256","name":"paymentType","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"getToken","outputs":[{"internalType":"uint256","name":"data","type":"uint256"}],"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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paymentDetails","outputs":[{"internalType":"string","name":"paymentName","type":"string"},{"internalType":"address","name":"priceFetchContract","type":"address"},{"internalType":"address","name":"paymentTokenAddress","type":"address"},{"internalType":"uint256","name":"decimal","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"walletAddress","type":"address"}],"name":"recoverETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"walletAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","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":"uint256","name":"paymentType","type":"uint256"},{"components":[{"internalType":"string","name":"paymentName","type":"string"},{"internalType":"address","name":"priceFetchContract","type":"address"},{"internalType":"address","name":"paymentTokenAddress","type":"address"},{"internalType":"uint256","name":"decimal","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"internalType":"struct ICO.tokenDetail","name":"_tokenDetails","type":"tuple"}],"name":"setPaymentTokenDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"setTokenPricePerUSD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAmountPerUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526512309ce540006007553480156200001b57600080fd5b50604051620046ac380380620046ac833981810160405281019062000041919062000b75565b600160008190555033600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000fd7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200097d60201b60201c565b6200012f7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70336200097d60201b60201c565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060a001604052806040518060400160405280600381526020017f45544800000000000000000000000000000000000000000000000000000000008152508152602001735f4ec3df9cbd43714fe2740f5e3616155c5b841973ffffffffffffffffffffffffffffffffffffffff16815260200173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16815260200160128152602001600115158152506002600080815260200190815260200160002060008201518160000190816200024e919062000e21565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050506040518060a001604052806040518060400160405280600481526020017f5742544300000000000000000000000000000000000000000000000000000000815250815260200173f4030086522a5beea4988f8ca5b36dbc97bee88c73ffffffffffffffffffffffffffffffffffffffff168152602001732260fac5e5542a773aa44fbcfedf7c193bc2c59973ffffffffffffffffffffffffffffffffffffffff168152602001600881526020016001151581525060026000600181526020019081526020016000206000820151816000019081620003e9919062000e21565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050506040518060a001604052806040518060400160405280600681526020017f574d4154494300000000000000000000000000000000000000000000000000008152508152602001737bac85a8a13a4bcd8abb3eb7d6b4d632c5a5767673ffffffffffffffffffffffffffffffffffffffff168152602001737d1afa7b718fb893db30a3abc0cfc608aacfebb073ffffffffffffffffffffffffffffffffffffffff16815260200160128152602001600115158152506002600060028152602001908152602001600020600082015181600001908162000584919062000e21565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050506040518060a001604052806040518060400160405280600481526020017f55534443000000000000000000000000000000000000000000000000000000008152508152602001738fffffd4afb6115b954bd326cbe7b4ba576818f673ffffffffffffffffffffffffffffffffffffffff16815260200173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff1681526020016006815260200160011515815250600260006003815260200190815260200160002060008201518160000190816200071f919062000e21565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050506040518060a001604052806040518060400160405280600481526020017f55534454000000000000000000000000000000000000000000000000000000008152508152602001733e7d1eab13ad0104d2750b8863b489d65364e32d73ffffffffffffffffffffffffffffffffffffffff16815260200173dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff168152602001600681526020016001151581525060026000600481526020019081526020016000206000820151816000019081620008ba919062000e21565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050505062000f08565b6200098f82826200099360201b60201c565b5050565b620009a5828262000a8460201b60201c565b62000a8057600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000a2562000aef60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b298262000afc565b9050919050565b600062000b3d8262000b1c565b9050919050565b62000b4f8162000b30565b811462000b5b57600080fd5b50565b60008151905062000b6f8162000b44565b92915050565b60006020828403121562000b8e5762000b8d62000af7565b5b600062000b9e8482850162000b5e565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000c2957607f821691505b60208210810362000c3f5762000c3e62000be1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000ca97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000c6a565b62000cb5868362000c6a565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000d0262000cfc62000cf68462000ccd565b62000cd7565b62000ccd565b9050919050565b6000819050919050565b62000d1e8362000ce1565b62000d3662000d2d8262000d09565b84845462000c77565b825550505050565b600090565b62000d4d62000d3e565b62000d5a81848462000d13565b505050565b5b8181101562000d825762000d7660008262000d43565b60018101905062000d60565b5050565b601f82111562000dd15762000d9b8162000c45565b62000da68462000c5a565b8101602085101562000db6578190505b62000dce62000dc58562000c5a565b83018262000d5f565b50505b505050565b600082821c905092915050565b600062000df66000198460080262000dd6565b1980831691505092915050565b600062000e11838362000de3565b9150826002028217905092915050565b62000e2c8262000ba7565b67ffffffffffffffff81111562000e485762000e4762000bb2565b5b62000e54825462000c10565b62000e6182828562000d86565b600060209050601f83116001811462000e99576000841562000e84578287015190505b62000e90858262000e03565b86555062000f00565b601f19841662000ea98662000c45565b60005b8281101562000ed35784890151825560018201915060208501945060208101905062000eac565b8683101562000ef3578489015162000eef601f89168262000de3565b8355505b6001600288020188555050505b505050505050565b6137948062000f186000396000f3fe60806040526004361061014b5760003560e01c80638da5cb5b116100b6578063a7229fd91161006f578063a7229fd914610483578063b94fe917146104ac578063d547741f146104e9578063e5d5f9ac14610512578063f25f45e114610553578063f2fde38b1461056f5761014b565b80638da5cb5b1461035d57806391d14854146103885780639d76ea58146103c5578063a1ebf35d146103f0578063a217fddf1461041b578063a4fd3cea146104465761014b565b80632f2ff15d116101085780632f2ff15d1461026357806336568abe1461028c57806336c91e0b146102b55780635d780b0f146102de5780636ee5466c1461030757806375b238fc146103325761014b565b806301ffc9a714610150578063046dc1661461018d578063134dfcd8146101b6578063238ac933146101d2578063248a9ca3146101fd57806326a4e8d21461023a575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611f06565b610598565b6040516101849190611f4e565b60405180910390f35b34801561019957600080fd5b506101b460048036038101906101af9190611fc7565b610612565b005b6101d060048036038101906101cb9190611fc7565b61082c565b005b3480156101de57600080fd5b506101e7610916565b6040516101f49190612003565b60405180910390f35b34801561020957600080fd5b50610224600480360381019061021f9190612054565b61093c565b6040516102319190612090565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190611fc7565b61095c565b005b34801561026f57600080fd5b5061028a600480360381019061028591906120ab565b610a30565b005b34801561029857600080fd5b506102b360048036038101906102ae91906120ab565b610a51565b005b3480156102c157600080fd5b506102dc60048036038101906102d79190612345565b610ad4565b005b3480156102ea57600080fd5b50610305600480360381019061030091906123a1565b610c1f565b005b34801561031357600080fd5b5061031c610c8d565b60405161032991906123dd565b60405180910390f35b34801561033e57600080fd5b50610347610c93565b6040516103549190612090565b60405180910390f35b34801561036957600080fd5b50610372610cb7565b60405161037f9190612003565b60405180910390f35b34801561039457600080fd5b506103af60048036038101906103aa91906120ab565b610cdd565b6040516103bc9190611f4e565b60405180910390f35b3480156103d157600080fd5b506103da610d48565b6040516103e79190612457565b60405180910390f35b3480156103fc57600080fd5b50610405610d6e565b6040516104129190612090565b60405180910390f35b34801561042757600080fd5b50610430610d92565b60405161043d9190612090565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190612472565b610d99565b60405161047a91906123dd565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a591906124b2565b610e0b565b005b3480156104b857600080fd5b506104d360048036038101906104ce91906123a1565b611029565b6040516104e0919061251e565b60405180910390f35b3480156104f557600080fd5b50610510600480360381019061050b91906120ab565b6110e0565b005b34801561051e57600080fd5b50610539600480360381019061053491906123a1565b611101565b60405161054a9594939291906125b8565b60405180910390f35b61056d600480360381019061056891906126c3565b61120c565b005b34801561057b57600080fd5b5061059660048036038101906105919190611fc7565b611594565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061060b575061060a826117ae565b5b9050919050565b7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7061063c81611818565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290612776565b60405180910390fd5b6106f77fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661182c565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506107ab7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661190e565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f161a11d78e4c8a98c15b73ea9fd62ecc47a26992a28ca57d3307f1568dd637de60405160405180910390a3505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561085681611818565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bc906127e2565b60405180910390fd5b60004790508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610910573d6000803e3d6000fd5b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060016000838152602001908152602001600020600101549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561098681611818565b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2f0c7f17be551d1f4566672cd67adbe50173e96632f56ff80d80acc4ac00f32860405160405180910390a25050565b610a398261093c565b610a4281611818565b610a4c838361191c565b505050565b610a596119fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abd90612874565b60405180910390fd5b610ad0828261182c565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610afe81611818565b81600260008581526020019081526020016000206000820151816000019081610b279190612a96565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050507fc6a6bbb521a1b6e0903f49fd50fb8814e53f40c499a58047f06924f1227cb2e982604051610c129190612c55565b60405180910390a1505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c4981611818565b816007819055507fc00851c244a38b810df9b4461857350bdef6ff41253d9622a60accd5e30bae01600754604051610c8191906123dd565b60405180910390a15050565b60075481565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b6000801b81565b600080610da584611029565b905060006305f5e10060075483610dbc9190612ca6565b610dc69190612d17565b90506002600086815260200190815260200160002060030154600a610deb9190612e7b565b8482610df79190612ca6565b610e019190612d17565b9250505092915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610e3581611818565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b906127e2565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610edd9190612003565b602060405180830381865afa158015610efa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1e9190612edb565b821115610f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5790612f54565b60405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401610f9d929190612f74565b6020604051808303816000875af1158015610fbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe09190612fb2565b905080611022576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110199061302b565b60405180910390fd5b5050505050565b6000806002600084815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d191906130b9565b50505091505080915050919050565b6110e98261093c565b6110f281611818565b6110fc838361182c565b505050565b6002602052806000526040600020600091509050806000018054611124906128c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611150906128c3565b801561119d5780601f106111725761010080835404028352916020019161119d565b820191906000526020600020905b81548152906001019060200180831161118057829003601f168201915b5050505050908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030154908060040160009054906101000a900460ff16905085565b611214611a04565b6002600084815260200190815260200160002060040160009054906101000a900460ff16611277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126e90613180565b60405180910390fd5b600360008260600151815260200190815260200160002060009054906101000a900460ff16156112dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d3906131ec565b60405180910390fd5b6001600360008360600151815260200190815260200160002060006101000a81548160ff021916908315150217905550600034118061131b5750600082115b61135a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135190613258565b60405180910390fd5b6000808403611381576113708486333486611a53565b61137a8434610d99565b9050611452565b61138e8486338686611a53565b6113988484610d99565b90506002600085815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161140d93929190613278565b6020604051808303816000875af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190612fb2565b505b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87846040518363ffffffff1660e01b81526004016114b1929190612f74565b6020604051808303816000875af11580156114d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f49190612fb2565b905080611536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152d9061302b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f8c4324bee5c22bb8ff94ce928c5aada9362a5d55a74e8b72f02e8aa39f32cf738360405161157c91906123dd565b60405180910390a2505061158e611ba2565b50505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756115be81611818565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162490612776565b60405180910390fd5b6116797fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661182c565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061172d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661190e565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611829816118246119fc565b611bac565b50565b6118368282610cdd565b1561190a5760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118af6119fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611918828261191c565b5050565b6119268282610cdd565b6119f857600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061199d6119fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b600260005403611a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a40906132fb565b60405180910390fd5b6002600081905550565b6000858585858560600151604051602001611a72959493929190613384565b604051602081830303815290604052805190602001209050600181604051602001611a9d919061345b565b6040516020818303038152906040528051906020012083600001518460200151856040015160405160008152602001604052604051611adf9493929190613490565b6020604051602081039080840390855afa158015611b01573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190613521565b60405180910390fd5b505050505050565b6001600081905550565b611bb68282610cdd565b611c2d57611bc381611c31565b611bd18360001c6020611c5e565b604051602001611be292919061360a565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c249190613644565b60405180910390fd5b5050565b6060611c578273ffffffffffffffffffffffffffffffffffffffff16601460ff16611c5e565b9050919050565b606060006002836002611c719190612ca6565b611c7b9190613666565b67ffffffffffffffff811115611c9457611c93612137565b5b6040519080825280601f01601f191660200182016040528015611cc65781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611cfe57611cfd61369a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611d6257611d6161369a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611da29190612ca6565b611dac9190613666565b90505b6001811115611e4c577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611dee57611ded61369a565b5b1a60f81b828281518110611e0557611e0461369a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611e45906136c9565b9050611daf565b5060008414611e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e879061373e565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611ee381611eae565b8114611eee57600080fd5b50565b600081359050611f0081611eda565b92915050565b600060208284031215611f1c57611f1b611ea4565b5b6000611f2a84828501611ef1565b91505092915050565b60008115159050919050565b611f4881611f33565b82525050565b6000602082019050611f636000830184611f3f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f9482611f69565b9050919050565b611fa481611f89565b8114611faf57600080fd5b50565b600081359050611fc181611f9b565b92915050565b600060208284031215611fdd57611fdc611ea4565b5b6000611feb84828501611fb2565b91505092915050565b611ffd81611f89565b82525050565b60006020820190506120186000830184611ff4565b92915050565b6000819050919050565b6120318161201e565b811461203c57600080fd5b50565b60008135905061204e81612028565b92915050565b60006020828403121561206a57612069611ea4565b5b60006120788482850161203f565b91505092915050565b61208a8161201e565b82525050565b60006020820190506120a56000830184612081565b92915050565b600080604083850312156120c2576120c1611ea4565b5b60006120d08582860161203f565b92505060206120e185828601611fb2565b9150509250929050565b6000819050919050565b6120fe816120eb565b811461210957600080fd5b50565b60008135905061211b816120f5565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61216f82612126565b810181811067ffffffffffffffff8211171561218e5761218d612137565b5b80604052505050565b60006121a1611e9a565b90506121ad8282612166565b919050565b600080fd5b600080fd5b600080fd5b600067ffffffffffffffff8211156121dc576121db612137565b5b6121e582612126565b9050602081019050919050565b82818337600083830152505050565b600061221461220f846121c1565b612197565b9050828152602081018484840111156122305761222f6121bc565b5b61223b8482856121f2565b509392505050565b600082601f830112612258576122576121b7565b5b8135612268848260208601612201565b91505092915050565b61227a81611f33565b811461228557600080fd5b50565b60008135905061229781612271565b92915050565b600060a082840312156122b3576122b2612121565b5b6122bd60a0612197565b9050600082013567ffffffffffffffff8111156122dd576122dc6121b2565b5b6122e984828501612243565b60008301525060206122fd84828501611fb2565b602083015250604061231184828501611fb2565b60408301525060606123258482850161210c565b606083015250608061233984828501612288565b60808301525092915050565b6000806040838503121561235c5761235b611ea4565b5b600061236a8582860161210c565b925050602083013567ffffffffffffffff81111561238b5761238a611ea9565b5b6123978582860161229d565b9150509250929050565b6000602082840312156123b7576123b6611ea4565b5b60006123c58482850161210c565b91505092915050565b6123d7816120eb565b82525050565b60006020820190506123f260008301846123ce565b92915050565b6000819050919050565b600061241d61241861241384611f69565b6123f8565b611f69565b9050919050565b600061242f82612402565b9050919050565b600061244182612424565b9050919050565b61245181612436565b82525050565b600060208201905061246c6000830184612448565b92915050565b6000806040838503121561248957612488611ea4565b5b60006124978582860161210c565b92505060206124a88582860161210c565b9150509250929050565b6000806000606084860312156124cb576124ca611ea4565b5b60006124d986828701611fb2565b93505060206124ea86828701611fb2565b92505060406124fb8682870161210c565b9150509250925092565b6000819050919050565b61251881612505565b82525050565b6000602082019050612533600083018461250f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612573578082015181840152602081019050612558565b60008484015250505050565b600061258a82612539565b6125948185612544565b93506125a4818560208601612555565b6125ad81612126565b840191505092915050565b600060a08201905081810360008301526125d2818861257f565b90506125e16020830187611ff4565b6125ee6040830186611ff4565b6125fb60608301856123ce565b6126086080830184611f3f565b9695505050505050565b600060ff82169050919050565b61262881612612565b811461263357600080fd5b50565b6000813590506126458161261f565b92915050565b60006080828403121561266157612660612121565b5b61266b6080612197565b9050600061267b84828501612636565b600083015250602061268f8482850161203f565b60208301525060406126a38482850161203f565b60408301525060606126b78482850161210c565b60608301525092915050565b60008060008060e085870312156126dd576126dc611ea4565b5b60006126eb87828801611fb2565b94505060206126fc8782880161210c565b935050604061270d8782880161210c565b925050606061271e8782880161264b565b91505092959194509250565b7f496e76616c696420416464726573730000000000000000000000000000000000600082015250565b6000612760600f83612544565b915061276b8261272a565b602082019050919050565b6000602082019050818103600083015261278f81612753565b9050919050565b7f4e756c6c20616464726573730000000000000000000000000000000000000000600082015250565b60006127cc600c83612544565b91506127d782612796565b602082019050919050565b600060208201905081810360008301526127fb816127bf565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061285e602f83612544565b915061286982612802565b604082019050919050565b6000602082019050818103600083015261288d81612851565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806128db57607f821691505b6020821081036128ee576128ed612894565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026129567fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612919565b6129608683612919565b95508019841693508086168417925050509392505050565b600061299361298e612989846120eb565b6123f8565b6120eb565b9050919050565b6000819050919050565b6129ad83612978565b6129c16129b98261299a565b848454612926565b825550505050565b600090565b6129d66129c9565b6129e18184846129a4565b505050565b5b81811015612a05576129fa6000826129ce565b6001810190506129e7565b5050565b601f821115612a4a57612a1b816128f4565b612a2484612909565b81016020851015612a33578190505b612a47612a3f85612909565b8301826129e6565b50505b505050565b600082821c905092915050565b6000612a6d60001984600802612a4f565b1980831691505092915050565b6000612a868383612a5c565b9150826002028217905092915050565b612a9f82612539565b67ffffffffffffffff811115612ab857612ab7612137565b5b612ac282546128c3565b612acd828285612a09565b600060209050601f831160018114612b005760008415612aee578287015190505b612af88582612a7a565b865550612b60565b601f198416612b0e866128f4565b60005b82811015612b3657848901518255600182019150602085019450602081019050612b11565b86831015612b535784890151612b4f601f891682612a5c565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b6000612b8482612539565b612b8e8185612b68565b9350612b9e818560208601612555565b612ba781612126565b840191505092915050565b612bbb81611f89565b82525050565b612bca816120eb565b82525050565b612bd981611f33565b82525050565b600060a0830160008301518482036000860152612bfc8282612b79565b9150506020830151612c116020860182612bb2565b506040830151612c246040860182612bb2565b506060830151612c376060860182612bc1565b506080830151612c4a6080860182612bd0565b508091505092915050565b60006020820190508181036000830152612c6f8184612bdf565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cb1826120eb565b9150612cbc836120eb565b9250828202612cca816120eb565b91508282048414831517612ce157612ce0612c77565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612d22826120eb565b9150612d2d836120eb565b925082612d3d57612d3c612ce8565b5b828204905092915050565b60008160011c9050919050565b6000808291508390505b6001851115612d9f57808604811115612d7b57612d7a612c77565b5b6001851615612d8a5780820291505b8081029050612d9885612d48565b9450612d5f565b94509492505050565b600082612db85760019050612e74565b81612dc65760009050612e74565b8160018114612ddc5760028114612de657612e15565b6001915050612e74565b60ff841115612df857612df7612c77565b5b8360020a915084821115612e0f57612e0e612c77565b5b50612e74565b5060208310610133831016604e8410600b8410161715612e4a5782820a905083811115612e4557612e44612c77565b5b612e74565b612e578484846001612d55565b92509050818404811115612e6e57612e6d612c77565b5b81810290505b9392505050565b6000612e86826120eb565b9150612e91836120eb565b9250612ebe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612da8565b905092915050565b600081519050612ed5816120f5565b92915050565b600060208284031215612ef157612ef0611ea4565b5b6000612eff84828501612ec6565b91505092915050565b7f496e73756666696369656e7420616d6f756e7400000000000000000000000000600082015250565b6000612f3e601383612544565b9150612f4982612f08565b602082019050919050565b60006020820190508181036000830152612f6d81612f31565b9050919050565b6000604082019050612f896000830185611ff4565b612f9660208301846123ce565b9392505050565b600081519050612fac81612271565b92915050565b600060208284031215612fc857612fc7611ea4565b5b6000612fd684828501612f9d565b91505092915050565b7f7478206661696c65640000000000000000000000000000000000000000000000600082015250565b6000613015600983612544565b915061302082612fdf565b602082019050919050565b6000602082019050818103600083015261304481613008565b9050919050565b600069ffffffffffffffffffff82169050919050565b61306a8161304b565b811461307557600080fd5b50565b60008151905061308781613061565b92915050565b61309681612505565b81146130a157600080fd5b50565b6000815190506130b38161308d565b92915050565b600080600080600060a086880312156130d5576130d4611ea4565b5b60006130e388828901613078565b95505060206130f4888289016130a4565b945050604061310588828901612ec6565b935050606061311688828901612ec6565b925050608061312788828901613078565b9150509295509295909350565b7f496e76616c6964205061796d656e740000000000000000000000000000000000600082015250565b600061316a600f83612544565b915061317582613134565b602082019050919050565b600060208201905081810360008301526131998161315d565b9050919050565b7f496e76616c6964204e6f6e636500000000000000000000000000000000000000600082015250565b60006131d6600d83612544565b91506131e1826131a0565b602082019050919050565b60006020820190508181036000830152613205816131c9565b9050919050565b7f496e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b6000613242600e83612544565b915061324d8261320c565b602082019050919050565b6000602082019050818103600083015261327181613235565b9050919050565b600060608201905061328d6000830186611ff4565b61329a6020830185611ff4565b6132a760408301846123ce565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006132e5601f83612544565b91506132f0826132af565b602082019050919050565b60006020820190508181036000830152613314816132d8565b9050919050565b6000819050919050565b613336613331826120eb565b61331b565b82525050565b60008160601b9050919050565b60006133548261333c565b9050919050565b600061336682613349565b9050919050565b61337e61337982611f89565b61335b565b82525050565b60006133908288613325565b6020820191506133a0828761336d565b6014820191506133b0828661336d565b6014820191506133c08285613325565b6020820191506133d08284613325565b6020820191508190509695505050505050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000613424601c836133e3565b915061342f826133ee565b601c82019050919050565b6000819050919050565b6134556134508261201e565b61343a565b82525050565b600061346682613417565b91506134728284613444565b60208201915081905092915050565b61348a81612612565b82525050565b60006080820190506134a56000830187612081565b6134b26020830186613481565b6134bf6040830185612081565b6134cc6060830184612081565b95945050505050565b7f4f776e6572207369676e20766572696669636174696f6e206661696c65640000600082015250565b600061350b601e83612544565b9150613516826134d5565b602082019050919050565b6000602082019050818103600083015261353a816134fe565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006135776017836133e3565b915061358282613541565b601782019050919050565b600061359882612539565b6135a281856133e3565b93506135b2818560208601612555565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006135f46011836133e3565b91506135ff826135be565b601182019050919050565b60006136158261356a565b9150613621828561358d565b915061362c826135e7565b9150613638828461358d565b91508190509392505050565b6000602082019050818103600083015261365e818461257f565b905092915050565b6000613671826120eb565b915061367c836120eb565b925082820190508082111561369457613693612c77565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006136d4826120eb565b9150600082036136e7576136e6612c77565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613728602083612544565b9150613733826136f2565b602082019050919050565b600060208201905081810360008301526137578161371b565b905091905056fea26469706673582212208a69ad3137058015ebefa9436d64a4b05341d1e30e9b014b9c43ca251062096464736f6c6343000811003300000000000000000000000087fdd1e031b356bdc1c55a3231cfe266552d8284
Deployed Bytecode
0x60806040526004361061014b5760003560e01c80638da5cb5b116100b6578063a7229fd91161006f578063a7229fd914610483578063b94fe917146104ac578063d547741f146104e9578063e5d5f9ac14610512578063f25f45e114610553578063f2fde38b1461056f5761014b565b80638da5cb5b1461035d57806391d14854146103885780639d76ea58146103c5578063a1ebf35d146103f0578063a217fddf1461041b578063a4fd3cea146104465761014b565b80632f2ff15d116101085780632f2ff15d1461026357806336568abe1461028c57806336c91e0b146102b55780635d780b0f146102de5780636ee5466c1461030757806375b238fc146103325761014b565b806301ffc9a714610150578063046dc1661461018d578063134dfcd8146101b6578063238ac933146101d2578063248a9ca3146101fd57806326a4e8d21461023a575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611f06565b610598565b6040516101849190611f4e565b60405180910390f35b34801561019957600080fd5b506101b460048036038101906101af9190611fc7565b610612565b005b6101d060048036038101906101cb9190611fc7565b61082c565b005b3480156101de57600080fd5b506101e7610916565b6040516101f49190612003565b60405180910390f35b34801561020957600080fd5b50610224600480360381019061021f9190612054565b61093c565b6040516102319190612090565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190611fc7565b61095c565b005b34801561026f57600080fd5b5061028a600480360381019061028591906120ab565b610a30565b005b34801561029857600080fd5b506102b360048036038101906102ae91906120ab565b610a51565b005b3480156102c157600080fd5b506102dc60048036038101906102d79190612345565b610ad4565b005b3480156102ea57600080fd5b50610305600480360381019061030091906123a1565b610c1f565b005b34801561031357600080fd5b5061031c610c8d565b60405161032991906123dd565b60405180910390f35b34801561033e57600080fd5b50610347610c93565b6040516103549190612090565b60405180910390f35b34801561036957600080fd5b50610372610cb7565b60405161037f9190612003565b60405180910390f35b34801561039457600080fd5b506103af60048036038101906103aa91906120ab565b610cdd565b6040516103bc9190611f4e565b60405180910390f35b3480156103d157600080fd5b506103da610d48565b6040516103e79190612457565b60405180910390f35b3480156103fc57600080fd5b50610405610d6e565b6040516104129190612090565b60405180910390f35b34801561042757600080fd5b50610430610d92565b60405161043d9190612090565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190612472565b610d99565b60405161047a91906123dd565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a591906124b2565b610e0b565b005b3480156104b857600080fd5b506104d360048036038101906104ce91906123a1565b611029565b6040516104e0919061251e565b60405180910390f35b3480156104f557600080fd5b50610510600480360381019061050b91906120ab565b6110e0565b005b34801561051e57600080fd5b50610539600480360381019061053491906123a1565b611101565b60405161054a9594939291906125b8565b60405180910390f35b61056d600480360381019061056891906126c3565b61120c565b005b34801561057b57600080fd5b5061059660048036038101906105919190611fc7565b611594565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061060b575061060a826117ae565b5b9050919050565b7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7061063c81611818565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290612776565b60405180910390fd5b6106f77fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661182c565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506107ab7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661190e565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f161a11d78e4c8a98c15b73ea9fd62ecc47a26992a28ca57d3307f1568dd637de60405160405180910390a3505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561085681611818565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bc906127e2565b60405180910390fd5b60004790508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610910573d6000803e3d6000fd5b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060016000838152602001908152602001600020600101549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561098681611818565b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2f0c7f17be551d1f4566672cd67adbe50173e96632f56ff80d80acc4ac00f32860405160405180910390a25050565b610a398261093c565b610a4281611818565b610a4c838361191c565b505050565b610a596119fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abd90612874565b60405180910390fd5b610ad0828261182c565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610afe81611818565b81600260008581526020019081526020016000206000820151816000019081610b279190612a96565b5060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050507fc6a6bbb521a1b6e0903f49fd50fb8814e53f40c499a58047f06924f1227cb2e982604051610c129190612c55565b60405180910390a1505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c4981611818565b816007819055507fc00851c244a38b810df9b4461857350bdef6ff41253d9622a60accd5e30bae01600754604051610c8191906123dd565b60405180910390a15050565b60075481565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b6000801b81565b600080610da584611029565b905060006305f5e10060075483610dbc9190612ca6565b610dc69190612d17565b90506002600086815260200190815260200160002060030154600a610deb9190612e7b565b8482610df79190612ca6565b610e019190612d17565b9250505092915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610e3581611818565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b906127e2565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610edd9190612003565b602060405180830381865afa158015610efa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1e9190612edb565b821115610f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5790612f54565b60405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401610f9d929190612f74565b6020604051808303816000875af1158015610fbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe09190612fb2565b905080611022576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110199061302b565b60405180910390fd5b5050505050565b6000806002600084815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d191906130b9565b50505091505080915050919050565b6110e98261093c565b6110f281611818565b6110fc838361182c565b505050565b6002602052806000526040600020600091509050806000018054611124906128c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611150906128c3565b801561119d5780601f106111725761010080835404028352916020019161119d565b820191906000526020600020905b81548152906001019060200180831161118057829003601f168201915b5050505050908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030154908060040160009054906101000a900460ff16905085565b611214611a04565b6002600084815260200190815260200160002060040160009054906101000a900460ff16611277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126e90613180565b60405180910390fd5b600360008260600151815260200190815260200160002060009054906101000a900460ff16156112dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d3906131ec565b60405180910390fd5b6001600360008360600151815260200190815260200160002060006101000a81548160ff021916908315150217905550600034118061131b5750600082115b61135a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135190613258565b60405180910390fd5b6000808403611381576113708486333486611a53565b61137a8434610d99565b9050611452565b61138e8486338686611a53565b6113988484610d99565b90506002600085815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161140d93929190613278565b6020604051808303816000875af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190612fb2565b505b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87846040518363ffffffff1660e01b81526004016114b1929190612f74565b6020604051808303816000875af11580156114d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f49190612fb2565b905080611536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152d9061302b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f8c4324bee5c22bb8ff94ce928c5aada9362a5d55a74e8b72f02e8aa39f32cf738360405161157c91906123dd565b60405180910390a2505061158e611ba2565b50505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756115be81611818565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162490612776565b60405180910390fd5b6116797fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661182c565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061172d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661190e565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611829816118246119fc565b611bac565b50565b6118368282610cdd565b1561190a5760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118af6119fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611918828261191c565b5050565b6119268282610cdd565b6119f857600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061199d6119fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b600260005403611a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a40906132fb565b60405180910390fd5b6002600081905550565b6000858585858560600151604051602001611a72959493929190613384565b604051602081830303815290604052805190602001209050600181604051602001611a9d919061345b565b6040516020818303038152906040528051906020012083600001518460200151856040015160405160008152602001604052604051611adf9493929190613490565b6020604051602081039080840390855afa158015611b01573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190613521565b60405180910390fd5b505050505050565b6001600081905550565b611bb68282610cdd565b611c2d57611bc381611c31565b611bd18360001c6020611c5e565b604051602001611be292919061360a565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c249190613644565b60405180910390fd5b5050565b6060611c578273ffffffffffffffffffffffffffffffffffffffff16601460ff16611c5e565b9050919050565b606060006002836002611c719190612ca6565b611c7b9190613666565b67ffffffffffffffff811115611c9457611c93612137565b5b6040519080825280601f01601f191660200182016040528015611cc65781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611cfe57611cfd61369a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611d6257611d6161369a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611da29190612ca6565b611dac9190613666565b90505b6001811115611e4c577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611dee57611ded61369a565b5b1a60f81b828281518110611e0557611e0461369a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611e45906136c9565b9050611daf565b5060008414611e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e879061373e565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611ee381611eae565b8114611eee57600080fd5b50565b600081359050611f0081611eda565b92915050565b600060208284031215611f1c57611f1b611ea4565b5b6000611f2a84828501611ef1565b91505092915050565b60008115159050919050565b611f4881611f33565b82525050565b6000602082019050611f636000830184611f3f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f9482611f69565b9050919050565b611fa481611f89565b8114611faf57600080fd5b50565b600081359050611fc181611f9b565b92915050565b600060208284031215611fdd57611fdc611ea4565b5b6000611feb84828501611fb2565b91505092915050565b611ffd81611f89565b82525050565b60006020820190506120186000830184611ff4565b92915050565b6000819050919050565b6120318161201e565b811461203c57600080fd5b50565b60008135905061204e81612028565b92915050565b60006020828403121561206a57612069611ea4565b5b60006120788482850161203f565b91505092915050565b61208a8161201e565b82525050565b60006020820190506120a56000830184612081565b92915050565b600080604083850312156120c2576120c1611ea4565b5b60006120d08582860161203f565b92505060206120e185828601611fb2565b9150509250929050565b6000819050919050565b6120fe816120eb565b811461210957600080fd5b50565b60008135905061211b816120f5565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61216f82612126565b810181811067ffffffffffffffff8211171561218e5761218d612137565b5b80604052505050565b60006121a1611e9a565b90506121ad8282612166565b919050565b600080fd5b600080fd5b600080fd5b600067ffffffffffffffff8211156121dc576121db612137565b5b6121e582612126565b9050602081019050919050565b82818337600083830152505050565b600061221461220f846121c1565b612197565b9050828152602081018484840111156122305761222f6121bc565b5b61223b8482856121f2565b509392505050565b600082601f830112612258576122576121b7565b5b8135612268848260208601612201565b91505092915050565b61227a81611f33565b811461228557600080fd5b50565b60008135905061229781612271565b92915050565b600060a082840312156122b3576122b2612121565b5b6122bd60a0612197565b9050600082013567ffffffffffffffff8111156122dd576122dc6121b2565b5b6122e984828501612243565b60008301525060206122fd84828501611fb2565b602083015250604061231184828501611fb2565b60408301525060606123258482850161210c565b606083015250608061233984828501612288565b60808301525092915050565b6000806040838503121561235c5761235b611ea4565b5b600061236a8582860161210c565b925050602083013567ffffffffffffffff81111561238b5761238a611ea9565b5b6123978582860161229d565b9150509250929050565b6000602082840312156123b7576123b6611ea4565b5b60006123c58482850161210c565b91505092915050565b6123d7816120eb565b82525050565b60006020820190506123f260008301846123ce565b92915050565b6000819050919050565b600061241d61241861241384611f69565b6123f8565b611f69565b9050919050565b600061242f82612402565b9050919050565b600061244182612424565b9050919050565b61245181612436565b82525050565b600060208201905061246c6000830184612448565b92915050565b6000806040838503121561248957612488611ea4565b5b60006124978582860161210c565b92505060206124a88582860161210c565b9150509250929050565b6000806000606084860312156124cb576124ca611ea4565b5b60006124d986828701611fb2565b93505060206124ea86828701611fb2565b92505060406124fb8682870161210c565b9150509250925092565b6000819050919050565b61251881612505565b82525050565b6000602082019050612533600083018461250f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612573578082015181840152602081019050612558565b60008484015250505050565b600061258a82612539565b6125948185612544565b93506125a4818560208601612555565b6125ad81612126565b840191505092915050565b600060a08201905081810360008301526125d2818861257f565b90506125e16020830187611ff4565b6125ee6040830186611ff4565b6125fb60608301856123ce565b6126086080830184611f3f565b9695505050505050565b600060ff82169050919050565b61262881612612565b811461263357600080fd5b50565b6000813590506126458161261f565b92915050565b60006080828403121561266157612660612121565b5b61266b6080612197565b9050600061267b84828501612636565b600083015250602061268f8482850161203f565b60208301525060406126a38482850161203f565b60408301525060606126b78482850161210c565b60608301525092915050565b60008060008060e085870312156126dd576126dc611ea4565b5b60006126eb87828801611fb2565b94505060206126fc8782880161210c565b935050604061270d8782880161210c565b925050606061271e8782880161264b565b91505092959194509250565b7f496e76616c696420416464726573730000000000000000000000000000000000600082015250565b6000612760600f83612544565b915061276b8261272a565b602082019050919050565b6000602082019050818103600083015261278f81612753565b9050919050565b7f4e756c6c20616464726573730000000000000000000000000000000000000000600082015250565b60006127cc600c83612544565b91506127d782612796565b602082019050919050565b600060208201905081810360008301526127fb816127bf565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061285e602f83612544565b915061286982612802565b604082019050919050565b6000602082019050818103600083015261288d81612851565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806128db57607f821691505b6020821081036128ee576128ed612894565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026129567fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612919565b6129608683612919565b95508019841693508086168417925050509392505050565b600061299361298e612989846120eb565b6123f8565b6120eb565b9050919050565b6000819050919050565b6129ad83612978565b6129c16129b98261299a565b848454612926565b825550505050565b600090565b6129d66129c9565b6129e18184846129a4565b505050565b5b81811015612a05576129fa6000826129ce565b6001810190506129e7565b5050565b601f821115612a4a57612a1b816128f4565b612a2484612909565b81016020851015612a33578190505b612a47612a3f85612909565b8301826129e6565b50505b505050565b600082821c905092915050565b6000612a6d60001984600802612a4f565b1980831691505092915050565b6000612a868383612a5c565b9150826002028217905092915050565b612a9f82612539565b67ffffffffffffffff811115612ab857612ab7612137565b5b612ac282546128c3565b612acd828285612a09565b600060209050601f831160018114612b005760008415612aee578287015190505b612af88582612a7a565b865550612b60565b601f198416612b0e866128f4565b60005b82811015612b3657848901518255600182019150602085019450602081019050612b11565b86831015612b535784890151612b4f601f891682612a5c565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b6000612b8482612539565b612b8e8185612b68565b9350612b9e818560208601612555565b612ba781612126565b840191505092915050565b612bbb81611f89565b82525050565b612bca816120eb565b82525050565b612bd981611f33565b82525050565b600060a0830160008301518482036000860152612bfc8282612b79565b9150506020830151612c116020860182612bb2565b506040830151612c246040860182612bb2565b506060830151612c376060860182612bc1565b506080830151612c4a6080860182612bd0565b508091505092915050565b60006020820190508181036000830152612c6f8184612bdf565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cb1826120eb565b9150612cbc836120eb565b9250828202612cca816120eb565b91508282048414831517612ce157612ce0612c77565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612d22826120eb565b9150612d2d836120eb565b925082612d3d57612d3c612ce8565b5b828204905092915050565b60008160011c9050919050565b6000808291508390505b6001851115612d9f57808604811115612d7b57612d7a612c77565b5b6001851615612d8a5780820291505b8081029050612d9885612d48565b9450612d5f565b94509492505050565b600082612db85760019050612e74565b81612dc65760009050612e74565b8160018114612ddc5760028114612de657612e15565b6001915050612e74565b60ff841115612df857612df7612c77565b5b8360020a915084821115612e0f57612e0e612c77565b5b50612e74565b5060208310610133831016604e8410600b8410161715612e4a5782820a905083811115612e4557612e44612c77565b5b612e74565b612e578484846001612d55565b92509050818404811115612e6e57612e6d612c77565b5b81810290505b9392505050565b6000612e86826120eb565b9150612e91836120eb565b9250612ebe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612da8565b905092915050565b600081519050612ed5816120f5565b92915050565b600060208284031215612ef157612ef0611ea4565b5b6000612eff84828501612ec6565b91505092915050565b7f496e73756666696369656e7420616d6f756e7400000000000000000000000000600082015250565b6000612f3e601383612544565b9150612f4982612f08565b602082019050919050565b60006020820190508181036000830152612f6d81612f31565b9050919050565b6000604082019050612f896000830185611ff4565b612f9660208301846123ce565b9392505050565b600081519050612fac81612271565b92915050565b600060208284031215612fc857612fc7611ea4565b5b6000612fd684828501612f9d565b91505092915050565b7f7478206661696c65640000000000000000000000000000000000000000000000600082015250565b6000613015600983612544565b915061302082612fdf565b602082019050919050565b6000602082019050818103600083015261304481613008565b9050919050565b600069ffffffffffffffffffff82169050919050565b61306a8161304b565b811461307557600080fd5b50565b60008151905061308781613061565b92915050565b61309681612505565b81146130a157600080fd5b50565b6000815190506130b38161308d565b92915050565b600080600080600060a086880312156130d5576130d4611ea4565b5b60006130e388828901613078565b95505060206130f4888289016130a4565b945050604061310588828901612ec6565b935050606061311688828901612ec6565b925050608061312788828901613078565b9150509295509295909350565b7f496e76616c6964205061796d656e740000000000000000000000000000000000600082015250565b600061316a600f83612544565b915061317582613134565b602082019050919050565b600060208201905081810360008301526131998161315d565b9050919050565b7f496e76616c6964204e6f6e636500000000000000000000000000000000000000600082015250565b60006131d6600d83612544565b91506131e1826131a0565b602082019050919050565b60006020820190508181036000830152613205816131c9565b9050919050565b7f496e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b6000613242600e83612544565b915061324d8261320c565b602082019050919050565b6000602082019050818103600083015261327181613235565b9050919050565b600060608201905061328d6000830186611ff4565b61329a6020830185611ff4565b6132a760408301846123ce565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006132e5601f83612544565b91506132f0826132af565b602082019050919050565b60006020820190508181036000830152613314816132d8565b9050919050565b6000819050919050565b613336613331826120eb565b61331b565b82525050565b60008160601b9050919050565b60006133548261333c565b9050919050565b600061336682613349565b9050919050565b61337e61337982611f89565b61335b565b82525050565b60006133908288613325565b6020820191506133a0828761336d565b6014820191506133b0828661336d565b6014820191506133c08285613325565b6020820191506133d08284613325565b6020820191508190509695505050505050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000613424601c836133e3565b915061342f826133ee565b601c82019050919050565b6000819050919050565b6134556134508261201e565b61343a565b82525050565b600061346682613417565b91506134728284613444565b60208201915081905092915050565b61348a81612612565b82525050565b60006080820190506134a56000830187612081565b6134b26020830186613481565b6134bf6040830185612081565b6134cc6060830184612081565b95945050505050565b7f4f776e6572207369676e20766572696669636174696f6e206661696c65640000600082015250565b600061350b601e83612544565b9150613516826134d5565b602082019050919050565b6000602082019050818103600083015261353a816134fe565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006135776017836133e3565b915061358282613541565b601782019050919050565b600061359882612539565b6135a281856133e3565b93506135b2818560208601612555565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006135f46011836133e3565b91506135ff826135be565b601182019050919050565b60006136158261356a565b9150613621828561358d565b915061362c826135e7565b9150613638828461358d565b91508190509392505050565b6000602082019050818103600083015261365e818461257f565b905092915050565b6000613671826120eb565b915061367c836120eb565b925082820190508082111561369457613693612c77565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006136d4826120eb565b9150600082036136e7576136e6612c77565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613728602083612544565b9150613733826136f2565b602082019050919050565b600060208201905081810360008301526137578161371b565b905091905056fea26469706673582212208a69ad3137058015ebefa9436d64a4b05341d1e30e9b014b9c43ca251062096464736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000087fdd1e031b356bdc1c55a3231cfe266552d8284
-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x87Fdd1e031B356bdc1C55a3231Cfe266552d8284
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000087fdd1e031b356bdc1c55a3231cfe266552d8284
Loading...
Loading
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.