Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Presale_Swap
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./AccessControl.sol"; import "./Pausable.sol"; interface IERC20 { /** * @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 transferFrom( address from, address to, uint256 amount ) external returns (bool); } contract Presale_Swap is AccessControl, Pausable { using SafeMath for uint256; address public _tokenCVN; address public _tokenUSDT; address public ownerAddress; mapping(address => bool) public _hasPurchased; address[] public _buyers; uint256 public _minUSDT = 1000e6; uint256 public _cvnPrice = 10000; uint256 public purchaseCount = 0; uint256 public purchaseUsdt = 0; uint256 public purchaseCvn = 0; constructor(address cvn, address usdt, address ownerAddr) { _tokenCVN = cvn; _tokenUSDT = usdt; ownerAddress = ownerAddr; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); super._pause(); } modifier onlyAdminRole() { require( hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Presale Swap: !admin" ); _; } function transferOwnership(address newOwner) public onlyAdminRole { require(msg.sender != newOwner, "Presale Swap: !same address"); grantRole(DEFAULT_ADMIN_ROLE, newOwner); revokeRole(DEFAULT_ADMIN_ROLE, msg.sender); } function swap(uint256 amount) public whenNotPaused returns (bool) { uint256 token_amount = amount * 1e18 / _cvnPrice; require( _minUSDT <= amount, "Presale Swap: Smaller than Min USDT amount!" ); require( IERC20(_tokenUSDT).balanceOf(address(msg.sender)) >= amount, "Presale Swap: Not enough USDT !" ); require( IERC20(_tokenCVN).balanceOf(address(this)) >= token_amount, "Presale Swap: Not enough CVN Token !" ); if(_hasPurchased[msg.sender] != true) purchaseCount = purchaseCount + 1; purchaseUsdt = purchaseUsdt + amount; purchaseCvn = purchaseCvn + token_amount; _hasPurchased[msg.sender] = true; _buyers.push(msg.sender); IERC20(_tokenUSDT).transferFrom(msg.sender, ownerAddress, amount); bool res = IERC20(_tokenCVN).transfer(msg.sender, token_amount); return res; } function sendToken(address token, uint256 amount, address to) public onlyAdminRole { require( IERC20(token).balanceOf(address(this)) >= amount, "Presale Swap: Token balance is not enough !" ); IERC20(token).transfer( to, amount ); } function resetRound() public onlyAdminRole { for (uint256 i = 0; i < _buyers.length; i++) { _hasPurchased[_buyers[i]] = false; } delete _buyers; } function setMinUSDT(uint256 amount) public onlyAdminRole { _minUSDT = amount; } function setCvnPrice(uint256 price) public onlyAdminRole { _cvnPrice = price; } function setTokenUsdt(address usdt) public onlyAdminRole { _tokenUSDT = usdt; } function setTokenCvn(address cvn) public onlyAdminRole { _tokenCVN = cvn; } function setOwnerAddress(address ownerAddr) public onlyAdminRole { ownerAddress = ownerAddr; } function pause() external onlyAdminRole { super._pause(); } function unpause() external onlyAdminRole { super._unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @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 {_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) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @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 returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require( hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant" ); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require( hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke" ); _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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require( account == _msgSender(), "AccessControl: can only renounce roles for self" ); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ 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 { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/Context.sol"; abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// 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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
{ "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":"address","name":"cvn","type":"address"},{"internalType":"address","name":"usdt","type":"address"},{"internalType":"address","name":"ownerAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_buyers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_cvnPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_hasPurchased","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_minUSDT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenCVN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenUSDT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","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":"ownerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseCvn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseUsdt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"sendToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setCvnPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddr","type":"address"}],"name":"setOwnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"cvn","type":"address"}],"name":"setTokenCvn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usdt","type":"address"}],"name":"setTokenUsdt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052633b9aca00600655612710600755600060085560006009556000600a553480156200002e57600080fd5b5060405162002abd38038062002abd833981810160405281019062000054919062000432565b6000600160006101000a81548160ff021916908315150217905550826001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001466000801b336200016460201b60201c565b6200015b6200017a60201b6200145c1760201c565b5050506200053f565b6200017682826200023160201b60201c565b5050565b6200018a620002d460201b60201c565b15620001cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c490620004ef565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862000218620002eb60201b60201c565b60405162000227919062000522565b60405180910390a1565b6200025f81600080858152602001908152602001600020600001620002f360201b620014fe1790919060201c565b15620002d05762000275620002eb60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000600160009054906101000a900460ff16905090565b600033905090565b600062000323836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200032b60201b60201c565b905092915050565b60006200033f8383620003a560201b60201c565b6200039a5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200039f565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003fa82620003cd565b9050919050565b6200040c81620003ed565b81146200041857600080fd5b50565b6000815190506200042c8162000401565b92915050565b6000806000606084860312156200044e576200044d620003c8565b5b60006200045e868287016200041b565b935050602062000471868287016200041b565b925050604062000484868287016200041b565b9150509250925092565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620004d76010836200048e565b9150620004e4826200049f565b602082019050919050565b600060208201905081810360008301526200050a81620004c8565b9050919050565b6200051c81620003ed565b82525050565b600060208201905062000539600083018462000511565b92915050565b61256e806200054f6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80638456cb5911610104578063a217fddf116100a2578063d156d0d211610071578063d156d0d21461051f578063d547741f1461053b578063ec9d611014610557578063f2fde38b14610575576101da565b8063a217fddf14610483578063b1a0e392146104a1578063b287beb8146104bf578063ca15c873146104ef576101da565b80639010d07c116100de5780639010d07c146103d557806391d148541461040557806394b918de146104355780639dcafac614610465576101da565b80638456cb59146103a357806384d452ff146103ad5780638f84aa09146103b7576101da565b80633f4ba83a1161017c5780636a8142691161014b5780636a8142691461031f5780636defdd501461033b5780636efce086146103575780637b3cef8314610373576101da565b80633f4ba83a146102bb5780634d0848a7146102c55780635c975abb146102e3578063619704f114610301576101da565b80632b85ed9c116101b85780632b85ed9c146102495780632f2ff15d14610267578063331a6bf51461028357806336568abe1461029f576101da565b80630e8ff837146101df57806318248f2a146101fd578063248a9ca314610219575b600080fd5b6101e7610591565b6040516101f491906119c7565b60405180910390f35b61021760048036038101906102129190611a71565b610597565b005b610233600480360381019061022e9190611afa565b610723565b6040516102409190611b36565b60405180910390f35b610251610742565b60405161025e91906119c7565b60405180910390f35b610281600480360381019061027c9190611b51565b610748565b005b61029d60048036038101906102989190611b91565b6107bb565b005b6102b960048036038101906102b49190611b51565b61084b565b005b6102c36108ce565b005b6102cd610924565b6040516102da91906119c7565b60405180910390f35b6102eb61092a565b6040516102f89190611bd9565b60405180910390f35b610309610941565b6040516103169190611c03565b60405180910390f35b61033960048036038101906103349190611b91565b610967565b005b61035560048036038101906103509190611b91565b6109f7565b005b610371600480360381019061036c9190611c1e565b610a86565b005b61038d60048036038101906103889190611c1e565b610adc565b60405161039a9190611c03565b60405180910390f35b6103ab610b1b565b005b6103b5610b71565b005b6103bf610c87565b6040516103cc9190611c03565b60405180910390f35b6103ef60048036038101906103ea9190611c4b565b610cad565b6040516103fc9190611c03565b60405180910390f35b61041f600480360381019061041a9190611b51565b610cde565b60405161042c9190611bd9565b60405180910390f35b61044f600480360381019061044a9190611c1e565b610d0f565b60405161045c9190611bd9565b60405180910390f35b61046d61123f565b60405161047a91906119c7565b60405180910390f35b61048b611245565b6040516104989190611b36565b60405180910390f35b6104a961124c565b6040516104b69190611c03565b60405180910390f35b6104d960048036038101906104d49190611b91565b611270565b6040516104e69190611bd9565b60405180910390f35b61050960048036038101906105049190611afa565b611290565b60405161051691906119c7565b60405180910390f35b61053960048036038101906105349190611c1e565b6112b6565b005b61055560048036038101906105509190611b51565b61130c565b005b61055f61137f565b60405161056c91906119c7565b60405180910390f35b61058f600480360381019061058a9190611b91565b611385565b005b600a5481565b6105a46000801b33610cde565b6105e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105da90611ce8565b60405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161061d9190611c03565b602060405180830381865afa15801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190611d1d565b101561069f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069690611dbc565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b81526004016106da929190611ddc565b6020604051808303816000875af11580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d9190611e31565b50505050565b6000806000838152602001908152602001600020600201549050919050565b60085481565b61076e6000808481526020019081526020016000206002015461076961152e565b610cde565b6107ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a490611ed0565b60405180910390fd5b6107b78282611536565b5050565b6107c86000801b33610cde565b610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90611ce8565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61085361152e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b790611f62565b60405180910390fd5b6108ca82826115c9565b5050565b6108db6000801b33610cde565b61091a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091190611ce8565b60405180910390fd5b61092261165c565b565b60075481565b6000600160009054906101000a900460ff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109746000801b33610cde565b6109b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109aa90611ce8565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a046000801b33610cde565b610a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3a90611ce8565b60405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a936000801b33610cde565b610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac990611ce8565b60405180910390fd5b8060068190555050565b60058181548110610aec57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b286000801b33610cde565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90611ce8565b60405180910390fd5b610b6f61145c565b565b610b7e6000801b33610cde565b610bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb490611ce8565b60405180910390fd5b60005b600580549050811015610c765760006004600060058481548110610be757610be6611f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610c6e90611fe0565b915050610bc0565b5060056000610c859190611970565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610cd6826000808681526020019081526020016000206000016116fe90919063ffffffff16565b905092915050565b6000610d078260008086815260200190815260200160002060000161171890919063ffffffff16565b905092915050565b6000610d1961092a565b15610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090612074565b60405180910390fd5b6000600754670de0b6b3a764000084610d729190612094565b610d7c919061211d565b9050826006541115610dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dba906121c0565b60405180910390fd5b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e1f9190611c03565b602060405180830381865afa158015610e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e609190611d1d565b1015610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e989061222c565b60405180910390fd5b8060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610efb9190611c03565b602060405180830381865afa158015610f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3c9190611d1d565b1015610f7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f74906122be565b60405180910390fd5b60011515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610feb576001600854610fe491906122de565b6008819055505b82600954610ff991906122de565b60098190555080600a5461100d91906122de565b600a819055506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b815260040161114f93929190612334565b6020604051808303816000875af115801561116e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111929190611e31565b50600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016111f0929190611ddc565b6020604051808303816000875af115801561120f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112339190611e31565b90508092505050919050565b60095481565b6000801b81565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b60006112af600080848152602001908152602001600020600001611748565b9050919050565b6112c36000801b33610cde565b611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990611ce8565b60405180910390fd5b8060078190555050565b6113326000808481526020019081526020016000206002015461132d61152e565b610cde565b611371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611368906123dd565b60405180910390fd5b61137b82826115c9565b5050565b60065481565b6113926000801b33610cde565b6113d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c890611ce8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690612449565b60405180910390fd5b61144c6000801b82610748565b6114596000801b3361130c565b50565b61146461092a565b156114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b90612074565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114e761152e565b6040516114f49190611c03565b60405180910390a1565b6000611526836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61175d565b905092915050565b600033905090565b61155d816000808581526020019081526020016000206000016114fe90919063ffffffff16565b156115c55761156a61152e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6115f0816000808581526020019081526020016000206000016117cd90919063ffffffff16565b15611658576115fd61152e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61166461092a565b6116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a906124b5565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116e761152e565b6040516116f49190611c03565b60405180910390a1565b600061170d83600001836117fd565b60001c905092915050565b6000611740836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611828565b905092915050565b60006117568260000161184b565b9050919050565b60006117698383611828565b6117c25782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506117c7565b600090505b92915050565b60006117f5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61185c565b905092915050565b600082600001828154811061181557611814611f82565b5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b6000808360010160008481526020019081526020016000205490506000811461196457600060018261188e91906124d5565b90506000600186600001805490506118a691906124d5565b90508181146119155760008660000182815481106118c7576118c6611f82565b5b90600052602060002001549050808760000184815481106118eb576118ea611f82565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061192957611928612509565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061196a565b60009150505b92915050565b508054600082559060005260206000209081019061198e9190611991565b50565b5b808211156119aa576000816000905550600101611992565b5090565b6000819050919050565b6119c1816119ae565b82525050565b60006020820190506119dc60008301846119b8565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611a12826119e7565b9050919050565b611a2281611a07565b8114611a2d57600080fd5b50565b600081359050611a3f81611a19565b92915050565b611a4e816119ae565b8114611a5957600080fd5b50565b600081359050611a6b81611a45565b92915050565b600080600060608486031215611a8a57611a896119e2565b5b6000611a9886828701611a30565b9350506020611aa986828701611a5c565b9250506040611aba86828701611a30565b9150509250925092565b6000819050919050565b611ad781611ac4565b8114611ae257600080fd5b50565b600081359050611af481611ace565b92915050565b600060208284031215611b1057611b0f6119e2565b5b6000611b1e84828501611ae5565b91505092915050565b611b3081611ac4565b82525050565b6000602082019050611b4b6000830184611b27565b92915050565b60008060408385031215611b6857611b676119e2565b5b6000611b7685828601611ae5565b9250506020611b8785828601611a30565b9150509250929050565b600060208284031215611ba757611ba66119e2565b5b6000611bb584828501611a30565b91505092915050565b60008115159050919050565b611bd381611bbe565b82525050565b6000602082019050611bee6000830184611bca565b92915050565b611bfd81611a07565b82525050565b6000602082019050611c186000830184611bf4565b92915050565b600060208284031215611c3457611c336119e2565b5b6000611c4284828501611a5c565b91505092915050565b60008060408385031215611c6257611c616119e2565b5b6000611c7085828601611ae5565b9250506020611c8185828601611a5c565b9150509250929050565b600082825260208201905092915050565b7f50726573616c6520537761703a202161646d696e000000000000000000000000600082015250565b6000611cd2601483611c8b565b9150611cdd82611c9c565b602082019050919050565b60006020820190508181036000830152611d0181611cc5565b9050919050565b600081519050611d1781611a45565b92915050565b600060208284031215611d3357611d326119e2565b5b6000611d4184828501611d08565b91505092915050565b7f50726573616c6520537761703a20546f6b656e2062616c616e6365206973206e60008201527f6f7420656e6f7567682021000000000000000000000000000000000000000000602082015250565b6000611da6602b83611c8b565b9150611db182611d4a565b604082019050919050565b60006020820190508181036000830152611dd581611d99565b9050919050565b6000604082019050611df16000830185611bf4565b611dfe60208301846119b8565b9392505050565b611e0e81611bbe565b8114611e1957600080fd5b50565b600081519050611e2b81611e05565b92915050565b600060208284031215611e4757611e466119e2565b5b6000611e5584828501611e1c565b91505092915050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b6000611eba602f83611c8b565b9150611ec582611e5e565b604082019050919050565b60006020820190508181036000830152611ee981611ead565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611f4c602f83611c8b565b9150611f5782611ef0565b604082019050919050565b60006020820190508181036000830152611f7b81611f3f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611feb826119ae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361201d5761201c611fb1565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061205e601083611c8b565b915061206982612028565b602082019050919050565b6000602082019050818103600083015261208d81612051565b9050919050565b600061209f826119ae565b91506120aa836119ae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156120e3576120e2611fb1565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612128826119ae565b9150612133836119ae565b925082612143576121426120ee565b5b828204905092915050565b7f50726573616c6520537761703a20536d616c6c6572207468616e204d696e205560008201527f53445420616d6f756e7421000000000000000000000000000000000000000000602082015250565b60006121aa602b83611c8b565b91506121b58261214e565b604082019050919050565b600060208201905081810360008301526121d98161219d565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682055534454202100600082015250565b6000612216601f83611c8b565b9150612221826121e0565b602082019050919050565b6000602082019050818103600083015261224581612209565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682043564e20546f6b60008201527f656e202100000000000000000000000000000000000000000000000000000000602082015250565b60006122a8602483611c8b565b91506122b38261224c565b604082019050919050565b600060208201905081810360008301526122d78161229b565b9050919050565b60006122e9826119ae565b91506122f4836119ae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561232957612328611fb1565b5b828201905092915050565b60006060820190506123496000830186611bf4565b6123566020830185611bf4565b61236360408301846119b8565b949350505050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b60006123c7603083611c8b565b91506123d28261236b565b604082019050919050565b600060208201905081810360008301526123f6816123ba565b9050919050565b7f50726573616c6520537761703a202173616d6520616464726573730000000000600082015250565b6000612433601b83611c8b565b915061243e826123fd565b602082019050919050565b6000602082019050818103600083015261246281612426565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061249f601483611c8b565b91506124aa82612469565b602082019050919050565b600060208201905081810360008301526124ce81612492565b9050919050565b60006124e0826119ae565b91506124eb836119ae565b9250828210156124fe576124fd611fb1565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220ffd7f803ad0c22844b4b787f88a71d2caa738054b17bf14952d85c623e55d58264736f6c634300080d00330000000000000000000000000655b4a7d89875272741b2e76e2e9531ffa3510d000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000004bcfe5a0f5155535219d3ba63e59a5d5f9b5a27
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80638456cb5911610104578063a217fddf116100a2578063d156d0d211610071578063d156d0d21461051f578063d547741f1461053b578063ec9d611014610557578063f2fde38b14610575576101da565b8063a217fddf14610483578063b1a0e392146104a1578063b287beb8146104bf578063ca15c873146104ef576101da565b80639010d07c116100de5780639010d07c146103d557806391d148541461040557806394b918de146104355780639dcafac614610465576101da565b80638456cb59146103a357806384d452ff146103ad5780638f84aa09146103b7576101da565b80633f4ba83a1161017c5780636a8142691161014b5780636a8142691461031f5780636defdd501461033b5780636efce086146103575780637b3cef8314610373576101da565b80633f4ba83a146102bb5780634d0848a7146102c55780635c975abb146102e3578063619704f114610301576101da565b80632b85ed9c116101b85780632b85ed9c146102495780632f2ff15d14610267578063331a6bf51461028357806336568abe1461029f576101da565b80630e8ff837146101df57806318248f2a146101fd578063248a9ca314610219575b600080fd5b6101e7610591565b6040516101f491906119c7565b60405180910390f35b61021760048036038101906102129190611a71565b610597565b005b610233600480360381019061022e9190611afa565b610723565b6040516102409190611b36565b60405180910390f35b610251610742565b60405161025e91906119c7565b60405180910390f35b610281600480360381019061027c9190611b51565b610748565b005b61029d60048036038101906102989190611b91565b6107bb565b005b6102b960048036038101906102b49190611b51565b61084b565b005b6102c36108ce565b005b6102cd610924565b6040516102da91906119c7565b60405180910390f35b6102eb61092a565b6040516102f89190611bd9565b60405180910390f35b610309610941565b6040516103169190611c03565b60405180910390f35b61033960048036038101906103349190611b91565b610967565b005b61035560048036038101906103509190611b91565b6109f7565b005b610371600480360381019061036c9190611c1e565b610a86565b005b61038d60048036038101906103889190611c1e565b610adc565b60405161039a9190611c03565b60405180910390f35b6103ab610b1b565b005b6103b5610b71565b005b6103bf610c87565b6040516103cc9190611c03565b60405180910390f35b6103ef60048036038101906103ea9190611c4b565b610cad565b6040516103fc9190611c03565b60405180910390f35b61041f600480360381019061041a9190611b51565b610cde565b60405161042c9190611bd9565b60405180910390f35b61044f600480360381019061044a9190611c1e565b610d0f565b60405161045c9190611bd9565b60405180910390f35b61046d61123f565b60405161047a91906119c7565b60405180910390f35b61048b611245565b6040516104989190611b36565b60405180910390f35b6104a961124c565b6040516104b69190611c03565b60405180910390f35b6104d960048036038101906104d49190611b91565b611270565b6040516104e69190611bd9565b60405180910390f35b61050960048036038101906105049190611afa565b611290565b60405161051691906119c7565b60405180910390f35b61053960048036038101906105349190611c1e565b6112b6565b005b61055560048036038101906105509190611b51565b61130c565b005b61055f61137f565b60405161056c91906119c7565b60405180910390f35b61058f600480360381019061058a9190611b91565b611385565b005b600a5481565b6105a46000801b33610cde565b6105e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105da90611ce8565b60405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161061d9190611c03565b602060405180830381865afa15801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190611d1d565b101561069f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069690611dbc565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b81526004016106da929190611ddc565b6020604051808303816000875af11580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d9190611e31565b50505050565b6000806000838152602001908152602001600020600201549050919050565b60085481565b61076e6000808481526020019081526020016000206002015461076961152e565b610cde565b6107ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a490611ed0565b60405180910390fd5b6107b78282611536565b5050565b6107c86000801b33610cde565b610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90611ce8565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61085361152e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b790611f62565b60405180910390fd5b6108ca82826115c9565b5050565b6108db6000801b33610cde565b61091a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091190611ce8565b60405180910390fd5b61092261165c565b565b60075481565b6000600160009054906101000a900460ff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109746000801b33610cde565b6109b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109aa90611ce8565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a046000801b33610cde565b610a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3a90611ce8565b60405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a936000801b33610cde565b610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac990611ce8565b60405180910390fd5b8060068190555050565b60058181548110610aec57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b286000801b33610cde565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90611ce8565b60405180910390fd5b610b6f61145c565b565b610b7e6000801b33610cde565b610bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb490611ce8565b60405180910390fd5b60005b600580549050811015610c765760006004600060058481548110610be757610be6611f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610c6e90611fe0565b915050610bc0565b5060056000610c859190611970565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610cd6826000808681526020019081526020016000206000016116fe90919063ffffffff16565b905092915050565b6000610d078260008086815260200190815260200160002060000161171890919063ffffffff16565b905092915050565b6000610d1961092a565b15610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090612074565b60405180910390fd5b6000600754670de0b6b3a764000084610d729190612094565b610d7c919061211d565b9050826006541115610dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dba906121c0565b60405180910390fd5b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e1f9190611c03565b602060405180830381865afa158015610e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e609190611d1d565b1015610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e989061222c565b60405180910390fd5b8060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610efb9190611c03565b602060405180830381865afa158015610f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3c9190611d1d565b1015610f7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f74906122be565b60405180910390fd5b60011515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610feb576001600854610fe491906122de565b6008819055505b82600954610ff991906122de565b60098190555080600a5461100d91906122de565b600a819055506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b815260040161114f93929190612334565b6020604051808303816000875af115801561116e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111929190611e31565b50600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016111f0929190611ddc565b6020604051808303816000875af115801561120f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112339190611e31565b90508092505050919050565b60095481565b6000801b81565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b60006112af600080848152602001908152602001600020600001611748565b9050919050565b6112c36000801b33610cde565b611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990611ce8565b60405180910390fd5b8060078190555050565b6113326000808481526020019081526020016000206002015461132d61152e565b610cde565b611371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611368906123dd565b60405180910390fd5b61137b82826115c9565b5050565b60065481565b6113926000801b33610cde565b6113d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c890611ce8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690612449565b60405180910390fd5b61144c6000801b82610748565b6114596000801b3361130c565b50565b61146461092a565b156114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b90612074565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114e761152e565b6040516114f49190611c03565b60405180910390a1565b6000611526836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61175d565b905092915050565b600033905090565b61155d816000808581526020019081526020016000206000016114fe90919063ffffffff16565b156115c55761156a61152e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6115f0816000808581526020019081526020016000206000016117cd90919063ffffffff16565b15611658576115fd61152e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61166461092a565b6116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a906124b5565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116e761152e565b6040516116f49190611c03565b60405180910390a1565b600061170d83600001836117fd565b60001c905092915050565b6000611740836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611828565b905092915050565b60006117568260000161184b565b9050919050565b60006117698383611828565b6117c25782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506117c7565b600090505b92915050565b60006117f5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61185c565b905092915050565b600082600001828154811061181557611814611f82565b5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b6000808360010160008481526020019081526020016000205490506000811461196457600060018261188e91906124d5565b90506000600186600001805490506118a691906124d5565b90508181146119155760008660000182815481106118c7576118c6611f82565b5b90600052602060002001549050808760000184815481106118eb576118ea611f82565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061192957611928612509565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061196a565b60009150505b92915050565b508054600082559060005260206000209081019061198e9190611991565b50565b5b808211156119aa576000816000905550600101611992565b5090565b6000819050919050565b6119c1816119ae565b82525050565b60006020820190506119dc60008301846119b8565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611a12826119e7565b9050919050565b611a2281611a07565b8114611a2d57600080fd5b50565b600081359050611a3f81611a19565b92915050565b611a4e816119ae565b8114611a5957600080fd5b50565b600081359050611a6b81611a45565b92915050565b600080600060608486031215611a8a57611a896119e2565b5b6000611a9886828701611a30565b9350506020611aa986828701611a5c565b9250506040611aba86828701611a30565b9150509250925092565b6000819050919050565b611ad781611ac4565b8114611ae257600080fd5b50565b600081359050611af481611ace565b92915050565b600060208284031215611b1057611b0f6119e2565b5b6000611b1e84828501611ae5565b91505092915050565b611b3081611ac4565b82525050565b6000602082019050611b4b6000830184611b27565b92915050565b60008060408385031215611b6857611b676119e2565b5b6000611b7685828601611ae5565b9250506020611b8785828601611a30565b9150509250929050565b600060208284031215611ba757611ba66119e2565b5b6000611bb584828501611a30565b91505092915050565b60008115159050919050565b611bd381611bbe565b82525050565b6000602082019050611bee6000830184611bca565b92915050565b611bfd81611a07565b82525050565b6000602082019050611c186000830184611bf4565b92915050565b600060208284031215611c3457611c336119e2565b5b6000611c4284828501611a5c565b91505092915050565b60008060408385031215611c6257611c616119e2565b5b6000611c7085828601611ae5565b9250506020611c8185828601611a5c565b9150509250929050565b600082825260208201905092915050565b7f50726573616c6520537761703a202161646d696e000000000000000000000000600082015250565b6000611cd2601483611c8b565b9150611cdd82611c9c565b602082019050919050565b60006020820190508181036000830152611d0181611cc5565b9050919050565b600081519050611d1781611a45565b92915050565b600060208284031215611d3357611d326119e2565b5b6000611d4184828501611d08565b91505092915050565b7f50726573616c6520537761703a20546f6b656e2062616c616e6365206973206e60008201527f6f7420656e6f7567682021000000000000000000000000000000000000000000602082015250565b6000611da6602b83611c8b565b9150611db182611d4a565b604082019050919050565b60006020820190508181036000830152611dd581611d99565b9050919050565b6000604082019050611df16000830185611bf4565b611dfe60208301846119b8565b9392505050565b611e0e81611bbe565b8114611e1957600080fd5b50565b600081519050611e2b81611e05565b92915050565b600060208284031215611e4757611e466119e2565b5b6000611e5584828501611e1c565b91505092915050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b6000611eba602f83611c8b565b9150611ec582611e5e565b604082019050919050565b60006020820190508181036000830152611ee981611ead565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611f4c602f83611c8b565b9150611f5782611ef0565b604082019050919050565b60006020820190508181036000830152611f7b81611f3f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611feb826119ae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361201d5761201c611fb1565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061205e601083611c8b565b915061206982612028565b602082019050919050565b6000602082019050818103600083015261208d81612051565b9050919050565b600061209f826119ae565b91506120aa836119ae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156120e3576120e2611fb1565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612128826119ae565b9150612133836119ae565b925082612143576121426120ee565b5b828204905092915050565b7f50726573616c6520537761703a20536d616c6c6572207468616e204d696e205560008201527f53445420616d6f756e7421000000000000000000000000000000000000000000602082015250565b60006121aa602b83611c8b565b91506121b58261214e565b604082019050919050565b600060208201905081810360008301526121d98161219d565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682055534454202100600082015250565b6000612216601f83611c8b565b9150612221826121e0565b602082019050919050565b6000602082019050818103600083015261224581612209565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682043564e20546f6b60008201527f656e202100000000000000000000000000000000000000000000000000000000602082015250565b60006122a8602483611c8b565b91506122b38261224c565b604082019050919050565b600060208201905081810360008301526122d78161229b565b9050919050565b60006122e9826119ae565b91506122f4836119ae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561232957612328611fb1565b5b828201905092915050565b60006060820190506123496000830186611bf4565b6123566020830185611bf4565b61236360408301846119b8565b949350505050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b60006123c7603083611c8b565b91506123d28261236b565b604082019050919050565b600060208201905081810360008301526123f6816123ba565b9050919050565b7f50726573616c6520537761703a202173616d6520616464726573730000000000600082015250565b6000612433601b83611c8b565b915061243e826123fd565b602082019050919050565b6000602082019050818103600083015261246281612426565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061249f601483611c8b565b91506124aa82612469565b602082019050919050565b600060208201905081810360008301526124ce81612492565b9050919050565b60006124e0826119ae565b91506124eb836119ae565b9250828210156124fe576124fd611fb1565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220ffd7f803ad0c22844b4b787f88a71d2caa738054b17bf14952d85c623e55d58264736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000655b4a7d89875272741b2e76e2e9531ffa3510d000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000004bcfe5a0f5155535219d3ba63e59a5d5f9b5a27
-----Decoded View---------------
Arg [0] : cvn (address): 0x0655b4A7d89875272741b2E76E2e9531fFa3510d
Arg [1] : usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [2] : ownerAddr (address): 0x04bcfE5a0f5155535219d3bA63E59a5D5F9B5a27
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000655b4a7d89875272741b2e76e2e9531ffa3510d
Arg [1] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [2] : 00000000000000000000000004bcfe5a0f5155535219d3ba63e59a5d5f9b5a27
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.