ETH Price: $3,266.90 (+0.74%)
Gas: 1 Gwei

Contract

0x19Da0D2ED37D4390d2798B9831BFEE4ad5477ff9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...186120402023-11-20 9:15:11251 days ago1700471711IN
Warped Games: Warped Tax Handler
0 ETH0.0009012831.47510642

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
204055802024-07-28 14:15:236 hrs ago1722176123
0x19Da0D2E...ad5477ff9
0 ETH
204048142024-07-28 11:41:358 hrs ago1722166895
0x19Da0D2E...ad5477ff9
0 ETH
204044952024-07-28 10:37:479 hrs ago1722163067
0x19Da0D2E...ad5477ff9
0 ETH
204035372024-07-28 7:25:2313 hrs ago1722151523
0x19Da0D2E...ad5477ff9
0 ETH
204033072024-07-28 6:39:2313 hrs ago1722148763
0x19Da0D2E...ad5477ff9
0 ETH
204031512024-07-28 6:07:5914 hrs ago1722146879
0x19Da0D2E...ad5477ff9
0 ETH
204030792024-07-28 5:53:3514 hrs ago1722146015
0x19Da0D2E...ad5477ff9
0 ETH
204030652024-07-28 5:50:4714 hrs ago1722145847
0x19Da0D2E...ad5477ff9
0 ETH
204028672024-07-28 5:11:1115 hrs ago1722143471
0x19Da0D2E...ad5477ff9
0 ETH
204012032024-07-27 23:35:5920 hrs ago1722123359
0x19Da0D2E...ad5477ff9
0 ETH
204000582024-07-27 19:45:3524 hrs ago1722109535
0x19Da0D2E...ad5477ff9
0 ETH
204000322024-07-27 19:40:2324 hrs ago1722109223
0x19Da0D2E...ad5477ff9
0 ETH
204000322024-07-27 19:40:2324 hrs ago1722109223
0x19Da0D2E...ad5477ff9
0 ETH
203954372024-07-27 4:16:1140 hrs ago1722053771
0x19Da0D2E...ad5477ff9
0 ETH
203917152024-07-26 15:47:352 days ago1722008855
0x19Da0D2E...ad5477ff9
0 ETH
203917152024-07-26 15:47:352 days ago1722008855
0x19Da0D2E...ad5477ff9
0 ETH
203911742024-07-26 13:58:592 days ago1722002339
0x19Da0D2E...ad5477ff9
0 ETH
203911742024-07-26 13:58:592 days ago1722002339
0x19Da0D2E...ad5477ff9
0 ETH
203911742024-07-26 13:58:592 days ago1722002339
0x19Da0D2E...ad5477ff9
0 ETH
203886072024-07-26 5:23:232 days ago1721971403
0x19Da0D2E...ad5477ff9
0 ETH
203883112024-07-26 4:24:112 days ago1721967851
0x19Da0D2E...ad5477ff9
0 ETH
203883112024-07-26 4:24:112 days ago1721967851
0x19Da0D2E...ad5477ff9
0 ETH
203883112024-07-26 4:24:112 days ago1721967851
0x19Da0D2E...ad5477ff9
0 ETH
203877902024-07-26 2:39:352 days ago1721961575
0x19Da0D2E...ad5477ff9
0 ETH
203867572024-07-25 23:11:232 days ago1721949083
0x19Da0D2E...ad5477ff9
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WarpedTaxHandler

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 7 : WarpedTaxHandler.sol
// SPDX-License-Identifier: MIT

/**
 __      __  _____ _______________________________________   
/  \    /  \/  _  \\______   \______   \_   _____/\______ \  
\   \/\/   /  /_\  \|       _/|     ___/|    __)_  |    |  \ 
 \        /    |    \    |   \|    |    |        \ |    `   \
  \__/\  /\____|__  /____|_  /|____|   /_______  //_______  /
       \/         \/       \/                  \/         \/ 
 */

pragma solidity 0.8.18;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

import {ITaxHandler} from "./interfaces/ITaxHandler.sol";
import {IPoolManager} from "./interfaces/IPoolManager.sol";

