ETH Price: $2,753.21 (+5.22%)

Contract

0x882367DB55ae19aD8157293b8a500410b89b974A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Min USDT154408132022-08-30 14:10:39897 days ago1661868639IN
0x882367DB...0b89b974A
0 ETH0.0007557525.87060259
Swap154086622022-08-25 10:45:16902 days ago1661424316IN
0x882367DB...0b89b974A
0 ETH0.000834734.88021846
Swap154083172022-08-25 9:25:47902 days ago1661419547IN
0x882367DB...0b89b974A
0 ETH0.001074326.28100119
Swap153948952022-08-23 5:57:52904 days ago1661234272IN
0x882367DB...0b89b974A
0 ETH0.000881965.30525382
Swap153948832022-08-23 5:56:04904 days ago1661234164IN
0x882367DB...0b89b974A
0 ETH0.001157866.76940662
Swap153948642022-08-23 5:52:30904 days ago1661233950IN
0x882367DB...0b89b974A
0 ETH0.001467578.58011857
Swap153948272022-08-23 5:44:53904 days ago1661233493IN
0x882367DB...0b89b974A
0 ETH0.0019019611.11975416
Swap153947732022-08-23 5:30:21904 days ago1661232621IN
0x882367DB...0b89b974A
0 ETH0.000977696.6994727
Set Owner Addres...153947132022-08-23 5:17:28904 days ago1661231848IN
0x882367DB...0b89b974A
0 ETH0.000139364.72110709
Swap153947022022-08-23 5:15:12904 days ago1661231712IN
0x882367DB...0b89b974A
0 ETH0.001191865.55015759
Set Owner Addres...153946992022-08-23 5:14:52904 days ago1661231692IN
0x882367DB...0b89b974A
0 ETH0.000168435.70572801
Send Token153946882022-08-23 5:13:02904 days ago1661231582IN
0x882367DB...0b89b974A
0 ETH0.00024366.15300022
Unpause153946772022-08-23 5:10:05904 days ago1661231405IN
0x882367DB...0b89b974A
0 ETH0.000207726.85945332

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
File 1 of 10 : Presale_Swap.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.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;
    using SafeERC20 for IERC20;
    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).safeTransferFrom(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();
    }
}

File 2 of 10 : SafeMath.sol
// 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;
        }
    }
}

File 3 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 10 : AccessControl.sol
// 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());
        }
    }
}

File 5 of 10 : Pausable.sol
// 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());
    }
}

File 6 of 10 : IERC20.sol
// 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);
}

File 7 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 8 of 10 : Address.sol
// 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);
            }
        }
    }
}

File 9 of 10 : Context.sol
// 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;
    }
}

File 10 of 10 : EnumerableSet.sol
// 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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"}]

