ETH Price: $2,162.07 (+1.56%)

Contract

0xa8058ad0C8479ab2DD7Bf22b14feeD3a2f2c7EEc
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap All Voucher165291092023-01-31 20:10:351144 days ago1675195835IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0084197351.29920942
Swap All Voucher154397612022-08-30 10:04:171299 days ago1661853857IN
0xa8058ad0...a2f2c7EEc
0 ETH0.001671057.0859417
Swap All Voucher151256862022-07-12 4:22:341348 days ago1657599754IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0028782319.57741745
Swap Token146687802022-04-27 21:02:141423 days ago1651093334IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0076990787.06606009
Swap All Voucher146628332022-04-26 22:40:251424 days ago1651012825IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0070959243.23355136
Swap Token145449402022-04-08 11:48:141443 days ago1649418494IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0029714533.60312745
Swap All Voucher144991602022-04-01 8:08:561450 days ago1648800536IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0086828152.90203546
Swap All Voucher144544962022-03-25 8:58:071457 days ago1648198687IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0043511626.51046362
Swap All Voucher144484302022-03-24 10:28:481458 days ago1648117728IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0057158624.23754122
Swap All Voucher144207112022-03-20 2:57:501462 days ago1647745070IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0042673826
Swap All Voucher144168122022-03-19 12:14:441463 days ago1647692084IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0020470412.4721236
Swap All Voucher143840122022-03-14 9:55:431468 days ago1647251743IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0026182615.95235574
Swap All Voucher143004982022-03-01 10:11:271481 days ago1646129487IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0049904730.40786195
Swap All Voucher142888322022-02-27 14:50:531482 days ago1645973453IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0061392537.40485043
Swap All Voucher142029382022-02-14 7:32:231496 days ago1644823943IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0045180627.52736784
Swap All Voucher141902662022-02-12 8:54:001498 days ago1644656040IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0070299142.83136813
Swap All Voucher141707312022-02-09 8:12:511501 days ago1644394371IN
0xa8058ad0...a2f2c7EEc
0 ETH0.006999942.64853822
Swap All Voucher141693042022-02-09 2:54:461501 days ago1644375286IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0108528846.02523278
Swap Token141691582022-02-09 2:28:561501 days ago1644373736IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0047855654.11815625
Swap All Voucher141515322022-02-06 8:56:571504 days ago1644137817IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0232145939.09977878
Swap All Voucher141508592022-02-06 6:31:101504 days ago1644129070IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0072952644.44811229
Swap All Voucher141507422022-02-06 6:06:331504 days ago1644127593IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0025049536.19976127
Swap All Voucher141507422022-02-06 6:06:331504 days ago1644127593IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0025049536.19976127
Swap All Voucher141468882022-02-05 15:47:241504 days ago1644076044IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0065435344.5084046
Swap All Voucher140723822022-01-25 3:28:011516 days ago1643081281IN
0xa8058ad0...a2f2c7EEc
0 ETH0.0291960695
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
vHighExchanger

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interface/IVNFT.sol";