contract WarpedTaxHandler is ITaxHandler, Ownable {
    /// @notice limit number of NFT contracts
    uint8 public constant NFT_CONTRACTS_LIMIT = 10;
    /// @notice limit number of tax rate points
    uint8 public constant TAX_RATES_LIMIT = 10;

    /// @notice NFTs to be used to determine user tax level.
    IERC721[] public nftContracts;
    /// @notice Bits representing levels of each NFTs: 1,2,4,8
    mapping(IERC721 => uint8) public nftLevels;

    struct TaxRatePoint {
        uint256 threshold;
        uint256 rate;
    }

    TaxRatePoint[] public taxRates;
    uint256 public basisTaxRate;
    uint256 public constant maxTaxRate = 400;
    bool public taxDisabled;
    IPoolManager public poolManager;

    /// @notice Emitted when tax rates are updated.
    event TaxRatesUpdated(uint256[] thesholds, uint256[] rates, uint256 basisTaxRate);

    /// @notice Emitted when nft contracts and levels are added.
    event NFTsAdded(address[] contracts, uint8[] levels);

    /// @notice Emitted when nft contracts are removed.
    event NFTsRemoved(address[] contracts);

    /// @notice Emitted when tax is paused.
    event TaxPaused();

    /// @notice Emitted when tax is resumed.
    event TaxResumed();

    /// @notice Constructor of tax handler contract
    /// @param _poolManager exchange pool manager address
    /// @param _nftContracts array of addresses of NFT contracts
    /// @param _levels array of levels of NFT contracts
    constructor(IPoolManager _poolManager, address[] memory _nftContracts, uint8[] memory _levels) {
        poolManager = _poolManager;

        _addNFTs(_nftContracts, _levels);
        // init default tax rates
        basisTaxRate = 400;
        taxRates.push(TaxRatePoint(7, 100));
        taxRates.push(TaxRatePoint(5, 200));
        taxRates.push(TaxRatePoint(1, 300));
    }

    /**
     * @notice Reset tax rate points.
     * @param thresholds of user level.
     * @param rates of tax per each threshold.
     * @param basisRate basis tax rate.
     *
     * Requirements:
     *
     * - values of `thresholds` must be placed in descending order.
     */
    function setTaxRates(uint256[] memory thresholds, uint256[] memory rates, uint256 basisRate) external onlyOwner {
        require(thresholds.length == rates.length, "Invalid level points");
        require(thresholds.length <= TAX_RATES_LIMIT, "Tax rates limit exceeded");
        require(basisRate > 0, "Invalid base rate");
        require(basisRate <= maxTaxRate, "Base rate must be <= than max");

        delete taxRates;
        for (uint256 i = 0; i < thresholds.length; i++) {
            require(rates[i] <= maxTaxRate, "Rate must be less than max rate");
            if (i > 0) {
                require(thresholds[i] < thresholds[i - 1], "Thresholds not descending order");
            }
            taxRates.push(TaxRatePoint(thresholds[i], rates[i]));
        }
        basisTaxRate = basisRate;

        emit TaxRatesUpdated(thresholds, rates, basisRate);
    }

    /**
     * @notice Add addresses and their levels of NFTs(only ERC721).
     * @dev For future NFT launch, allow to add new NFT addresses and levels.
     * @param contracts NFT contract addresses.
     * @param levels NFT contract levels to be used for user level calculation.
     */
    function addNFTs(address[] memory contracts, uint8[] memory levels) external onlyOwner {
        require(contracts.length > 0 && levels.length > 0, "Invalid parameters");
        _addNFTs(contracts, levels);
    }

    /**
     * @notice Remove nft level by address.
     * @param contracts NFT contract addresses.
     */
    function removeNFTs(address[] memory contracts) external onlyOwner {
        require(contracts.length > 0, "Invalid parameters");
        for (uint8 i = 0; i < contracts.length; i++) {
            for (uint8 j = 0; j < nftContracts.length; j++) {
                if (address(nftContracts[j]) == contracts[i]) {
                    // safely remove NFT contract from array
                    if (j < nftContracts.length - 1) {
                        nftContracts[j] = nftContracts[nftContracts.length - 1];
                    }
                    nftContracts.pop();
                    break;
                }
            }
            nftLevels[IERC721(contracts[i])] = 0;
        }
        emit NFTsRemoved(contracts);
    }

    /**
     * @notice Set no tax for special period
     */
    function pauseTax() external onlyOwner {
        require(!taxDisabled, "Already paused");
        taxDisabled = true;
        emit TaxPaused();
    }

    /**
     * @notice Resume tax handling
     */
    function resumeTax() external onlyOwner {
        require(taxDisabled, "Not paused");
        taxDisabled = false;
        emit TaxResumed();
    }

    /**
     * @notice Get number of tokens to pay as tax.
     * @dev There is no easy way to differentiate between a user swapping
     * tokens and a user adding or removing liquidity to the pool. In both
     * cases tokens are transferred to or from the pool. This is an unfortunate
     * case where users have to accept being taxed on liquidity additions and
     * removal. To get around this issue a separate liquidity addition contract
     * can be deployed. This contract could be exempt from taxes if its
     * functionality is verified to only add and remove liquidity.
     * @param benefactor Address of the benefactor.
     * @param beneficiary Address of the beneficiary.
     * @param amount Number of tokens in the transfer.
     * @return taxAmount Number of tokens for tax
     */
    function getTax(address benefactor, address beneficiary, uint256 amount) external view override returns (uint256) {
        if (taxDisabled) {
            return 0;
        }

        // Transactions between regular users (this includes contracts) aren't taxed.
        if (!poolManager.isPoolAddress(benefactor) && !poolManager.isPoolAddress(beneficiary)) {
            return 0;
        }

        // Transactions between pools aren't taxed.
        if (poolManager.isPoolAddress(benefactor) && poolManager.isPoolAddress(beneficiary)) {
            return 0;
        }

        uint256 taxRate = 0;
        // If the benefactor is found in the set of exchange pools, then it's a buy transactions, otherwise a sell
        // transactions, because the other use cases have already been checked above.
        if (poolManager.isPoolAddress(benefactor)) {
            taxRate = _getTaxBasisPoints(beneficiary);
        } else {
            taxRate = _getTaxBasisPoints(benefactor);
        }

        return (amount * taxRate) / 10000;
    }

    /**
     * @notice Get percent of tax to pay for the given user.
     * @dev Basis tax percent will be varied based on user's ownership of NFTs
     * in the STARL metaverse. There are 3 user levels and user's level will be
     * determined by bit-or of nft levels he owned.
     * SATE: 8(4th bit), LM/LMvX: 4(3rd bit), PAL: 2(2nd bit), PN: 1(first bit)
     * bit-or >= 7 : 1%
     * bit-or >= 5 : 2%
     * bit-or >= 1 : 3%
     * @param user Address of user(buyer/seller address).
     * @return Number Basis tax percent in 2 decimal.
     */
    function _getTaxBasisPoints(address user) internal view returns (uint256) {
        uint256 userLevel = 0;
        // Max number of nft contracts is 10 so gas for the loop of nft contracts is less than about 141k.
        // Max number of tax rates is 10 so gas for the loop of tax rates is less than about 100k.
        // Total gas for both loops is less than about 241k so it will be not over the block gas limit.
        for (uint256 i = 0; i < nftContracts.length; i++) {
            IERC721 nft = nftContracts[i];
            if (nft.balanceOf(user) > 0) {
                userLevel = userLevel | nftLevels[nftContracts[i]];
            }
        }
        for (uint256 i = 0; i < taxRates.length; i++) {
            if (userLevel >= taxRates[i].threshold) {
                return taxRates[i].rate;
            }
        }
        return basisTaxRate;
    }

    function _addNFTs(address[] memory contracts, uint8[] memory levels) internal {
        require(contracts.length == levels.length, "Invalid parameters");
        require(contracts.length + nftContracts.length <= NFT_CONTRACTS_LIMIT, "No. of NFT contracts over limit");

        for (uint8 i = 0; i < contracts.length; i++) {
            require(contracts[i] != address(0), "contract address is zero address");
            require(IERC165(contracts[i]).supportsInterface(type(IERC721).interfaceId), "IERC721 not implemented");
            // nftLevels for existing contract is always bigger than zero.
            // So checking this value is enough to check the uniqueness of adding NFT contract address.
            require(nftLevels[IERC721(contracts[i])] == 0, "Duplicate NFT contract");
            require(levels[i] > 0, "Invalid NFT level");

            nftContracts.push(IERC721(contracts[i]));
            nftLevels[IERC721(contracts[i])] = levels[i];
        }

        emit NFTsAdded(contracts, levels);
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 7 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 4 of 7 : 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 5 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 6 of 7 : IPoolManager.sol
// SPDX-License-Identifier: MIT

/**
 __      __  _____ _______________________________________   
/  \    /  \/  _  \\______   \______   \_   _____/\______ \  
\   \/\/   /  /_\  \|       _/|     ___/|    __)_  |    |  \ 
 \        /    |    \    |   \|    |    |        \ |    `   \
  \__/\  /\____|__  /____|_  /|____|   /_______  //_______  /
       \/         \/       \/                  \/         \/ 
 */

pragma solidity 0.8.18;

/**
 * @title Exchange pool processor abstract contract.
 * @dev Keeps an enumerable set of designated exchange addresses as well as a single primary pool address.
 */
interface IPoolManager {
    /// @notice Primary exchange pool address.
    function primaryPool() external view returns (address);

    /**
     * @notice Check if the given address is pool address.
     * @param addr Address to check.
     * @return bool True if the given address is pool address.
     */
    function isPoolAddress(address addr) external view returns (bool);
}

File 7 of 7 : ITaxHandler.sol
// SPDX-License-Identifier: MIT

/**
 __      __  _____ _______________________________________   
/  \    /  \/  _  \\______   \______   \_   _____/\______ \  
\   \/\/   /  /_\  \|       _/|     ___/|    __)_  |    |  \ 
 \        /    |    \    |   \|    |    |        \ |    `   \
  \__/\  /\____|__  /____|_  /|____|   /_______  //_______  /
       \/         \/       \/                  \/         \/ 
 */

pragma solidity 0.8.18;

interface ITaxHandler {
    /**
     * @notice Get number of tokens to pay as tax.
     * @param benefactor Address of the benefactor.
     * @param beneficiary Address of the beneficiary.
     * @param amount Number of tokens in the transfer.
     * @return taxAmount Number of tokens for tax.
     */
    function getTax(address benefactor, address beneficiary, uint256 amount) external view returns (uint256);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IPoolManager","name":"_poolManager","type":"address"},{"internalType":"address[]","name":"_nftContracts","type":"address[]"},{"internalType":"uint8[]","name":"_levels","type":"uint8[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"contracts","type":"address[]"},{"indexed":false,"internalType":"uint8[]","name":"levels","type":"uint8[]"}],"name":"NFTsAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"contracts","type":"address[]"}],"name":"NFTsRemoved","type":"event"},{"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":[],"name":"TaxPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"thesholds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"rates","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"basisTaxRate","type":"uint256"}],"name":"TaxRatesUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"TaxResumed","type":"event"},{"inputs":[],"name":"NFT_CONTRACTS_LIMIT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TAX_RATES_LIMIT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"contracts","type":"address[]"},{"internalType":"uint8[]","name":"levels","type":"uint8[]"}],"name":"addNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basisTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"benefactor","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftContracts","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"name":"nftLevels","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"poolManager","outputs":[{"internalType":"contract IPoolManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"contracts","type":"address[]"}],"name":"removeNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"thresholds","type":"uint256[]"},{"internalType":"uint256[]","name":"rates","type":"uint256[]"},{"internalType":"uint256","name":"basisRate","type":"uint256"}],"name":"setTaxRates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"taxDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxRates","outputs":[{"internalType":"uint256","name":"threshold","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002329380380620023298339810160408190526200003491620006fb565b6200003f3362000156565b60058054610100600160a81b0319166101006001600160a01b038616021790556200006b8282620001a6565b505061019060045550604080518082018252600781526064602080830191825260038054600181810183556000838152955160029283027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b8181019290925595517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c96870155875180890189526005815260c881870190815285548085018755868a529151918502808401929092555190870155875180890190985281885261012c948801948552835491820184559290955294519390940293840192909255905191015562000903565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114620001f25760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b60448201526064015b60405180910390fd5b6001548251600a916200020591620007f9565b1115620002555760405162461bcd60e51b815260206004820152601f60248201527f4e6f2e206f66204e465420636f6e747261637473206f766572206c696d6974006044820152606401620001e9565b60005b82518160ff161015620005af5760006001600160a01b0316838260ff168151811062000288576200028862000815565b60200260200101516001600160a01b031603620002e85760405162461bcd60e51b815260206004820181905260248201527f636f6e74726163742061646472657373206973207a65726f20616464726573736044820152606401620001e9565b828160ff168151811062000300576200030062000815565b60209081029190910101516040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa15801562000358573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200037e91906200082b565b620003cc5760405162461bcd60e51b815260206004820152601760248201527f49455243373231206e6f7420696d706c656d656e7465640000000000000000006044820152606401620001e9565b60026000848360ff1681518110620003e857620003e862000815565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156200045e5760405162461bcd60e51b815260206004820152601660248201527f4475706c6963617465204e465420636f6e7472616374000000000000000000006044820152606401620001e9565b6000828260ff168151811062000478576200047862000815565b602002602001015160ff1611620004c65760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a5908139195081b195d995b607a1b6044820152606401620001e9565b6001838260ff1681518110620004e057620004e062000815565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558151829060ff831690811062000535576200053562000815565b602002602001015160026000858460ff168151811062000559576200055962000815565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080620005a69062000856565b91505062000258565b507fdd8e03f1035925cb29f3280533b9b1275e9bb93c2f197bf79e9719e20537eb348282604051620005e392919062000878565b60405180910390a15050565b6001600160a01b03811681146200060557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000649576200064962000608565b604052919050565b60006001600160401b038211156200066d576200066d62000608565b5060051b60200190565b600082601f8301126200068957600080fd5b81516020620006a26200069c8362000651565b6200061e565b82815260059290921b84018101918181019086841115620006c257600080fd5b8286015b84811015620006f057805160ff81168114620006e25760008081fd5b8352918301918301620006c6565b509695505050505050565b6000806000606084860312156200071157600080fd5b83516200071e81620005ef565b602085810151919450906001600160401b03808211156200073e57600080fd5b818701915087601f8301126200075357600080fd5b8151620007646200069c8262000651565b81815260059190911b8301840190848101908a8311156200078457600080fd5b938501935b82851015620007af5784516200079f81620005ef565b8252938501939085019062000789565b60408a01519097509450505080831115620007c957600080fd5b5050620007d98682870162000677565b9150509250925092565b634e487b7160e01b600052601160045260246000fd5b808201808211156200080f576200080f620007e3565b92915050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156200083e57600080fd5b815180151581146200084f57600080fd5b9392505050565b600060ff821660ff81036200086f576200086f620007e3565b60010192915050565b604080825283519082018190526000906020906060840190828701845b82811015620008bc5781516001600160a01b03168452928401929084019060010162000895565b5050508381038285015284518082528583019183019060005b81811015620008f657835160ff1683529284019291840191600101620008d5565b5090979650505050505050565b611a1680620009136000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80639db2bd4a116100b2578063d7ad21ac11610081578063e48849b211610066578063e48849b214610293578063f0a223251461013b578063f2fde38b1461029c57600080fd5b8063d7ad21ac14610268578063dc4c90d31461027b57600080fd5b80639db2bd4a14610222578063b397c0721461022a578063b93f5ea91461023d578063d53172191461024557600080fd5b8063715018a6116101095780638da5cb5b116100ee5780638da5cb5b146101e15780638f83210a146101f25780639a07579a1461020557600080fd5b8063715018a6146101c2578063887d882f146101ca57600080fd5b8063029fa73d1461013b5780630bb4d82a1461015a578063172bd14e1461018557806355ee932c1461019a575b600080fd5b610143600a81565b60405160ff90911681526020015b60405180910390f35b61016d610168366004611474565b6102af565b6040516001600160a01b039091168152602001610151565b610198610193366004611581565b6102d9565b005b6101ad6101a8366004611474565b610537565b60408051928352602083019190915201610151565b610198610565565b6101d360045481565b604051908152602001610151565b6000546001600160a01b031661016d565b6101986102003660046115be565b610579565b6005546102129060ff1681565b6040519015158152602001610151565b6101986105e2565b6101986102383660046116e4565b610671565b61019861099b565b610143610253366004611751565b60026020526000908152604090205460ff1681565b6101d361027636600461176e565b610a2e565b60055461016d9061010090046001600160a01b031681565b6101d361019081565b6101986102aa366004611751565b610cf6565b600181815481106102bf57600080fd5b6000918252602090912001546001600160a01b0316905081565b6102e1610d86565b600081511161032c5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b60448201526064015b60405180910390fd5b60005b81518160ff1610156104fc5760005b60015460ff8216101561048d57828260ff1681518110610360576103606117af565b60200260200101516001600160a01b031660018260ff1681548110610387576103876117af565b6000918252602090912001546001600160a01b03160361047b57600180546103af91906117db565b8160ff16101561043657600180546103c89082906117db565b815481106103d8576103d86117af565b600091825260209091200154600180546001600160a01b039092169160ff8416908110610407576104076117af565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b6001805480610447576104476117f4565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff1916905501905561048d565b806104858161180a565b91505061033e565b50600060026000848460ff16815181106104a9576104a96117af565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806104f49061180a565b91505061032f565b507feadf5f5ad55ae02bdbc27960b0536a193a0b99858ac27b05a70c3dcf34ab9ad08160405161052c919061186d565b60405180910390a150565b6003818154811061054757600080fd5b60009182526020909120600290910201805460019091015490915082565b61056d610d86565b6105776000610de0565b565b610581610d86565b60008251118015610593575060008151115b6105d45760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610323565b6105de8282610e3d565b5050565b6105ea610d86565b60055460ff1661063c5760405162461bcd60e51b815260206004820152600a60248201527f4e6f7420706175736564000000000000000000000000000000000000000000006044820152606401610323565b6005805460ff191690556040517f47e0cfe6ad76b1b9497f840d1d1c62ddc98be3ff419258bf041a4cea3782e1da90600090a1565b610679610d86565b81518351146106ca5760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206c6576656c20706f696e74730000000000000000000000006044820152606401610323565b8251600a101561071c5760405162461bcd60e51b815260206004820152601860248201527f546178207261746573206c696d697420657863656564656400000000000000006044820152606401610323565b6000811161076c5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964206261736520726174650000000000000000000000000000006044820152606401610323565b6101908111156107be5760405162461bcd60e51b815260206004820152601d60248201527f426173652072617465206d757374206265203c3d207468616e206d61780000006044820152606401610323565b6107ca60036000611439565b60005b8351811015610954576101908382815181106107eb576107eb6117af565b602002602001015111156108415760405162461bcd60e51b815260206004820152601f60248201527f52617465206d757374206265206c657373207468616e206d61782072617465006044820152606401610323565b80156108d257836108536001836117db565b81518110610863576108636117af565b602002602001015184828151811061087d5761087d6117af565b6020026020010151106108d25760405162461bcd60e51b815260206004820152601f60248201527f5468726573686f6c6473206e6f742064657363656e64696e67206f72646572006044820152606401610323565b600360405180604001604052808684815181106108f1576108f16117af565b60200260200101518152602001858481518110610910576109106117af565b60209081029190910181015190915282546001818101855560009485529382902083516002909202019081559101519101558061094c81611880565b9150506107cd565b5060048190556040517f70a804f85f9b5151aac503b847a14578871b17d70fb2786e5e9216727e19eec29061098e908590859085906118c9565b60405180910390a1505050565b6109a3610d86565b60055460ff16156109f65760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479207061757365640000000000000000000000000000000000006044820152606401610323565b6005805460ff191660011790556040517f8a84ec8d5c539e361a5ce359149c1ae17a2e35b8e7e329fb630488c7055c73ee90600090a1565b60055460009060ff1615610a4457506000610cef565b600554604051632842d75760e01b81526001600160a01b03868116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab891906118ff565b158015610b365750600554604051632842d75760e01b81526001600160a01b03858116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3491906118ff565b155b15610b4357506000610cef565b600554604051632842d75760e01b81526001600160a01b03868116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610b93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb791906118ff565b8015610c325750600554604051632842d75760e01b81526001600160a01b03858116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3291906118ff565b15610c3f57506000610cef565b600554604051632842d75760e01b81526001600160a01b03868116600483015260009261010090041690632842d75790602401602060405180830381865afa158015610c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb391906118ff565b15610cc857610cc1846112a1565b9050610cd4565b610cd1856112a1565b90505b612710610ce18285611921565b610ceb9190611938565b9150505b9392505050565b610cfe610d86565b6001600160a01b038116610d7a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610323565b610d8381610de0565b50565b6000546001600160a01b031633146105775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610323565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114610e835760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610323565b6001548251600a91610e949161195a565b1115610ee25760405162461bcd60e51b815260206004820152601f60248201527f4e6f2e206f66204e465420636f6e747261637473206f766572206c696d6974006044820152606401610323565b60005b82518160ff1610156112635760006001600160a01b0316838260ff1681518110610f1157610f116117af565b60200260200101516001600160a01b031603610f6f5760405162461bcd60e51b815260206004820181905260248201527f636f6e74726163742061646472657373206973207a65726f20616464726573736044820152606401610323565b828160ff1681518110610f8457610f846117af565b60209081029190910101516040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103191906118ff565b61107d5760405162461bcd60e51b815260206004820152601760248201527f49455243373231206e6f7420696d706c656d656e7465640000000000000000006044820152606401610323565b60026000848360ff1681518110611096576110966117af565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161561110a5760405162461bcd60e51b815260206004820152601660248201527f4475706c6963617465204e465420636f6e7472616374000000000000000000006044820152606401610323565b6000828260ff1681518110611121576111216117af565b602002602001015160ff16116111795760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964204e4654206c6576656c0000000000000000000000000000006044820152606401610323565b6001838260ff1681518110611190576111906117af565b602090810291909101810151825460018101845560009384529190922001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790558151829060ff83169081106111ef576111ef6117af565b602002602001015160026000858460ff1681518110611210576112106117af565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff160217905550808061125b9061180a565b915050610ee5565b507fdd8e03f1035925cb29f3280533b9b1275e9bb93c2f197bf79e9719e20537eb34828260405161129592919061196d565b60405180910390a15050565b600080805b6001548110156113b5576000600182815481106112c5576112c56117af565b60009182526020822001546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152909116925082906370a0823190602401602060405180830381865afa158015611333573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135791906119c7565b11156113a2576002600060018481548110611374576113746117af565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1692909217915b50806113ad81611880565b9150506112a6565b5060005b60035481101561142e57600381815481106113d6576113d66117af565b906000526020600020906002020160000154821061141c5760038181548110611401576114016117af565b90600052602060002090600202016001015492505050919050565b8061142681611880565b9150506113b9565b505060045492915050565b5080546000825560020290600052602060002090810190610d8391905b808211156114705760008082556001820155600201611456565b5090565b60006020828403121561148657600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114cc576114cc61148d565b604052919050565b600067ffffffffffffffff8211156114ee576114ee61148d565b5060051b60200190565b6001600160a01b0381168114610d8357600080fd5b600082601f83011261151e57600080fd5b8135602061153361152e836114d4565b6114a3565b82815260059290921b8401810191818101908684111561155257600080fd5b8286015b84811015611576578035611569816114f8565b8352918301918301611556565b509695505050505050565b60006020828403121561159357600080fd5b813567ffffffffffffffff8111156115aa57600080fd5b6115b68482850161150d565b949350505050565b600080604083850312156115d157600080fd5b823567ffffffffffffffff808211156115e957600080fd5b6115f58683870161150d565b935060209150818501358181111561160c57600080fd5b85019050601f8101861361161f57600080fd5b803561162d61152e826114d4565b81815260059190911b8201830190838101908883111561164c57600080fd5b928401925b8284101561167a57833560ff8116811461166b5760008081fd5b82529284019290840190611651565b80955050505050509250929050565b600082601f83011261169a57600080fd5b813560206116aa61152e836114d4565b82815260059290921b840181019181810190868411156116c957600080fd5b8286015b8481101561157657803583529183019183016116cd565b6000806000606084860312156116f957600080fd5b833567ffffffffffffffff8082111561171157600080fd5b61171d87838801611689565b9450602086013591508082111561173357600080fd5b5061174086828701611689565b925050604084013590509250925092565b60006020828403121561176357600080fd5b8135610cef816114f8565b60008060006060848603121561178357600080fd5b833561178e816114f8565b9250602084013561179e816114f8565b929592945050506040919091013590565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156117ee576117ee6117c5565b92915050565b634e487b7160e01b600052603160045260246000fd5b600060ff821660ff8103611820576118206117c5565b60010192915050565b600081518084526020808501945080840160005b838110156118625781516001600160a01b03168752958201959082019060010161183d565b509495945050505050565b602081526000610cef6020830184611829565b600060018201611892576118926117c5565b5060010190565b600081518084526020808501945080840160005b83811015611862578151875295820195908201906001016118ad565b6060815260006118dc6060830186611899565b82810360208401526118ee8186611899565b915050826040830152949350505050565b60006020828403121561191157600080fd5b81518015158114610cef57600080fd5b80820281158282048414176117ee576117ee6117c5565b60008261195557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156117ee576117ee6117c5565b6040815260006119806040830185611829565b82810360208481019190915284518083528582019282019060005b818110156119ba57845160ff168352938301939183019160010161199b565b5090979650505050505050565b6000602082840312156119d957600080fd5b505191905056fea2646970667358221220a4c16d798467ce887ec78e3566b3aff34f0b49fed282a7b96e7fd06870a5009464736f6c634300081200330000000000000000000000002747f8ef90dfa11e33fbc14a246bbd108ca6811800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000500000000000000000000000048470fb3fe7108b9e15b2bf7aa15b7adf774d7210000000000000000000000001b2f625e11c2cb949b465f343fe866d7f30f204a0000000000000000000000003634847577a40af0a0f592fdbcc1903720112cf600000000000000000000000009243c5fc239a879825e816cf062b7c337ea541200000000000000000000000027cc171b16fdd2224e1f93ed7dccfcc6790ca4bf000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c80639db2bd4a116100b2578063d7ad21ac11610081578063e48849b211610066578063e48849b214610293578063f0a223251461013b578063f2fde38b1461029c57600080fd5b8063d7ad21ac14610268578063dc4c90d31461027b57600080fd5b80639db2bd4a14610222578063b397c0721461022a578063b93f5ea91461023d578063d53172191461024557600080fd5b8063715018a6116101095780638da5cb5b116100ee5780638da5cb5b146101e15780638f83210a146101f25780639a07579a1461020557600080fd5b8063715018a6146101c2578063887d882f146101ca57600080fd5b8063029fa73d1461013b5780630bb4d82a1461015a578063172bd14e1461018557806355ee932c1461019a575b600080fd5b610143600a81565b60405160ff90911681526020015b60405180910390f35b61016d610168366004611474565b6102af565b6040516001600160a01b039091168152602001610151565b610198610193366004611581565b6102d9565b005b6101ad6101a8366004611474565b610537565b60408051928352602083019190915201610151565b610198610565565b6101d360045481565b604051908152602001610151565b6000546001600160a01b031661016d565b6101986102003660046115be565b610579565b6005546102129060ff1681565b6040519015158152602001610151565b6101986105e2565b6101986102383660046116e4565b610671565b61019861099b565b610143610253366004611751565b60026020526000908152604090205460ff1681565b6101d361027636600461176e565b610a2e565b60055461016d9061010090046001600160a01b031681565b6101d361019081565b6101986102aa366004611751565b610cf6565b600181815481106102bf57600080fd5b6000918252602090912001546001600160a01b0316905081565b6102e1610d86565b600081511161032c5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b60448201526064015b60405180910390fd5b60005b81518160ff1610156104fc5760005b60015460ff8216101561048d57828260ff1681518110610360576103606117af565b60200260200101516001600160a01b031660018260ff1681548110610387576103876117af565b6000918252602090912001546001600160a01b03160361047b57600180546103af91906117db565b8160ff16101561043657600180546103c89082906117db565b815481106103d8576103d86117af565b600091825260209091200154600180546001600160a01b039092169160ff8416908110610407576104076117af565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b6001805480610447576104476117f4565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff1916905501905561048d565b806104858161180a565b91505061033e565b50600060026000848460ff16815181106104a9576104a96117af565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806104f49061180a565b91505061032f565b507feadf5f5ad55ae02bdbc27960b0536a193a0b99858ac27b05a70c3dcf34ab9ad08160405161052c919061186d565b60405180910390a150565b6003818154811061054757600080fd5b60009182526020909120600290910201805460019091015490915082565b61056d610d86565b6105776000610de0565b565b610581610d86565b60008251118015610593575060008151115b6105d45760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610323565b6105de8282610e3d565b5050565b6105ea610d86565b60055460ff1661063c5760405162461bcd60e51b815260206004820152600a60248201527f4e6f7420706175736564000000000000000000000000000000000000000000006044820152606401610323565b6005805460ff191690556040517f47e0cfe6ad76b1b9497f840d1d1c62ddc98be3ff419258bf041a4cea3782e1da90600090a1565b610679610d86565b81518351146106ca5760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206c6576656c20706f696e74730000000000000000000000006044820152606401610323565b8251600a101561071c5760405162461bcd60e51b815260206004820152601860248201527f546178207261746573206c696d697420657863656564656400000000000000006044820152606401610323565b6000811161076c5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964206261736520726174650000000000000000000000000000006044820152606401610323565b6101908111156107be5760405162461bcd60e51b815260206004820152601d60248201527f426173652072617465206d757374206265203c3d207468616e206d61780000006044820152606401610323565b6107ca60036000611439565b60005b8351811015610954576101908382815181106107eb576107eb6117af565b602002602001015111156108415760405162461bcd60e51b815260206004820152601f60248201527f52617465206d757374206265206c657373207468616e206d61782072617465006044820152606401610323565b80156108d257836108536001836117db565b81518110610863576108636117af565b602002602001015184828151811061087d5761087d6117af565b6020026020010151106108d25760405162461bcd60e51b815260206004820152601f60248201527f5468726573686f6c6473206e6f742064657363656e64696e67206f72646572006044820152606401610323565b600360405180604001604052808684815181106108f1576108f16117af565b60200260200101518152602001858481518110610910576109106117af565b60209081029190910181015190915282546001818101855560009485529382902083516002909202019081559101519101558061094c81611880565b9150506107cd565b5060048190556040517f70a804f85f9b5151aac503b847a14578871b17d70fb2786e5e9216727e19eec29061098e908590859085906118c9565b60405180910390a1505050565b6109a3610d86565b60055460ff16156109f65760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479207061757365640000000000000000000000000000000000006044820152606401610323565b6005805460ff191660011790556040517f8a84ec8d5c539e361a5ce359149c1ae17a2e35b8e7e329fb630488c7055c73ee90600090a1565b60055460009060ff1615610a4457506000610cef565b600554604051632842d75760e01b81526001600160a01b03868116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab891906118ff565b158015610b365750600554604051632842d75760e01b81526001600160a01b03858116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3491906118ff565b155b15610b4357506000610cef565b600554604051632842d75760e01b81526001600160a01b03868116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610b93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb791906118ff565b8015610c325750600554604051632842d75760e01b81526001600160a01b03858116600483015261010090920490911690632842d75790602401602060405180830381865afa158015610c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3291906118ff565b15610c3f57506000610cef565b600554604051632842d75760e01b81526001600160a01b03868116600483015260009261010090041690632842d75790602401602060405180830381865afa158015610c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb391906118ff565b15610cc857610cc1846112a1565b9050610cd4565b610cd1856112a1565b90505b612710610ce18285611921565b610ceb9190611938565b9150505b9392505050565b610cfe610d86565b6001600160a01b038116610d7a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610323565b610d8381610de0565b50565b6000546001600160a01b031633146105775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610323565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114610e835760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610323565b6001548251600a91610e949161195a565b1115610ee25760405162461bcd60e51b815260206004820152601f60248201527f4e6f2e206f66204e465420636f6e747261637473206f766572206c696d6974006044820152606401610323565b60005b82518160ff1610156112635760006001600160a01b0316838260ff1681518110610f1157610f116117af565b60200260200101516001600160a01b031603610f6f5760405162461bcd60e51b815260206004820181905260248201527f636f6e74726163742061646472657373206973207a65726f20616464726573736044820152606401610323565b828160ff1681518110610f8457610f846117af565b60209081029190910101516040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103191906118ff565b61107d5760405162461bcd60e51b815260206004820152601760248201527f49455243373231206e6f7420696d706c656d656e7465640000000000000000006044820152606401610323565b60026000848360ff1681518110611096576110966117af565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161561110a5760405162461bcd60e51b815260206004820152601660248201527f4475706c6963617465204e465420636f6e7472616374000000000000000000006044820152606401610323565b6000828260ff1681518110611121576111216117af565b602002602001015160ff16116111795760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964204e4654206c6576656c0000000000000000000000000000006044820152606401610323565b6001838260ff1681518110611190576111906117af565b602090810291909101810151825460018101845560009384529190922001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790558151829060ff83169081106111ef576111ef6117af565b602002602001015160026000858460ff1681518110611210576112106117af565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff160217905550808061125b9061180a565b915050610ee5565b507fdd8e03f1035925cb29f3280533b9b1275e9bb93c2f197bf79e9719e20537eb34828260405161129592919061196d565b60405180910390a15050565b600080805b6001548110156113b5576000600182815481106112c5576112c56117af565b60009182526020822001546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152909116925082906370a0823190602401602060405180830381865afa158015611333573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135791906119c7565b11156113a2576002600060018481548110611374576113746117af565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1692909217915b50806113ad81611880565b9150506112a6565b5060005b60035481101561142e57600381815481106113d6576113d66117af565b906000526020600020906002020160000154821061141c5760038181548110611401576114016117af565b90600052602060002090600202016001015492505050919050565b8061142681611880565b9150506113b9565b505060045492915050565b5080546000825560020290600052602060002090810190610d8391905b808211156114705760008082556001820155600201611456565b5090565b60006020828403121561148657600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114cc576114cc61148d565b604052919050565b600067ffffffffffffffff8211156114ee576114ee61148d565b5060051b60200190565b6001600160a01b0381168114610d8357600080fd5b600082601f83011261151e57600080fd5b8135602061153361152e836114d4565b6114a3565b82815260059290921b8401810191818101908684111561155257600080fd5b8286015b84811015611576578035611569816114f8565b8352918301918301611556565b509695505050505050565b60006020828403121561159357600080fd5b813567ffffffffffffffff8111156115aa57600080fd5b6115b68482850161150d565b949350505050565b600080604083850312156115d157600080fd5b823567ffffffffffffffff808211156115e957600080fd5b6115f58683870161150d565b935060209150818501358181111561160c57600080fd5b85019050601f8101861361161f57600080fd5b803561162d61152e826114d4565b81815260059190911b8201830190838101908883111561164c57600080fd5b928401925b8284101561167a57833560ff8116811461166b5760008081fd5b82529284019290840190611651565b80955050505050509250929050565b600082601f83011261169a57600080fd5b813560206116aa61152e836114d4565b82815260059290921b840181019181810190868411156116c957600080fd5b8286015b8481101561157657803583529183019183016116cd565b6000806000606084860312156116f957600080fd5b833567ffffffffffffffff8082111561171157600080fd5b61171d87838801611689565b9450602086013591508082111561173357600080fd5b5061174086828701611689565b925050604084013590509250925092565b60006020828403121561176357600080fd5b8135610cef816114f8565b60008060006060848603121561178357600080fd5b833561178e816114f8565b9250602084013561179e816114f8565b929592945050506040919091013590565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156117ee576117ee6117c5565b92915050565b634e487b7160e01b600052603160045260246000fd5b600060ff821660ff8103611820576118206117c5565b60010192915050565b600081518084526020808501945080840160005b838110156118625781516001600160a01b03168752958201959082019060010161183d565b509495945050505050565b602081526000610cef6020830184611829565b600060018201611892576118926117c5565b5060010190565b600081518084526020808501945080840160005b83811015611862578151875295820195908201906001016118ad565b6060815260006118dc6060830186611899565b82810360208401526118ee8186611899565b915050826040830152949350505050565b60006020828403121561191157600080fd5b81518015158114610cef57600080fd5b80820281158282048414176117ee576117ee6117c5565b60008261195557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156117ee576117ee6117c5565b6040815260006119806040830185611829565b82810360208481019190915284518083528582019282019060005b818110156119ba57845160ff168352938301939183019160010161199b565b5090979650505050505050565b6000602082840312156119d957600080fd5b505191905056fea2646970667358221220a4c16d798467ce887ec78e3566b3aff34f0b49fed282a7b96e7fd06870a5009464736f6c63430008120033

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

0000000000000000000000002747f8ef90dfa11e33fbc14a246bbd108ca6811800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000500000000000000000000000048470fb3fe7108b9e15b2bf7aa15b7adf774d7210000000000000000000000001b2f625e11c2cb949b465f343fe866d7f30f204a0000000000000000000000003634847577a40af0a0f592fdbcc1903720112cf600000000000000000000000009243c5fc239a879825e816cf062b7c337ea541200000000000000000000000027cc171b16fdd2224e1f93ed7dccfcc6790ca4bf000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _poolManager (address): 0x2747F8Ef90DFa11e33FBc14A246bbd108Ca68118
Arg [1] : _nftContracts (address[]): 0x48470fB3fe7108b9e15b2Bf7aa15b7Adf774d721,0x1b2F625E11c2Cb949B465F343Fe866D7f30f204a,0x3634847577A40Af0A0f592fDBCC1903720112CF6,0x09243c5fC239A879825e816CF062B7C337EA5412,0x27cC171B16FdD2224E1f93eD7DccFcc6790cA4BF
Arg [2] : _levels (uint8[]): 8,4,4,2,1

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000002747f8ef90dfa11e33fbc14a246bbd108ca68118
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 00000000000000000000000048470fb3fe7108b9e15b2bf7aa15b7adf774d721
Arg [5] : 0000000000000000000000001b2f625e11c2cb949b465f343fe866d7f30f204a
Arg [6] : 0000000000000000000000003634847577a40af0a0f592fdbcc1903720112cf6
Arg [7] : 00000000000000000000000009243c5fc239a879825e816cf062b7c337ea5412
Arg [8] : 00000000000000000000000027cc171b16fdd2224e1f93ed7dccfcc6790ca4bf
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000001


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.