6080604052633b9aca00600655612710600755600060085560006009556000600a553480156200002e57600080fd5b506040516200300738038062003007833981810160405281019062000054919062000432565b6000600160006101000a81548160ff021916908315150217905550826001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001466000801b336200016460201b60201c565b6200015b6200017a60201b620014081760201c565b5050506200053f565b6200017682826200023160201b60201c565b5050565b6200018a620002d460201b60201c565b15620001cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c490620004ef565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862000218620002eb60201b60201c565b60405162000227919062000522565b60405180910390a1565b6200025f81600080858152602001908152602001600020600001620002f360201b620014aa1790919060201c565b15620002d05762000275620002eb60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000600160009054906101000a900460ff16905090565b600033905090565b600062000323836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200032b60201b60201c565b905092915050565b60006200033f8383620003a560201b60201c565b6200039a5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200039f565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003fa82620003cd565b9050919050565b6200040c81620003ed565b81146200041857600080fd5b50565b6000815190506200042c8162000401565b92915050565b6000806000606084860312156200044e576200044d620003c8565b5b60006200045e868287016200041b565b935050602062000471868287016200041b565b925050604062000484868287016200041b565b9150509250925092565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620004d76010836200048e565b9150620004e4826200049f565b602082019050919050565b600060208201905081810360008301526200050a81620004c8565b9050919050565b6200051c81620003ed565b82525050565b600060208201905062000539600083018462000511565b92915050565b612ab8806200054f6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80638456cb5911610104578063a217fddf116100a2578063d156d0d211610071578063d156d0d21461051f578063d547741f1461053b578063ec9d611014610557578063f2fde38b14610575576101da565b8063a217fddf14610483578063b1a0e392146104a1578063b287beb8146104bf578063ca15c873146104ef576101da565b80639010d07c116100de5780639010d07c146103d557806391d148541461040557806394b918de146104355780639dcafac614610465576101da565b80638456cb59146103a357806384d452ff146103ad5780638f84aa09146103b7576101da565b80633f4ba83a1161017c5780636a8142691161014b5780636a8142691461031f5780636defdd501461033b5780636efce086146103575780637b3cef8314610373576101da565b80633f4ba83a146102bb5780634d0848a7146102c55780635c975abb146102e3578063619704f114610301576101da565b80632b85ed9c116101b85780632b85ed9c146102495780632f2ff15d14610267578063331a6bf51461028357806336568abe1461029f576101da565b80630e8ff837146101df57806318248f2a146101fd578063248a9ca314610219575b600080fd5b6101e7610591565b6040516101f49190611c79565b60405180910390f35b61021760048036038101906102129190611d23565b610597565b005b610233600480360381019061022e9190611dac565b610723565b6040516102409190611de8565b60405180910390f35b610251610742565b60405161025e9190611c79565b60405180910390f35b610281600480360381019061027c9190611e03565b610748565b005b61029d60048036038101906102989190611e43565b6107bb565b005b6102b960048036038101906102b49190611e03565b61084b565b005b6102c36108ce565b005b6102cd610924565b6040516102da9190611c79565b60405180910390f35b6102eb61092a565b6040516102f89190611e8b565b60405180910390f35b610309610941565b6040516103169190611eb5565b60405180910390f35b61033960048036038101906103349190611e43565b610967565b005b61035560048036038101906103509190611e43565b6109f7565b005b610371600480360381019061036c9190611ed0565b610a86565b005b61038d60048036038101906103889190611ed0565b610adc565b60405161039a9190611eb5565b60405180910390f35b6103ab610b1b565b005b6103b5610b71565b005b6103bf610c87565b6040516103cc9190611eb5565b60405180910390f35b6103ef60048036038101906103ea9190611efd565b610cad565b6040516103fc9190611eb5565b60405180910390f35b61041f600480360381019061041a9190611e03565b610cde565b60405161042c9190611e8b565b60405180910390f35b61044f600480360381019061044a9190611ed0565b610d0f565b60405161045c9190611e8b565b60405180910390f35b61046d6111eb565b60405161047a9190611c79565b60405180910390f35b61048b6111f1565b6040516104989190611de8565b60405180910390f35b6104a96111f8565b6040516104b69190611eb5565b60405180910390f35b6104d960048036038101906104d49190611e43565b61121c565b6040516104e69190611e8b565b60405180910390f35b61050960048036038101906105049190611dac565b61123c565b6040516105169190611c79565b60405180910390f35b61053960048036038101906105349190611ed0565b611262565b005b61055560048036038101906105509190611e03565b6112b8565b005b61055f61132b565b60405161056c9190611c79565b60405180910390f35b61058f600480360381019061058a9190611e43565b611331565b005b600a5481565b6105a46000801b33610cde565b6105e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105da90611f9a565b60405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161061d9190611eb5565b602060405180830381865afa15801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190611fcf565b101561069f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106969061206e565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b81526004016106da92919061208e565b6020604051808303816000875af11580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d91906120e3565b50505050565b6000806000838152602001908152602001600020600201549050919050565b60085481565b61076e600080848152602001908152602001600020600201546107696114da565b610cde565b6107ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a490612182565b60405180910390fd5b6107b782826114e2565b5050565b6107c86000801b33610cde565b610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90611f9a565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108536114da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b790612214565b60405180910390fd5b6108ca8282611575565b5050565b6108db6000801b33610cde565b61091a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091190611f9a565b60405180910390fd5b610922611608565b565b60075481565b6000600160009054906101000a900460ff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109746000801b33610cde565b6109b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109aa90611f9a565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a046000801b33610cde565b610a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3a90611f9a565b60405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a936000801b33610cde565b610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac990611f9a565b60405180910390fd5b8060068190555050565b60058181548110610aec57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b286000801b33610cde565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90611f9a565b60405180910390fd5b610b6f611408565b565b610b7e6000801b33610cde565b610bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb490611f9a565b60405180910390fd5b60005b600580549050811015610c765760006004600060058481548110610be757610be6612234565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610c6e90612292565b915050610bc0565b5060056000610c859190611c22565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610cd6826000808681526020019081526020016000206000016116aa90919063ffffffff16565b905092915050565b6000610d07826000808681526020019081526020016000206000016116c490919063ffffffff16565b905092915050565b6000610d1961092a565b15610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090612326565b60405180910390fd5b6000600754670de0b6b3a764000084610d729190612346565b610d7c91906123cf565b9050826006541115610dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dba90612472565b60405180910390fd5b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e1f9190611eb5565b602060405180830381865afa158015610e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e609190611fcf565b1015610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e98906124de565b60405180910390fd5b8060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610efb9190611eb5565b602060405180830381865afa158015610f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3c9190611fcf565b1015610f7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7490612570565b60405180910390fd5b60011515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610feb576001600854610fe49190612590565b6008819055505b82600954610ff99190612590565b60098190555080600a5461100d9190612590565b600a819055506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061113f33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116f4909392919063ffffffff16565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b815260040161119c92919061208e565b6020604051808303816000875af11580156111bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111df91906120e3565b90508092505050919050565b60095481565b6000801b81565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b600061125b60008084815260200190815260200160002060000161177d565b9050919050565b61126f6000801b33610cde565b6112ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a590611f9a565b60405180910390fd5b8060078190555050565b6112de600080848152602001908152602001600020600201546112d96114da565b610cde565b61131d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131490612658565b60405180910390fd5b6113278282611575565b5050565b60065481565b61133e6000801b33610cde565b61137d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137490611f9a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036113eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e2906126c4565b60405180910390fd5b6113f86000801b82610748565b6114056000801b336112b8565b50565b61141061092a565b15611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790612326565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114936114da565b6040516114a09190611eb5565b60405180910390a1565b60006114d2836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611792565b905092915050565b600033905090565b611509816000808581526020019081526020016000206000016114aa90919063ffffffff16565b15611571576115166114da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61159c8160008085815260200190815260200160002060000161180290919063ffffffff16565b15611604576115a96114da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61161061092a565b61164f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164690612730565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116936114da565b6040516116a09190611eb5565b60405180910390a1565b60006116b98360000183611832565b60001c905092915050565b60006116ec836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61185d565b905092915050565b611777846323b872dd60e01b85858560405160240161171593929190612750565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611880565b50505050565b600061178b82600001611947565b9050919050565b600061179e838361185d565b6117f75782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506117fc565b600090505b92915050565b600061182a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611958565b905092915050565b600082600001828154811061184a57611849612234565b5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b60006118e2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a6c9092919063ffffffff16565b9050600081511115611942578080602001905181019061190291906120e3565b611941576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611938906127f9565b60405180910390fd5b5b505050565b600081600001805490509050919050565b60008083600101600084815260200190815260200160002054905060008114611a6057600060018261198a9190612819565b90506000600186600001805490506119a29190612819565b9050818114611a115760008660000182815481106119c3576119c2612234565b5b90600052602060002001549050808760000184815481106119e7576119e6612234565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611a2557611a2461284d565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611a66565b60009150505b92915050565b6060611a7b8484600085611a84565b90509392505050565b606082471015611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac0906128ee565b60405180910390fd5b611ad285611b98565b611b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b089061295a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611b3a91906129f4565b60006040518083038185875af1925050503d8060008114611b77576040519150601f19603f3d011682016040523d82523d6000602084013e611b7c565b606091505b5091509150611b8c828286611bbb565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611bcb57829050611c1b565b600083511115611bde5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c129190612a60565b60405180910390fd5b9392505050565b5080546000825590600052602060002090810190611c409190611c43565b50565b5b80821115611c5c576000816000905550600101611c44565b5090565b6000819050919050565b611c7381611c60565b82525050565b6000602082019050611c8e6000830184611c6a565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611cc482611c99565b9050919050565b611cd481611cb9565b8114611cdf57600080fd5b50565b600081359050611cf181611ccb565b92915050565b611d0081611c60565b8114611d0b57600080fd5b50565b600081359050611d1d81611cf7565b92915050565b600080600060608486031215611d3c57611d3b611c94565b5b6000611d4a86828701611ce2565b9350506020611d5b86828701611d0e565b9250506040611d6c86828701611ce2565b9150509250925092565b6000819050919050565b611d8981611d76565b8114611d9457600080fd5b50565b600081359050611da681611d80565b92915050565b600060208284031215611dc257611dc1611c94565b5b6000611dd084828501611d97565b91505092915050565b611de281611d76565b82525050565b6000602082019050611dfd6000830184611dd9565b92915050565b60008060408385031215611e1a57611e19611c94565b5b6000611e2885828601611d97565b9250506020611e3985828601611ce2565b9150509250929050565b600060208284031215611e5957611e58611c94565b5b6000611e6784828501611ce2565b91505092915050565b60008115159050919050565b611e8581611e70565b82525050565b6000602082019050611ea06000830184611e7c565b92915050565b611eaf81611cb9565b82525050565b6000602082019050611eca6000830184611ea6565b92915050565b600060208284031215611ee657611ee5611c94565b5b6000611ef484828501611d0e565b91505092915050565b60008060408385031215611f1457611f13611c94565b5b6000611f2285828601611d97565b9250506020611f3385828601611d0e565b9150509250929050565b600082825260208201905092915050565b7f50726573616c6520537761703a202161646d696e000000000000000000000000600082015250565b6000611f84601483611f3d565b9150611f8f82611f4e565b602082019050919050565b60006020820190508181036000830152611fb381611f77565b9050919050565b600081519050611fc981611cf7565b92915050565b600060208284031215611fe557611fe4611c94565b5b6000611ff384828501611fba565b91505092915050565b7f50726573616c6520537761703a20546f6b656e2062616c616e6365206973206e60008201527f6f7420656e6f7567682021000000000000000000000000000000000000000000602082015250565b6000612058602b83611f3d565b915061206382611ffc565b604082019050919050565b600060208201905081810360008301526120878161204b565b9050919050565b60006040820190506120a36000830185611ea6565b6120b06020830184611c6a565b9392505050565b6120c081611e70565b81146120cb57600080fd5b50565b6000815190506120dd816120b7565b92915050565b6000602082840312156120f9576120f8611c94565b5b6000612107848285016120ce565b91505092915050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b600061216c602f83611f3d565b915061217782612110565b604082019050919050565b6000602082019050818103600083015261219b8161215f565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006121fe602f83611f3d565b9150612209826121a2565b604082019050919050565b6000602082019050818103600083015261222d816121f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061229d82611c60565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036122cf576122ce612263565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612310601083611f3d565b915061231b826122da565b602082019050919050565b6000602082019050818103600083015261233f81612303565b9050919050565b600061235182611c60565b915061235c83611c60565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561239557612394612263565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006123da82611c60565b91506123e583611c60565b9250826123f5576123f46123a0565b5b828204905092915050565b7f50726573616c6520537761703a20536d616c6c6572207468616e204d696e205560008201527f53445420616d6f756e7421000000000000000000000000000000000000000000602082015250565b600061245c602b83611f3d565b915061246782612400565b604082019050919050565b6000602082019050818103600083015261248b8161244f565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682055534454202100600082015250565b60006124c8601f83611f3d565b91506124d382612492565b602082019050919050565b600060208201905081810360008301526124f7816124bb565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682043564e20546f6b60008201527f656e202100000000000000000000000000000000000000000000000000000000602082015250565b600061255a602483611f3d565b9150612565826124fe565b604082019050919050565b600060208201905081810360008301526125898161254d565b9050919050565b600061259b82611c60565b91506125a683611c60565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156125db576125da612263565b5b828201905092915050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b6000612642603083611f3d565b915061264d826125e6565b604082019050919050565b6000602082019050818103600083015261267181612635565b9050919050565b7f50726573616c6520537761703a202173616d6520616464726573730000000000600082015250565b60006126ae601b83611f3d565b91506126b982612678565b602082019050919050565b600060208201905081810360008301526126dd816126a1565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061271a601483611f3d565b9150612725826126e4565b602082019050919050565b600060208201905081810360008301526127498161270d565b9050919050565b60006060820190506127656000830186611ea6565b6127726020830185611ea6565b61277f6040830184611c6a565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006127e3602a83611f3d565b91506127ee82612787565b604082019050919050565b60006020820190508181036000830152612812816127d6565b9050919050565b600061282482611c60565b915061282f83611c60565b92508282101561284257612841612263565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006128d8602683611f3d565b91506128e38261287c565b604082019050919050565b60006020820190508181036000830152612907816128cb565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612944601d83611f3d565b915061294f8261290e565b602082019050919050565b6000602082019050818103600083015261297381612937565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156129ae578082015181840152602081019050612993565b838111156129bd576000848401525b50505050565b60006129ce8261297a565b6129d88185612985565b93506129e8818560208601612990565b80840191505092915050565b6000612a0082846129c3565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000612a3282612a0b565b612a3c8185611f3d565b9350612a4c818560208601612990565b612a5581612a16565b840191505092915050565b60006020820190508181036000830152612a7a8184612a27565b90509291505056fea26469706673582212207897ab5d2885e2d8e4a6e64b91c0303926f75fd5d2d792832daa6be832ef19b664736f6c634300080d00330000000000000000000000000655b4a7d89875272741b2e76e2e9531ffa3510d000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000004bcfe5a0f5155535219d3ba63e59a5d5f9b5a27

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80638456cb5911610104578063a217fddf116100a2578063d156d0d211610071578063d156d0d21461051f578063d547741f1461053b578063ec9d611014610557578063f2fde38b14610575576101da565b8063a217fddf14610483578063b1a0e392146104a1578063b287beb8146104bf578063ca15c873146104ef576101da565b80639010d07c116100de5780639010d07c146103d557806391d148541461040557806394b918de146104355780639dcafac614610465576101da565b80638456cb59146103a357806384d452ff146103ad5780638f84aa09146103b7576101da565b80633f4ba83a1161017c5780636a8142691161014b5780636a8142691461031f5780636defdd501461033b5780636efce086146103575780637b3cef8314610373576101da565b80633f4ba83a146102bb5780634d0848a7146102c55780635c975abb146102e3578063619704f114610301576101da565b80632b85ed9c116101b85780632b85ed9c146102495780632f2ff15d14610267578063331a6bf51461028357806336568abe1461029f576101da565b80630e8ff837146101df57806318248f2a146101fd578063248a9ca314610219575b600080fd5b6101e7610591565b6040516101f49190611c79565b60405180910390f35b61021760048036038101906102129190611d23565b610597565b005b610233600480360381019061022e9190611dac565b610723565b6040516102409190611de8565b60405180910390f35b610251610742565b60405161025e9190611c79565b60405180910390f35b610281600480360381019061027c9190611e03565b610748565b005b61029d60048036038101906102989190611e43565b6107bb565b005b6102b960048036038101906102b49190611e03565b61084b565b005b6102c36108ce565b005b6102cd610924565b6040516102da9190611c79565b60405180910390f35b6102eb61092a565b6040516102f89190611e8b565b60405180910390f35b610309610941565b6040516103169190611eb5565b60405180910390f35b61033960048036038101906103349190611e43565b610967565b005b61035560048036038101906103509190611e43565b6109f7565b005b610371600480360381019061036c9190611ed0565b610a86565b005b61038d60048036038101906103889190611ed0565b610adc565b60405161039a9190611eb5565b60405180910390f35b6103ab610b1b565b005b6103b5610b71565b005b6103bf610c87565b6040516103cc9190611eb5565b60405180910390f35b6103ef60048036038101906103ea9190611efd565b610cad565b6040516103fc9190611eb5565b60405180910390f35b61041f600480360381019061041a9190611e03565b610cde565b60405161042c9190611e8b565b60405180910390f35b61044f600480360381019061044a9190611ed0565b610d0f565b60405161045c9190611e8b565b60405180910390f35b61046d6111eb565b60405161047a9190611c79565b60405180910390f35b61048b6111f1565b6040516104989190611de8565b60405180910390f35b6104a96111f8565b6040516104b69190611eb5565b60405180910390f35b6104d960048036038101906104d49190611e43565b61121c565b6040516104e69190611e8b565b60405180910390f35b61050960048036038101906105049190611dac565b61123c565b6040516105169190611c79565b60405180910390f35b61053960048036038101906105349190611ed0565b611262565b005b61055560048036038101906105509190611e03565b6112b8565b005b61055f61132b565b60405161056c9190611c79565b60405180910390f35b61058f600480360381019061058a9190611e43565b611331565b005b600a5481565b6105a46000801b33610cde565b6105e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105da90611f9a565b60405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161061d9190611eb5565b602060405180830381865afa15801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190611fcf565b101561069f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106969061206e565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b81526004016106da92919061208e565b6020604051808303816000875af11580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d91906120e3565b50505050565b6000806000838152602001908152602001600020600201549050919050565b60085481565b61076e600080848152602001908152602001600020600201546107696114da565b610cde565b6107ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a490612182565b60405180910390fd5b6107b782826114e2565b5050565b6107c86000801b33610cde565b610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90611f9a565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108536114da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b790612214565b60405180910390fd5b6108ca8282611575565b5050565b6108db6000801b33610cde565b61091a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091190611f9a565b60405180910390fd5b610922611608565b565b60075481565b6000600160009054906101000a900460ff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109746000801b33610cde565b6109b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109aa90611f9a565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a046000801b33610cde565b610a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3a90611f9a565b60405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a936000801b33610cde565b610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac990611f9a565b60405180910390fd5b8060068190555050565b60058181548110610aec57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b286000801b33610cde565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90611f9a565b60405180910390fd5b610b6f611408565b565b610b7e6000801b33610cde565b610bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb490611f9a565b60405180910390fd5b60005b600580549050811015610c765760006004600060058481548110610be757610be6612234565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610c6e90612292565b915050610bc0565b5060056000610c859190611c22565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610cd6826000808681526020019081526020016000206000016116aa90919063ffffffff16565b905092915050565b6000610d07826000808681526020019081526020016000206000016116c490919063ffffffff16565b905092915050565b6000610d1961092a565b15610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090612326565b60405180910390fd5b6000600754670de0b6b3a764000084610d729190612346565b610d7c91906123cf565b9050826006541115610dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dba90612472565b60405180910390fd5b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e1f9190611eb5565b602060405180830381865afa158015610e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e609190611fcf565b1015610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e98906124de565b60405180910390fd5b8060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610efb9190611eb5565b602060405180830381865afa158015610f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3c9190611fcf565b1015610f7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7490612570565b60405180910390fd5b60011515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610feb576001600854610fe49190612590565b6008819055505b82600954610ff99190612590565b60098190555080600a5461100d9190612590565b600a819055506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061113f33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116f4909392919063ffffffff16565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b815260040161119c92919061208e565b6020604051808303816000875af11580156111bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111df91906120e3565b90508092505050919050565b60095481565b6000801b81565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b600061125b60008084815260200190815260200160002060000161177d565b9050919050565b61126f6000801b33610cde565b6112ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a590611f9a565b60405180910390fd5b8060078190555050565b6112de600080848152602001908152602001600020600201546112d96114da565b610cde565b61131d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131490612658565b60405180910390fd5b6113278282611575565b5050565b60065481565b61133e6000801b33610cde565b61137d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137490611f9a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036113eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e2906126c4565b60405180910390fd5b6113f86000801b82610748565b6114056000801b336112b8565b50565b61141061092a565b15611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790612326565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114936114da565b6040516114a09190611eb5565b60405180910390a1565b60006114d2836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611792565b905092915050565b600033905090565b611509816000808581526020019081526020016000206000016114aa90919063ffffffff16565b15611571576115166114da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61159c8160008085815260200190815260200160002060000161180290919063ffffffff16565b15611604576115a96114da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61161061092a565b61164f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164690612730565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116936114da565b6040516116a09190611eb5565b60405180910390a1565b60006116b98360000183611832565b60001c905092915050565b60006116ec836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61185d565b905092915050565b611777846323b872dd60e01b85858560405160240161171593929190612750565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611880565b50505050565b600061178b82600001611947565b9050919050565b600061179e838361185d565b6117f75782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506117fc565b600090505b92915050565b600061182a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611958565b905092915050565b600082600001828154811061184a57611849612234565b5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b60006118e2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a6c9092919063ffffffff16565b9050600081511115611942578080602001905181019061190291906120e3565b611941576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611938906127f9565b60405180910390fd5b5b505050565b600081600001805490509050919050565b60008083600101600084815260200190815260200160002054905060008114611a6057600060018261198a9190612819565b90506000600186600001805490506119a29190612819565b9050818114611a115760008660000182815481106119c3576119c2612234565b5b90600052602060002001549050808760000184815481106119e7576119e6612234565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611a2557611a2461284d565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611a66565b60009150505b92915050565b6060611a7b8484600085611a84565b90509392505050565b606082471015611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac0906128ee565b60405180910390fd5b611ad285611b98565b611b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b089061295a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611b3a91906129f4565b60006040518083038185875af1925050503d8060008114611b77576040519150601f19603f3d011682016040523d82523d6000602084013e611b7c565b606091505b5091509150611b8c828286611bbb565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611bcb57829050611c1b565b600083511115611bde5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c129190612a60565b60405180910390fd5b9392505050565b5080546000825590600052602060002090810190611c409190611c43565b50565b5b80821115611c5c576000816000905550600101611c44565b5090565b6000819050919050565b611c7381611c60565b82525050565b6000602082019050611c8e6000830184611c6a565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611cc482611c99565b9050919050565b611cd481611cb9565b8114611cdf57600080fd5b50565b600081359050611cf181611ccb565b92915050565b611d0081611c60565b8114611d0b57600080fd5b50565b600081359050611d1d81611cf7565b92915050565b600080600060608486031215611d3c57611d3b611c94565b5b6000611d4a86828701611ce2565b9350506020611d5b86828701611d0e565b9250506040611d6c86828701611ce2565b9150509250925092565b6000819050919050565b611d8981611d76565b8114611d9457600080fd5b50565b600081359050611da681611d80565b92915050565b600060208284031215611dc257611dc1611c94565b5b6000611dd084828501611d97565b91505092915050565b611de281611d76565b82525050565b6000602082019050611dfd6000830184611dd9565b92915050565b60008060408385031215611e1a57611e19611c94565b5b6000611e2885828601611d97565b9250506020611e3985828601611ce2565b9150509250929050565b600060208284031215611e5957611e58611c94565b5b6000611e6784828501611ce2565b91505092915050565b60008115159050919050565b611e8581611e70565b82525050565b6000602082019050611ea06000830184611e7c565b92915050565b611eaf81611cb9565b82525050565b6000602082019050611eca6000830184611ea6565b92915050565b600060208284031215611ee657611ee5611c94565b5b6000611ef484828501611d0e565b91505092915050565b60008060408385031215611f1457611f13611c94565b5b6000611f2285828601611d97565b9250506020611f3385828601611d0e565b9150509250929050565b600082825260208201905092915050565b7f50726573616c6520537761703a202161646d696e000000000000000000000000600082015250565b6000611f84601483611f3d565b9150611f8f82611f4e565b602082019050919050565b60006020820190508181036000830152611fb381611f77565b9050919050565b600081519050611fc981611cf7565b92915050565b600060208284031215611fe557611fe4611c94565b5b6000611ff384828501611fba565b91505092915050565b7f50726573616c6520537761703a20546f6b656e2062616c616e6365206973206e60008201527f6f7420656e6f7567682021000000000000000000000000000000000000000000602082015250565b6000612058602b83611f3d565b915061206382611ffc565b604082019050919050565b600060208201905081810360008301526120878161204b565b9050919050565b60006040820190506120a36000830185611ea6565b6120b06020830184611c6a565b9392505050565b6120c081611e70565b81146120cb57600080fd5b50565b6000815190506120dd816120b7565b92915050565b6000602082840312156120f9576120f8611c94565b5b6000612107848285016120ce565b91505092915050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b600061216c602f83611f3d565b915061217782612110565b604082019050919050565b6000602082019050818103600083015261219b8161215f565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006121fe602f83611f3d565b9150612209826121a2565b604082019050919050565b6000602082019050818103600083015261222d816121f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061229d82611c60565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036122cf576122ce612263565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612310601083611f3d565b915061231b826122da565b602082019050919050565b6000602082019050818103600083015261233f81612303565b9050919050565b600061235182611c60565b915061235c83611c60565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561239557612394612263565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006123da82611c60565b91506123e583611c60565b9250826123f5576123f46123a0565b5b828204905092915050565b7f50726573616c6520537761703a20536d616c6c6572207468616e204d696e205560008201527f53445420616d6f756e7421000000000000000000000000000000000000000000602082015250565b600061245c602b83611f3d565b915061246782612400565b604082019050919050565b6000602082019050818103600083015261248b8161244f565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682055534454202100600082015250565b60006124c8601f83611f3d565b91506124d382612492565b602082019050919050565b600060208201905081810360008301526124f7816124bb565b9050919050565b7f50726573616c6520537761703a204e6f7420656e6f7567682043564e20546f6b60008201527f656e202100000000000000000000000000000000000000000000000000000000602082015250565b600061255a602483611f3d565b9150612565826124fe565b604082019050919050565b600060208201905081810360008301526125898161254d565b9050919050565b600061259b82611c60565b91506125a683611c60565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156125db576125da612263565b5b828201905092915050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b6000612642603083611f3d565b915061264d826125e6565b604082019050919050565b6000602082019050818103600083015261267181612635565b9050919050565b7f50726573616c6520537761703a202173616d6520616464726573730000000000600082015250565b60006126ae601b83611f3d565b91506126b982612678565b602082019050919050565b600060208201905081810360008301526126dd816126a1565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061271a601483611f3d565b9150612725826126e4565b602082019050919050565b600060208201905081810360008301526127498161270d565b9050919050565b60006060820190506127656000830186611ea6565b6127726020830185611ea6565b61277f6040830184611c6a565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006127e3602a83611f3d565b91506127ee82612787565b604082019050919050565b60006020820190508181036000830152612812816127d6565b9050919050565b600061282482611c60565b915061282f83611c60565b92508282101561284257612841612263565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006128d8602683611f3d565b91506128e38261287c565b604082019050919050565b60006020820190508181036000830152612907816128cb565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612944601d83611f3d565b915061294f8261290e565b602082019050919050565b6000602082019050818103600083015261297381612937565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156129ae578082015181840152602081019050612993565b838111156129bd576000848401525b50505050565b60006129ce8261297a565b6129d88185612985565b93506129e8818560208601612990565b80840191505092915050565b6000612a0082846129c3565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000612a3282612a0b565b612a3c8185611f3d565b9350612a4c818560208601612990565b612a5581612a16565b840191505092915050565b60006020820190508181036000830152612a7a8184612a27565b90509291505056fea26469706673582212207897ab5d2885e2d8e4a6e64b91c0303926f75fd5d2d792832daa6be832ef19b664736f6c634300080d0033

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.