contract vHighExchanger is Ownable, Pausable, ReentrancyGuard {
    using SafeMath for uint256;

    IERC20 private vHigh;
    IERC20 private high;
    IVNFT private voucher;
    uint256 public exhangeValue;
    address private voucherCollector;

    event swap(address indexed user, uint256 value);
    event swap(address indexed user, uint256 indexed id, uint256 value);
    event swapAll(address indexed user, uint256[] indexed ids, uint256 value);

    constructor(address vHigh_, address high_, address voucher_) {
        vHigh = IERC20(vHigh_);
        high = IERC20(high_);
        voucher = IVNFT(voucher_);
        voucherCollector = msg.sender;
    }

    function updateCollector(address address_) external onlyOwner {
        voucherCollector = address_;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function claimHighToken() external onlyOwner {
        _pause();
        uint256 balance = high.balanceOf(address(this));
        high.transfer(msg.sender, balance);
    }

    function claimvHighToken() external onlyOwner {
        uint256 balance = vHigh.balanceOf(address(this));
        vHigh.transfer(msg.sender, balance);
    }

    function swapToken(uint256 amount_) external nonReentrant whenNotPaused {
        require(amount_ > 0, 'Invalid amount');
        require(vHigh.balanceOf(msg.sender) >= amount_, 'vHigh not enough');
        require(high.balanceOf(address(this)) >= amount_, 'liquidity not enough');
        vHigh.transferFrom(msg.sender, address(this), amount_);
        high.transfer(msg.sender, amount_);
        exhangeValue = exhangeValue.add(amount_);
        emit swap(msg.sender, amount_);
    }

    function swapVoucher(uint256 tokenId) external nonReentrant whenNotPaused {
        require(tokenId > 0, 'Invalid amount');
        require(high.balanceOf(address(this)) >= voucher.unitsInToken(tokenId), 'liquidity not enough');
        voucher.transferFrom(msg.sender, voucherCollector, tokenId);
        uint256 value = voucher.unitsInToken(tokenId);
        if(value > 0) {
            high.transfer(msg.sender, value);
            exhangeValue = exhangeValue.add(value);
        }
        emit swap(msg.sender, tokenId, value);
    }

    function swapAllVoucher(uint256[] calldata tokenIds_) external nonReentrant whenNotPaused {
        require(tokenIds_.length > 0, "empty tokenIds");
        uint256 balance = high.balanceOf(address(this));
        uint256 value;
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            uint256 temp = voucher.unitsInToken(tokenIds_[i]);
            if(balance >= value.add(temp)) {
                voucher.transferFrom(msg.sender, voucherCollector, tokenIds_[i]);
                value = value.add(temp);
            }
        }
        if(value > 0) {
            high.transfer(msg.sender, value);
            exhangeValue = exhangeValue.add(value);
        }
        emit swapAll(msg.sender, tokenIds_, value);
    }


}

// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. 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 substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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);
}

File 5 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
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() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

interface IVNFT {

    function unitsInToken(uint256 tokenId) external view returns (uint256 units);

    function approve(address to, uint256 tokenId, uint256 units) external;

    function setApprovalForAll(address operator, bool _approved) external;

    function allowance(uint256 tokenId, address spender) external view returns (uint256 allowed);

    function split(uint256 tokenId, uint256[] calldata units) external returns (uint256[] memory newTokenIds);

    function merge(uint256[] calldata tokenIds, uint256 targetTokenId) external;

    function transferFrom(address from, address to, uint256 tokenId ) external;

    function transferFrom(address from, address to, uint256 tokenId,
        uint256 units) external returns (uint256 newTokenId);

    function safeTransferFrom(address from, address to, uint256 tokenId,
        uint256 units, bytes calldata data) external returns (uint256 newTokenId);

    function transferFrom(address from, address to, uint256 tokenId, uint256 targetTokenId,
        uint256 units) external;

    function safeTransferFrom(address from, address to, uint256 tokenId, uint256 targetTokenId,
        uint256 units, bytes calldata data) external;

    function balanceOf(address owner) external view returns (uint256 balance);

