Source Code
Latest 25 from a total of 4,585 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Buy And Redeem | 13819246 | 1464 days ago | IN | 0.52083649 ETH | 0.03469707 | ||||
| Mint And Sell721 | 13613925 | 1496 days ago | IN | 0 ETH | 0.0652503 | ||||
| Mint And Sell721 | 13534028 | 1509 days ago | IN | 0 ETH | 0.17047392 | ||||
| Mint And Sell721 | 13510424 | 1513 days ago | IN | 0 ETH | 0.05456091 | ||||
| Buy And Redeem | 13510134 | 1513 days ago | IN | 0.69144974 ETH | 0.01303373 | ||||
| Buy And Redeem | 13510134 | 1513 days ago | IN | 0.69144974 ETH | 0.05217516 | ||||
| Buy And Redeem | 13509551 | 1513 days ago | IN | 0.29490805 ETH | 0.0875295 | ||||
| Mint And Sell721 | 13509534 | 1513 days ago | IN | 0 ETH | 1.37855643 | ||||
| Mint And Sell721 | 13509492 | 1513 days ago | IN | 0 ETH | 0.08071282 | ||||
| Mint And Sell721 | 13509482 | 1513 days ago | IN | 0 ETH | 0.1147449 | ||||
| Mint And Sell721 | 13509466 | 1513 days ago | IN | 0 ETH | 0.10461233 | ||||
| Mint And Sell721 | 13509433 | 1513 days ago | IN | 0 ETH | 0.11598661 | ||||
| Mint And Sell721 | 13509123 | 1513 days ago | IN | 0 ETH | 0.1744738 | ||||
| Buy And Redeem | 13508817 | 1513 days ago | IN | 1.28470393 ETH | 0.06496534 | ||||
| Mint And Sell721 | 13508809 | 1513 days ago | IN | 0 ETH | 0.0098178 | ||||
| Mint And Sell721 | 13508806 | 1513 days ago | IN | 0 ETH | 0.05254835 | ||||
| Mint And Sell721 | 13508798 | 1513 days ago | IN | 0 ETH | 0.10708492 | ||||
| Buy And Redeem | 13508659 | 1513 days ago | IN | 0.79080477 ETH | 0.06347029 | ||||
| Buy And Redeem | 13508516 | 1513 days ago | IN | 0.69725621 ETH | 0.07298285 | ||||
| Mint And Sell721 | 13508394 | 1513 days ago | IN | 0 ETH | 0.25188032 | ||||
| Mint And Sell721 | 13508358 | 1513 days ago | IN | 0 ETH | 0.1624874 | ||||
| Buy And Redeem | 13508268 | 1513 days ago | IN | 3.8241047 ETH | 0.1540589 | ||||
| Buy And Redeem | 13507947 | 1513 days ago | IN | 0.29477461 ETH | 0.03001692 | ||||
| Buy And Redeem | 13507944 | 1513 days ago | IN | 0.29624115 ETH | 0.09998427 | ||||
| Buy And Redeem | 13507796 | 1513 days ago | IN | 1.59050356 ETH | 0.09792408 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 13819246 | 1464 days ago | 0.52083649 ETH | ||||
| - | 13510424 | 1513 days ago | 0.74144137 ETH | ||||
| - | 13510424 | 1513 days ago | 0.74144137 ETH | ||||
| - | 13510134 | 1513 days ago | 0.69144974 ETH | ||||
| - | 13510134 | 1513 days ago | 0.01686462 ETH | ||||
| - | 13510134 | 1513 days ago | 0.01686462 ETH | ||||
| - | 13510134 | 1513 days ago | 0.69144974 ETH | ||||
| - | 13509551 | 1513 days ago | 0.00291988 ETH | ||||
| - | 13509551 | 1513 days ago | 0.00291988 ETH | ||||
| - | 13509551 | 1513 days ago | 0.29490805 ETH | ||||
| - | 13509534 | 1513 days ago | 1.18419859 ETH | ||||
| - | 13509534 | 1513 days ago | 1.18419859 ETH | ||||
| - | 13509492 | 1513 days ago | 0.08351804 ETH | ||||
| - | 13509492 | 1513 days ago | 0.08351804 ETH | ||||
| - | 13509482 | 1513 days ago | 1.99323579 ETH | ||||
| - | 13509482 | 1513 days ago | 1.99323579 ETH | ||||
| - | 13509466 | 1513 days ago | 0.45789794 ETH | ||||
| - | 13509466 | 1513 days ago | 0.45789794 ETH | ||||
| - | 13509433 | 1513 days ago | 0.18128465 ETH | ||||
| - | 13509433 | 1513 days ago | 0.18128465 ETH | ||||
| - | 13509123 | 1513 days ago | 8.7801266 ETH | ||||
| - | 13509123 | 1513 days ago | 8.7801266 ETH | ||||
| - | 13508817 | 1513 days ago | 0.00639156 ETH | ||||
| - | 13508817 | 1513 days ago | 0.00639156 ETH | ||||
| - | 13508817 | 1513 days ago | 1.28470393 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
NFTXMarketplaceZap
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-09-15
*/
// Sources flattened with hardhat v2.4.1 https://hardhat.org
// File contracts/solidity/interface/INFTXEligibility.sol
// 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;
}
// File contracts/solidity/proxy/IBeacon.sol
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;
}
// File contracts/solidity/interface/INFTXVaultFactory.sol
pragma solidity ^0.8.0;
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 vaultsForAsset(address asset) external view returns (address[] memory);
function isLocked(uint256 id) external view returns (bool);
function excludedFromFees(address addr) external view returns (bool);
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);
// 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;
}
// File contracts/solidity/interface/INFTXVault.sol
pragma solidity ^0.8.0;
interface INFTXVault {
function manager() external returns (address);
function assetAddress() external returns (address);
function vaultFactory() external returns (INFTXVaultFactory);
function eligibilityStorage() external returns (INFTXEligibility);
function is1155() external returns (bool);
function allowAllItems() external returns (bool);
function enableMint() external returns (bool);
function enableRandomRedeem() external returns (bool);
function enableTargetRedeem() external returns (bool);
function vaultId() external 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 returns (uint256);
function randomRedeemFee() external returns (uint256);
function targetRedeemFee() external returns (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 MintFeeUpdated(uint256 mintFee);
event RandomRedeemFeeUpdated(uint256 randomRedeemFee);
event TargetRedeemFeeUpdated(uint256 targetRedeemFee);
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
) external;
function setFees(
uint256 _mintFee,
uint256 _randomRedeemFee,
uint256 _targetRedeemFee
) 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);
}
// File contracts/solidity/interface/INFTXFeeDistributor.sol
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;
}
// File contracts/solidity/interface/INFTXLPStaking.sol
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;
}
// File contracts/solidity/token/IERC20Upgradeable.sol
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);
}
// File contracts/solidity/interface/ITimelockRewardDistributionToken.sol
pragma solidity ^0.8.0;
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);
}
// File contracts/solidity/interface/IUniswapV2Router01.sol
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);
}
// File contracts/solidity/testing/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File contracts/solidity/testing/IERC721.sol
pragma solidity ^0.8.0;
/**
* @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;
}
// File contracts/solidity/interface/IERC165Upgradeable.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface 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);
}
// File contracts/solidity/token/IERC1155Upgradeable.sol
pragma solidity ^0.8.0;
/**
* @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;
}
// File contracts/solidity/token/IERC721ReceiverUpgradeable.sol
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);
}
// File contracts/solidity/token/ERC721HolderUpgradeable.sol
pragma solidity ^0.8.0;
/**
* @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;
}
}
// File contracts/solidity/token/IERC1155ReceiverUpgradeable.sol
pragma solidity ^0.8.0;
/**
* @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);
}
// File contracts/solidity/util/ERC165Upgradeable.sol
pragma solidity ^0.8.0;
/**
* @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;
}
}
// File contracts/solidity/token/ERC1155ReceiverUpgradeable.sol
pragma solidity ^0.8.0;
/**
* @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);
}
}
// File contracts/solidity/token/ERC1155HolderUpgradeable.sol
pragma solidity ^0.8.0;
/**
* @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;
}
}
// File contracts/solidity/proxy/Initializable.sol
// 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;
}
}
}
// File contracts/solidity/util/ContextUpgradeable.sol
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract 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;
}
// File contracts/solidity/util/OwnableUpgradeable.sol
pragma solidity ^0.8.0;
/**
* @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;
}
// File contracts/solidity/NFTXMarketplaceZap.sol
pragma solidity ^0.8.0;
// 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;
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 = _sellVaultToken(vault, minWethOut, vaultBalance, path);
// 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 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 = _sellVaultToken(vault, minWethOut, vaultBalance, path);
uint256 remaining = WETH.balanceOf(address(this));
WETH.transfer(to, remaining);
}
// 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 mintFees = vault.mintFee() * idsIn.length;
// uint256 redeemFees = (vault.targetRedeemFee() * specificIds.length) + (
// vault.randomRedeemFee() * (idsIn.length - specificIds.length)
// );
// uint256[] memory amounts = _buyVaultToken(address(vault), mintFees + redeemFees, msg.value, path);
// _swap721(vaultId, idsIn, specificIds, 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 mintFees = vault.mintFee() * idsIn.length;
// uint256 redeemFees = (vault.targetRedeemFee() * specificIds.length) + (
// vault.randomRedeemFee() * (idsIn.length - specificIds.length)
// );
// uint256[] memory amounts = _buyVaultToken(address(vault), mintFees + redeemFees, maxWethIn, path);
// _swap721(vaultId, idsIn, specificIds, 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 mintFees = vault.mintFee() * count;
// uint256 redeemFees = (vault.targetRedeemFee() * specificIds.length) + (
// vault.randomRedeemFee() * (count - specificIds.length)
// );
// uint256[] memory amounts = _buyVaultToken(address(vault), mintFees + redeemFees, msg.value, path);
// _swap1155(vaultId, idsIn, amounts, specificIds, 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 mintFees = vault.mintFee() * count;
// uint256 redeemFees = (vault.targetRedeemFee() * specificIds.length) + (
// vault.randomRedeemFee() * (count - specificIds.length)
// );
// uint256[] memory amounts = _buyVaultToken(address(vault), mintFees + redeemFees, msg.value, path);
// _swap1155(vaultId, idsIn, amounts, specificIds, 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);
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);
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 = _sellVaultToken(vault, minWethOut, vaultTokenBalance, path);
// 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 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);
uint256[] memory amounts = _sellVaultToken(vault, minWethOut, vaultTokenBalance, path);
uint256 remaining = WETH.balanceOf(address(this));
WETH.transfer(to, remaining);
}
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]);
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]);
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 _sellVaultToken(
address vault,
uint256 minWethOut,
uint256 maxTokenIn,
address[] calldata path
) internal returns (uint256[] memory) {
IERC20Upgradeable(vault).approve(address(sushiRouter), maxTokenIn);
uint256[] memory amounts = sushiRouter.swapExactTokensForTokens(
maxTokenIn,
minWethOut,
path,
address(this),
block.timestamp
);
return amounts;
}
function transferFromERC721(address assetAddr, uint256 tokenId) 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.
data = abi.encodeWithSignature("safeTransferFrom(address,address,uint256)", msg.sender, address(this), 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 {
if (IERC721(assetAddr).isApprovedForAll(address(this), to)) {
return;
}
// Default.
data = abi.encodeWithSignature("setApprovalForAll(address,bool)", to, true);
}
(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 {
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_nftxFactory","type":"address"},{"internalType":"address","name":"_sushiRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"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":[],"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
6101006040523480156200001257600080fd5b50604051620034bd380380620034bd833981016040819052620000359162000393565b620000403362000302565b600180556001600160601b0319606083901b1660c05260408051630d43e8ad60e01b815290516001600160a01b03841691630d43e8ad916004808301926020929190829003018186803b1580156200009757600080fd5b505afa158015620000ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d291906200036f565b6001600160a01b0316639bf1401c6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200010d57600080fd5b505af115801562000122573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014891906200036f565b6001600160601b0319606091821b811660a0529082901b1660e052604080516315ab88c960e31b815290516001600160a01b0383169163ad5c4648916004808301926020929190829003018186803b158015620001a457600080fd5b505afa158015620001b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001df91906200036f565b6001600160a01b03166080816001600160a01b031660601b81525050806001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200023557600080fd5b505afa1580156200024a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200027091906200036f565b60405163095ea7b360e01b81526001600160a01b0383811660048301526000196024830152919091169063095ea7b390604401602060405180830381600087803b158015620002be57600080fd5b505af1158015620002d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f99190620003ca565b505050620003ec565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200036a57600080fd5b919050565b60006020828403121562000381578081fd5b6200038c8262000352565b9392505050565b60008060408385031215620003a6578081fd5b620003b18362000352565b9150620003c16020840162000352565b90509250929050565b600060208284031215620003dc578081fd5b815180151581146200038c578182fd5b60805160601c60a05160601c60c05160601c60e05160601c612fff620004be600039600081816102500152818161194d01528181611a100152611ab60152600081816102040152818161085801528181610cf50152818161154f01528181611b230152611d13015260006102ea01526000818161035e01528181610551015281816105e5015281816107ba01528181610a4401528181610af001528181610c6c01528181610ee301528181610fd301528181611076015281816111ae01528181611297015261132a0152612fff6000f3fe6080604052600436106101125760003560e01c80638da5cb5b116100a5578063ab3a412111610074578063bc197c8111610059578063bc197c8114610380578063f23a6e61146103c5578063f2fde38b1461040a57600080fd5b8063ab3a41211461032c578063ad5c46481461034c57600080fd5b80638da5cb5b1461029a578063929bf3d3146102b85780639bf1401c146102d8578063a02716171461030c57600080fd5b80635ee50f88116100e15780635ee50f88146101f25780636d13582c1461023e578063715018a6146102725780637fc824841461028757600080fd5b806301ffc9a71461011e5780630956642b14610153578063150b7a02146101755780634447d888146101d257600080fd5b3661011957005b600080fd5b34801561012a57600080fd5b5061013e610139366004612aa2565b61042a565b60405190151581526020015b60405180910390f35b34801561015f57600080fd5b5061017361016e366004612b94565b610493565b005b34801561018157600080fd5b506101b961019036600461291e565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b0319909116815260200161014a565b3480156101de57600080fd5b506101736101ed366004612c7f565b610723565b3480156101fe57600080fd5b506102267f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161014a565b34801561024a57600080fd5b506102267f000000000000000000000000000000000000000000000000000000000000000081565b34801561027e57600080fd5b50610173610b80565b610173610295366004612c21565b610bf5565b3480156102a657600080fd5b506000546001600160a01b0316610226565b3480156102c457600080fd5b506101736102d3366004612b94565b610f1a565b3480156102e457600080fd5b506102267f000000000000000000000000000000000000000000000000000000000000000081565b34801561031857600080fd5b50610173610327366004612ae2565b6110f4565b34801561033857600080fd5b50610173610347366004612ae2565b6111dd565b34801561035857600080fd5b506102267f000000000000000000000000000000000000000000000000000000000000000081565b34801561038c57600080fd5b506101b961039b366004612874565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b3480156103d157600080fd5b506101b96103e0366004612988565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561041657600080fd5b50610173610425366004612835565b611457565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061048d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600260015414156104eb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001556001600160a01b03811661050357600080fd5b845161050e57600080fd5b60008061051b8888611548565b91509150600061052e8388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906024015b60206040518083038186803b15801561059457600080fd5b505afa1580156105a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cc9190612aca565b604051632e1a7d4d60e01b8152600481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561063157600080fd5b505af1158015610645573d6000803e3d6000fd5b505050506000856001600160a01b03168260405160006040518083038185875af1925050503d8060008114610696576040519150601f19603f3d011682016040523d82523d6000602084013e61069b565b606091505b50509050806107125760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104e2565b505060018055505050505050505050565b600260015414156107765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b03811661078e57600080fd5b8561079857600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561080657600080fd5b505af115801561081a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083e9190612a82565b506040516340d1b7db60e11b8152600481018890526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b1580156108a257600080fd5b505afa1580156108b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190612858565b905060008651886108eb9190612f26565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561092657600080fd5b505af115801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190612aca565b6109689190612f07565b8751836001600160a01b031663feb8eba56040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156109a557600080fd5b505af11580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190612aca565b6109e79190612f07565b6109f19190612eef565b90506000610a1e8383610a0c670de0b6b3a76400008d612f07565b610a169190612eef565b898989611ab0565b9050610a2c8a8a8a87611b0a565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a08231906024015b60206040518083038186803b158015610a8f57600080fd5b505afa158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190612aca565b60405163a9059cbb60e01b81526001600160a01b038781166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb90604401602060405180830381600087803b158015610b3657600080fd5b505af1158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6e9190612a82565b50506001805550505050505050505050565b33610b936000546001600160a01b031690565b6001600160a01b031614610be95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e2565b610bf36000611ca4565b565b60026001541415610c485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b038116610c6057600080fd5b84610c6a57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610cc557600080fd5b505af1158015610cd9573d6000803e3d6000fd5b50506040516340d1b7db60e11b8152600481018a9052600093507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506381a36fb6915060240160206040518083038186803b158015610d4157600080fd5b505afa158015610d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d799190612858565b90506000855187610d8a9190612f26565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610dc557600080fd5b505af1158015610dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfd9190612aca565b610e079190612f07565b8651836001600160a01b031663feb8eba56040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e4457600080fd5b505af1158015610e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7c9190612aca565b610e869190612f07565b610e909190612eef565b90506000610ebd8383610eab670de0b6b3a76400008c612f07565b610eb59190612eef565b348989611ab0565b9050610ecb89898987611b0a565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240161057c565b60026001541415610f6d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b038116610f8557600080fd5b8451610f9057600080fd5b600080610f9d8888611548565b915091506000610fb08388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561101557600080fd5b505afa158015611029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104d9190612aca565b60405163a9059cbb60e01b81526001600160a01b038781166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb90604401602060405180830381600087803b1580156110bc57600080fd5b505af11580156110d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107129190612a82565b600260015414156111475760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b03811661115f57600080fd5b855161116a57600080fd5b600080611178898989611d0c565b91509150600061118b8388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401610a77565b600260015414156112305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b03811661124857600080fd5b855161125357600080fd5b600080611261898989611d0c565b9150915060006112748388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156112d957600080fd5b505afa1580156112ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113119190612aca565b604051632e1a7d4d60e01b8152600481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561137657600080fd5b505af115801561138a573d6000803e3d6000fd5b505050506000856001600160a01b03168260405160006040518083038185875af1925050503d80600081146113db576040519150601f19603f3d011682016040523d82523d6000602084013e6113e0565b606091505b5050905080610b6e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104e2565b3361146a6000546001600160a01b031690565b6001600160a01b0316146114c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e2565b6001600160a01b03811661153c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104e2565b61154581611ca4565b50565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166381a36fb6866040518263ffffffff1660e01b815260040161159b91815260200190565b60206040518083038186803b1580156115b357600080fd5b505afa1580156115c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115eb9190612858565b90506001600160a01b0381166116435760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f7420657869737400000060448201526064016104e2565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561168057600080fd5b505af1158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190612858565b905060005b855181101561173b576116f7828783815181106116ea57634e487b7160e01b600052603260045260246000fd5b602002602001015161216f565b611729828488848151811061171c57634e487b7160e01b600052603260045260246000fd5b602002602001015161248c565b8061173381612f6d565b9150506116bd565b5060606000836001600160a01b0316633d5d190c88846040518363ffffffff1660e01b815260040161176e929190612d94565b602060405180830381600087803b15801561178857600080fd5b505af115801561179c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c09190612aca565b90506000846001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117ff57600080fd5b505af1158015611813573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118379190612aca565b6118419083612f07565b611853670de0b6b3a764000084612f07565b61185d9190612f26565b6040516370a0823160e01b81523060048201529091506001600160a01b038616906370a082319060240160206040518083038186803b15801561189f57600080fd5b505afa1580156118b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d79190612aca565b81146119255760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e636560448201526064016104e2565b9395509293505050505b9250929050565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018590526060919087169063095ea7b390604401602060405180830381600087803b1580156119a457600080fd5b505af11580156119b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119dc9190612a82565b506040517f38ed17390000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906338ed173990611a4f9088908a908990899030904290600401612e27565b600060405180830381600087803b158015611a6957600080fd5b505af1158015611a7d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611aa591908101906129ef565b979650505050505050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638803dbee8787878730426040518763ffffffff1660e01b8152600401611a4f96959493929190612e27565b6040516340d1b7db60e11b8152600481018590526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906381a36fb69060240160206040518083038186803b158015611b6d57600080fd5b505afa158015611b81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba59190612858565b90506001600160a01b038116611bfd5760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f7420657869737400000060448201526064016104e2565b6040517f9d54def60000000000000000000000000000000000000000000000000000000081526001600160a01b03821690639d54def690611c4690879087908790600401612df5565b600060405180830381600087803b158015611c6057600080fd5b505af1158015611c74573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c9c91908101906129ef565b505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166381a36fb6876040518263ffffffff1660e01b8152600401611d5f91815260200190565b60206040518083038186803b158015611d7757600080fd5b505afa158015611d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611daf9190612858565b90506001600160a01b038116611e075760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f7420657869737400000060448201526064016104e2565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611e4457600080fd5b505af1158015611e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7c9190612858565b6040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081529091506001600160a01b03821690632eb2c2d690611eca90339030908b908b90600401612d3c565b600060405180830381600087803b158015611ee457600080fd5b505af1158015611ef8573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038581166004830152600160248301528416925063a22cb4659150604401600060405180830381600087803b158015611f4657600080fd5b505af1158015611f5a573d6000803e3d6000fd5b50506040517f3d5d190c000000000000000000000000000000000000000000000000000000008152600092506001600160a01b0385169150633d5d190c90611fa8908a908a90600401612d94565b602060405180830381600087803b158015611fc257600080fd5b505af1158015611fd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffa9190612aca565b9050600081846001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561203a57600080fd5b505af115801561204e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120729190612aca565b61207c9190612f07565b61208e670de0b6b3a764000084612f07565b6120989190612f26565b6040516370a0823160e01b81523060048201529091506001600160a01b038516906370a082319060240160206040518083038186803b1580156120da57600080fd5b505afa1580156120ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121129190612aca565b81146121605760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e636560448201526064016104e2565b92989297509195505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b0385168314156121f6576040513360248201523060448201526064810185905260840160408051601f198184030181529190526020810180516001600160e01b03166323b872dd60e01b1790529050612400565b816001600160a01b0316856001600160a01b031614156123a15760008460405160240161222591815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167f58178168000000000000000000000000000000000000000000000000000000001790525190915060009081906001600160a01b03891690612287908590612d20565b600060405180830381855afa9150503d80600081146122c2576040519150601f19603f3d011682016040523d82523d6000602084013e6122c7565b606091505b50915091506000818060200190518101906122e29190612858565b90508280156122f957506001600160a01b03811633145b6123455760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420746865206f776e65720000000000000000000000000000000000000060448201526064016104e2565b6040516024810189905260440160408051601f198184030181529190526020810180516001600160e01b03167f8264fe980000000000000000000000000000000000000000000000000000000017905294506124009350505050565b6040513360248201523060448201526064810185905260840160408051601f198184030181529190526020810180516001600160e01b03167f42842e0e0000000000000000000000000000000000000000000000000000000017905290505b600080866001600160a01b03168360405161241b9190612d20565b6000604051808303816000865af19150503d8060008114612458576040519150601f19603f3d011682016040523d82523d6000602084013e61245d565b606091505b50915091508181906124825760405162461bcd60e51b81526004016104e29190612dc2565b5050505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b038616831415612516576040516001600160a01b03861660248201526044810185905260640160408051601f198184030181529190526020810180516001600160e01b031663095ea7b360e01b179052905061268b565b816001600160a01b0316866001600160a01b0316141561259d5760405160248101859052600060448201526001600160a01b038616606482015260840160408051601f198184030181529190526020810180516001600160e01b03167fbf31196f00000000000000000000000000000000000000000000000000000000179052905061268b565b6040517fe985e9c50000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03868116602483015287169063e985e9c59060440160206040518083038186803b1580156125fd57600080fd5b505afa158015612611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126359190612a82565b1561264257505050505050565b6040516001600160a01b03861660248201526001604482015260640160408051601f198184030181529190526020810180516001600160e01b031663a22cb46560e01b17905290505b600080876001600160a01b0316836040516126a69190612d20565b6000604051808303816000865af19150503d80600081146126e3576040519150601f19603f3d011682016040523d82523d6000602084013e6126e8565b606091505b509150915081819061270d5760405162461bcd60e51b81526004016104e29190612dc2565b505050505050505050565b60008083601f840112612729578182fd5b50813567ffffffffffffffff811115612740578182fd5b6020830191508360208260051b850101111561192f57600080fd5b600082601f83011261276b578081fd5b8135602061278061277b83612ecb565b612e9a565b80838252828201915082860187848660051b890101111561279f578586fd5b855b858110156127bd578135845292840192908401906001016127a1565b5090979650505050505050565b600082601f8301126127da578081fd5b813567ffffffffffffffff8111156127f4576127f4612f9e565b612807601f8201601f1916602001612e9a565b81815284602083860101111561281b578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612846578081fd5b813561285181612fb4565b9392505050565b600060208284031215612869578081fd5b815161285181612fb4565b600080600080600060a0868803121561288b578081fd5b853561289681612fb4565b945060208601356128a681612fb4565b9350604086013567ffffffffffffffff808211156128c2578283fd5b6128ce89838a0161275b565b945060608801359150808211156128e3578283fd5b6128ef89838a0161275b565b93506080880135915080821115612904578283fd5b50612911888289016127ca565b9150509295509295909350565b60008060008060808587031215612933578384fd5b843561293e81612fb4565b9350602085013561294e81612fb4565b925060408501359150606085013567ffffffffffffffff811115612970578182fd5b61297c878288016127ca565b91505092959194509250565b600080600080600060a0868803121561299f578081fd5b85356129aa81612fb4565b945060208601356129ba81612fb4565b93506040860135925060608601359150608086013567ffffffffffffffff8111156129e3578182fd5b612911888289016127ca565b60006020808385031215612a01578182fd5b825167ffffffffffffffff811115612a17578283fd5b8301601f81018513612a27578283fd5b8051612a3561277b82612ecb565b80828252848201915084840188868560051b8701011115612a54578687fd5b8694505b83851015612a76578051835260019490940193918501918501612a58565b50979650505050505050565b600060208284031215612a93578081fd5b81518015158114612851578182fd5b600060208284031215612ab3578081fd5b81356001600160e01b031981168114612851578182fd5b600060208284031215612adb578081fd5b5051919050565b600080600080600080600060c0888a031215612afc578485fd5b87359650602088013567ffffffffffffffff80821115612b1a578687fd5b612b268b838c0161275b565b975060408a0135915080821115612b3b578687fd5b612b478b838c0161275b565b965060608a0135955060808a0135915080821115612b63578384fd5b50612b708a828b01612718565b90945092505060a0880135612b8481612fb4565b8091505092959891949750929550565b60008060008060008060a08789031215612bac578384fd5b86359550602087013567ffffffffffffffff80821115612bca578586fd5b612bd68a838b0161275b565b9650604089013595506060890135915080821115612bf2578384fd5b50612bff89828a01612718565b9094509250506080870135612c1381612fb4565b809150509295509295509295565b60008060008060008060a08789031215612c39578384fd5b8635955060208701359450604087013567ffffffffffffffff80821115612c5e578586fd5b612c6a8a838b0161275b565b95506060890135915080821115612bf2578384fd5b600080600080600080600060c0888a031215612c99578081fd5b8735965060208801359550604088013567ffffffffffffffff80821115612cbe578283fd5b612cca8b838c0161275b565b965060608a0135955060808a0135915080821115612b63578283fd5b6000815180845260208085019450808401835b83811015612d1557815187529582019590820190600101612cf9565b509495945050505050565b60008251612d32818460208701612f3d565b9190910192915050565b60006001600160a01b03808716835280861660208401525060a06040830152612d6860a0830185612ce6565b8281036060840152612d7a8185612ce6565b838103608090940193909352508152602001949350505050565b604081526000612da76040830185612ce6565b8281036020840152612db98185612ce6565b95945050505050565b6020815260008251806020840152612de1816040850160208701612f3d565b601f01601f19169190910160400192915050565b838152606060208201526000612e0e6060830185612ce6565b90506001600160a01b0383166040830152949350505050565b868152602080820187905260a0604083018190528201859052600090869060c08401835b88811015612e79578335612e5e81612fb4565b6001600160a01b031682529282019290820190600101612e4b565b506001600160a01b0396909616606085015250505060800152949350505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715612ec357612ec3612f9e565b604052919050565b600067ffffffffffffffff821115612ee557612ee5612f9e565b5060051b60200190565b60008219821115612f0257612f02612f88565b500190565b6000816000190483118215151615612f2157612f21612f88565b500290565b600082821015612f3857612f38612f88565b500390565b60005b83811015612f58578181015183820152602001612f40565b83811115612f67576000848401525b50505050565b6000600019821415612f8157612f81612f88565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461154557600080fdfea264697066735822122027ca2693ac45fc463e561ac360712d17d24f2e1ebd8f0af74851b7921a5ac64c64736f6c63430008040033000000000000000000000000be86f647b167567525ccaafcd6f881f1ee558216000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Deployed Bytecode
0x6080604052600436106101125760003560e01c80638da5cb5b116100a5578063ab3a412111610074578063bc197c8111610059578063bc197c8114610380578063f23a6e61146103c5578063f2fde38b1461040a57600080fd5b8063ab3a41211461032c578063ad5c46481461034c57600080fd5b80638da5cb5b1461029a578063929bf3d3146102b85780639bf1401c146102d8578063a02716171461030c57600080fd5b80635ee50f88116100e15780635ee50f88146101f25780636d13582c1461023e578063715018a6146102725780637fc824841461028757600080fd5b806301ffc9a71461011e5780630956642b14610153578063150b7a02146101755780634447d888146101d257600080fd5b3661011957005b600080fd5b34801561012a57600080fd5b5061013e610139366004612aa2565b61042a565b60405190151581526020015b60405180910390f35b34801561015f57600080fd5b5061017361016e366004612b94565b610493565b005b34801561018157600080fd5b506101b961019036600461291e565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b0319909116815260200161014a565b3480156101de57600080fd5b506101736101ed366004612c7f565b610723565b3480156101fe57600080fd5b506102267f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee55821681565b6040516001600160a01b03909116815260200161014a565b34801561024a57600080fd5b506102267f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b34801561027e57600080fd5b50610173610b80565b610173610295366004612c21565b610bf5565b3480156102a657600080fd5b506000546001600160a01b0316610226565b3480156102c457600080fd5b506101736102d3366004612b94565b610f1a565b3480156102e457600080fd5b506102267f000000000000000000000000688c3e4658b5367da06fd629e41879beab538e3781565b34801561031857600080fd5b50610173610327366004612ae2565b6110f4565b34801561033857600080fd5b50610173610347366004612ae2565b6111dd565b34801561035857600080fd5b506102267f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561038c57600080fd5b506101b961039b366004612874565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b3480156103d157600080fd5b506101b96103e0366004612988565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561041657600080fd5b50610173610425366004612835565b611457565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061048d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600260015414156104eb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001556001600160a01b03811661050357600080fd5b845161050e57600080fd5b60008061051b8888611548565b91509150600061052e8388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a08231906024015b60206040518083038186803b15801561059457600080fd5b505afa1580156105a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cc9190612aca565b604051632e1a7d4d60e01b8152600481018290529091507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561063157600080fd5b505af1158015610645573d6000803e3d6000fd5b505050506000856001600160a01b03168260405160006040518083038185875af1925050503d8060008114610696576040519150601f19603f3d011682016040523d82523d6000602084013e61069b565b606091505b50509050806107125760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104e2565b505060018055505050505050505050565b600260015414156107765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b03811661078e57600080fd5b8561079857600080fd5b6040516323b872dd60e01b8152336004820152306024820152604481018590527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561080657600080fd5b505af115801561081a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083e9190612a82565b506040516340d1b7db60e11b8152600481018890526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b1580156108a257600080fd5b505afa1580156108b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190612858565b905060008651886108eb9190612f26565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561092657600080fd5b505af115801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190612aca565b6109689190612f07565b8751836001600160a01b031663feb8eba56040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156109a557600080fd5b505af11580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190612aca565b6109e79190612f07565b6109f19190612eef565b90506000610a1e8383610a0c670de0b6b3a76400008d612f07565b610a169190612eef565b898989611ab0565b9050610a2c8a8a8a87611b0a565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a08231906024015b60206040518083038186803b158015610a8f57600080fd5b505afa158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190612aca565b60405163a9059cbb60e01b81526001600160a01b038781166004830152602482018390529192507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29091169063a9059cbb90604401602060405180830381600087803b158015610b3657600080fd5b505af1158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6e9190612a82565b50506001805550505050505050505050565b33610b936000546001600160a01b031690565b6001600160a01b031614610be95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e2565b610bf36000611ca4565b565b60026001541415610c485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b038116610c6057600080fd5b84610c6a57600080fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610cc557600080fd5b505af1158015610cd9573d6000803e3d6000fd5b50506040516340d1b7db60e11b8152600481018a9052600093507f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b031692506381a36fb6915060240160206040518083038186803b158015610d4157600080fd5b505afa158015610d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d799190612858565b90506000855187610d8a9190612f26565b826001600160a01b031663f7fce3346040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610dc557600080fd5b505af1158015610dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfd9190612aca565b610e079190612f07565b8651836001600160a01b031663feb8eba56040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e4457600080fd5b505af1158015610e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7c9190612aca565b610e869190612f07565b610e909190612eef565b90506000610ebd8383610eab670de0b6b3a76400008c612f07565b610eb59190612eef565b348989611ab0565b9050610ecb89898987611b0a565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a082319060240161057c565b60026001541415610f6d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b038116610f8557600080fd5b8451610f9057600080fd5b600080610f9d8888611548565b915091506000610fb08388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a082319060240160206040518083038186803b15801561101557600080fd5b505afa158015611029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104d9190612aca565b60405163a9059cbb60e01b81526001600160a01b038781166004830152602482018390529192507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29091169063a9059cbb90604401602060405180830381600087803b1580156110bc57600080fd5b505af11580156110d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107129190612a82565b600260015414156111475760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b03811661115f57600080fd5b855161116a57600080fd5b600080611178898989611d0c565b91509150600061118b8388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a0823190602401610a77565b600260015414156112305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e2565b60026001556001600160a01b03811661124857600080fd5b855161125357600080fd5b600080611261898989611d0c565b9150915060006112748388848989611936565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a082319060240160206040518083038186803b1580156112d957600080fd5b505afa1580156112ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113119190612aca565b604051632e1a7d4d60e01b8152600481018290529091507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561137657600080fd5b505af115801561138a573d6000803e3d6000fd5b505050506000856001600160a01b03168260405160006040518083038185875af1925050503d80600081146113db576040519150601f19603f3d011682016040523d82523d6000602084013e6113e0565b606091505b5050905080610b6e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104e2565b3361146a6000546001600160a01b031690565b6001600160a01b0316146114c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e2565b6001600160a01b03811661153c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104e2565b61154581611ca4565b50565b60008060007f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b03166381a36fb6866040518263ffffffff1660e01b815260040161159b91815260200190565b60206040518083038186803b1580156115b357600080fd5b505afa1580156115c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115eb9190612858565b90506001600160a01b0381166116435760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f7420657869737400000060448201526064016104e2565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561168057600080fd5b505af1158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190612858565b905060005b855181101561173b576116f7828783815181106116ea57634e487b7160e01b600052603260045260246000fd5b602002602001015161216f565b611729828488848151811061171c57634e487b7160e01b600052603260045260246000fd5b602002602001015161248c565b8061173381612f6d565b9150506116bd565b5060606000836001600160a01b0316633d5d190c88846040518363ffffffff1660e01b815260040161176e929190612d94565b602060405180830381600087803b15801561178857600080fd5b505af115801561179c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c09190612aca565b90506000846001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117ff57600080fd5b505af1158015611813573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118379190612aca565b6118419083612f07565b611853670de0b6b3a764000084612f07565b61185d9190612f26565b6040516370a0823160e01b81523060048201529091506001600160a01b038616906370a082319060240160206040518083038186803b15801561189f57600080fd5b505afa1580156118b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d79190612aca565b81146119255760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e636560448201526064016104e2565b9395509293505050505b9250929050565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81166004830152602482018590526060919087169063095ea7b390604401602060405180830381600087803b1580156119a457600080fd5b505af11580156119b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119dc9190612a82565b506040517f38ed17390000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f16906338ed173990611a4f9088908a908990899030904290600401612e27565b600060405180830381600087803b158015611a6957600080fd5b505af1158015611a7d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611aa591908101906129ef565b979650505050505050565b606060007f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b0316638803dbee8787878730426040518763ffffffff1660e01b8152600401611a4f96959493929190612e27565b6040516340d1b7db60e11b8152600481018590526000907f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b0316906381a36fb69060240160206040518083038186803b158015611b6d57600080fd5b505afa158015611b81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba59190612858565b90506001600160a01b038116611bfd5760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f7420657869737400000060448201526064016104e2565b6040517f9d54def60000000000000000000000000000000000000000000000000000000081526001600160a01b03821690639d54def690611c4690879087908790600401612df5565b600060405180830381600087803b158015611c6057600080fd5b505af1158015611c74573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c9c91908101906129ef565b505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060007f000000000000000000000000be86f647b167567525ccaafcd6f881f1ee5582166001600160a01b03166381a36fb6876040518263ffffffff1660e01b8152600401611d5f91815260200190565b60206040518083038186803b158015611d7757600080fd5b505afa158015611d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611daf9190612858565b90506001600160a01b038116611e075760405162461bcd60e51b815260206004820152601d60248201527f4e4654585a61703a205661756c7420646f6573206e6f7420657869737400000060448201526064016104e2565b6000816001600160a01b0316631ba46cfd6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611e4457600080fd5b505af1158015611e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7c9190612858565b6040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081529091506001600160a01b03821690632eb2c2d690611eca90339030908b908b90600401612d3c565b600060405180830381600087803b158015611ee457600080fd5b505af1158015611ef8573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038581166004830152600160248301528416925063a22cb4659150604401600060405180830381600087803b158015611f4657600080fd5b505af1158015611f5a573d6000803e3d6000fd5b50506040517f3d5d190c000000000000000000000000000000000000000000000000000000008152600092506001600160a01b0385169150633d5d190c90611fa8908a908a90600401612d94565b602060405180830381600087803b158015611fc257600080fd5b505af1158015611fd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffa9190612aca565b9050600081846001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561203a57600080fd5b505af115801561204e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120729190612aca565b61207c9190612f07565b61208e670de0b6b3a764000084612f07565b6120989190612f26565b6040516370a0823160e01b81523060048201529091506001600160a01b038516906370a082319060240160206040518083038186803b1580156120da57600080fd5b505afa1580156120ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121129190612aca565b81146121605760405162461bcd60e51b815260206004820181905260248201527f446964206e6f7420726563656976652065787065637465642062616c616e636560448201526064016104e2565b92989297509195505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b0385168314156121f6576040513360248201523060448201526064810185905260840160408051601f198184030181529190526020810180516001600160e01b03166323b872dd60e01b1790529050612400565b816001600160a01b0316856001600160a01b031614156123a15760008460405160240161222591815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167f58178168000000000000000000000000000000000000000000000000000000001790525190915060009081906001600160a01b03891690612287908590612d20565b600060405180830381855afa9150503d80600081146122c2576040519150601f19603f3d011682016040523d82523d6000602084013e6122c7565b606091505b50915091506000818060200190518101906122e29190612858565b90508280156122f957506001600160a01b03811633145b6123455760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420746865206f776e65720000000000000000000000000000000000000060448201526064016104e2565b6040516024810189905260440160408051601f198184030181529190526020810180516001600160e01b03167f8264fe980000000000000000000000000000000000000000000000000000000017905294506124009350505050565b6040513360248201523060448201526064810185905260840160408051601f198184030181529190526020810180516001600160e01b03167f42842e0e0000000000000000000000000000000000000000000000000000000017905290505b600080866001600160a01b03168360405161241b9190612d20565b6000604051808303816000865af19150503d8060008114612458576040519150601f19603f3d011682016040523d82523d6000602084013e61245d565b606091505b50915091508181906124825760405162461bcd60e51b81526004016104e29190612dc2565b5050505050505050565b7306012c8cf97bead5deae237070f9587f8e7a266d73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb60606001600160a01b038616831415612516576040516001600160a01b03861660248201526044810185905260640160408051601f198184030181529190526020810180516001600160e01b031663095ea7b360e01b179052905061268b565b816001600160a01b0316866001600160a01b0316141561259d5760405160248101859052600060448201526001600160a01b038616606482015260840160408051601f198184030181529190526020810180516001600160e01b03167fbf31196f00000000000000000000000000000000000000000000000000000000179052905061268b565b6040517fe985e9c50000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03868116602483015287169063e985e9c59060440160206040518083038186803b1580156125fd57600080fd5b505afa158015612611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126359190612a82565b1561264257505050505050565b6040516001600160a01b03861660248201526001604482015260640160408051601f198184030181529190526020810180516001600160e01b031663a22cb46560e01b17905290505b600080876001600160a01b0316836040516126a69190612d20565b6000604051808303816000865af19150503d80600081146126e3576040519150601f19603f3d011682016040523d82523d6000602084013e6126e8565b606091505b509150915081819061270d5760405162461bcd60e51b81526004016104e29190612dc2565b505050505050505050565b60008083601f840112612729578182fd5b50813567ffffffffffffffff811115612740578182fd5b6020830191508360208260051b850101111561192f57600080fd5b600082601f83011261276b578081fd5b8135602061278061277b83612ecb565b612e9a565b80838252828201915082860187848660051b890101111561279f578586fd5b855b858110156127bd578135845292840192908401906001016127a1565b5090979650505050505050565b600082601f8301126127da578081fd5b813567ffffffffffffffff8111156127f4576127f4612f9e565b612807601f8201601f1916602001612e9a565b81815284602083860101111561281b578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612846578081fd5b813561285181612fb4565b9392505050565b600060208284031215612869578081fd5b815161285181612fb4565b600080600080600060a0868803121561288b578081fd5b853561289681612fb4565b945060208601356128a681612fb4565b9350604086013567ffffffffffffffff808211156128c2578283fd5b6128ce89838a0161275b565b945060608801359150808211156128e3578283fd5b6128ef89838a0161275b565b93506080880135915080821115612904578283fd5b50612911888289016127ca565b9150509295509295909350565b60008060008060808587031215612933578384fd5b843561293e81612fb4565b9350602085013561294e81612fb4565b925060408501359150606085013567ffffffffffffffff811115612970578182fd5b61297c878288016127ca565b91505092959194509250565b600080600080600060a0868803121561299f578081fd5b85356129aa81612fb4565b945060208601356129ba81612fb4565b93506040860135925060608601359150608086013567ffffffffffffffff8111156129e3578182fd5b612911888289016127ca565b60006020808385031215612a01578182fd5b825167ffffffffffffffff811115612a17578283fd5b8301601f81018513612a27578283fd5b8051612a3561277b82612ecb565b80828252848201915084840188868560051b8701011115612a54578687fd5b8694505b83851015612a76578051835260019490940193918501918501612a58565b50979650505050505050565b600060208284031215612a93578081fd5b81518015158114612851578182fd5b600060208284031215612ab3578081fd5b81356001600160e01b031981168114612851578182fd5b600060208284031215612adb578081fd5b5051919050565b600080600080600080600060c0888a031215612afc578485fd5b87359650602088013567ffffffffffffffff80821115612b1a578687fd5b612b268b838c0161275b565b975060408a0135915080821115612b3b578687fd5b612b478b838c0161275b565b965060608a0135955060808a0135915080821115612b63578384fd5b50612b708a828b01612718565b90945092505060a0880135612b8481612fb4565b8091505092959891949750929550565b60008060008060008060a08789031215612bac578384fd5b86359550602087013567ffffffffffffffff80821115612bca578586fd5b612bd68a838b0161275b565b9650604089013595506060890135915080821115612bf2578384fd5b50612bff89828a01612718565b9094509250506080870135612c1381612fb4565b809150509295509295509295565b60008060008060008060a08789031215612c39578384fd5b8635955060208701359450604087013567ffffffffffffffff80821115612c5e578586fd5b612c6a8a838b0161275b565b95506060890135915080821115612bf2578384fd5b600080600080600080600060c0888a031215612c99578081fd5b8735965060208801359550604088013567ffffffffffffffff80821115612cbe578283fd5b612cca8b838c0161275b565b965060608a0135955060808a0135915080821115612b63578283fd5b6000815180845260208085019450808401835b83811015612d1557815187529582019590820190600101612cf9565b509495945050505050565b60008251612d32818460208701612f3d565b9190910192915050565b60006001600160a01b03808716835280861660208401525060a06040830152612d6860a0830185612ce6565b8281036060840152612d7a8185612ce6565b838103608090940193909352508152602001949350505050565b604081526000612da76040830185612ce6565b8281036020840152612db98185612ce6565b95945050505050565b6020815260008251806020840152612de1816040850160208701612f3d565b601f01601f19169190910160400192915050565b838152606060208201526000612e0e6060830185612ce6565b90506001600160a01b0383166040830152949350505050565b868152602080820187905260a0604083018190528201859052600090869060c08401835b88811015612e79578335612e5e81612fb4565b6001600160a01b031682529282019290820190600101612e4b565b506001600160a01b0396909616606085015250505060800152949350505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715612ec357612ec3612f9e565b604052919050565b600067ffffffffffffffff821115612ee557612ee5612f9e565b5060051b60200190565b60008219821115612f0257612f02612f88565b500190565b6000816000190483118215151615612f2157612f21612f88565b500290565b600082821015612f3857612f38612f88565b500390565b60005b83811015612f58578181015183820152602001612f40565b83811115612f67576000848401525b50505050565b6000600019821415612f8157612f81612f88565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461154557600080fdfea264697066735822122027ca2693ac45fc463e561ac360712d17d24f2e1ebd8f0af74851b7921a5ac64c64736f6c63430008040033
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
Deployed Bytecode Sourcemap
47461:16923:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35822:269;;;;;;;;;;-1:-1:-1;35822:269:0;;;;;:::i;:::-;;:::i;:::-;;;15174:14:1;;15167:22;15149:41;;15137:2;15122:18;35822:269:0;;;;;;;;48286:660;;;;;;;;;;-1:-1:-1;48286:660:0;;;;;:::i;:::-;;:::i;:::-;;31834:207;;;;;;;;;;-1:-1:-1;31834:207:0;;;;;:::i;:::-;32003:30;31834:207;;;;;;;;;;-1:-1:-1;;;;;;15363:79:1;;;15345:98;;15333:2;15318:18;31834:207:0;15300:149:1;54949:818:0;;;;;;;;;;-1:-1:-1;54949:818:0;;;;;:::i;:::-;;:::i;47652:46::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12203:55:1;;;12185:74;;12173:2;12158:18;47652:46:0;12140:125:1;47703:47:0;;;;;;;;;;;;;;;46832:94;;;;;;;;;;;;;:::i;54054:889::-;;;;;;:::i;:::-;;:::i;46183:87::-;;;;;;;;;;-1:-1:-1;46229:7:0;46256:6;-1:-1:-1;;;;;46256:6:0;46183:87;;48952:494;;;;;;;;;;-1:-1:-1;48952:494:0;;;;;:::i;:::-;;:::i;47606:41::-;;;;;;;;;;;;;;;56491:546;;;;;;;;;;-1:-1:-1;56491:546:0;;;;;:::i;:::-;;:::i;55773:712::-;;;;;;;;;;-1:-1:-1;55773:712:0;;;;;:::i;:::-;;:::i;47573:27::-;;;;;;;;;;;;;;;36498:203;;;;;;;;;;-1:-1:-1;36498:203:0;;;;;:::i;:::-;36657:36;36498:203;;;;;;;;36315:175;;;;;;;;;;-1:-1:-1;36315:175:0;;;;;:::i;:::-;36451:31;36315:175;;;;;;;;47081:192;;;;;;;;;;-1:-1:-1;47081:192:0;;;;;:::i;:::-;;:::i;35822:269::-;35946:4;-1:-1:-1;;;;;;35970:60:0;;35985:45;35970:60;;:113;;-1:-1:-1;35464:36:0;-1:-1:-1;;;;;;35449:51:0;;;36047:36;35963:120;35822:269;-1:-1:-1;;35822:269:0:o;48286:660::-;44341:1;44937:7;;:19;;44929:63;;;;-1:-1:-1;;;44929:63:0;;19312:2:1;44929:63:0;;;19294:21:1;19351:2;19331:18;;;19324:30;19390:33;19370:18;;;19363:61;19441:18;;44929:63:0;;;;;;;;;44341:1;45070:7;:18;-1:-1:-1;;;;;48474:16:0;::::1;48466:25;;;::::0;::::1;;48506:10:::0;;48498:24:::1;;;::::0;::::1;;48530:13;48545:20:::0;48569:22:::1;48578:7;48587:3;48569:8;:22::i;:::-;48529:62;;;;48598:24;48625:54;48641:5;48648:10;48660:12;48674:4;;48625:15;:54::i;:::-;48731:29;::::0;-1:-1:-1;;;48731:29:0;;48754:4:::1;48731:29;::::0;::::1;12185:74:1::0;48598:81:0;;-1:-1:-1;48711:17:0::1;::::0;-1:-1:-1;;;;;48731:4:0::1;:14;::::0;::::1;::::0;12158:18:1;;48731:29:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48767:24;::::0;-1:-1:-1;;;48767:24:0;;::::1;::::0;::::1;19616:25:1::0;;;48711:49:0;;-1:-1:-1;48767:4:0::1;-1:-1:-1::0;;;;;48767:13:0::1;::::0;::::1;::::0;19589:18:1;;48767:24:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;48799:12;48825:2;-1:-1:-1::0;;;;;48817:16:0::1;48841:9;48817:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48798:57;;;48870:7;48862:78;;;::::0;-1:-1:-1;;;48862:78:0;;17463:2:1;48862:78:0::1;::::0;::::1;17445:21:1::0;17502:2;17482:18;;;17475:30;17541:34;17521:18;;;17514:62;17612:28;17592:18;;;17585:56;17658:19;;48862:78:0::1;17435:248:1::0;48862:78:0::1;-1:-1:-1::0;;44297:1:0;45249:22;;-1:-1:-1;;;;;;;;;48286:660:0:o;54949:818::-;44341:1;44937:7;;:19;;44929:63;;;;-1:-1:-1;;;44929:63:0;;19312:2:1;44929:63:0;;;19294:21:1;19351:2;19331:18;;;19324:30;19390:33;19370:18;;;19363:61;19441:18;;44929:63:0;19284:181:1;44929:63:0;44341:1;45070:7;:18;-1:-1:-1;;;;;55167:16:0;::::1;55159:25;;;::::0;::::1;;55199:11:::0;55191:20:::1;;;::::0;::::1;;55218:83;::::0;-1:-1:-1;;;55218:83:0;;55264:10:::1;55218:83;::::0;::::1;13785:34:1::0;55284:4:0::1;13835:18:1::0;;;13828:43;13887:18;;;13880:34;;;55244:4:0::1;-1:-1:-1::0;;;;;55218:45:0::1;::::0;::::1;::::0;13697:18:1;;55218:83:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;55338:26:0::1;::::0;-1:-1:-1;;;55338:26:0;;::::1;::::0;::::1;19616:25:1::0;;;55308:16:0::1;::::0;55338:11:::1;-1:-1:-1::0;;;;;55338:17:0::1;::::0;::::1;::::0;19589:18:1;;55338:26:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55308:57;;55372:16;55487:11;:18;55478:6;:27;;;;:::i;:::-;55451:5;-1:-1:-1::0;;;;;55451:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:55;;;;:::i;:::-;55418:11;:18;55392:5;-1:-1:-1::0;;;;;55392:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;;;:::i;:::-;55391:122;;;;:::i;:::-;55372:141:::0;-1:-1:-1;55520:24:0::1;55547:73;55570:5:::0;55372:141;55579:11:::1;47781:6;55579::::0;:11:::1;:::i;:::-;55578:24;;;;:::i;:::-;55604:9;55615:4;;55547:14;:73::i;:::-;55520:100;;55627:41;55635:7;55644:6;55652:11;55665:2;55627:7;:41::i;:::-;55697:29;::::0;-1:-1:-1;;;55697:29:0;;55720:4:::1;55697:29;::::0;::::1;12185:74:1::0;55677:17:0::1;::::0;55697:4:::1;-1:-1:-1::0;;;;;55697:14:0::1;::::0;::::1;::::0;12158:18:1;;55697:29:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55733:28;::::0;-1:-1:-1;;;55733:28:0;;-1:-1:-1;;;;;14429:55:1;;;55733:28:0::1;::::0;::::1;14411:74:1::0;14501:18;;;14494:34;;;55677:49:0;;-1:-1:-1;55733:4:0::1;:13:::0;;::::1;::::0;::::1;::::0;14384:18:1;;55733:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;44297:1:0;45249:22;;-1:-1:-1;;;;;;;;;;54949:818:0:o;46832:94::-;46414:10;46403:7;46229;46256:6;-1:-1:-1;;;;;46256:6:0;;46183:87;46403:7;-1:-1:-1;;;;;46403:21:0;;46395:66;;;;-1:-1:-1;;;46395:66:0;;18232:2:1;46395:66:0;;;18214:21:1;;;18251:18;;;18244:30;18310:34;18290:18;;;18283:62;18362:18;;46395:66:0;18204:182:1;46395:66:0;46897:21:::1;46915:1;46897:9;:21::i;:::-;46832:94::o:0;54054:889::-;44341:1;44937:7;;:19;;44929:63;;;;-1:-1:-1;;;44929:63:0;;19312:2:1;44929:63:0;;;19294:21:1;19351:2;19331:18;;;19324:30;19390:33;19370:18;;;19363:61;19441:18;;44929:63:0;19284:181:1;44929:63:0;44341:1;45070:7;:18;-1:-1:-1;;;;;54251:16:0;::::1;54243:25;;;::::0;::::1;;54283:11:::0;54275:20:::1;;;::::0;::::1;;54302:4;-1:-1:-1::0;;;;;54302:12:0::1;;54322:9;54302:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;54371:26:0::1;::::0;-1:-1:-1;;;54371:26:0;;::::1;::::0;::::1;19616:25:1::0;;;54341:16:0::1;::::0;-1:-1:-1;54371:11:0::1;-1:-1:-1::0;;;;;54371:17:0::1;::::0;-1:-1:-1;54371:17:0::1;::::0;-1:-1:-1;19589:18:1;;54371:26:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54341:57;;54405:16;54520:11;:18;54511:6;:27;;;;:::i;:::-;54484:5;-1:-1:-1::0;;;;;54484:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:55;;;;:::i;:::-;54451:11;:18;54425:5;-1:-1:-1::0;;;;;54425:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;;;:::i;:::-;54424:122;;;;:::i;:::-;54405:141:::0;-1:-1:-1;54553:24:0::1;54580:71;54603:5:::0;54405:141;54612:11:::1;47781:6;54612::::0;:11:::1;:::i;:::-;54611:22;;;;:::i;:::-;54635:9;54646:4;;54580:14;:71::i;:::-;54553:98;;54658:41;54666:7;54675:6;54683:11;54696:2;54658:7;:41::i;:::-;54728:29;::::0;-1:-1:-1;;;54728:29:0;;54751:4:::1;54728:29;::::0;::::1;12185:74:1::0;54708:17:0::1;::::0;54728:4:::1;-1:-1:-1::0;;;;;54728:14:0::1;::::0;::::1;::::0;12158:18:1;;54728:29:0::1;12140:125:1::0;48952:494:0;44341:1;44937:7;;:19;;44929:63;;;;-1:-1:-1;;;44929:63:0;;19312:2:1;44929:63:0;;;19294:21:1;19351:2;19331:18;;;19324:30;19390:33;19370:18;;;19363:61;19441:18;;44929:63:0;19284:181:1;44929:63:0;44341:1;45070:7;:18;-1:-1:-1;;;;;49144:16:0;::::1;49136:25;;;::::0;::::1;;49176:10:::0;;49168:24:::1;;;::::0;::::1;;49200:13;49215:20:::0;49239:22:::1;49248:7;49257:3;49239:8;:22::i;:::-;49199:62;;;;49268:24;49295:54;49311:5;49318:10;49330:12;49344:4;;49295:15;:54::i;:::-;49376:29;::::0;-1:-1:-1;;;49376:29:0;;49399:4:::1;49376:29;::::0;::::1;12185:74:1::0;49268:81:0;;-1:-1:-1;49356:17:0::1;::::0;-1:-1:-1;;;;;49376:4:0::1;:14;::::0;::::1;::::0;12158:18:1;;49376:29:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49412:28;::::0;-1:-1:-1;;;49412:28:0;;-1:-1:-1;;;;;14429:55:1;;;49412:28:0::1;::::0;::::1;14411:74:1::0;14501:18;;;14494:34;;;49356:49:0;;-1:-1:-1;49412:4:0::1;:13:::0;;::::1;::::0;::::1;::::0;14384:18:1;;49412:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;56491:546::-:0;44341:1;44937:7;;:19;;44929:63;;;;-1:-1:-1;;;44929:63:0;;19312:2:1;44929:63:0;;;19294:21:1;19351:2;19331:18;;;19324:30;19390:33;19370:18;;;19363:61;19441:18;;44929:63:0;19284:181:1;44929:63:0;44341:1;45070:7;:18;-1:-1:-1;;;;;56715:16:0;::::1;56707:25;;;::::0;::::1;;56747:10:::0;;56739:24:::1;;;::::0;::::1;;56771:13;56786:25:::0;56815:32:::1;56825:7;56834:3;56839:7;56815:9;:32::i;:::-;56770:77;;;;56854:24;56881:59;56897:5;56904:10;56916:17;56935:4;;56881:15;:59::i;:::-;56967:29;::::0;-1:-1:-1;;;56967:29:0;;56990:4:::1;56967:29;::::0;::::1;12185:74:1::0;56854:86:0;;-1:-1:-1;56947:17:0::1;::::0;-1:-1:-1;;;;;56967:4:0::1;:14;::::0;::::1;::::0;12158:18:1;;56967:29:0::1;12140:125:1::0;55773:712:0;44341:1;44937:7;;:19;;44929:63;;;;-1:-1:-1;;;44929:63:0;;19312:2:1;44929:63:0;;;19294:21:1;19351:2;19331:18;;;19324:30;19390:33;19370:18;;;19363:61;19441:18;;44929:63:0;19284:181:1;44929:63:0;44341:1;45070:7;:18;-1:-1:-1;;;;;55993:16:0;::::1;55985:25;;;::::0;::::1;;56025:10:::0;;56017:24:::1;;;::::0;::::1;;56049:13;56064:25:::0;56093:32:::1;56103:7;56112:3;56117:7;56093:9;:32::i;:::-;56048:77;;;;56132:24;56159:59;56175:5;56182:10;56194:17;56213:4;;56159:15;:59::i;:::-;56270:29;::::0;-1:-1:-1;;;56270:29:0;;56293:4:::1;56270:29;::::0;::::1;12185:74:1::0;56132:86:0;;-1:-1:-1;56250:17:0::1;::::0;-1:-1:-1;;;;;56270:4:0::1;:14;::::0;::::1;::::0;12158:18:1;;56270:29:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56306:24;::::0;-1:-1:-1;;;56306:24:0;;::::1;::::0;::::1;19616:25:1::0;;;56250:49:0;;-1:-1:-1;56306:4:0::1;-1:-1:-1::0;;;;;56306:13:0::1;::::0;::::1;::::0;19589:18:1;;56306:24:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;56338:12;56364:2;-1:-1:-1::0;;;;;56356:16:0::1;56380:9;56356:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56337:57;;;56409:7;56401:78;;;::::0;-1:-1:-1;;;56401:78:0;;17463:2:1;56401:78:0::1;::::0;::::1;17445:21:1::0;17502:2;17482:18;;;17475:30;17541:34;17521:18;;;17514:62;17612:28;17592:18;;;17585:56;17658:19;;56401:78:0::1;17435:248:1::0;47081:192:0;46414:10;46403:7;46229;46256:6;-1:-1:-1;;;;;46256:6:0;;46183:87;46403:7;-1:-1:-1;;;;;46403:21:0;;46395:66;;;;-1:-1:-1;;;46395:66:0;;18232:2:1;46395:66:0;;;18214:21:1;;;18251:18;;;18244:30;18310:34;18290:18;;;18283:62;18362:18;;46395:66:0;18204:182:1;46395:66:0;-1:-1:-1;;;;;47170:22:0;::::1;47162:73;;;::::0;-1:-1:-1;;;47162:73:0;;17056:2:1;47162:73:0::1;::::0;::::1;17038:21:1::0;17095:2;17075:18;;;17068:30;17134:34;17114:18;;;17107:62;17205:8;17185:18;;;17178:36;17231:19;;47162:73:0::1;17028:228:1::0;47162:73:0::1;47246:19;47256:8;47246:9;:19::i;:::-;47081:192:::0;:::o;57043:820::-;57134:7;57143;57159:13;57175:11;-1:-1:-1;;;;;57175:17:0;;57193:7;57175:26;;;;;;;;;;;;;19616:25:1;;19604:2;19589:18;;19571:76;57175:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57159:42;-1:-1:-1;;;;;;57216:19:0;;57208:61;;;;-1:-1:-1;;;57208:61:0;;18954:2:1;57208:61:0;;;18936:21:1;18993:2;18973:18;;;18966:30;19032:31;19012:18;;;19005:59;19081:18;;57208:61:0;18926:179:1;57208:61:0;57327:20;57361:5;-1:-1:-1;;;;;57350:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57327:55;;57394:9;57389:149;57413:3;:10;57409:1;:14;57389:149;;;57439:40;57458:12;57472:3;57476:1;57472:6;;;;;;-1:-1:-1;;;57472:6:0;;;;;;;;;;;;;;;57439:18;:40::i;:::-;57488:42;57502:12;57516:5;57523:3;57527:1;57523:6;;;;;;-1:-1:-1;;;57523:6:0;;;;;;;;;;;;;;;57488:13;:42::i;:::-;57425:3;;;;:::i;:::-;;;;57389:149;;;;57544:25;57576:13;57603:5;-1:-1:-1;;;;;57592:22:0;;57615:3;57620:8;57592:37;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57576:53;;57636:15;57691:5;-1:-1:-1;;;;;57680:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57672:35;;:5;:35;:::i;:::-;57655:12;47781:6;57655:5;:12;:::i;:::-;57654:54;;;;:::i;:::-;57735:49;;-1:-1:-1;;;57735:49:0;;57778:4;57735:49;;;12185:74:1;57636:72:0;;-1:-1:-1;;;;;;57735:34:0;;;;;12158:18:1;;57735:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57724:7;:60;57716:105;;;;-1:-1:-1;;;57716:105:0;;18593:2:1;57716:105:0;;;18575:21:1;;;18612:18;;;18605:30;18671:34;18651:18;;;18644:62;18723:18;;57716:105:0;18565:182:1;57716:105:0;57842:5;;-1:-1:-1;57849:7:0;;-1:-1:-1;;;;57043:820:0;;;;;;:::o;60764:446::-;60940:66;;-1:-1:-1;;;60940:66:0;;-1:-1:-1;;;;;60981:11:0;14429:55:1;;60940:66:0;;;14411:74:1;14501:18;;;14494:34;;;60915:16:0;;60940:32;;;;;;14384:18:1;;60940:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;61040:141:0;;;;;61013:24;;-1:-1:-1;;;;;61040:11:0;:36;;;;:141;;61085:10;;61104;;61123:4;;;;61145;;61159:15;;61040:141;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61040:141:0;;;;;;;;;;;;:::i;:::-;61013:168;60764:446;-1:-1:-1;;;;;;;60764:446:0:o;60386:372::-;60536:16;60561:24;60588:11;-1:-1:-1;;;;;60588:36:0;;60633:11;60653:9;60671:4;;60693;60707:15;60588:141;;;;;;;;;;;;;;;;;;;;:::i;59229:308::-;59379:26;;-1:-1:-1;;;59379:26:0;;;;;19616:25:1;;;59363:13:0;;59379:11;-1:-1:-1;;;;;59379:17:0;;;;19589:18:1;;59379:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59363:42;-1:-1:-1;;;;;;59420:19:0;;59412:61;;;;-1:-1:-1;;;59412:61:0;;18954:2:1;59412:61:0;;;18936:21:1;18993:2;18973:18;;;18966:30;19032:31;19012:18;;;19005:59;19081:18;;59412:61:0;18926:179:1;59412:61:0;59480:51;;;;;-1:-1:-1;;;;;59480:26:0;;;;;:51;;59507:6;;59515:11;;59528:2;;59480:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59480:51:0;;;;;;;;;;;;:::i;:::-;;59229:308;;;;;:::o;47281:173::-;47337:16;47356:6;;-1:-1:-1;;;;;47373:17:0;;;;;;;;;;47406:40;;47356:6;;;;;;;47406:40;;47337:16;47406:40;47281:173;;:::o;59543:837::-;59666:7;59675;59691:13;59707:11;-1:-1:-1;;;;;59707:17:0;;59725:7;59707:26;;;;;;;;;;;;;19616:25:1;;19604:2;19589:18;;19571:76;59707:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59691:42;-1:-1:-1;;;;;;59748:19:0;;59740:61;;;;-1:-1:-1;;;59740:61:0;;18954:2:1;59740:61:0;;;18936:21:1;18993:2;18973:18;;;18966:30;19032:31;19012:18;;;19005:59;19081:18;;59740:61:0;18926:179:1;59740:61:0;59859:20;59893:5;-1:-1:-1;;;;;59882:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59921:100;;;;;59859:55;;-1:-1:-1;;;;;;59921:55:0;;;;;:100;;59977:10;;59997:4;;60004:3;;60009:7;;59921:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60028:64:0;;-1:-1:-1;;;60028:64:0;;-1:-1:-1;;;;;14111:55:1;;;60028:64:0;;;14093:74:1;60087:4:0;14183:18:1;;;14176:50;60028:51:0;;;-1:-1:-1;60028:51:0;;-1:-1:-1;14066:18:1;;60028:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60115:36:0;;;;;60099:13;;-1:-1:-1;;;;;;60115:22:0;;;-1:-1:-1;60115:22:0;;:36;;60138:3;;60143:7;;60115:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60099:52;;60158:15;60221:5;60204;-1:-1:-1;;;;;60193:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:33;;;;:::i;:::-;60177:12;47781:6;60177:5;:12;:::i;:::-;60176:50;;;;:::i;:::-;60252:49;;-1:-1:-1;;;60252:49:0;;60295:4;60252:49;;;12185:74:1;60158:68:0;;-1:-1:-1;;;;;;60252:34:0;;;;;12158:18:1;;60252:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60241:7;:60;60233:105;;;;-1:-1:-1;;;60233:105:0;;18593:2:1;60233:105:0;;;18575:21:1;;;18612:18;;;18605:30;18671:34;18651:18;;;18644:62;18723:18;;60233:105:0;18565:182:1;60233:105:0;60359:5;;;;-1:-1:-1;59543:837:0;;-1:-1:-1;;;;;;59543:837:0:o;61216:1239::-;61322:42;61387;61436:17;-1:-1:-1;;;;;61464:20:0;;;;61460:869;;;61531:100;;61596:10;61531:100;;;13785:34:1;61616:4:0;13835:18:1;;;13828:43;13887:18;;;13880:34;;;13697:18;;61531:100:0;;;-1:-1:-1;;61531:100:0;;;;;;;;;;;;;;-1:-1:-1;;;;;61531:100:0;-1:-1:-1;;;61531:100:0;;;;-1:-1:-1;61460:869:0;;;61662:5;-1:-1:-1;;;;;61649:18:0;:9;-1:-1:-1;;;;;61649:18:0;;61645:684;;;61764:31;61853:7;61798:63;;;;;;19616:25:1;;19604:2;19589:18;;19571:76;61798:63:0;;;;-1:-1:-1;;61798:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;61798:63:0;;;;;61915:49;61798:63;;-1:-1:-1;;;;;;;;;;61915:29:0;;;:49;;61798:63;;61915:49;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61872:92;;;;61976:13;62004:6;61993:29;;;;;;;;;;;;:::i;:::-;61975:47;;62041:12;:35;;;;-1:-1:-1;;;;;;62057:19:0;;62066:10;62057:19;62041:35;62033:61;;;;-1:-1:-1;;;62033:61:0;;17890:2:1;62033:61:0;;;17872:21:1;17929:2;17909:18;;;17902:30;17968:15;17948:18;;;17941:43;18001:18;;62033:61:0;17862:163:1;62033:61:0;62112:52;;;;;19616:25:1;;;19589:18;;62112:52:0;;;-1:-1:-1;;62112:52:0;;;;;;;;;;;;;;-1:-1:-1;;;;;62112:52:0;;;;;;-1:-1:-1;61645:684:0;;-1:-1:-1;;;;61645:684:0;;62217:104;;62286:10;62217:104;;;13785:34:1;62306:4:0;13835:18:1;;;13828:43;13887:18;;;13880:34;;;13697:18;;62217:104:0;;;-1:-1:-1;;62217:104:0;;;;;;;;;;;;;;-1:-1:-1;;;;;62217:104:0;;;;;;-1:-1:-1;61645:684:0;62336:12;62350:23;62385:9;-1:-1:-1;;;;;62377:23:0;62401:4;62377:29;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62335:71;;;;62421:7;62437:10;62413:36;;;;;-1:-1:-1;;;62413:36:0;;;;;;;;:::i;:::-;;61216:1239;;;;;;;:::o;62461:916::-;62574:42;62639;62688:17;-1:-1:-1;;;;;62716:20:0;;;;62712:539;;;62783:64;;-1:-1:-1;;;;;14429:55:1;;62783:64:0;;;14411:74:1;14501:18;;;14494:34;;;14384:18;;62783:64:0;;;-1:-1:-1;;62783:64:0;;;;;;;;;;;;;;-1:-1:-1;;;;;62783:64:0;-1:-1:-1;;;62783:64:0;;;;-1:-1:-1;62712:539:0;;;62878:5;-1:-1:-1;;;;;62865:18:0;:9;-1:-1:-1;;;;;62865:18:0;;62861:390;;;62928:93;;;;;20317:25:1;;;63015:1:0;20358:18:1;;;20351:45;-1:-1:-1;;;;;20432:55:1;;20412:18;;;20405:83;20290:18;;62928:93:0;;;-1:-1:-1;;62928:93:0;;;;;;;;;;;;;;-1:-1:-1;;;;;62928:93:0;;;;;;-1:-1:-1;62861:390:0;;;63050:54;;;;;63094:4;63050:54;;;12505:34:1;-1:-1:-1;;;;;12575:15:1;;;12555:18;;;12548:43;63050:35:0;;;;;12417:18:1;;63050:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63046:91;;;63119:7;;;62461:916;;;:::o;63046:91::-;63175:68;;-1:-1:-1;;;;;14111:55:1;;63175:68:0;;;14093:74:1;63238:4:0;14183:18:1;;;14176:50;14066:18;;63175:68:0;;;-1:-1:-1;;63175:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;63175:68:0;-1:-1:-1;;;63175:68:0;;;;-1:-1:-1;62861:390:0;63258:12;63272:23;63307:9;-1:-1:-1;;;;;63299:23:0;63323:4;63299:29;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63257:71;;;;63343:7;63359:10;63335:36;;;;;-1:-1:-1;;;63335:36:0;;;;;;;;:::i;:::-;;62461:916;;;;;;;;:::o;14:395:1:-;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:2;;166:8;156;149:26;108:2;-1:-1:-1;196:20:1;;239:18;228:30;;225:2;;;278:8;268;261:26;225:2;322:4;314:6;310:17;298:29;;382:3;375:4;365:6;362:1;358:14;350:6;346:27;342:38;339:47;336:2;;;399:1;396;389:12;414:693;468:5;521:3;514:4;506:6;502:17;498:27;488:2;;543:5;536;529:20;488:2;583:6;570:20;609:4;633:60;649:43;689:2;649:43;:::i;:::-;633:60;:::i;:::-;715:3;739:2;734:3;727:15;767:2;762:3;758:12;751:19;;802:2;794:6;790:15;854:3;849:2;843;840:1;836:10;828:6;824:23;820:32;817:41;814:2;;;875:5;868;861:20;814:2;901:5;915:163;929:2;926:1;923:9;915:163;;;986:17;;974:30;;1024:12;;;;1056;;;;947:1;940:9;915:163;;;-1:-1:-1;1096:5:1;;478:629;-1:-1:-1;;;;;;;478:629:1:o;1112:550::-;1154:5;1207:3;1200:4;1192:6;1188:17;1184:27;1174:2;;1229:5;1222;1215:20;1174:2;1269:6;1256:20;1295:18;1291:2;1288:26;1285:2;;;1317:18;;:::i;:::-;1361:55;1404:2;1385:13;;-1:-1:-1;;1381:27:1;1410:4;1377:38;1361:55;:::i;:::-;1441:2;1432:7;1425:19;1487:3;1480:4;1475:2;1467:6;1463:15;1459:26;1456:35;1453:2;;;1508:5;1501;1494:20;1453:2;1577;1570:4;1562:6;1558:17;1551:4;1542:7;1538:18;1525:55;1600:16;;;1618:4;1596:27;1589:42;;;;1604:7;1164:498;-1:-1:-1;;1164:498:1:o;1667:257::-;1726:6;1779:2;1767:9;1758:7;1754:23;1750:32;1747:2;;;1800:6;1792;1785:22;1747:2;1844:9;1831:23;1863:31;1888:5;1863:31;:::i;:::-;1913:5;1737:187;-1:-1:-1;;;1737:187:1:o;1929:261::-;1999:6;2052:2;2040:9;2031:7;2027:23;2023:32;2020:2;;;2073:6;2065;2058:22;2020:2;2110:9;2104:16;2129:31;2154:5;2129:31;:::i;2469:1111::-;2623:6;2631;2639;2647;2655;2708:3;2696:9;2687:7;2683:23;2679:33;2676:2;;;2730:6;2722;2715:22;2676:2;2774:9;2761:23;2793:31;2818:5;2793:31;:::i;:::-;2843:5;-1:-1:-1;2900:2:1;2885:18;;2872:32;2913:33;2872:32;2913:33;:::i;:::-;2965:7;-1:-1:-1;3023:2:1;3008:18;;2995:32;3046:18;3076:14;;;3073:2;;;3108:6;3100;3093:22;3073:2;3136:61;3189:7;3180:6;3169:9;3165:22;3136:61;:::i;:::-;3126:71;;3250:2;3239:9;3235:18;3222:32;3206:48;;3279:2;3269:8;3266:16;3263:2;;;3300:6;3292;3285:22;3263:2;3328:63;3383:7;3372:8;3361:9;3357:24;3328:63;:::i;:::-;3318:73;;3444:3;3433:9;3429:19;3416:33;3400:49;;3474:2;3464:8;3461:16;3458:2;;;3495:6;3487;3480:22;3458:2;;3523:51;3566:7;3555:8;3544:9;3540:24;3523:51;:::i;:::-;3513:61;;;2666:914;;;;;;;;:::o;3585:685::-;3680:6;3688;3696;3704;3757:3;3745:9;3736:7;3732:23;3728:33;3725:2;;;3779:6;3771;3764:22;3725:2;3823:9;3810:23;3842:31;3867:5;3842:31;:::i;:::-;3892:5;-1:-1:-1;3949:2:1;3934:18;;3921:32;3962:33;3921:32;3962:33;:::i;:::-;4014:7;-1:-1:-1;4068:2:1;4053:18;;4040:32;;-1:-1:-1;4123:2:1;4108:18;;4095:32;4150:18;4139:30;;4136:2;;;4187:6;4179;4172:22;4136:2;4215:49;4256:7;4247:6;4236:9;4232:22;4215:49;:::i;:::-;4205:59;;;3715:555;;;;;;;:::o;4275:754::-;4379:6;4387;4395;4403;4411;4464:3;4452:9;4443:7;4439:23;4435:33;4432:2;;;4486:6;4478;4471:22;4432:2;4530:9;4517:23;4549:31;4574:5;4549:31;:::i;:::-;4599:5;-1:-1:-1;4656:2:1;4641:18;;4628:32;4669:33;4628:32;4669:33;:::i;:::-;4721:7;-1:-1:-1;4775:2:1;4760:18;;4747:32;;-1:-1:-1;4826:2:1;4811:18;;4798:32;;-1:-1:-1;4881:3:1;4866:19;;4853:33;4909:18;4898:30;;4895:2;;;4946:6;4938;4931:22;4895:2;4974:49;5015:7;5006:6;4995:9;4991:22;4974:49;:::i;5034:937::-;5129:6;5160:2;5203;5191:9;5182:7;5178:23;5174:32;5171:2;;;5224:6;5216;5209:22;5171:2;5262:9;5256:16;5295:18;5287:6;5284:30;5281:2;;;5332:6;5324;5317:22;5281:2;5360:22;;5413:4;5405:13;;5401:27;-1:-1:-1;5391:2:1;;5447:6;5439;5432:22;5391:2;5481;5475:9;5504:60;5520:43;5560:2;5520:43;:::i;5504:60::-;5586:3;5610:2;5605:3;5598:15;5638:2;5633:3;5629:12;5622:19;;5669:2;5665;5661:11;5717:7;5712:2;5706;5703:1;5699:10;5695:2;5691:19;5687:28;5684:41;5681:2;;;5743:6;5735;5728:22;5681:2;5770:6;5761:15;;5785:156;5799:2;5796:1;5793:9;5785:156;;;5856:10;;5844:23;;5817:1;5810:9;;;;;5887:12;;;;5919;;5785:156;;;-1:-1:-1;5960:5:1;5140:831;-1:-1:-1;;;;;;;5140:831:1:o;5976:297::-;6043:6;6096:2;6084:9;6075:7;6071:23;6067:32;6064:2;;;6117:6;6109;6102:22;6064:2;6154:9;6148:16;6207:5;6200:13;6193:21;6186:5;6183:32;6173:2;;6234:6;6226;6219:22;6278:352;6336:6;6389:2;6377:9;6368:7;6364:23;6360:32;6357:2;;;6410:6;6402;6395:22;6357:2;6454:9;6441:23;-1:-1:-1;;;;;;6497:5:1;6493:78;6486:5;6483:89;6473:2;;6591:6;6583;6576:22;6635:194;6705:6;6758:2;6746:9;6737:7;6733:23;6729:32;6726:2;;;6779:6;6771;6764:22;6726:2;-1:-1:-1;6807:16:1;;6716:113;-1:-1:-1;6716:113:1:o;6834:1224::-;7015:6;7023;7031;7039;7047;7055;7063;7116:3;7104:9;7095:7;7091:23;7087:33;7084:2;;;7138:6;7130;7123:22;7084:2;7179:9;7166:23;7156:33;;7240:2;7229:9;7225:18;7212:32;7263:18;7304:2;7296:6;7293:14;7290:2;;;7325:6;7317;7310:22;7290:2;7353:61;7406:7;7397:6;7386:9;7382:22;7353:61;:::i;:::-;7343:71;;7467:2;7456:9;7452:18;7439:32;7423:48;;7496:2;7486:8;7483:16;7480:2;;;7517:6;7509;7502:22;7480:2;7545:63;7600:7;7589:8;7578:9;7574:24;7545:63;:::i;:::-;7535:73;;7655:2;7644:9;7640:18;7627:32;7617:42;;7712:3;7701:9;7697:19;7684:33;7668:49;;7742:2;7732:8;7729:16;7726:2;;;7763:6;7755;7748:22;7726:2;;7807:72;7871:7;7860:8;7849:9;7845:24;7807:72;:::i;:::-;7898:8;;-1:-1:-1;7781:98:1;-1:-1:-1;;7983:3:1;7968:19;;7955:33;7997:31;7955:33;7997:31;:::i;:::-;8047:5;8037:15;;;7074:984;;;;;;;;;;:::o;8063:987::-;8210:6;8218;8226;8234;8242;8250;8303:3;8291:9;8282:7;8278:23;8274:33;8271:2;;;8325:6;8317;8310:22;8271:2;8366:9;8353:23;8343:33;;8427:2;8416:9;8412:18;8399:32;8450:18;8491:2;8483:6;8480:14;8477:2;;;8512:6;8504;8497:22;8477:2;8540:61;8593:7;8584:6;8573:9;8569:22;8540:61;:::i;:::-;8530:71;;8648:2;8637:9;8633:18;8620:32;8610:42;;8705:2;8694:9;8690:18;8677:32;8661:48;;8734:2;8724:8;8721:16;8718:2;;;8755:6;8747;8740:22;8718:2;;8799:72;8863:7;8852:8;8841:9;8837:24;8799:72;:::i;:::-;8890:8;;-1:-1:-1;8773:98:1;-1:-1:-1;;8975:3:1;8960:19;;8947:33;8989:31;8947:33;8989:31;:::i;:::-;9039:5;9029:15;;;8261:789;;;;;;;;:::o;9055:987::-;9202:6;9210;9218;9226;9234;9242;9295:3;9283:9;9274:7;9270:23;9266:33;9263:2;;;9317:6;9309;9302:22;9263:2;9358:9;9345:23;9335:33;;9415:2;9404:9;9400:18;9387:32;9377:42;;9470:2;9459:9;9455:18;9442:32;9493:18;9534:2;9526:6;9523:14;9520:2;;;9555:6;9547;9540:22;9520:2;9583:61;9636:7;9627:6;9616:9;9612:22;9583:61;:::i;:::-;9573:71;;9697:2;9686:9;9682:18;9669:32;9653:48;;9726:2;9716:8;9713:16;9710:2;;;9747:6;9739;9732:22;10047:1056;10203:6;10211;10219;10227;10235;10243;10251;10304:3;10292:9;10283:7;10279:23;10275:33;10272:2;;;10326:6;10318;10311:22;10272:2;10367:9;10354:23;10344:33;;10424:2;10413:9;10409:18;10396:32;10386:42;;10479:2;10468:9;10464:18;10451:32;10502:18;10543:2;10535:6;10532:14;10529:2;;;10564:6;10556;10549:22;10529:2;10592:61;10645:7;10636:6;10625:9;10621:22;10592:61;:::i;:::-;10582:71;;10700:2;10689:9;10685:18;10672:32;10662:42;;10757:3;10746:9;10742:19;10729:33;10713:49;;10787:2;10777:8;10774:16;10771:2;;;10808:6;10800;10793:22;11108:437;11161:3;11199:5;11193:12;11226:6;11221:3;11214:19;11252:4;11281:2;11276:3;11272:12;11265:19;;11318:2;11311:5;11307:14;11339:3;11351:169;11365:6;11362:1;11359:13;11351:169;;;11426:13;;11414:26;;11460:12;;;;11495:15;;;;11387:1;11380:9;11351:169;;;-1:-1:-1;11536:3:1;;11169:376;-1:-1:-1;;;;;11169:376:1:o;11550:274::-;11679:3;11717:6;11711:13;11733:53;11779:6;11774:3;11767:4;11759:6;11755:17;11733:53;:::i;:::-;11802:16;;;;;11687:137;-1:-1:-1;;11687:137:1:o;12602:915::-;12978:4;-1:-1:-1;;;;;13088:2:1;13080:6;13076:15;13065:9;13058:34;13140:2;13132:6;13128:15;13123:2;13112:9;13108:18;13101:43;;13180:3;13175:2;13164:9;13160:18;13153:31;13207:57;13259:3;13248:9;13244:19;13236:6;13207:57;:::i;:::-;13312:9;13304:6;13300:22;13295:2;13284:9;13280:18;13273:50;13346:44;13383:6;13375;13346:44;:::i;:::-;13427:22;;;13421:3;13406:19;;;13399:51;;;;-1:-1:-1;13459:20:1;;13508:2;13496:15;;12987:530;-1:-1:-1;;;;12987:530:1:o;14539:465::-;14796:2;14785:9;14778:21;14759:4;14822:56;14874:2;14863:9;14859:18;14851:6;14822:56;:::i;:::-;14926:9;14918:6;14914:22;14909:2;14898:9;14894:18;14887:50;14954:44;14991:6;14983;14954:44;:::i;:::-;14946:52;14768:236;-1:-1:-1;;;;;14768:236:1:o;16466:383::-;16615:2;16604:9;16597:21;16578:4;16647:6;16641:13;16690:6;16685:2;16674:9;16670:18;16663:34;16706:66;16765:6;16760:2;16749:9;16745:18;16740:2;16732:6;16728:15;16706:66;:::i;:::-;16833:2;16812:15;-1:-1:-1;;16808:29:1;16793:45;;;;16840:2;16789:54;;16587:262;-1:-1:-1;;16587:262:1:o;19652:452::-;19887:6;19876:9;19869:25;19930:2;19925;19914:9;19910:18;19903:30;19850:4;19950:56;20002:2;19991:9;19987:18;19979:6;19950:56;:::i;:::-;19942:64;;-1:-1:-1;;;;;20046:6:1;20042:55;20037:2;20026:9;20022:18;20015:83;19859:245;;;;;;:::o;20499:1068::-;20824:25;;;20868:2;20886:18;;;20879:34;;;20811:3;20944:2;20929:18;;20922:31;;;20796:19;;20988:22;;;20763:4;;21068:6;;21041:3;21026:19;;20763:4;21105:300;21119:6;21116:1;21113:13;21105:300;;;21194:6;21181:20;21214:31;21239:5;21214:31;:::i;:::-;-1:-1:-1;;;;;21270:54:1;21258:67;;21380:15;;;;21345:12;;;;21141:1;21134:9;21105:300;;;-1:-1:-1;;;;;;21461:55:1;;;;21456:2;21441:18;;21434:83;-1:-1:-1;;;21548:3:1;21533:19;21526:35;21422:3;20772:795;-1:-1:-1;;;;20772:795:1:o;21572:275::-;21643:2;21637:9;21708:2;21689:13;;-1:-1:-1;;21685:27:1;21673:40;;21743:18;21728:34;;21764:22;;;21725:62;21722:2;;;21790:18;;:::i;:::-;21826:2;21819:22;21617:230;;-1:-1:-1;21617:230:1:o;21852:183::-;21912:4;21945:18;21937:6;21934:30;21931:2;;;21967:18;;:::i;:::-;-1:-1:-1;22012:1:1;22008:14;22024:4;22004:25;;21921:114::o;22040:128::-;22080:3;22111:1;22107:6;22104:1;22101:13;22098:2;;;22117:18;;:::i;:::-;-1:-1:-1;22153:9:1;;22088:80::o;22173:168::-;22213:7;22279:1;22275;22271:6;22267:14;22264:1;22261:21;22256:1;22249:9;22242:17;22238:45;22235:2;;;22286:18;;:::i;:::-;-1:-1:-1;22326:9:1;;22225:116::o;22346:125::-;22386:4;22414:1;22411;22408:8;22405:2;;;22419:18;;:::i;:::-;-1:-1:-1;22456:9:1;;22395:76::o;22476:258::-;22548:1;22558:113;22572:6;22569:1;22566:13;22558:113;;;22648:11;;;22642:18;22629:11;;;22622:39;22594:2;22587:10;22558:113;;;22689:6;22686:1;22683:13;22680:2;;;22724:1;22715:6;22710:3;22706:16;22699:27;22680:2;;22529:205;;;:::o;22739:135::-;22778:3;-1:-1:-1;;22799:17:1;;22796:2;;;22819:18;;:::i;:::-;-1:-1:-1;22866:1:1;22855:13;;22786:88::o;22879:184::-;-1:-1:-1;;;22928:1:1;22921:88;23028:4;23025:1;23018:15;23052:4;23049:1;23042:15;23068:184;-1:-1:-1;;;23117:1:1;23110:88;23217:4;23214:1;23207:15;23241:4;23238:1;23231:15;23257:154;-1:-1:-1;;;;;23336:5:1;23332:54;23325:5;23322:65;23312:2;;23401:1;23398;23391:12
Swarm Source
ipfs://27ca2693ac45fc463e561ac360712d17d24f2e1ebd8f0af74851b7921a5ac64c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.