Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,005 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy And Redeem | 20145248 | 170 days ago | IN | 0.00961673 ETH | 0.00010631 | ||||
Mint And Sell721 | 20144695 | 170 days ago | IN | 0 ETH | 0.00178257 | ||||
Mint And Sell721 | 20144695 | 170 days ago | IN | 0 ETH | 0.00102432 | ||||
Buy And Redeem | 15386785 | 840 days ago | IN | 0.00673433 ETH | 0.00024642 | ||||
Buy And Redeem | 15106948 | 884 days ago | IN | 0.00628788 ETH | 0.00297117 | ||||
Mint And Sell721 | 14062128 | 1051 days ago | IN | 0 ETH | 0.0380547 | ||||
Buy And Swap721 | 14042217 | 1054 days ago | IN | 0.11358963 ETH | 0.03334657 | ||||
Buy And Redeem | 14042207 | 1054 days ago | IN | 1.0303187 ETH | 0.03600648 | ||||
Mint And Sell115... | 14042086 | 1054 days ago | IN | 0 ETH | 0.03686902 | ||||
Mint And Sell721 | 14041848 | 1054 days ago | IN | 0 ETH | 0.02663835 | ||||
Buy And Redeem | 14041818 | 1054 days ago | IN | 0.34883559 ETH | 0.0354397 | ||||
Mint And Sell721 | 14041676 | 1054 days ago | IN | 0 ETH | 0.06959779 | ||||
Mint And Sell721 | 14041633 | 1054 days ago | IN | 0 ETH | 0.02903789 | ||||
Mint And Sell721 | 14041431 | 1054 days ago | IN | 0 ETH | 0.03794472 | ||||
Mint And Sell721 | 14041300 | 1054 days ago | IN | 0 ETH | 0.05407825 | ||||
Mint And Sell721 | 14041143 | 1054 days ago | IN | 0 ETH | 0.08033196 | ||||
Buy And Redeem | 14041062 | 1054 days ago | IN | 0.10998786 ETH | 0.04054418 | ||||
Mint And Sell721 | 14040941 | 1054 days ago | IN | 0 ETH | 0.05103051 | ||||
Buy And Redeem | 14040804 | 1054 days ago | IN | 0.11146134 ETH | 0.03679969 | ||||
Buy And Redeem | 14040629 | 1054 days ago | IN | 0.30541847 ETH | 0.04329193 | ||||
Mint And Sell721 | 14040449 | 1054 days ago | IN | 0 ETH | 0.07197761 | ||||
Buy And Redeem | 14039990 | 1054 days ago | IN | 0.18799927 ETH | 0.03845031 | ||||
Mint And Sell721 | 14039966 | 1054 days ago | IN | 0 ETH | 0.27361521 | ||||
Mint And Sell721 | 14039873 | 1054 days ago | IN | 0 ETH | 0.09353987 | ||||
Mint And Sell721 | 14039860 | 1054 days ago | IN | 0 ETH | 0.03957171 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20145248 | 170 days ago | 0.00961673 ETH | ||||
15386785 | 840 days ago | 0.00673433 ETH | ||||
15106948 | 884 days ago | 0.00628788 ETH | ||||
14042217 | 1054 days ago | 0.00112464 ETH | ||||
14042217 | 1054 days ago | 0.00112464 ETH | ||||
14042217 | 1054 days ago | 0.11358963 ETH | ||||
14042207 | 1054 days ago | 0.01020117 ETH | ||||
14042207 | 1054 days ago | 0.01020117 ETH | ||||
14042207 | 1054 days ago | 1.0303187 ETH | ||||
14041818 | 1054 days ago | 0.00345381 ETH | ||||
14041818 | 1054 days ago | 0.00345381 ETH | ||||
14041818 | 1054 days ago | 0.34883559 ETH | ||||
14041062 | 1054 days ago | 0.00108898 ETH | ||||
14041062 | 1054 days ago | 0.00108898 ETH | ||||
14041062 | 1054 days ago | 0.10998786 ETH | ||||
14040804 | 1054 days ago | 0.00110357 ETH | ||||
14040804 | 1054 days ago | 0.00110357 ETH | ||||
14040804 | 1054 days ago | 0.11146134 ETH | ||||
14040629 | 1054 days ago | 0.00302394 ETH | ||||
14040629 | 1054 days ago | 0.00302394 ETH | ||||
14040629 | 1054 days ago | 0.30541847 ETH | ||||
14039990 | 1054 days ago | 0.00186137 ETH | ||||
14039990 | 1054 days ago | 0.00186137 ETH | ||||
14039990 | 1054 days ago | 0.18799927 ETH | ||||
14039591 | 1054 days ago | 0.00048701 ETH |
Loading...
Loading
Contract Name:
NFTXMarketplaceZap
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interface/INFTXVault.sol"; import "./interface/INFTXVaultFactory.sol"; import "./interface/INFTXFeeDistributor.sol"; import "./interface/INFTXLPStaking.sol"; import "./interface/ITimelockRewardDistributionToken.sol"; import "./interface/IUniswapV2Router01.sol"; import "./testing/IERC721.sol"; import "./token/IERC1155Upgradeable.sol"; import "./token/IERC20Upgradeable.sol"; import "./token/ERC721HolderUpgradeable.sol"; import "./token/ERC1155HolderUpgradeable.sol"; import "./util/OwnableUpgradeable.sol"; // Authors: @0xKiwi_. interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; function balanceOf(address to) external view returns (uint256); } /** * @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; } } /** * @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 { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(msg.sender); } /** * @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() == msg.sender, "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); } } contract NFTXMarketplaceZap is Ownable, ReentrancyGuard, ERC721HolderUpgradeable, ERC1155HolderUpgradeable { IWETH public immutable WETH; INFTXLPStaking public immutable lpStaking; INFTXVaultFactory public immutable nftxFactory; IUniswapV2Router01 public immutable sushiRouter; uint256 constant BASE = 10**18; event Buy(uint256 count, uint256 ethSpent, address to); event Sell(uint256 count, uint256 ethReceived, address to); event Swap(uint256 count, uint256 ethSpent, address to); constructor(address _nftxFactory, address _sushiRouter) Ownable() ReentrancyGuard() { nftxFactory = INFTXVaultFactory(_nftxFactory); lpStaking = INFTXLPStaking(INFTXFeeDistributor(INFTXVaultFactory(_nftxFactory).feeDistributor()).lpStaking()); sushiRouter = IUniswapV2Router01(_sushiRouter); WETH = IWETH(IUniswapV2Router01(_sushiRouter).WETH()); IERC20Upgradeable(address(IUniswapV2Router01(_sushiRouter).WETH())).approve(_sushiRouter, type(uint256).max); } function mintAndSell721( uint256 vaultId, uint256[] memory ids, uint256 minWethOut, address[] calldata path, address to ) public nonReentrant { require(to != address(0)); require(ids.length != 0); (address vault, uint256 vaultBalance) = _mint721(vaultId, ids); uint256[] memory amounts = _sellVaultTokenETH(vault, minWethOut, vaultBalance, path, to); emit Sell(ids.length, amounts[1], to); } function mintAndSell721WETH( uint256 vaultId, uint256[] memory ids, uint256 minWethOut, address[] calldata path, address to ) public nonReentrant { require(to != address(0)); require(ids.length != 0); (address vault, uint256 vaultBalance) = _mint721(vaultId, ids); uint256[] memory amounts = _sellVaultTokenWETH(vault, minWethOut, vaultBalance, path, to); emit Sell(ids.length, amounts[1], to); } function buyAndSwap721( uint256 vaultId, uint256[] memory idsIn, uint256[] memory specificIds, address[] calldata path, address to ) public payable nonReentrant { require(to != address(0)); require(idsIn.length != 0); WETH.deposit{value: msg.value}(); INFTXVault vault = INFTXVault(nftxFactory.vault(vaultId)); uint256 redeemFees = (vault.targetSwapFee() * specificIds.length) + ( vault.randomSwapFee() * (idsIn.length - specificIds.length) ); uint256[] memory amounts = _buyVaultToken(address(vault), redeemFees, msg.value, path); _swap721(vaultId, idsIn, specificIds, to); emit Swap(idsIn.length, amounts[0], to); // Return extras. uint256 remaining = WETH.balanceOf(address(this)); WETH.withdraw(remaining); (bool success, ) = payable(to).call{value: remaining}(""); require(success, "Address: unable to send value, recipient may have reverted"); } function buyAndSwap721WETH( uint256 vaultId, uint256[] memory idsIn, uint256[] memory specificIds, uint256 maxWethIn, address[] calldata path, address to ) public nonReentrant { require(to != address(0)); require(idsIn.length != 0); IERC20Upgradeable(address(WETH)).transferFrom(msg.sender, address(this), maxWethIn); INFTXVault vault = INFTXVault(nftxFactory.vault(vaultId)); uint256 redeemFees = (vault.targetSwapFee() * specificIds.length) + ( vault.randomSwapFee() * (idsIn.length - specificIds.length) ); uint256[] memory amounts = _buyVaultToken(address(vault), redeemFees, maxWethIn, path); _swap721(vaultId, idsIn, specificIds, to); emit Swap(idsIn.length, amounts[0], to); // Return extras. uint256 remaining = WETH.balanceOf(address(this)); WETH.transfer(to, remaining); } function buyAndSwap1155( uint256 vaultId, uint256[] memory idsIn, uint256[] memory amounts, uint256[] memory specificIds, address[] calldata path, address to ) public payable nonReentrant { require(to != address(0)); require(idsIn.length != 0); WETH.deposit{value: msg.value}(); uint256 count; for (uint256 i = 0; i < idsIn.length; i++) { uint256 amount = amounts[i]; require(amount > 0, "Transferring < 1"); count += amount; } INFTXVault vault = INFTXVault(nftxFactory.vault(vaultId)); uint256 redeemFees = (vault.targetSwapFee() * specificIds.length) + ( vault.randomSwapFee() * (count - specificIds.length) ); uint256[] memory swapAmounts = _buyVaultToken(address(vault), redeemFees, msg.value, path); _swap1155(vaultId, idsIn, amounts, specificIds, to); emit Swap(count, swapAmounts[0], to); // Return extras. uint256 remaining = WETH.balanceOf(address(this)); WETH.withdraw(remaining); (bool success, ) = payable(to).call{value: remaining}(""); require(success, "Address: unable to send value, recipient may have reverted"); } function buyAndSwap1155WETH( uint256 vaultId, uint256[] memory idsIn, uint256[] memory amounts, uint256[] memory specificIds, uint256 maxWethIn, address[] calldata path, address to ) public payable nonReentrant { require(to != address(0)); require(idsIn.length != 0); IERC20Upgradeable(address(WETH)).transferFrom(msg.sender, address(this), maxWethIn); uint256 count; for (uint256 i = 0; i < idsIn.length; i++) { uint256 amount = amounts[i]; require(amount > 0, "Transferring < 1"); count += amount; } INFTXVault vault = INFTXVault(nftxFactory.vault(vaultId)); uint256 redeemFees = (vault.targetSwapFee() * specificIds.length) + ( vault.randomSwapFee() * (count - specificIds.length) ); uint256[] memory swapAmounts = _buyVaultToken(address(vault), redeemFees, msg.value, path); _swap1155(vaultId, idsIn, amounts, specificIds, to); emit Swap(count, swapAmounts[0], to); // Return extras. uint256 remaining = WETH.balanceOf(address(this)); WETH.transfer(to, remaining); } function buyAndRedeem( uint256 vaultId, uint256 amount, uint256[] memory specificIds, address[] calldata path, address to ) public payable nonReentrant { require(to != address(0)); require(amount != 0); WETH.deposit{value: msg.value}(); INFTXVault vault = INFTXVault(nftxFactory.vault(vaultId)); uint256 totalFee = (vault.targetRedeemFee() * specificIds.length) + ( vault.randomRedeemFee() * (amount - specificIds.length) ); uint256[] memory amounts = _buyVaultToken(address(vault), (amount*BASE)+totalFee, msg.value, path); _redeem(vaultId, amount, specificIds, to); emit Buy(amount, amounts[0], to); uint256 remaining = WETH.balanceOf(address(this)); WETH.withdraw(remaining); (bool success, ) = payable(to).call{value: remaining}(""); require(success, "Address: unable to send value, recipient may have reverted"); } function buyAndRedeemWETH( uint256 vaultId, uint256 amount, uint256[] memory specificIds, uint256 maxWethIn, address[] calldata path, address to ) public nonReentrant { require(to != address(0)); require(amount != 0); IERC20Upgradeable(address(WETH)).transferFrom(msg.sender, address(this), maxWethIn); INFTXVault vault = INFTXVault(nftxFactory.vault(vaultId)); uint256 totalFee = (vault.targetRedeemFee() * specificIds.length) + ( vault.randomRedeemFee() * (amount - specificIds.length) ); uint256[] memory amounts = _buyVaultToken(address(vault), (amount*BASE) + totalFee, maxWethIn, path); _redeem(vaultId, amount, specificIds, to); emit Buy(amount, amounts[0], to); uint256 remaining = WETH.balanceOf(address(this)); WETH.transfer(to, remaining); } function mintAndSell1155( uint256 vaultId, uint256[] memory ids, uint256[] memory amounts, uint256 minWethOut, address[] calldata path, address to ) public nonReentrant { require(to != address(0)); require(ids.length != 0); (address vault, uint256 vaultTokenBalance) = _mint1155(vaultId, ids, amounts); uint256[] memory amounts = _sellVaultTokenETH(vault, minWethOut, vaultTokenBalance, path, to); uint256 count; for (uint256 i = 0; i < ids.length; i++) { count += amounts[i]; } emit Sell(count, amounts[1], to); } function mintAndSell1155WETH( uint256 vaultId, uint256[] memory ids, uint256[] memory amounts, uint256 minWethOut, address[] calldata path, address to ) public nonReentrant { require(to != address(0)); require(ids.length != 0); (address vault, uint256 vaultTokenBalance) = _mint1155(vaultId, ids, amounts); _sellVaultTokenWETH(vault, minWethOut, vaultTokenBalance, path, to); uint256 count; for (uint256 i = 0; i < ids.length; i++) { count += amounts[i]; } emit Sell(count, amounts[1], to); } function _mint721( uint256 vaultId, uint256[] memory ids ) internal returns (address, uint256) { address vault = nftxFactory.vault(vaultId); require(vault != address(0), "NFTXZap: Vault does not exist"); // Transfer tokens to zap and mint to NFTX. address assetAddress = INFTXVault(vault).assetAddress(); for (uint256 i = 0; i < ids.length; i++) { transferFromERC721(assetAddress, ids[i], vault); approveERC721(assetAddress, vault, ids[i]); } uint256[] memory emptyIds; uint256 count = INFTXVault(vault).mint(ids, emptyIds); uint256 balance = (count * BASE) - (count * INFTXVault(vault).mintFee()); require(balance == IERC20Upgradeable(vault).balanceOf(address(this)), "Did not receive expected balance"); return (vault, balance); } function _swap721( uint256 vaultId, uint256[] memory idsIn, uint256[] memory idsOut, address to ) internal returns (address) { address vault = nftxFactory.vault(vaultId); require(vault != address(0), "NFTXZap: Vault does not exist"); // Transfer tokens to zap and mint to NFTX. address assetAddress = INFTXVault(vault).assetAddress(); for (uint256 i = 0; i < idsIn.length; i++) { transferFromERC721(assetAddress, idsIn[i], vault); approveERC721(assetAddress, vault, idsIn[i]); } uint256[] memory emptyIds; INFTXVault(vault).swapTo(idsIn, emptyIds, idsOut, to); return (vault); } function _swap1155( uint256 vaultId, uint256[] memory idsIn, uint256[] memory amounts, uint256[] memory idsOut, address to ) internal returns (address) { address vault = nftxFactory.vault(vaultId); require(vault != address(0), "NFTXZap: Vault does not exist"); // Transfer tokens to zap and mint to NFTX. address assetAddress = INFTXVault(vault).assetAddress(); IERC1155Upgradeable(assetAddress).safeBatchTransferFrom(msg.sender, address(this), idsIn, amounts, ""); IERC1155Upgradeable(assetAddress).setApprovalForAll(vault, true); INFTXVault(vault).swapTo(idsIn, amounts, idsOut, to); return (vault); } function _redeem( uint256 vaultId, uint256 amount, uint256[] memory specificIds, address to ) internal { address vault = nftxFactory.vault(vaultId); require(vault != address(0), "NFTXZap: Vault does not exist"); INFTXVault(vault).redeemTo(amount, specificIds, to); } function _mint1155( uint256 vaultId, uint256[] memory ids, uint256[] memory amounts ) internal returns (address, uint256) { address vault = nftxFactory.vault(vaultId); require(vault != address(0), "NFTXZap: Vault does not exist"); // Transfer tokens to zap and mint to NFTX. address assetAddress = INFTXVault(vault).assetAddress(); IERC1155Upgradeable(assetAddress).safeBatchTransferFrom(msg.sender, address(this), ids, amounts, ""); IERC1155Upgradeable(assetAddress).setApprovalForAll(vault, true); uint256 count = INFTXVault(vault).mint(ids, amounts); uint256 balance = (count * BASE) - INFTXVault(vault).mintFee()*count; require(balance == IERC20Upgradeable(vault).balanceOf(address(this)), "Did not receive expected balance"); return (vault, balance); } function _buyVaultToken( address vault, uint256 minTokenOut, uint256 maxWethIn, address[] calldata path ) internal returns (uint256[] memory) { uint256[] memory amounts = sushiRouter.swapTokensForExactTokens( minTokenOut, maxWethIn, path, address(this), block.timestamp ); return amounts; } function _sellVaultTokenWETH( address vault, uint256 minWethOut, uint256 maxTokenIn, address[] calldata path, address to ) internal returns (uint256[] memory) { IERC20Upgradeable(vault).approve(address(sushiRouter), maxTokenIn); uint256[] memory amounts = sushiRouter.swapExactTokensForTokens( maxTokenIn, minWethOut, path, to, block.timestamp ); return amounts; } function _sellVaultTokenETH( address vault, uint256 minWethOut, uint256 maxTokenIn, address[] calldata path, address to ) internal returns (uint256[] memory) { IERC20Upgradeable(vault).approve(address(sushiRouter), maxTokenIn); uint256[] memory amounts = sushiRouter.swapExactTokensForETH( maxTokenIn, minWethOut, path, to, block.timestamp ); return amounts; } function transferFromERC721(address assetAddr, uint256 tokenId, address to) internal virtual { address kitties = 0x06012c8cf97BEaD5deAe237070F9587f8E7A266d; address punks = 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB; bytes memory data; if (assetAddr == kitties) { // Cryptokitties. data = abi.encodeWithSignature("transferFrom(address,address,uint256)", msg.sender, address(this), tokenId); } else if (assetAddr == punks) { // CryptoPunks. // Fix here for frontrun attack. Added in v1.0.2. bytes memory punkIndexToAddress = abi.encodeWithSignature("punkIndexToAddress(uint256)", tokenId); (bool checkSuccess, bytes memory result) = address(assetAddr).staticcall(punkIndexToAddress); (address owner) = abi.decode(result, (address)); require(checkSuccess && owner == msg.sender, "Not the owner"); data = abi.encodeWithSignature("buyPunk(uint256)", tokenId); } else { // Default. // We push to the vault to avoid an unneeded transfer. data = abi.encodeWithSignature("safeTransferFrom(address,address,uint256)", msg.sender, to, tokenId); } (bool success, bytes memory resultData) = address(assetAddr).call(data); require(success, string(resultData)); } function approveERC721(address assetAddr, address to, uint256 tokenId) internal virtual { address kitties = 0x06012c8cf97BEaD5deAe237070F9587f8E7A266d; address punks = 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB; bytes memory data; if (assetAddr == kitties) { // Cryptokitties. data = abi.encodeWithSignature("approve(address,uint256)", to, tokenId); } else if (assetAddr == punks) { // CryptoPunks. data = abi.encodeWithSignature("offerPunkForSaleToAddress(uint256,uint256,address)", tokenId, 0, to); } else { // No longer needed to approve with pushing. return; } (bool success, bytes memory resultData) = address(assetAddr).call(data); require(success, string(resultData)); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address tokenA, address tokenB) internal view returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint160(uint256(keccak256(abi.encodePacked( hex'ff', sushiRouter.factory(), keccak256(abi.encodePacked(token0, token1)), hex'e18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303' // init code hash ))))); } // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } receive() external payable { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../interface/INFTXEligibility.sol"; import "../token/IERC20Upgradeable.sol"; import "../interface/INFTXVaultFactory.sol"; interface INFTXVault is IERC20Upgradeable { function manager() external view returns (address); function assetAddress() external view returns (address); function vaultFactory() external view returns (INFTXVaultFactory); function eligibilityStorage() external view returns (INFTXEligibility); function is1155() external view returns (bool); function allowAllItems() external view returns (bool); function enableMint() external view returns (bool); function enableRandomRedeem() external view returns (bool); function enableTargetRedeem() external view returns (bool); function enableRandomSwap() external view returns (bool); function enableTargetSwap() external view returns (bool); function vaultId() external view returns (uint256); function nftIdAt(uint256 holdingsIndex) external view returns (uint256); function allHoldings() external view returns (uint256[] memory); function totalHoldings() external view returns (uint256); function mintFee() external view returns (uint256); function randomRedeemFee() external view returns (uint256); function targetRedeemFee() external view returns (uint256); function randomSwapFee() external view returns (uint256); function targetSwapFee() external view returns (uint256); function vaultFees() external view returns (uint256, uint256, uint256, uint256, uint256); event VaultInit( uint256 indexed vaultId, address assetAddress, bool is1155, bool allowAllItems ); event ManagerSet(address manager); event EligibilityDeployed(uint256 moduleIndex, address eligibilityAddr); // event CustomEligibilityDeployed(address eligibilityAddr); event EnableMintUpdated(bool enabled); event EnableRandomRedeemUpdated(bool enabled); event EnableTargetRedeemUpdated(bool enabled); event EnableRandomSwapUpdated(bool enabled); event EnableTargetSwapUpdated(bool enabled); event Minted(uint256[] nftIds, uint256[] amounts, address to); event Redeemed(uint256[] nftIds, uint256[] specificIds, address to); event Swapped( uint256[] nftIds, uint256[] amounts, uint256[] specificIds, uint256[] redeemedIds, address to ); function __NFTXVault_init( string calldata _name, string calldata _symbol, address _assetAddress, bool _is1155, bool _allowAllItems ) external; function finalizeVault() external; function setVaultMetadata( string memory name_, string memory symbol_ ) external; function setVaultFeatures( bool _enableMint, bool _enableRandomRedeem, bool _enableTargetRedeem, bool _enableRandomSwap, bool _enableTargetSwap ) external; function setFees( uint256 _mintFee, uint256 _randomRedeemFee, uint256 _targetRedeemFee, uint256 _randomSwapFee, uint256 _targetSwapFee ) external; function disableVaultFees() external; // This function allows for an easy setup of any eligibility module contract from the EligibilityManager. // It takes in ABI encoded parameters for the desired module. This is to make sure they can all follow // a similar interface. function deployEligibilityStorage( uint256 moduleIndex, bytes calldata initData ) external returns (address); // The manager has control over options like fees and features function setManager(address _manager) external; function mint( uint256[] calldata tokenIds, uint256[] calldata amounts /* ignored for ERC721 vaults */ ) external returns (uint256); function mintTo( uint256[] calldata tokenIds, uint256[] calldata amounts, /* ignored for ERC721 vaults */ address to ) external returns (uint256); function redeem(uint256 amount, uint256[] calldata specificIds) external returns (uint256[] calldata); function redeemTo( uint256 amount, uint256[] calldata specificIds, address to ) external returns (uint256[] calldata); function swap( uint256[] calldata tokenIds, uint256[] calldata amounts, /* ignored for ERC721 vaults */ uint256[] calldata specificIds ) external returns (uint256[] calldata); function swapTo( uint256[] calldata tokenIds, uint256[] calldata amounts, /* ignored for ERC721 vaults */ uint256[] calldata specificIds, address to ) external returns (uint256[] calldata); function allValidNFTs(uint256[] calldata tokenIds) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/IBeacon.sol"; interface INFTXVaultFactory is IBeacon { // Read functions. function numVaults() external view returns (uint256); function zapContract() external view returns (address); function feeDistributor() external view returns (address); function eligibilityManager() external view returns (address); function vault(uint256 vaultId) external view returns (address); function allVaults() external view returns (address[] memory); function vaultsForAsset(address asset) external view returns (address[] memory); function isLocked(uint256 id) external view returns (bool); function excludedFromFees(address addr) external view returns (bool); function factoryMintFee() external view returns (uint64); function factoryRandomRedeemFee() external view returns (uint64); function factoryTargetRedeemFee() external view returns (uint64); function factoryRandomSwapFee() external view returns (uint64); function factoryTargetSwapFee() external view returns (uint64); function vaultFees(uint256 vaultId) external view returns (uint256, uint256, uint256, uint256, uint256); event NewFeeDistributor(address oldDistributor, address newDistributor); event NewZapContract(address oldZap, address newZap); event FeeExclusion(address feeExcluded, bool excluded); event NewEligibilityManager(address oldEligManager, address newEligManager); event NewVault(uint256 indexed vaultId, address vaultAddress, address assetAddress); event UpdateVaultFees(uint256 vaultId, uint256 mintFee, uint256 randomRedeemFee, uint256 targetRedeemFee, uint256 randomSwapFee, uint256 targetSwapFee); event DisableVaultFees(uint256 vaultId); event UpdateFactoryFees(uint256 mintFee, uint256 randomRedeemFee, uint256 targetRedeemFee, uint256 randomSwapFee, uint256 targetSwapFee); // Write functions. function __NFTXVaultFactory_init(address _vaultImpl, address _feeDistributor) external; function createVault( string calldata name, string calldata symbol, address _assetAddress, bool is1155, bool allowAllItems ) external returns (uint256); function setFeeDistributor(address _feeDistributor) external; function setEligibilityManager(address _eligibilityManager) external; function setZapContract(address _zapContract) external; function setFeeExclusion(address _excludedAddr, bool excluded) external; function setFactoryFees( uint256 mintFee, uint256 randomRedeemFee, uint256 targetRedeemFee, uint256 randomSwapFee, uint256 targetSwapFee ) external; function setVaultFees( uint256 vaultId, uint256 mintFee, uint256 randomRedeemFee, uint256 targetRedeemFee, uint256 randomSwapFee, uint256 targetSwapFee ) external; function disableVaultFees(uint256 vaultId) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INFTXFeeDistributor { struct FeeReceiver { uint256 allocPoint; address receiver; bool isContract; } function nftxVaultFactory() external returns (address); function lpStaking() external returns (address); function treasury() external returns (address); function defaultTreasuryAlloc() external returns (uint256); function defaultLPAlloc() external returns (uint256); function allocTotal(uint256 vaultId) external returns (uint256); function specificTreasuryAlloc(uint256 vaultId) external returns (uint256); // Write functions. function __FeeDistributor__init__(address _lpStaking, address _treasury) external; function rescueTokens(address token) external; function distribute(uint256 vaultId) external; function addReceiver(uint256 _vaultId, uint256 _allocPoint, address _receiver, bool _isContract) external; function initializeVaultReceivers(uint256 _vaultId) external; function changeMultipleReceiverAlloc( uint256[] memory _vaultIds, uint256[] memory _receiverIdxs, uint256[] memory allocPoints ) external; function changeMultipleReceiverAddress( uint256[] memory _vaultIds, uint256[] memory _receiverIdxs, address[] memory addresses, bool[] memory isContracts ) external; function changeReceiverAlloc(uint256 _vaultId, uint256 _idx, uint256 _allocPoint) external; function changeReceiverAddress(uint256 _vaultId, uint256 _idx, address _address, bool _isContract) external; function removeReceiver(uint256 _vaultId, uint256 _receiverIdx) external; // Configuration functions. function setTreasuryAddress(address _treasury) external; function setDefaultTreasuryAlloc(uint256 _allocPoint) external; function setSpecificTreasuryAlloc(uint256 _vaultId, uint256 _allocPoint) external; function setLPStakingAddress(address _lpStaking) external; function setNFTXVaultFactory(address _factory) external; function setDefaultLPAlloc(uint256 _allocPoint) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INFTXLPStaking { function nftxVaultFactory() external view returns (address); function rewardDistTokenImpl() external view returns (address); function stakingTokenProvider() external view returns (address); function vaultToken(address _stakingToken) external view returns (address); function stakingToken(address _vaultToken) external view returns (address); function rewardDistributionToken(uint256 vaultId) external view returns (address); function newRewardDistributionToken(uint256 vaultId) external view returns (address); function oldRewardDistributionToken(uint256 vaultId) external view returns (address); function unusedRewardDistributionToken(uint256 vaultId) external view returns (address); function rewardDistributionTokenAddr(address stakingToken, address rewardToken) external view returns (address); // Write functions. function __NFTXLPStaking__init(address _stakingTokenProvider) external; function setNFTXVaultFactory(address newFactory) external; function setStakingTokenProvider(address newProvider) external; function addPoolForVault(uint256 vaultId) external; function updatePoolForVault(uint256 vaultId) external; function updatePoolForVaults(uint256[] calldata vaultId) external; function receiveRewards(uint256 vaultId, uint256 amount) external returns (bool); function deposit(uint256 vaultId, uint256 amount) external; function timelockDepositFor(uint256 vaultId, address account, uint256 amount, uint256 timelockLength) external; function exit(uint256 vaultId, uint256 amount) external; function rescue(uint256 vaultId) external; function withdraw(uint256 vaultId, uint256 amount) external; function claimRewards(uint256 vaultId) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/IERC20Upgradeable.sol"; interface ITimelockRewardDistributionToken is IERC20Upgradeable { function distributeRewards(uint amount) external; function __TimelockRewardDistributionToken_init(IERC20Upgradeable _target, string memory _name, string memory _symbol) external; function mint(address account, address to, uint256 amount) external; function timelockMint(address account, uint256 amount, uint256 timelockLength) external; function burnFrom(address account, uint256 amount) external; function withdrawReward(address user) external; function dividendOf(address _owner) external view returns(uint256); function withdrawnRewardOf(address _owner) external view returns(uint256); function accumulativeRewardOf(address _owner) external view returns(uint256); function timelockUntil(address account) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../interface/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721ReceiverUpgradeable.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721HolderUpgradeable is IERC721ReceiverUpgradeable { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC1155ReceiverUpgradeable.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155HolderUpgradeable is ERC1155ReceiverUpgradeable { function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ContextUpgradeable.sol"; import "../proxy/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INFTXEligibility { // Read functions. function name() external pure returns (string memory); function finalized() external view returns (bool); function targetAsset() external pure returns (address); function checkAllEligible(uint256[] calldata tokenIds) external view returns (bool); function checkEligible(uint256[] calldata tokenIds) external view returns (bool[] memory); function checkAllIneligible(uint256[] calldata tokenIds) external view returns (bool); function checkIsEligible(uint256 tokenId) external view returns (bool); // Write functions. function __NFTXEligibility_init_bytes(bytes calldata configData) external; function beforeMintHook(uint256[] calldata tokenIds) external; function afterMintHook(uint256[] calldata tokenIds) external; function beforeRedeemHook(uint256[] calldata tokenIds) external; function afterRedeemHook(uint256[] calldata tokenIds) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function childImplementation() external view returns (address); function upgradeChildTo(address newImplementation) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155ReceiverUpgradeable.sol"; import "../util/ERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155ReceiverUpgradeable is ERC165Upgradeable, IERC1155ReceiverUpgradeable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155ReceiverUpgradeable).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../interface/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../interface/IERC165Upgradeable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is IERC165Upgradeable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/Initializable.sol"; /* * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_nftxFactory","type":"address"},{"internalType":"address","name":"_sushiRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethSpent","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"Buy","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":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"Sell","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethSpent","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256[]","name":"specificIds","type":"uint256[]"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"buyAndRedeem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256[]","name":"specificIds","type":"uint256[]"},{"internalType":"uint256","name":"maxWethIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"buyAndRedeemWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"idsIn","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"specificIds","type":"uint256[]"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"buyAndSwap1155","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"idsIn","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"specificIds","type":"uint256[]"},{"internalType":"uint256","name":"maxWethIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"buyAndSwap1155WETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"idsIn","type":"uint256[]"},{"internalType":"uint256[]","name":"specificIds","type":"uint256[]"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"buyAndSwap721","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"idsIn","type":"uint256[]"},{"internalType":"uint256[]","name":"specificIds","type":"uint256[]"},{"internalType":"uint256","name":"maxWethIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"buyAndSwap721WETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpStaking","outputs":[{"internalType":"contract INFTXLPStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"minWethOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"mintAndSell1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"minWethOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"mintAndSell1155WETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256","name":"minWethOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"mintAndSell721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256","name":"minWethOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"mintAndSell721WETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nftxFactory","outputs":[{"internalType":"contract INFTXVaultFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"contract IUniswapV2Router01","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101006040523480156200001257600080fd5b5060405162004db638038062004db6833981016040819052620000359162000393565b620000403362000302565b600180556001600160601b0319606083901b1660c05260408051630d43e8ad60e01b815290516001600160a01b03841691630d43e8ad916004808301926020929190829003018186803b1580156200009757600080fd5b505afa158015620000ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d291906200036f565b6001600160a01b0316639bf1401c6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200010d57600080fd5b505af115801562000122573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014891906200036f565b6001600160601b0319606091821b811660a0529082901b1660e052604080516315ab88c960e31b815290516001600160a01b0383169163ad5c4648916004808301926020929190829003018186803b158015620001a457600080fd5b505afa158015620001b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001df91906200036f565b6001600160a01b03166080816001600160a01b031660601b81525050806001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200023557600080fd5b505afa1580156200024a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200027091906200036f565b60405163095ea7b360e01b81526001600160a01b0383811660048301526000196024830152919091169063095ea7b390604401602060405180830381600087803b158015620002be57600080fd5b505af1158015620002d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f99190620003ca565b505050620003ec565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200036a57600080fd5b919050565b60006020828403121562000381578081fd5b6200038c8262000352565b9392505050565b60008060408385031215620003a6578081fd5b620003b18362000352565b9150620003c16020840162000352565b90509250929050565b600060208284031215620003dc578081fd5b815180151581146200038c578182fd5b60805160601c60a05160601c60c05160601c60e05160601c6148b2620005046000396000818161030501528181612aa101528181612b6401528181612c0b0152818161340901526134cc0152600081816102b90152818161084901528181610cfc015281816112410152818161175e01528181611cb101528181612020015281816126a601528181612ce301528181612f9f0152818161314301526135120152600061039f0152600081816104130152818161070101528181610a8a01528181610b3501528181610c5e01528181610f57015281816110020152818161110a015281816114820152818161151d015281816116d5015281816119a201528181611a3d01528181611c130152611f9701526148b26000f3fe60806040526004361061016e5760003560e01c8063715018a6116100cb578063a02716171161007f578063bc197c8111610059578063bc197c8114610435578063f23a6e611461047a578063f2fde38b146104bf57600080fd5b8063a0271617146103c1578063ab3a4121146103e1578063ad5c46481461040157600080fd5b80638da5cb5b116100b05780638da5cb5b1461034f578063929bf3d31461036d5780639bf1401c1461038d57600080fd5b8063715018a6146103275780637fc824841461033c57600080fd5b806357e836dc116101225780635d8117a6116101075780635d8117a6146102875780635ee50f88146102a75780636d13582c146102f357600080fd5b806357e836dc1461026157806358fbdd0a1461027457600080fd5b8063150b7a0211610153578063150b7a02146101d157806342c4ccaa1461022e5780634447d8881461024157600080fd5b806301ffc9a71461017a5780630956642b146101af57600080fd5b3661017557005b600080fd5b34801561018657600080fd5b5061019a610195366004614116565b6104df565b60405190151581526020015b60405180910390f35b3480156101bb57600080fd5b506101cf6101ca36600461444a565b610548565b005b3480156101dd57600080fd5b506102156101ec366004613f92565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b031990911681526020016101a6565b6101cf61023c3660046142c6565b610669565b34801561024d57600080fd5b506101cf61025c366004614506565b610bc7565b6101cf61026f3660046141fd565b611092565b6101cf610282366004614156565b61165d565b34801561029357600080fd5b506101cf6102a2366004614398565b611b7b565b3480156102b357600080fd5b506102db7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101a6565b3480156102ff57600080fd5b506102db7f000000000000000000000000000000000000000000000000000000000000000081565b34801561033357600080fd5b506101cf611eab565b6101cf61034a3660046144a8565b611f20565b34801561035b57600080fd5b506000546001600160a01b03166102db565b34801561037957600080fd5b506101cf61038836600461444a565b612235565b34801561039957600080fd5b506102db7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103cd57600080fd5b506101cf6103dc366004614398565b6122cc565b3480156103ed57600080fd5b506101cf6103fc366004614398565b61243b565b34801561040d57600080fd5b506102db7f000000000000000000000000000000000000000000000000000000000000000081565b34801561044157600080fd5b50610215610450366004613ee8565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561048657600080fd5b50610215610495366004613ffc565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b3480156104cb57600080fd5b506101cf6104da366004613ea9565b6125ae565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061054257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600260015414156105a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001556001600160a01b0381166105b857600080fd5b84516105c357600080fd5b6000806105d0888861269f565b9150915060006105e4838884898989612a8a565b90507f1cdb5ee3c47e1a706ac452b89698e5e3f2ff4f835ca72dde8936d0f4fcf37d8188518260018151811061062a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a150506001805550505050505050565b600260015414156106bc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166106d457600080fd5b86516106df57600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561074d57600080fd5b505af1158015610761573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078591906140f6565b506000805b885181101561082f5760008882815181106107b557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000811161080f5760405162461bcd60e51b815260206004820152601060248201527f5472616e7366657272696e67203c2031000000000000000000000000000000006044820152606401610597565b61081981846147a2565b925050808061082790614820565b91505061078a565b506040516340d1b7db60e11b8152600481018a90526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b15801561089357600080fd5b505afa1580156108a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cb9190613ecc565b905060008751836108dc91906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b15801561091557600080fd5b505afa158015610929573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094d919061413e565b61095791906147ba565b8851836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561099257600080fd5b505afa1580156109a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ca919061413e565b6109d491906147ba565b6109de91906147a2565b905060006109ef8383348a8a612c05565b90506109fe8c8c8c8c89612cc0565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b8482600081518110610a4257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0388169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610ad457600080fd5b505afa158015610ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0c919061413e565b60405163a9059cbb60e01b81526001600160a01b038881166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb90604401602060405180830381600087803b158015610b7b57600080fd5b505af1158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb391906140f6565b505060018055505050505050505050505050565b60026001541415610c1a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b038116610c3257600080fd5b85610c3c57600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce291906140f6565b506040516340d1b7db60e11b8152600481018890526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b158015610d4657600080fd5b505afa158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e9190613ecc565b90506000865188610d8f91906147d9565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b815260040160206040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e00919061413e565b610e0a91906147ba565b8751836001600160a01b031663feb8eba56040518163ffffffff1660e01b815260040160206040518083038186803b158015610e4557600080fd5b505afa158015610e59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7d919061413e565b610e8791906147ba565b610e9191906147a2565b90506000610ebe8383610eac670de0b6b3a76400008d6147ba565b610eb691906147a2565b898989612c05565b9050610ecc8a8a8a87612f86565b7ff7735c8cb2a65788ca663fc8415b7c6a66cd6847d58346d8334e8d52a599d3df8982600081518110610f0f57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610fa157600080fd5b505afa158015610fb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd9919061413e565b60405163a9059cbb60e01b81526001600160a01b038781166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb90604401602060405180830381600087803b15801561104857600080fd5b505af115801561105c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108091906140f6565b50506001805550505050505050505050565b600260015414156110e55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166110fd57600080fd5b855161110857600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561116357600080fd5b505af1158015611177573d6000803e3d6000fd5b506000935083925050505b87518110156112275760008782815181106111ad57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600081116112075760405162461bcd60e51b815260206004820152601060248201527f5472616e7366657272696e67203c2031000000000000000000000000000000006044820152606401610597565b61121181846147a2565b925050808061121f90614820565b915050611182565b506040516340d1b7db60e11b8152600481018990526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b15801561128b57600080fd5b505afa15801561129f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c39190613ecc565b905060008651836112d491906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b15801561130d57600080fd5b505afa158015611321573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611345919061413e565b61134f91906147ba565b8751836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561138a57600080fd5b505afa15801561139e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c2919061413e565b6113cc91906147ba565b6113d691906147a2565b905060006113e78383348a8a612c05565b90506113f68b8b8b8b89612cc0565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b848260008151811061143a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0388169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156114cc57600080fd5b505afa1580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611504919061413e565b604051632e1a7d4d60e01b8152600481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561156957600080fd5b505af115801561157d573d6000803e3d6000fd5b505050506000866001600160a01b03168260405160006040518083038185875af1925050503d80600081146115ce576040519150601f19603f3d011682016040523d82523d6000602084013e6115d3565b606091505b505090508061164a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610597565b5050600180555050505050505050505050565b600260015414156116b05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166116c857600080fd5b84516116d357600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561172e57600080fd5b505af1158015611742573d6000803e3d6000fd5b50506040516340d1b7db60e11b8152600481018a9052600093507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506381a36fb6915060240160206040518083038186803b1580156117aa57600080fd5b505afa1580156117be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e29190613ecc565b90506000855187516117f491906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b15801561182d57600080fd5b505afa158015611841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611865919061413e565b61186f91906147ba565b8651836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118aa57600080fd5b505afa1580156118be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e2919061413e565b6118ec91906147ba565b6118f691906147a2565b905060006119078383348989612c05565b905061191589898987613120565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b88518260008151811061195a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156119ec57600080fd5b505afa158015611a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a24919061413e565b604051632e1a7d4d60e01b8152600481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015611a8957600080fd5b505af1158015611a9d573d6000803e3d6000fd5b505050506000856001600160a01b03168260405160006040518083038185875af1925050503d8060008114611aee576040519150601f19603f3d011682016040523d82523d6000602084013e611af3565b606091505b5050905080611b6a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610597565b505060018055505050505050505050565b60026001541415611bce5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b038116611be657600080fd5b8551611bf157600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b158015611c5f57600080fd5b505af1158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9791906140f6565b506040516340d1b7db60e11b8152600481018890526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b158015611cfb57600080fd5b505afa158015611d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d339190613ecc565b9050600086518851611d4591906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b158015611d7e57600080fd5b505afa158015611d92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db6919061413e565b611dc091906147ba565b8751836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b158015611dfb57600080fd5b505afa158015611e0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e33919061413e565b611e3d91906147ba565b611e4791906147a2565b90506000611e588383898989612c05565b9050611e668a8a8a87613120565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b895182600081518110610f0f57634e487b7160e01b600052603260045260246000fd5b33611ebe6000546001600160a01b031690565b6001600160a01b031614611f145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610597565b611f1e600061338a565b565b60026001541415611f735760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b038116611f8b57600080fd5b84611f9557600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611ff057600080fd5b505af1158015612004573d6000803e3d6000fd5b50506040516340d1b7db60e11b8152600481018a9052600093507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506381a36fb6915060240160206040518083038186803b15801561206c57600080fd5b505afa158015612080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a49190613ecc565b905060008551876120b591906147d9565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b815260040160206040518083038186803b1580156120ee57600080fd5b505afa158015612102573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612126919061413e565b61213091906147ba565b8651836001600160a01b031663feb8eba56040518163ffffffff1660e01b815260040160206040518083038186803b15801561216b57600080fd5b505afa15801561217f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a3919061413e565b6121ad91906147ba565b6121b791906147a2565b905060006121e483836121d2670de0b6b3a76400008c6147ba565b6121dc91906147a2565b348989612c05565b90506121f289898987612f86565b7ff7735c8cb2a65788ca663fc8415b7c6a66cd6847d58346d8334e8d52a599d3df888260008151811061195a57634e487b7160e01b600052603260045260246000fd5b600260015414156122885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166122a057600080fd5b84516122ab57600080fd5b6000806122b8888861269f565b9150915060006105e48388848989896133f2565b6002600154141561231f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b03811661233757600080fd5b855161234257600080fd5b60008061235089898961350b565b915091506123628287838888886133f2565b506000805b89518110156123b75788818151811061239057634e487b7160e01b600052603260045260246000fd5b6020026020010151826123a391906147a2565b9150806123af81614820565b915050612367565b507f1cdb5ee3c47e1a706ac452b89698e5e3f2ff4f835ca72dde8936d0f4fcf37d8181896001815181106123fb57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a15050600180555050505050505050565b6002600154141561248e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166124a657600080fd5b85516124b157600080fd5b6000806124bf89898961350b565b9150915060006124d3838884898989612a8a565b90506000805b8a518110156125295782818151811061250257634e487b7160e01b600052603260045260246000fd5b60200260200101518261251591906147a2565b91508061252181614820565b9150506124d9565b507f1cdb5ee3c47e1a706ac452b89698e5e3f2ff4f835ca72dde8936d0f4fcf37d81818360018151811061256d57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0388169082015260600160405180910390a1505060018055505050505050505050565b336125c16000546001600160a01b031690565b6001600160a01b0316146126175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610597565b6001600160a01b0381166126935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610597565b61269c8161338a565b50565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166381a36fb6866040518263ffffffff1660e01b81526004016126f291815260200190565b60206040518083038186803b15801561270a57600080fd5b505afa15801561271e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127429190613ecc565b90506001600160a01b03811661279a5760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156127d557600080fd5b505afa1580156127e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280d9190613ecc565b905060005b85518110156128915761284d8287838151811061283f57634e487b7160e01b600052603260045260246000fd5b602002602001015185613951565b61287f828488848151811061287257634e487b7160e01b600052603260045260246000fd5b6020026020010151613c78565b8061288981614820565b915050612812565b5060606000836001600160a01b0316633d5d190c88846040518363ffffffff1660e01b81526004016128c49291906145f3565b602060405180830381600087803b1580156128de57600080fd5b505af11580156128f2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612916919061413e565b90506000846001600160a01b03166313966db56040518163ffffffff1660e01b815260040160206040518083038186803b15801561295357600080fd5b505afa158015612967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298b919061413e565b61299590836147ba565b6129a7670de0b6b3a7640000846147ba565b6129b191906147d9565b6040516370a0823160e01b81523060048201529091506001600160a01b038616906370a082319060240160206040518083038186803b1580156129f357600080fd5b505afa158015612a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2b919061413e565b8114612a795760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e63656044820152606401610597565b9395509293505050505b9250929050565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690526060919088169063095ea7b390604401602060405180830381600087803b158015612af857600080fd5b505af1158015612b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b3091906140f6565b506040517f18cbafe50000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906318cbafe590612ba39089908b908a908a908a9042906004016146da565b600060405180830381600087803b158015612bbd57600080fd5b505af1158015612bd1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612bf99190810190614063565b98975050505050505050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638803dbee8787878730426040518763ffffffff1660e01b8152600401612c5f969594939291906146da565b600060405180830381600087803b158015612c7957600080fd5b505af1158015612c8d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612cb59190810190614063565b979650505050505050565b6040516340d1b7db60e11b81526004810186905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906381a36fb69060240160206040518083038186803b158015612d2557600080fd5b505afa158015612d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5d9190613ecc565b90506001600160a01b038116612db55760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612df057600080fd5b505afa158015612e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e289190613ecc565b604051631759616b60e11b81529091506001600160a01b03821690632eb2c2d690612e5d90339030908c908c9060040161459b565b600060405180830381600087803b158015612e7757600080fd5b505af1158015612e8b573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038581166004830152600160248301528416925063a22cb4659150604401600060405180830381600087803b158015612ed957600080fd5b505af1158015612eed573d6000803e3d6000fd5b5050604051632321420560e21b81526001600160a01b0385169250638c8508149150612f23908a908a908a908a90600401614621565b600060405180830381600087803b158015612f3d57600080fd5b505af1158015612f51573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612f799190810190614063565b5090979650505050505050565b6040516340d1b7db60e11b8152600481018590526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b158015612fe957600080fd5b505afa158015612ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130219190613ecc565b90506001600160a01b0381166130795760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6040517f9d54def60000000000000000000000000000000000000000000000000000000081526001600160a01b03821690639d54def6906130c2908790879087906004016146a8565b600060405180830381600087803b1580156130dc57600080fd5b505af11580156130f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131189190810190614063565b505050505050565b6040516340d1b7db60e11b81526004810185905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906381a36fb69060240160206040518083038186803b15801561318557600080fd5b505afa158015613199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131bd9190613ecc565b90506001600160a01b0381166132155760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561325057600080fd5b505afa158015613264573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132889190613ecc565b905060005b86518110156132f1576132ba8288838151811061283f57634e487b7160e01b600052603260045260246000fd5b6132df828489848151811061287257634e487b7160e01b600052603260045260246000fd5b806132e981614820565b91505061328d565b50604051632321420560e21b81526060906001600160a01b03841690638c85081490613327908a9085908b908b90600401614621565b600060405180830381600087803b15801561334157600080fd5b505af1158015613355573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261337d9190810190614063565b5091979650505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690526060919088169063095ea7b390604401602060405180830381600087803b15801561346057600080fd5b505af1158015613474573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349891906140f6565b506040517f38ed17390000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906338ed173990612ba39089908b908a908a908a9042906004016146da565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166381a36fb6876040518263ffffffff1660e01b815260040161355e91815260200190565b60206040518083038186803b15801561357657600080fd5b505afa15801561358a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ae9190613ecc565b90506001600160a01b0381166136065760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561364157600080fd5b505afa158015613655573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136799190613ecc565b604051631759616b60e11b81529091506001600160a01b03821690632eb2c2d6906136ae90339030908b908b9060040161459b565b600060405180830381600087803b1580156136c857600080fd5b505af11580156136dc573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038581166004830152600160248301528416925063a22cb4659150604401600060405180830381600087803b15801561372a57600080fd5b505af115801561373e573d6000803e3d6000fd5b50506040517f3d5d190c000000000000000000000000000000000000000000000000000000008152600092506001600160a01b0385169150633d5d190c9061378c908a908a906004016145f3565b602060405180830381600087803b1580156137a657600080fd5b505af11580156137ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137de919061413e565b9050600081846001600160a01b03166313966db56040518163ffffffff1660e01b815260040160206040518083038186803b15801561381c57600080fd5b505afa158015613830573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613854919061413e565b61385e91906147ba565b613870670de0b6b3a7640000846147ba565b61387a91906147d9565b6040516370a0823160e01b81523060048201529091506001600160a01b038516906370a082319060240160206040518083038186803b1580156138bc57600080fd5b505afa1580156138d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138f4919061413e565b81146139425760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e63656044820152606401610597565b92989297509195505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b0386168314156139d8576040513360248201523060448201526064810186905260840160408051601f198184030181529190526020810180516001600160e01b03166323b872dd60e01b1790529050613beb565b816001600160a01b0316866001600160a01b03161415613b8357600085604051602401613a0791815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167f58178168000000000000000000000000000000000000000000000000000000001790525190915060009081906001600160a01b038a1690613a6990859061457f565b600060405180830381855afa9150503d8060008114613aa4576040519150601f19603f3d011682016040523d82523d6000602084013e613aa9565b606091505b5091509150600081806020019051810190613ac49190613ecc565b9050828015613adb57506001600160a01b03811633145b613b275760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420746865206f776e6572000000000000000000000000000000000000006044820152606401610597565b604051602481018a905260440160408051601f198184030181529190526020810180516001600160e01b03167f8264fe98000000000000000000000000000000000000000000000000000000001790529450613beb9350505050565b6040513360248201526001600160a01b03851660448201526064810186905260840160408051601f198184030181529190526020810180516001600160e01b03167f42842e0e0000000000000000000000000000000000000000000000000000000017905290505b600080876001600160a01b031683604051613c06919061457f565b6000604051808303816000865af19150503d8060008114613c43576040519150601f19603f3d011682016040523d82523d6000602084013e613c48565b606091505b5091509150818190613c6d5760405162461bcd60e51b81526004016105979190614675565b505050505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b038616831415613d02576040516001600160a01b03861660248201526044810185905260640160408051601f198184030181529190526020810180516001600160e01b031663095ea7b360e01b1790529050613beb565b816001600160a01b0316866001600160a01b031614156131185760405160248101859052600060448201526001600160a01b038616606482015260840160408051601f198184030181529190526020810180516001600160e01b03167fbf31196f000000000000000000000000000000000000000000000000000000001790529050613beb565b8035613d9481614867565b919050565b60008083601f840112613daa578182fd5b50813567ffffffffffffffff811115613dc1578182fd5b6020830191508360208260051b8501011115612a8357600080fd5b600082601f830112613dec578081fd5b81356020613e01613dfc8361477e565b61474d565b80838252828201915082860187848660051b8901011115613e20578586fd5b855b85811015612f7957813584529284019290840190600101613e22565b600082601f830112613e4e578081fd5b813567ffffffffffffffff811115613e6857613e68614851565b613e7b601f8201601f191660200161474d565b818152846020838601011115613e8f578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215613eba578081fd5b8135613ec581614867565b9392505050565b600060208284031215613edd578081fd5b8151613ec581614867565b600080600080600060a08688031215613eff578081fd5b8535613f0a81614867565b94506020860135613f1a81614867565b9350604086013567ffffffffffffffff80821115613f36578283fd5b613f4289838a01613ddc565b94506060880135915080821115613f57578283fd5b613f6389838a01613ddc565b93506080880135915080821115613f78578283fd5b50613f8588828901613e3e565b9150509295509295909350565b60008060008060808587031215613fa7578384fd5b8435613fb281614867565b93506020850135613fc281614867565b925060408501359150606085013567ffffffffffffffff811115613fe4578182fd5b613ff087828801613e3e565b91505092959194509250565b600080600080600060a08688031215614013578081fd5b853561401e81614867565b9450602086013561402e81614867565b93506040860135925060608601359150608086013567ffffffffffffffff811115614057578182fd5b613f8588828901613e3e565b60006020808385031215614075578182fd5b825167ffffffffffffffff81111561408b578283fd5b8301601f8101851361409b578283fd5b80516140a9613dfc8261477e565b80828252848201915084840188868560051b87010111156140c8578687fd5b8694505b838510156140ea5780518352600194909401939185019185016140cc565b50979650505050505050565b600060208284031215614107578081fd5b81518015158114613ec5578182fd5b600060208284031215614127578081fd5b81356001600160e01b031981168114613ec5578182fd5b60006020828403121561414f578081fd5b5051919050565b60008060008060008060a0878903121561416e578384fd5b86359550602087013567ffffffffffffffff8082111561418c578586fd5b6141988a838b01613ddc565b965060408901359150808211156141ad578586fd5b6141b98a838b01613ddc565b955060608901359150808211156141ce578283fd5b506141db89828a01613d99565b90945092505060808701356141ef81614867565b809150509295509295509295565b600080600080600080600060c0888a031215614217578485fd5b87359650602088013567ffffffffffffffff80821115614235578687fd5b6142418b838c01613ddc565b975060408a0135915080821115614256578687fd5b6142628b838c01613ddc565b965060608a0135915080821115614277578283fd5b6142838b838c01613ddc565b955060808a0135915080821115614298578283fd5b506142a58a828b01613d99565b90945092506142b8905060a08901613d89565b905092959891949750929550565b60008060008060008060008060e0898b0312156142e1578182fd5b88359750602089013567ffffffffffffffff808211156142ff578384fd5b61430b8c838d01613ddc565b985060408b0135915080821115614320578384fd5b61432c8c838d01613ddc565b975060608b0135915080821115614341578384fd5b61434d8c838d01613ddc565b965060808b0135955060a08b0135915080821115614369578384fd5b506143768b828c01613d99565b9094509250614389905060c08a01613d89565b90509295985092959890939650565b600080600080600080600060c0888a0312156143b2578081fd5b87359650602088013567ffffffffffffffff808211156143d0578283fd5b6143dc8b838c01613ddc565b975060408a01359150808211156143f1578283fd5b6143fd8b838c01613ddc565b965060608a0135955060808a0135915080821115614419578283fd5b506144268a828b01613d99565b90945092505060a088013561443a81614867565b8091505092959891949750929550565b60008060008060008060a08789031215614462578384fd5b86359550602087013567ffffffffffffffff80821115614480578586fd5b61448c8a838b01613ddc565b96506040890135955060608901359150808211156141ce578384fd5b60008060008060008060a087890312156144c0578384fd5b8635955060208701359450604087013567ffffffffffffffff808211156144e5578586fd5b6144f18a838b01613ddc565b955060608901359150808211156141ce578384fd5b600080600080600080600060c0888a031215614520578081fd5b8735965060208801359550604088013567ffffffffffffffff808211156143f1578283fd5b6000815180845260208085019450808401835b8381101561457457815187529582019590820190600101614558565b509495945050505050565b600082516145918184602087016147f0565b9190910192915050565b60006001600160a01b03808716835280861660208401525060a060408301526145c760a0830185614545565b82810360608401526145d98185614545565b838103608090940193909352508152602001949350505050565b6040815260006146066040830185614545565b82810360208401526146188185614545565b95945050505050565b6080815260006146346080830187614545565b82810360208401526146468187614545565b9050828103604084015261465a8186614545565b9150506001600160a01b038316606083015295945050505050565b60208152600082518060208401526146948160408501602087016147f0565b601f01601f19169190910160400192915050565b8381526060602082015260006146c16060830185614545565b90506001600160a01b0383166040830152949350505050565b868152602080820187905260a0604083018190528201859052600090869060c08401835b8881101561472c57833561471181614867565b6001600160a01b0316825292820192908201906001016146fe565b506001600160a01b0396909616606085015250505060800152949350505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561477657614776614851565b604052919050565b600067ffffffffffffffff82111561479857614798614851565b5060051b60200190565b600082198211156147b5576147b561483b565b500190565b60008160001904831182151516156147d4576147d461483b565b500290565b6000828210156147eb576147eb61483b565b500390565b60005b8381101561480b5781810151838201526020016147f3565b8381111561481a576000848401525b50505050565b60006000198214156148345761483461483b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461269c57600080fdfea2646970667358221220f3c1d967707f0bee28bd1e00d8d7058c508e73439e85e320bc0a4b70f3d0248664736f6c63430008040033000000000000000000000000be86f647b167567525ccaafcd6f881f1ee558216000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Deployed Bytecode
0x60806040526004361061016e5760003560e01c8063715018a6116100cb578063a02716171161007f578063bc197c8111610059578063bc197c8114610435578063f23a6e611461047a578063f2fde38b146104bf57600080fd5b8063a0271617146103c1578063ab3a4121146103e1578063ad5c46481461040157600080fd5b80638da5cb5b116100b05780638da5cb5b1461034f578063929bf3d31461036d5780639bf1401c1461038d57600080fd5b8063715018a6146103275780637fc824841461033c57600080fd5b806357e836dc116101225780635d8117a6116101075780635d8117a6146102875780635ee50f88146102a75780636d13582c146102f357600080fd5b806357e836dc1461026157806358fbdd0a1461027457600080fd5b8063150b7a0211610153578063150b7a02146101d157806342c4ccaa1461022e5780634447d8881461024157600080fd5b806301ffc9a71461017a5780630956642b146101af57600080fd5b3661017557005b600080fd5b34801561018657600080fd5b5061019a610195366004614116565b6104df565b60405190151581526020015b60405180910390f35b3480156101bb57600080fd5b506101cf6101ca36600461444a565b610548565b005b3480156101dd57600080fd5b506102156101ec366004613f92565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b031990911681526020016101a6565b6101cf61023c3660046142c6565b610669565b34801561024d57600080fd5b506101cf61025c366004614506565b610bc7565b6101cf61026f3660046141fd565b611092565b6101cf610282366004614156565b61165d565b34801561029357600080fd5b506101cf6102a2366004614398565b611b7b565b3480156102b357600080fd5b506102db7f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee55821681565b6040516001600160a01b0390911681526020016101a6565b3480156102ff57600080fd5b506102db7f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b34801561033357600080fd5b506101cf611eab565b6101cf61034a3660046144a8565b611f20565b34801561035b57600080fd5b506000546001600160a01b03166102db565b34801561037957600080fd5b506101cf61038836600461444a565b612235565b34801561039957600080fd5b506102db7f000000000000000000000000688c3e4658b5367da06fd629e41879beab538e3781565b3480156103cd57600080fd5b506101cf6103dc366004614398565b6122cc565b3480156103ed57600080fd5b506101cf6103fc366004614398565b61243b565b34801561040d57600080fd5b506102db7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561044157600080fd5b50610215610450366004613ee8565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561048657600080fd5b50610215610495366004613ffc565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b3480156104cb57600080fd5b506101cf6104da366004613ea9565b6125ae565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061054257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600260015414156105a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001556001600160a01b0381166105b857600080fd5b84516105c357600080fd5b6000806105d0888861269f565b9150915060006105e4838884898989612a8a565b90507f1cdb5ee3c47e1a706ac452b89698e5e3f2ff4f835ca72dde8936d0f4fcf37d8188518260018151811061062a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a150506001805550505050505050565b600260015414156106bc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166106d457600080fd5b86516106df57600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561074d57600080fd5b505af1158015610761573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078591906140f6565b506000805b885181101561082f5760008882815181106107b557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000811161080f5760405162461bcd60e51b815260206004820152601060248201527f5472616e7366657272696e67203c2031000000000000000000000000000000006044820152606401610597565b61081981846147a2565b925050808061082790614820565b91505061078a565b506040516340d1b7db60e11b8152600481018a90526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b15801561089357600080fd5b505afa1580156108a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cb9190613ecc565b905060008751836108dc91906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b15801561091557600080fd5b505afa158015610929573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094d919061413e565b61095791906147ba565b8851836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561099257600080fd5b505afa1580156109a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ca919061413e565b6109d491906147ba565b6109de91906147a2565b905060006109ef8383348a8a612c05565b90506109fe8c8c8c8c89612cc0565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b8482600081518110610a4257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0388169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a082319060240160206040518083038186803b158015610ad457600080fd5b505afa158015610ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0c919061413e565b60405163a9059cbb60e01b81526001600160a01b038881166004830152602482018390529192507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29091169063a9059cbb90604401602060405180830381600087803b158015610b7b57600080fd5b505af1158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb391906140f6565b505060018055505050505050505050505050565b60026001541415610c1a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b038116610c3257600080fd5b85610c3c57600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906323b872dd90606401602060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce291906140f6565b506040516340d1b7db60e11b8152600481018890526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b158015610d4657600080fd5b505afa158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e9190613ecc565b90506000865188610d8f91906147d9565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b815260040160206040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e00919061413e565b610e0a91906147ba565b8751836001600160a01b031663feb8eba56040518163ffffffff1660e01b815260040160206040518083038186803b158015610e4557600080fd5b505afa158015610e59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7d919061413e565b610e8791906147ba565b610e9191906147a2565b90506000610ebe8383610eac670de0b6b3a76400008d6147ba565b610eb691906147a2565b898989612c05565b9050610ecc8a8a8a87612f86565b7ff7735c8cb2a65788ca663fc8415b7c6a66cd6847d58346d8334e8d52a599d3df8982600081518110610f0f57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a082319060240160206040518083038186803b158015610fa157600080fd5b505afa158015610fb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd9919061413e565b60405163a9059cbb60e01b81526001600160a01b038781166004830152602482018390529192507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29091169063a9059cbb90604401602060405180830381600087803b15801561104857600080fd5b505af115801561105c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108091906140f6565b50506001805550505050505050505050565b600260015414156110e55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166110fd57600080fd5b855161110857600080fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561116357600080fd5b505af1158015611177573d6000803e3d6000fd5b506000935083925050505b87518110156112275760008782815181106111ad57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600081116112075760405162461bcd60e51b815260206004820152601060248201527f5472616e7366657272696e67203c2031000000000000000000000000000000006044820152606401610597565b61121181846147a2565b925050808061121f90614820565b915050611182565b506040516340d1b7db60e11b8152600481018990526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b15801561128b57600080fd5b505afa15801561129f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c39190613ecc565b905060008651836112d491906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b15801561130d57600080fd5b505afa158015611321573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611345919061413e565b61134f91906147ba565b8751836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561138a57600080fd5b505afa15801561139e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c2919061413e565b6113cc91906147ba565b6113d691906147a2565b905060006113e78383348a8a612c05565b90506113f68b8b8b8b89612cc0565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b848260008151811061143a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0388169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a082319060240160206040518083038186803b1580156114cc57600080fd5b505afa1580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611504919061413e565b604051632e1a7d4d60e01b8152600481018290529091507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561156957600080fd5b505af115801561157d573d6000803e3d6000fd5b505050506000866001600160a01b03168260405160006040518083038185875af1925050503d80600081146115ce576040519150601f19603f3d011682016040523d82523d6000602084013e6115d3565b606091505b505090508061164a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610597565b5050600180555050505050505050505050565b600260015414156116b05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166116c857600080fd5b84516116d357600080fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561172e57600080fd5b505af1158015611742573d6000803e3d6000fd5b50506040516340d1b7db60e11b8152600481018a9052600093507f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b031692506381a36fb6915060240160206040518083038186803b1580156117aa57600080fd5b505afa1580156117be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e29190613ecc565b90506000855187516117f491906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b15801561182d57600080fd5b505afa158015611841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611865919061413e565b61186f91906147ba565b8651836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118aa57600080fd5b505afa1580156118be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e2919061413e565b6118ec91906147ba565b6118f691906147a2565b905060006119078383348989612c05565b905061191589898987613120565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b88518260008151811061195a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a16040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a082319060240160206040518083038186803b1580156119ec57600080fd5b505afa158015611a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a24919061413e565b604051632e1a7d4d60e01b8152600481018290529091507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015611a8957600080fd5b505af1158015611a9d573d6000803e3d6000fd5b505050506000856001600160a01b03168260405160006040518083038185875af1925050503d8060008114611aee576040519150601f19603f3d011682016040523d82523d6000602084013e611af3565b606091505b5050905080611b6a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610597565b505060018055505050505050505050565b60026001541415611bce5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b038116611be657600080fd5b8551611bf157600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906323b872dd90606401602060405180830381600087803b158015611c5f57600080fd5b505af1158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9791906140f6565b506040516340d1b7db60e11b8152600481018890526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b158015611cfb57600080fd5b505afa158015611d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d339190613ecc565b9050600086518851611d4591906147d9565b826001600160a01b031663d53f62176040518163ffffffff1660e01b815260040160206040518083038186803b158015611d7e57600080fd5b505afa158015611d92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db6919061413e565b611dc091906147ba565b8751836001600160a01b03166335dca76c6040518163ffffffff1660e01b815260040160206040518083038186803b158015611dfb57600080fd5b505afa158015611e0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e33919061413e565b611e3d91906147ba565b611e4791906147a2565b90506000611e588383898989612c05565b9050611e668a8a8a87613120565b507f7af2bc3f8ec800c569b6555feaf16589d96a9d04a49d1645fd456d75fa0b372b895182600081518110610f0f57634e487b7160e01b600052603260045260246000fd5b33611ebe6000546001600160a01b031690565b6001600160a01b031614611f145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610597565b611f1e600061338a565b565b60026001541415611f735760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b038116611f8b57600080fd5b84611f9557600080fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611ff057600080fd5b505af1158015612004573d6000803e3d6000fd5b50506040516340d1b7db60e11b8152600481018a9052600093507f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b031692506381a36fb6915060240160206040518083038186803b15801561206c57600080fd5b505afa158015612080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a49190613ecc565b905060008551876120b591906147d9565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b815260040160206040518083038186803b1580156120ee57600080fd5b505afa158015612102573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612126919061413e565b61213091906147ba565b8651836001600160a01b031663feb8eba56040518163ffffffff1660e01b815260040160206040518083038186803b15801561216b57600080fd5b505afa15801561217f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a3919061413e565b6121ad91906147ba565b6121b791906147a2565b905060006121e483836121d2670de0b6b3a76400008c6147ba565b6121dc91906147a2565b348989612c05565b90506121f289898987612f86565b7ff7735c8cb2a65788ca663fc8415b7c6a66cd6847d58346d8334e8d52a599d3df888260008151811061195a57634e487b7160e01b600052603260045260246000fd5b600260015414156122885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166122a057600080fd5b84516122ab57600080fd5b6000806122b8888861269f565b9150915060006105e48388848989896133f2565b6002600154141561231f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b03811661233757600080fd5b855161234257600080fd5b60008061235089898961350b565b915091506123628287838888886133f2565b506000805b89518110156123b75788818151811061239057634e487b7160e01b600052603260045260246000fd5b6020026020010151826123a391906147a2565b9150806123af81614820565b915050612367565b507f1cdb5ee3c47e1a706ac452b89698e5e3f2ff4f835ca72dde8936d0f4fcf37d8181896001815181106123fb57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0387169082015260600160405180910390a15050600180555050505050505050565b6002600154141561248e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610597565b60026001556001600160a01b0381166124a657600080fd5b85516124b157600080fd5b6000806124bf89898961350b565b9150915060006124d3838884898989612a8a565b90506000805b8a518110156125295782818151811061250257634e487b7160e01b600052603260045260246000fd5b60200260200101518261251591906147a2565b91508061252181614820565b9150506124d9565b507f1cdb5ee3c47e1a706ac452b89698e5e3f2ff4f835ca72dde8936d0f4fcf37d81818360018151811061256d57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160408051938452918301526001600160a01b0388169082015260600160405180910390a1505060018055505050505050505050565b336125c16000546001600160a01b031690565b6001600160a01b0316146126175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610597565b6001600160a01b0381166126935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610597565b61269c8161338a565b50565b60008060007f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b03166381a36fb6866040518263ffffffff1660e01b81526004016126f291815260200190565b60206040518083038186803b15801561270a57600080fd5b505afa15801561271e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127429190613ecc565b90506001600160a01b03811661279a5760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156127d557600080fd5b505afa1580156127e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280d9190613ecc565b905060005b85518110156128915761284d8287838151811061283f57634e487b7160e01b600052603260045260246000fd5b602002602001015185613951565b61287f828488848151811061287257634e487b7160e01b600052603260045260246000fd5b6020026020010151613c78565b8061288981614820565b915050612812565b5060606000836001600160a01b0316633d5d190c88846040518363ffffffff1660e01b81526004016128c49291906145f3565b602060405180830381600087803b1580156128de57600080fd5b505af11580156128f2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612916919061413e565b90506000846001600160a01b03166313966db56040518163ffffffff1660e01b815260040160206040518083038186803b15801561295357600080fd5b505afa158015612967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298b919061413e565b61299590836147ba565b6129a7670de0b6b3a7640000846147ba565b6129b191906147d9565b6040516370a0823160e01b81523060048201529091506001600160a01b038616906370a082319060240160206040518083038186803b1580156129f357600080fd5b505afa158015612a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2b919061413e565b8114612a795760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e63656044820152606401610597565b9395509293505050505b9250929050565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81166004830152602482018690526060919088169063095ea7b390604401602060405180830381600087803b158015612af857600080fd5b505af1158015612b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b3091906140f6565b506040517f18cbafe50000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f16906318cbafe590612ba39089908b908a908a908a9042906004016146da565b600060405180830381600087803b158015612bbd57600080fd5b505af1158015612bd1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612bf99190810190614063565b98975050505050505050565b606060007f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b0316638803dbee8787878730426040518763ffffffff1660e01b8152600401612c5f969594939291906146da565b600060405180830381600087803b158015612c7957600080fd5b505af1158015612c8d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612cb59190810190614063565b979650505050505050565b6040516340d1b7db60e11b81526004810186905260009081906001600160a01b037f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee55821616906381a36fb69060240160206040518083038186803b158015612d2557600080fd5b505afa158015612d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5d9190613ecc565b90506001600160a01b038116612db55760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612df057600080fd5b505afa158015612e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e289190613ecc565b604051631759616b60e11b81529091506001600160a01b03821690632eb2c2d690612e5d90339030908c908c9060040161459b565b600060405180830381600087803b158015612e7757600080fd5b505af1158015612e8b573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038581166004830152600160248301528416925063a22cb4659150604401600060405180830381600087803b158015612ed957600080fd5b505af1158015612eed573d6000803e3d6000fd5b5050604051632321420560e21b81526001600160a01b0385169250638c8508149150612f23908a908a908a908a90600401614621565b600060405180830381600087803b158015612f3d57600080fd5b505af1158015612f51573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612f799190810190614063565b5090979650505050505050565b6040516340d1b7db60e11b8152600481018590526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b158015612fe957600080fd5b505afa158015612ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130219190613ecc565b90506001600160a01b0381166130795760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6040517f9d54def60000000000000000000000000000000000000000000000000000000081526001600160a01b03821690639d54def6906130c2908790879087906004016146a8565b600060405180830381600087803b1580156130dc57600080fd5b505af11580156130f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131189190810190614063565b505050505050565b6040516340d1b7db60e11b81526004810185905260009081906001600160a01b037f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee55821616906381a36fb69060240160206040518083038186803b15801561318557600080fd5b505afa158015613199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131bd9190613ecc565b90506001600160a01b0381166132155760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561325057600080fd5b505afa158015613264573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132889190613ecc565b905060005b86518110156132f1576132ba8288838151811061283f57634e487b7160e01b600052603260045260246000fd5b6132df828489848151811061287257634e487b7160e01b600052603260045260246000fd5b806132e981614820565b91505061328d565b50604051632321420560e21b81526060906001600160a01b03841690638c85081490613327908a9085908b908b90600401614621565b600060405180830381600087803b15801561334157600080fd5b505af1158015613355573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261337d9190810190614063565b5091979650505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81166004830152602482018690526060919088169063095ea7b390604401602060405180830381600087803b15801561346057600080fd5b505af1158015613474573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349891906140f6565b506040517f38ed17390000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f16906338ed173990612ba39089908b908a908a908a9042906004016146da565b60008060007f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b03166381a36fb6876040518263ffffffff1660e01b815260040161355e91815260200190565b60206040518083038186803b15801561357657600080fd5b505afa15801561358a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ae9190613ecc565b90506001600160a01b0381166136065760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f742065786973740000006044820152606401610597565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561364157600080fd5b505afa158015613655573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136799190613ecc565b604051631759616b60e11b81529091506001600160a01b03821690632eb2c2d6906136ae90339030908b908b9060040161459b565b600060405180830381600087803b1580156136c857600080fd5b505af11580156136dc573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038581166004830152600160248301528416925063a22cb4659150604401600060405180830381600087803b15801561372a57600080fd5b505af115801561373e573d6000803e3d6000fd5b50506040517f3d5d190c000000000000000000000000000000000000000000000000000000008152600092506001600160a01b0385169150633d5d190c9061378c908a908a906004016145f3565b602060405180830381600087803b1580156137a657600080fd5b505af11580156137ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137de919061413e565b9050600081846001600160a01b03166313966db56040518163ffffffff1660e01b815260040160206040518083038186803b15801561381c57600080fd5b505afa158015613830573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613854919061413e565b61385e91906147ba565b613870670de0b6b3a7640000846147ba565b61387a91906147d9565b6040516370a0823160e01b81523060048201529091506001600160a01b038516906370a082319060240160206040518083038186803b1580156138bc57600080fd5b505afa1580156138d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138f4919061413e565b81146139425760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e63656044820152606401610597565b92989297509195505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b0386168314156139d8576040513360248201523060448201526064810186905260840160408051601f198184030181529190526020810180516001600160e01b03166323b872dd60e01b1790529050613beb565b816001600160a01b0316866001600160a01b03161415613b8357600085604051602401613a0791815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167f58178168000000000000000000000000000000000000000000000000000000001790525190915060009081906001600160a01b038a1690613a6990859061457f565b600060405180830381855afa9150503d8060008114613aa4576040519150601f19603f3d011682016040523d82523d6000602084013e613aa9565b606091505b5091509150600081806020019051810190613ac49190613ecc565b9050828015613adb57506001600160a01b03811633145b613b275760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420746865206f776e6572000000000000000000000000000000000000006044820152606401610597565b604051602481018a905260440160408051601f198184030181529190526020810180516001600160e01b03167f8264fe98000000000000000000000000000000000000000000000000000000001790529450613beb9350505050565b6040513360248201526001600160a01b03851660448201526064810186905260840160408051601f198184030181529190526020810180516001600160e01b03167f42842e0e0000000000000000000000000000000000000000000000000000000017905290505b600080876001600160a01b031683604051613c06919061457f565b6000604051808303816000865af19150503d8060008114613c43576040519150601f19603f3d011682016040523d82523d6000602084013e613c48565b606091505b5091509150818190613c6d5760405162461bcd60e51b81526004016105979190614675565b505050505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b038616831415613d02576040516001600160a01b03861660248201526044810185905260640160408051601f198184030181529190526020810180516001600160e01b031663095ea7b360e01b1790529050613beb565b816001600160a01b0316866001600160a01b031614156131185760405160248101859052600060448201526001600160a01b038616606482015260840160408051601f198184030181529190526020810180516001600160e01b03167fbf31196f000000000000000000000000000000000000000000000000000000001790529050613beb565b8035613d9481614867565b919050565b60008083601f840112613daa578182fd5b50813567ffffffffffffffff811115613dc1578182fd5b6020830191508360208260051b8501011115612a8357600080fd5b600082601f830112613dec578081fd5b81356020613e01613dfc8361477e565b61474d565b80838252828201915082860187848660051b8901011115613e20578586fd5b855b85811015612f7957813584529284019290840190600101613e22565b600082601f830112613e4e578081fd5b813567ffffffffffffffff811115613e6857613e68614851565b613e7b601f8201601f191660200161474d565b818152846020838601011115613e8f578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215613eba578081fd5b8135613ec581614867565b9392505050565b600060208284031215613edd578081fd5b8151613ec581614867565b600080600080600060a08688031215613eff578081fd5b8535613f0a81614867565b94506020860135613f1a81614867565b9350604086013567ffffffffffffffff80821115613f36578283fd5b613f4289838a01613ddc565b94506060880135915080821115613f57578283fd5b613f6389838a01613ddc565b93506080880135915080821115613f78578283fd5b50613f8588828901613e3e565b9150509295509295909350565b60008060008060808587031215613fa7578384fd5b8435613fb281614867565b93506020850135613fc281614867565b925060408501359150606085013567ffffffffffffffff811115613fe4578182fd5b613ff087828801613e3e565b91505092959194509250565b600080600080600060a08688031215614013578081fd5b853561401e81614867565b9450602086013561402e81614867565b93506040860135925060608601359150608086013567ffffffffffffffff811115614057578182fd5b613f8588828901613e3e565b60006020808385031215614075578182fd5b825167ffffffffffffffff81111561408b578283fd5b8301601f8101851361409b578283fd5b80516140a9613dfc8261477e565b80828252848201915084840188868560051b87010111156140c8578687fd5b8694505b838510156140ea5780518352600194909401939185019185016140cc565b50979650505050505050565b600060208284031215614107578081fd5b81518015158114613ec5578182fd5b600060208284031215614127578081fd5b81356001600160e01b031981168114613ec5578182fd5b60006020828403121561414f578081fd5b5051919050565b60008060008060008060a0878903121561416e578384fd5b86359550602087013567ffffffffffffffff8082111561418c578586fd5b6141988a838b01613ddc565b965060408901359150808211156141ad578586fd5b6141b98a838b01613ddc565b955060608901359150808211156141ce578283fd5b506141db89828a01613d99565b90945092505060808701356141ef81614867565b809150509295509295509295565b600080600080600080600060c0888a031215614217578485fd5b87359650602088013567ffffffffffffffff80821115614235578687fd5b6142418b838c01613ddc565b975060408a0135915080821115614256578687fd5b6142628b838c01613ddc565b965060608a0135915080821115614277578283fd5b6142838b838c01613ddc565b955060808a0135915080821115614298578283fd5b506142a58a828b01613d99565b90945092506142b8905060a08901613d89565b905092959891949750929550565b60008060008060008060008060e0898b0312156142e1578182fd5b88359750602089013567ffffffffffffffff808211156142ff578384fd5b61430b8c838d01613ddc565b985060408b0135915080821115614320578384fd5b61432c8c838d01613ddc565b975060608b0135915080821115614341578384fd5b61434d8c838d01613ddc565b965060808b0135955060a08b0135915080821115614369578384fd5b506143768b828c01613d99565b9094509250614389905060c08a01613d89565b90509295985092959890939650565b600080600080600080600060c0888a0312156143b2578081fd5b87359650602088013567ffffffffffffffff808211156143d0578283fd5b6143dc8b838c01613ddc565b975060408a01359150808211156143f1578283fd5b6143fd8b838c01613ddc565b965060608a0135955060808a0135915080821115614419578283fd5b506144268a828b01613d99565b90945092505060a088013561443a81614867565b8091505092959891949750929550565b60008060008060008060a08789031215614462578384fd5b86359550602087013567ffffffffffffffff80821115614480578586fd5b61448c8a838b01613ddc565b96506040890135955060608901359150808211156141ce578384fd5b60008060008060008060a087890312156144c0578384fd5b8635955060208701359450604087013567ffffffffffffffff808211156144e5578586fd5b6144f18a838b01613ddc565b955060608901359150808211156141ce578384fd5b600080600080600080600060c0888a031215614520578081fd5b8735965060208801359550604088013567ffffffffffffffff808211156143f1578283fd5b6000815180845260208085019450808401835b8381101561457457815187529582019590820190600101614558565b509495945050505050565b600082516145918184602087016147f0565b9190910192915050565b60006001600160a01b03808716835280861660208401525060a060408301526145c760a0830185614545565b82810360608401526145d98185614545565b838103608090940193909352508152602001949350505050565b6040815260006146066040830185614545565b82810360208401526146188185614545565b95945050505050565b6080815260006146346080830187614545565b82810360208401526146468187614545565b9050828103604084015261465a8186614545565b9150506001600160a01b038316606083015295945050505050565b60208152600082518060208401526146948160408501602087016147f0565b601f01601f19169190910160400192915050565b8381526060602082015260006146c16060830185614545565b90506001600160a01b0383166040830152949350505050565b868152602080820187905260a0604083018190528201859052600090869060c08401835b8881101561472c57833561471181614867565b6001600160a01b0316825292820192908201906001016146fe565b506001600160a01b0396909616606085015250505060800152949350505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561477657614776614851565b604052919050565b600067ffffffffffffffff82111561479857614798614851565b5060051b60200190565b600082198211156147b5576147b561483b565b500190565b60008160001904831182151516156147d4576147d461483b565b500290565b6000828210156147eb576147eb61483b565b500390565b60005b8381101561480b5781810151838201526020016147f3565b8381111561481a576000848401525b50505050565b60006000198214156148345761483461483b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461269c57600080fdfea2646970667358221220f3c1d967707f0bee28bd1e00d8d7058c508e73439e85e320bc0a4b70f3d0248664736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000be86f647b167567525ccaafcd6f881f1ee558216000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
-----Decoded View---------------
Arg [0] : _nftxFactory (address): 0xBE86f647b167567525cCAAfcd6f881F1Ee558216
Arg [1] : _sushiRouter (address): 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000be86f647b167567525ccaafcd6f881f1ee558216
Arg [1] : 000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.