    function ownerOf(uint256 tokenId) external view returns (address owner);

    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"vHigh_","type":"address"},{"internalType":"address","name":"high_","type":"address"},{"internalType":"address","name":"voucher_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"swapAll","type":"event"},{"inputs":[],"name":"claimHighToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimvHighToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exhangeValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"swapAllVoucher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"swapToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"swapVoucher","outputs":[],"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"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"updateCollector","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200189e3803806200189e83398101604081905262000034916200010d565b6200003f33620000a0565b6000805460ff60a01b1916905560018055600280546001600160a01b039485166001600160a01b0319918216179091556003805493851693821693909317909255600480549190931690821617909155600680549091163317905562000156565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200010857600080fd5b919050565b60008060006060848603121562000122578283fd5b6200012d84620000f0565b92506200013d60208501620000f0565b91506200014d60408501620000f0565b90509250925092565b61173880620001666000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063c5c26e4211610066578063c5c26e4214610186578063eadd9ca714610199578063f2fde38b146101a1578063f328f1bd146101b4576100df565b80638da5cb5b146101505780639157a2451461016b578063c316c98b14610173576100df565b80635c975abb116100bd5780635c975abb1461011d578063715018a6146101405780638456cb5914610148576100df565b80633f4ba83a146100e45780634bbf3a7a146100ee5780634ecb753014610101575b600080fd5b6100ec6101c7565b005b6100ec6100fc366004611628565b610230565b61010a60055481565b6040519081526020015b60405180910390f35b610130600054600160a01b900460ff1690565b6040519015158152602001610114565b6100ec61063f565b6100ec6106a3565b6000546040516001600160a01b039091168152602001610114565b6100ec610705565b6100ec610181366004611571565b610865565b6100ec610194366004611598565b6108f9565b6100ec610d21565b6100ec6101af366004611571565b610e37565b6100ec6101c2366004611628565b610f19565b6000546001600160a01b031633146102265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61022e611379565b565b600260015414156102835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161021d565b600260015561029b600054600160a01b900460ff1690565b156102e85760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b600081116103385760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015260640161021d565b6002546040516370a0823160e01b815233600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561037b57600080fd5b505afa15801561038f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b39190611640565b10156104015760405162461bcd60e51b815260206004820152601060248201527f7648696768206e6f7420656e6f75676800000000000000000000000000000000604482015260640161021d565b6003546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561044457600080fd5b505afa158015610458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047c9190611640565b10156104ca5760405162461bcd60e51b815260206004820152601460248201527f6c6971756964697479206e6f7420656e6f756768000000000000000000000000604482015260640161021d565b6002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561053557600080fd5b505af1158015610549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056d9190611608565b5060035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156105ba57600080fd5b505af11580156105ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f29190611608565b506005546106009082611440565b60055560405181815233907fd004f0f70a7b16b64544db702b3f5d807973701473caf1e8c3edfe513ad8eedb9060200160405180910390a25060018055565b6000546001600160a01b031633146106995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b61022e6000611453565b6000546001600160a01b031633146106fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b61022e6114bb565b6000546001600160a01b0316331461075f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156107a357600080fd5b505afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190611640565b60025460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb906044015b602060405180830381600087803b15801561082957600080fd5b505af115801561083d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108619190611608565b5050565b6000546001600160a01b031633146108bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002600154141561094c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161021d565b6002600155610964600054600160a01b900460ff1690565b156109b15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b806109fe5760405162461bcd60e51b815260206004820152600e60248201527f656d70747920746f6b656e496473000000000000000000000000000000000000604482015260640161021d565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610a4257600080fd5b505afa158015610a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7a9190611640565b90506000805b83811015610c2e576004546000906001600160a01b031663becef607878785818110610abc57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610ae191815260200190565b60206040518083038186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190611640565b9050610b3d8382611440565b8410610c1b576004546006546001600160a01b03918216916323b872dd91339116898987818110610b7e57634e487b7160e01b600052603260045260246000fd5b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610bed57600080fd5b505af1158015610c01573d6000803e3d6000fd5b50505050610c18818461144090919063ffffffff16565b92505b5080610c26816116b3565b915050610a80565b508015610ccb5760035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b158015610c8157600080fd5b505af1158015610c95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb99190611608565b50600554610cc79082611440565b6005555b8383604051610cdb929190611658565b6040519081900381208282529033907fe5448875115b4742f3b61ceeed21695f3fec0c9739dde26b19304d7033628c1e9060200160405180910390a35050600180555050565b6000546001600160a01b03163314610d7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b610d836114bb565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610dc757600080fd5b505afa158015610ddb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dff9190611640565b60035460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb9060440161080f565b6000546001600160a01b03163314610e915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b6001600160a01b038116610f0d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161021d565b610f1681611453565b50565b60026001541415610f6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161021d565b6002600155610f84600054600160a01b900460ff1690565b15610fd15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b600081116110215760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015260640161021d565b600480546040517fbecef6070000000000000000000000000000000000000000000000000000000081529182018390526001600160a01b03169063becef6079060240160206040518083038186803b15801561107c57600080fd5b505afa158015611090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b49190611640565b6003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156110f757600080fd5b505afa15801561110b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112f9190611640565b101561117d5760405162461bcd60e51b815260206004820152601460248201527f6c6971756964697479206e6f7420656e6f756768000000000000000000000000604482015260640161021d565b600480546006546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233938101939093526001600160a01b0390811660248401526044830184905216906323b872dd90606401600060405180830381600087803b1580156111ee57600080fd5b505af1158015611202573d6000803e3d6000fd5b5050600480546040517fbecef607000000000000000000000000000000000000000000000000000000008152918201859052600093506001600160a01b0316915063becef6079060240160206040518083038186803b15801561126457600080fd5b505afa158015611278573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129c9190611640565b9050801561133a5760035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156112f057600080fd5b505af1158015611304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113289190611608565b506005546113369082611440565b6005555b604051818152829033907f9f1d0f597ef9b6d0d9783f0c58a94d234c699cd1ea5f59c7632510516a4766d79060200160405180910390a3505060018055565b61138c600054600160a01b900460ff1690565b6113d85760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161021d565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061144c828461169b565b9392505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6114ce600054600160a01b900460ff1690565b1561151b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114233390565b600060208284031215611582578081fd5b81356001600160a01b038116811461144c578182fd5b600080602083850312156115aa578081fd5b823567ffffffffffffffff808211156115c1578283fd5b818501915085601f8301126115d4578283fd5b8135818111156115e2578384fd5b8660208260051b85010111156115f6578384fd5b60209290920196919550909350505050565b600060208284031215611619578081fd5b8151801515811461144c578182fd5b600060208284031215611639578081fd5b5035919050565b600060208284031215611651578081fd5b5051919050565b60007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611686578081fd5b8260051b808584379190910190815292915050565b600082198211156116ae576116ae6116ec565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156116e5576116e56116ec565b5060010190565b634e487b7160e01b600052601160045260246000fdfea26469706673582212205f0f23181ffe7f335c6dd7e602b232b76a244c8bc67f0ec5eca93fa091133ff764736f6c6343000803003300000000000000000000000090707ba68fbe8d5d2f917c83502fcbf5b2585c2800000000000000000000000071ab77b7dbb4fa7e017bc15090b2163221420282000000000000000000000000ceff847de8289a5d0d28d91c3ceb7fa2e17eb27a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063c5c26e4211610066578063c5c26e4214610186578063eadd9ca714610199578063f2fde38b146101a1578063f328f1bd146101b4576100df565b80638da5cb5b146101505780639157a2451461016b578063c316c98b14610173576100df565b80635c975abb116100bd5780635c975abb1461011d578063715018a6146101405780638456cb5914610148576100df565b80633f4ba83a146100e45780634bbf3a7a146100ee5780634ecb753014610101575b600080fd5b6100ec6101c7565b005b6100ec6100fc366004611628565b610230565b61010a60055481565b6040519081526020015b60405180910390f35b610130600054600160a01b900460ff1690565b6040519015158152602001610114565b6100ec61063f565b6100ec6106a3565b6000546040516001600160a01b039091168152602001610114565b6100ec610705565b6100ec610181366004611571565b610865565b6100ec610194366004611598565b6108f9565b6100ec610d21565b6100ec6101af366004611571565b610e37565b6100ec6101c2366004611628565b610f19565b6000546001600160a01b031633146102265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61022e611379565b565b600260015414156102835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161021d565b600260015561029b600054600160a01b900460ff1690565b156102e85760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b600081116103385760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015260640161021d565b6002546040516370a0823160e01b815233600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561037b57600080fd5b505afa15801561038f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b39190611640565b10156104015760405162461bcd60e51b815260206004820152601060248201527f7648696768206e6f7420656e6f75676800000000000000000000000000000000604482015260640161021d565b6003546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561044457600080fd5b505afa158015610458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047c9190611640565b10156104ca5760405162461bcd60e51b815260206004820152601460248201527f6c6971756964697479206e6f7420656e6f756768000000000000000000000000604482015260640161021d565b6002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561053557600080fd5b505af1158015610549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056d9190611608565b5060035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156105ba57600080fd5b505af11580156105ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f29190611608565b506005546106009082611440565b60055560405181815233907fd004f0f70a7b16b64544db702b3f5d807973701473caf1e8c3edfe513ad8eedb9060200160405180910390a25060018055565b6000546001600160a01b031633146106995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b61022e6000611453565b6000546001600160a01b031633146106fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b61022e6114bb565b6000546001600160a01b0316331461075f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156107a357600080fd5b505afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190611640565b60025460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb906044015b602060405180830381600087803b15801561082957600080fd5b505af115801561083d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108619190611608565b5050565b6000546001600160a01b031633146108bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002600154141561094c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161021d565b6002600155610964600054600160a01b900460ff1690565b156109b15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b806109fe5760405162461bcd60e51b815260206004820152600e60248201527f656d70747920746f6b656e496473000000000000000000000000000000000000604482015260640161021d565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610a4257600080fd5b505afa158015610a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7a9190611640565b90506000805b83811015610c2e576004546000906001600160a01b031663becef607878785818110610abc57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610ae191815260200190565b60206040518083038186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190611640565b9050610b3d8382611440565b8410610c1b576004546006546001600160a01b03918216916323b872dd91339116898987818110610b7e57634e487b7160e01b600052603260045260246000fd5b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610bed57600080fd5b505af1158015610c01573d6000803e3d6000fd5b50505050610c18818461144090919063ffffffff16565b92505b5080610c26816116b3565b915050610a80565b508015610ccb5760035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b158015610c8157600080fd5b505af1158015610c95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb99190611608565b50600554610cc79082611440565b6005555b8383604051610cdb929190611658565b6040519081900381208282529033907fe5448875115b4742f3b61ceeed21695f3fec0c9739dde26b19304d7033628c1e9060200160405180910390a35050600180555050565b6000546001600160a01b03163314610d7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b610d836114bb565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610dc757600080fd5b505afa158015610ddb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dff9190611640565b60035460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb9060440161080f565b6000546001600160a01b03163314610e915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021d565b6001600160a01b038116610f0d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161021d565b610f1681611453565b50565b60026001541415610f6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161021d565b6002600155610f84600054600160a01b900460ff1690565b15610fd15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b600081116110215760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015260640161021d565b600480546040517fbecef6070000000000000000000000000000000000000000000000000000000081529182018390526001600160a01b03169063becef6079060240160206040518083038186803b15801561107c57600080fd5b505afa158015611090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b49190611640565b6003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156110f757600080fd5b505afa15801561110b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112f9190611640565b101561117d5760405162461bcd60e51b815260206004820152601460248201527f6c6971756964697479206e6f7420656e6f756768000000000000000000000000604482015260640161021d565b600480546006546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233938101939093526001600160a01b0390811660248401526044830184905216906323b872dd90606401600060405180830381600087803b1580156111ee57600080fd5b505af1158015611202573d6000803e3d6000fd5b5050600480546040517fbecef607000000000000000000000000000000000000000000000000000000008152918201859052600093506001600160a01b0316915063becef6079060240160206040518083038186803b15801561126457600080fd5b505afa158015611278573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129c9190611640565b9050801561133a5760035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156112f057600080fd5b505af1158015611304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113289190611608565b506005546113369082611440565b6005555b604051818152829033907f9f1d0f597ef9b6d0d9783f0c58a94d234c699cd1ea5f59c7632510516a4766d79060200160405180910390a3505060018055565b61138c600054600160a01b900460ff1690565b6113d85760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161021d565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061144c828461169b565b9392505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6114ce600054600160a01b900460ff1690565b1561151b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161021d565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114233390565b600060208284031215611582578081fd5b81356001600160a01b038116811461144c578182fd5b600080602083850312156115aa578081fd5b823567ffffffffffffffff808211156115c1578283fd5b818501915085601f8301126115d4578283fd5b8135818111156115e2578384fd5b8660208260051b85010111156115f6578384fd5b60209290920196919550909350505050565b600060208284031215611619578081fd5b8151801515811461144c578182fd5b600060208284031215611639578081fd5b5035919050565b600060208284031215611651578081fd5b5051919050565b60007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611686578081fd5b8260051b808584379190910190815292915050565b600082198211156116ae576116ae6116ec565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156116e5576116e56116ec565b5060010190565b634e487b7160e01b600052601160045260246000fdfea26469706673582212205f0f23181ffe7f335c6dd7e602b232b76a244c8bc67f0ec5eca93fa091133ff764736f6c63430008030033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000090707ba68fbe8d5d2f917c83502fcbf5b2585c2800000000000000000000000071ab77b7dbb4fa7e017bc15090b2163221420282000000000000000000000000ceff847de8289a5d0d28d91c3ceb7fa2e17eb27a

-----Decoded View---------------
Arg [0] : vHigh_ (address): 0x90707ba68FBE8d5d2f917C83502fcBF5b2585C28
Arg [1] : high_ (address): 0x71Ab77b7dbB4fa7e017BC15090b2163221420282
Arg [2] : voucher_ (address): 0xcEfF847de8289a5D0d28D91c3CeB7Fa2e17EB27a

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000090707ba68fbe8d5d2f917c83502fcbf5b2585c28
Arg [1] : 00000000000000000000000071ab77b7dbb4fa7e017bc15090b2163221420282
Arg [2] : 000000000000000000000000ceff847de8289a5d0d28d91c3ceb7fa2e17eb27a


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.