Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 12 from a total of 12 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy Part NFT | 2953700 | 154 days ago | IN | 0.0000011 ETH | 0.00000069 | ||||
Put NFT For Sell | 2953691 | 154 days ago | IN | 0 ETH | 0.00000021 | ||||
Buy Part NFT | 2953666 | 154 days ago | IN | 0.0000011 ETH | 0.00000061 | ||||
Put NFT For Sell | 2953648 | 154 days ago | IN | 0 ETH | 0.00000022 | ||||
Buy NFT | 2948904 | 155 days ago | IN | 0.0011 ETH | 0.00000011 | ||||
Put NFT For Sell | 2948896 | 155 days ago | IN | 0 ETH | 0.00000019 | ||||
Buy Part NFT | 2948889 | 155 days ago | IN | 0.0011 ETH | 0.00000056 | ||||
Put NFT For Sell | 2948877 | 155 days ago | IN | 0 ETH | 0.0000002 | ||||
Buy NFT | 2948568 | 155 days ago | IN | 0.0011 ETH | 0.00000011 | ||||
Put NFT For Sell | 2948560 | 155 days ago | IN | 0 ETH | 0.00000019 | ||||
Buy Part NFT | 2948550 | 155 days ago | IN | 0.00011 ETH | 0.00000057 | ||||
Put NFT For Sell | 2948537 | 155 days ago | IN | 0 ETH | 0.0000002 |
Latest 12 internal transactions
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 2953700 | 154 days ago | 0.0000002 ETH | ||||
Transfer | 2953700 | 154 days ago | 0.0000009 ETH | ||||
Transfer | 2953666 | 154 days ago | 0.0000002 ETH | ||||
Transfer | 2953666 | 154 days ago | 0.0000009 ETH | ||||
Transfer | 2948904 | 155 days ago | 0.0002 ETH | ||||
Transfer | 2948904 | 155 days ago | 0.0009 ETH | ||||
Transfer | 2948889 | 155 days ago | 0.0002 ETH | ||||
Transfer | 2948889 | 155 days ago | 0.0009 ETH | ||||
Transfer | 2948568 | 155 days ago | 0.0002 ETH | ||||
Transfer | 2948568 | 155 days ago | 0.0009 ETH | ||||
Transfer | 2948550 | 155 days ago | 0.00002 ETH | ||||
Transfer | 2948550 | 155 days ago | 0.00009 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
NFTMarketplace
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.26; import {ERC721Holder} from "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; import {IOffer} from "./interface/IOffer.sol"; import {IOfferFactory} from "./interface/IOfferFactory.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; error NotCorrectValue( uint256 value, uint256 price, uint256 commission, uint256 discount ); error NotCorrectCommission(uint256 value, uint256 commission, uint256 discount); error NotCorrectPercent(); error AlreadyReturned(); error SaleNotExists(); error OfferNotExists(); error AlreadyBought(); error NotSeller(); error NotOfferOwner(); error NotPartialSell(); error NotForSeller(); error NotForFullSell(); error NotCorrectAmount(uint256 availableAmount); error AlreadyCanceled(); error TransferFailed(); error NotForMyself(); contract NFTMarketplace is ERC721Holder, Ownable { using Math for uint256; /********************************************************* ========================= Events ========================= *********************************************************/ /** * @param sellerAddress Address of NFT seller * @param nftAddress Address of NFT contract * @param price Price in wei * @param nftId Id of NFT * @param saleId Id of sale * @param tokensAmount Amount of tokens for sell that receives NFT owner */ event NFTSaleCreated( address sellerAddress, address nftAddress, uint256 price, uint256 nftId, uint256 saleId, uint256 tokensAmount ); /** * @param buyer Address of NFT buyer * @param nftAddress Address of NFT contract * @param nftId Id of NFT * @param saleId Id of sale */ event NFTBoughtFromMarketplace( address buyer, address nftAddress, uint256 nftId, uint256 saleId, uint256 sellerRefferalsProfit, uint256 buyerRefferalsProfit ); /** * @param offerId Id of offer * @param saleId Id of sale * @param tokensAmount Amount of tokens * @param bidder Address of user that makes offer */ event OfferMade( uint256 offerId, uint256 saleId, uint256 tokensAmount, address bidder ); /** * @param nftAddress Address of NFT contract * @param nftId Id of NFT * @param saleId Id of sale */ event NFTReturnedFromMarketplace( address nftAddress, uint256 nftId, uint256 saleId ); /** * @param buyerAddress Address of NFT buyer * @param sellerAddress Address of NFT seller * @param saleId Id of sale * @param buyerNFTId Id of new NFT for buyer * @param sellerNFTId Id of new NFT for seller */ event PartialNFTSold( address buyerAddress, address sellerAddress, uint256 saleId, uint256 buyerNFTId, uint256 sellerNFTId, uint256 sellerRefferalsProfit, uint256 buyerRefferalsProfit ); /** * @param offerId Id of offer * @param saleId Id of sale */ event OfferApproved( uint256 offerId, uint256 saleId, uint256 sellerRefferalsProfit, uint256 buyerRefferalsProfit, uint256 buyerNFTId, uint256 sellerNFTId ); /** * @param offerId Id of offer */ event OfferCanceled(uint256 offerId); /********************************************************** ========================= Structs ========================= **********************************************************/ /** * @param price Price in wei * @param nftId Id of NFT * @param nftAddress Address of NFT contract * @param sellerAddress Address of NFT seller * @param tokensAmount Amount of tokens for sell that receives NFT owner (NFT buyer) * @param availableTokensAmount Available amount of ERC20 tokens of trade lot * @param isWithdrawed Flag indicates is sale withdrawed */ struct NFTSaleInfo { uint256 price; uint256 nftId; address nftAddress; address sellerAddress; uint256 tokensAmount; uint256 availableTokensAmount; bool isWithdrawed; } /** * @param saleId Id of sale * @param tokensAmount Amount of tokens for sell that receives NFT owner * @param bidder Address of user that makes offer */ struct OfferInfo { uint256 saleId; uint256 tokensAmount; address bidder; OfferStatus offerStatus; } /************************************************************ ========================= Variables ========================= ************************************************************/ /// @notice Address of WETH // Holesky address constant WETH_ADDRESS = 0x94373a4919B3240D86eA41593D5eBa789FEF3848; // Mainnet // address constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; uint8 constant PERCENT_DIVIDER = 100; /// @notice Amount representing percent amount uint16 constant MULTIPLIER = 1000; /// @notice Id of next sale uint256 private saleId = 1; /// @notice Id of next offer uint256 private offerId = 1; /// @notice Address for commssion transfer address withdrawalSCAddress; /// @notice Address of factory address address immutable factoryAddress; /// @notice Status of offer enum OfferStatus { Created, Bought, Canceled } /*********************************************************** ========================= Mappings ========================= ***********************************************************/ /// @notice List of nftSales (saleId => NFTSaleInfo) mapping(uint256 => NFTSaleInfo) public nftSales; /// @notice List of offers (offerId => OfferInfo) mapping(uint256 => OfferInfo) public offers; constructor( address _withdrawalSCAddress, address initialOwner ) payable Ownable(initialOwner) { withdrawalSCAddress = _withdrawalSCAddress; } /************************************************************ ========================= Functions ========================= ************************************************************/ /** * @notice Function for creating NFT sale and receiving NFT from `msg.sender` * @notice Need msg.sender approve * @param price Price in wei * @param nftId Id of NFT * @param nftAddress Address of NFT contract */ function putNFTForSell( uint256 price, uint256 nftId, address nftAddress, uint256 tokensAmount ) public { uint256 availableAmount = IOffer(nftAddress).nftIdToTokensAmount(nftId); if (tokensAmount == 0) revert NotCorrectAmount(availableAmount); if (tokensAmount > availableAmount) revert NotCorrectAmount(availableAmount); IERC721(nftAddress).safeTransferFrom(msg.sender, address(this), nftId); nftSales[saleId] = NFTSaleInfo( price, nftId, nftAddress, msg.sender, tokensAmount, availableAmount, false ); emit NFTSaleCreated( msg.sender, nftAddress, price, nftId, saleId, tokensAmount ); ++saleId; } /** * @notice Function for purchase NFT * @param _saleId Id of NFT sale */ function buyNFT(uint256 _saleId) public payable { NFTSaleInfo memory nftSaleInfo = nftSales[_saleId]; if (nftSaleInfo.sellerAddress == msg.sender) revert NotForMyself(); if (nftSaleInfo.tokensAmount != nftSaleInfo.availableTokensAmount) revert NotForFullSell(); ( uint256 sellerCommission, uint256 sellerDiscount, uint256 sellerRefferalsProfit, uint16 sellerProfitPercent, address sellerInfluencer, uint256 buyerCommission, uint256 buyerDiscount, uint256 buyerRefferalsProfit, uint16 buyerProfitPercent, address buyerInfluencer ) = getBuyerSellerCommisionInfo( nftSaleInfo.price, nftSaleInfo.nftAddress, nftSaleInfo.sellerAddress, msg.sender ); buyNFTCheck( nftSaleInfo.isWithdrawed, nftSaleInfo.sellerAddress, nftSaleInfo.price, nftSaleInfo.nftAddress ); nftSales[_saleId].isWithdrawed = true; (bool ok, ) = payable(nftSaleInfo.sellerAddress).call{ value: nftSaleInfo.price - sellerCommission }(""); if (!ok) revert TransferFailed(); // Calculating commission for withdrawalSC uint256 calculatedSellerCommission = sellerCommission - sellerDiscount - sellerRefferalsProfit; uint256 calculatedBuyerCommission = buyerCommission - buyerDiscount - buyerRefferalsProfit; (ok, ) = payable(withdrawalSCAddress).call{ value: calculatedSellerCommission + calculatedBuyerCommission }(""); if (!ok) revert TransferFailed(); // Sending profit for influencers if (sellerProfitPercent > 0) { (ok, ) = payable(sellerInfluencer).call{ value: sellerRefferalsProfit }(""); if (!ok) revert TransferFailed(); } if (buyerProfitPercent > 0) { (ok, ) = payable(buyerInfluencer).call{value: buyerRefferalsProfit}( "" ); if (!ok) revert TransferFailed(); } IERC721(nftSaleInfo.nftAddress).safeTransferFrom( address(this), msg.sender, nftSaleInfo.nftId ); emit NFTBoughtFromMarketplace( msg.sender, nftSaleInfo.nftAddress, nftSaleInfo.nftId, _saleId, sellerRefferalsProfit, buyerRefferalsProfit ); } /** * @notice Function for purchase part of NFT * @param _saleId Id of NFT sale */ function buyPartNFT(uint256 _saleId) public payable { NFTSaleInfo memory nftSaleInfo = nftSales[_saleId]; if (nftSaleInfo.sellerAddress == msg.sender) revert NotForMyself(); ( uint256 sellerCommission, uint256 sellerDiscount, uint256 sellerRefferalsProfit, uint16 sellerProfitPercent, address sellerInfluencer, uint256 buyerCommission, uint256 buyerDiscount, uint256 buyerRefferalsProfit, uint16 buyerProfitPercent, address buyerInfluencer ) = getBuyerSellerCommisionInfo( nftSaleInfo.price, nftSaleInfo.nftAddress, nftSaleInfo.sellerAddress, msg.sender ); if (nftSaleInfo.tokensAmount == nftSaleInfo.availableTokensAmount) revert NotPartialSell(); buyNFTCheck( nftSaleInfo.isWithdrawed, nftSaleInfo.sellerAddress, nftSaleInfo.price, nftSaleInfo.nftAddress ); nftSales[_saleId].isWithdrawed = true; (bool ok, ) = payable(nftSaleInfo.sellerAddress).call{ value: nftSaleInfo.price - (sellerCommission - sellerDiscount) }(""); if (!ok) revert TransferFailed(); // Calculating commission for withdrawalSC uint256 calculatedSellerCommission = sellerCommission - sellerDiscount - sellerRefferalsProfit; uint256 calculatedBuyerCommission = buyerCommission - buyerDiscount - buyerRefferalsProfit; (ok, ) = payable(withdrawalSCAddress).call{ value: calculatedSellerCommission + calculatedBuyerCommission }(""); if (!ok) revert TransferFailed(); // Sending profit for influencers if (sellerProfitPercent > 0) { (ok, ) = payable(sellerInfluencer).call{ value: sellerRefferalsProfit }(""); if (!ok) revert TransferFailed(); } if (buyerProfitPercent > 0) { (ok, ) = payable(buyerInfluencer).call{value: buyerRefferalsProfit}( "" ); if (!ok) revert TransferFailed(); } (uint256 buyerNFTId, uint256 sellerNFTId) = IOffer( nftSaleInfo.nftAddress ).splitNFT( nftSaleInfo.nftId, nftSaleInfo.tokensAmount, msg.sender, nftSaleInfo.sellerAddress ); emit PartialNFTSold( msg.sender, nftSaleInfo.sellerAddress, _saleId, buyerNFTId, sellerNFTId, sellerRefferalsProfit, buyerRefferalsProfit ); } function makeOffer(uint256 _saleId, uint256 tokenAmount) public { NFTSaleInfo memory nftSale = nftSales[_saleId]; if (nftSale.sellerAddress == msg.sender) revert NotForMyself(); if (nftSale.nftId == 0) revert SaleNotExists(); if (nftSale.isWithdrawed) revert AlreadyReturned(); uint256 availableAmount = getTokensAmount( nftSale.nftId, nftSale.nftAddress ); if (tokenAmount == 0) revert NotCorrectAmount(availableAmount); if (tokenAmount >= availableAmount) revert NotCorrectAmount(availableAmount); offers[offerId] = OfferInfo( _saleId, tokenAmount, msg.sender, OfferStatus.Created ); emit OfferMade(offerId, _saleId, tokenAmount, msg.sender); ++offerId; } function cancelOffer(uint256 _offerId) external { OfferInfo memory offerInfo = offers[_offerId]; if (offerInfo.bidder == address(0)) revert OfferNotExists(); if (msg.sender != offerInfo.bidder) revert NotOfferOwner(); if (offerInfo.offerStatus == OfferStatus.Canceled) revert AlreadyCanceled(); if (offerInfo.offerStatus == OfferStatus.Bought) revert AlreadyBought(); offerInfo.offerStatus = OfferStatus.Canceled; emit OfferCanceled(_offerId); } /** * @notice Function for approving * @notice Need buyer's approve on WETH contract * @param _offerId Id of offer */ function approveOffer(uint256 _offerId) public payable { OfferInfo memory offerInfo = offers[_offerId]; NFTSaleInfo memory nftSaleInfo = nftSales[offerInfo.saleId]; uint256 percentPart = offerInfo.tokensAmount.mulDiv( PERCENT_DIVIDER, nftSaleInfo.tokensAmount ); uint256 priceOfPart = nftSaleInfo.price.mulDiv( percentPart, PERCENT_DIVIDER ); ( uint256 sellerCommission, uint256 sellerDiscount, uint256 sellerRefferalsProfit, uint16 sellerProfitPercent, address sellerInfluencer, uint256 buyerCommission, uint256 buyerDiscount, uint256 buyerRefferalsProfit, uint16 buyerProfitPercent, address buyerInfluencer ) = getBuyerSellerCommisionInfo( priceOfPart, nftSaleInfo.nftAddress, msg.sender, offerInfo.bidder ); if (offerInfo.offerStatus == OfferStatus.Canceled) revert AlreadyCanceled(); if (msg.sender != nftSaleInfo.sellerAddress) revert NotSeller(); if (nftSaleInfo.isWithdrawed) revert AlreadyBought(); if (msg.value != sellerCommission - sellerDiscount) revert NotCorrectCommission( msg.value, sellerCommission, sellerDiscount ); offerInfo.offerStatus = OfferStatus.Bought; IERC20 wETH = IERC20(WETH_ADDRESS); // transfer value to seller wETH.transferFrom( offerInfo.bidder, nftSaleInfo.sellerAddress, priceOfPart ); // transfer WETH (commission from buyer) wETH.transferFrom( offerInfo.bidder, withdrawalSCAddress, buyerCommission - buyerDiscount - buyerRefferalsProfit ); // sending profit to buyer influencer if (buyerProfitPercent > 0) wETH.transferFrom( offerInfo.bidder, buyerInfluencer, buyerRefferalsProfit ); // transfer native ETH (commission from seller) (bool ok, ) = payable(withdrawalSCAddress).call{ value: sellerCommission - sellerDiscount - sellerRefferalsProfit }(""); if (!ok) revert TransferFailed(); // sending profit to seller influencer if (sellerProfitPercent > 0) { (ok, ) = payable(sellerInfluencer).call{ value: sellerRefferalsProfit }(""); if (!ok) revert TransferFailed(); } // update state nftSales[offerInfo.saleId].isWithdrawed = true; (uint256 buyerNFTId, uint256 sellerNFTId) = IOffer( nftSaleInfo.nftAddress ).splitNFT( nftSaleInfo.nftId, offerInfo.tokensAmount, offerInfo.bidder, nftSaleInfo.sellerAddress ); emit OfferApproved( _offerId, offerInfo.saleId, sellerRefferalsProfit, buyerRefferalsProfit, buyerNFTId, sellerNFTId ); } /** * @notice Function for returning NFT * @param _saleId Id of sale */ function returnNFT(uint256 _saleId) public { NFTSaleInfo memory info = nftSales[_saleId]; if (info.isWithdrawed) revert AlreadyReturned(); if (msg.sender != info.sellerAddress) revert NotSeller(); nftSales[_saleId].isWithdrawed = true; IERC721(info.nftAddress).safeTransferFrom( address(this), info.sellerAddress, info.nftId ); emit NFTReturnedFromMarketplace(info.nftAddress, info.nftId, _saleId); } function buyNFTCheck( bool isWithdrawed, address sellerAddress, uint256 price, address nftAddress ) private { (uint256 commission, uint256 discount) = getCommissionAmount( price, nftAddress, msg.sender ); if (isWithdrawed) revert AlreadyBought(); if (sellerAddress == address(0)) revert SaleNotExists(); if (msg.sender == sellerAddress) revert NotForSeller(); if (msg.value != price + (commission - discount)) revert NotCorrectValue(msg.value, price, commission, discount); } /** * @notice Function for getting amount of commission * @param price Price of tokens * @param nftAddress Address of NFT contract * @param userAddress Address of user */ function getCommissionAmount( uint256 price, address nftAddress, address userAddress ) internal view returns (uint256, uint256) { uint256 commissionPercent = IOffer(nftAddress).commissionPercent(); uint256 commission = price.mulDiv(commissionPercent, MULTIPLIER); uint256 discountValueFromFactory = IOfferFactory(withdrawalSCAddress) .discountPercent(); address influencer = IOfferFactory(withdrawalSCAddress) .refferalToInfluencer(userAddress); uint256 discount = influencer != address(0) ? commission.mulDiv(discountValueFromFactory, PERCENT_DIVIDER) : 0; return (commission, discount); } /** * @notice Function for calculating profit from refferal and getting influencer * @param commission Value of commission */ function getRefferalsInfo( uint256 commission, address userAddress ) internal view returns (uint256, uint16, address) { IOfferFactory factory = IOfferFactory(withdrawalSCAddress); address influencer = factory.refferalToInfluencer(userAddress); uint16 influencerProfitPercent = factory.influencerProfitPercents( influencer ); uint256 profit = commission.mulDiv(influencerProfitPercent, MULTIPLIER); return (profit, influencerProfitPercent, influencer); } function getBuyerSellerCommisionInfo( uint256 _priceOfPart, address _nftAddress, address _sellerAddress, address _buyerAddress ) private view returns ( uint256, uint256, uint256, uint16, address, uint256, uint256, uint256, uint16, address ) { ( uint256 sellerCommission, uint256 sellerDiscount ) = getCommissionAmount(_priceOfPart, _nftAddress, _sellerAddress); ( uint256 sellerRefferalsProfit, uint16 sellerProfitPercent, address sellerInfluencer ) = getRefferalsInfo(sellerCommission, _sellerAddress); (uint256 buyerCommission, uint256 buyerDiscount) = getCommissionAmount( _priceOfPart, _nftAddress, _buyerAddress ); ( uint256 buyerRefferalsProfit, uint16 buyerProfitPercent, address buyerInfluencer ) = getRefferalsInfo(buyerCommission, _buyerAddress); return ( sellerCommission, sellerDiscount, sellerRefferalsProfit, sellerProfitPercent, sellerInfluencer, buyerCommission, buyerDiscount, buyerRefferalsProfit, buyerProfitPercent, buyerInfluencer ); } function getTokensAmount( uint256 nftId, address nftAddress ) internal view returns (uint256) { return IOffer(nftAddress).nftIdToTokensAmount(nftId); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.20; import {IERC721Receiver} from "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or * {IERC721-setApprovalForAll}. */ abstract contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received(address, address, uint256, bytes memory) public virtual returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.26; interface IOffer { function splitNFT( uint256 _nftId, uint256 amountForBuyer, address nftBuyer, address nftSeller ) external returns(uint256, uint256); function nftIdToTokensAmount(uint256 nftId) external view returns (uint256); function commissionPercent() external view returns (uint256); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.26; interface IOfferFactory { function refferalToInfluencer(address _refferal) external view returns (address); function influencerProfitPercents(address _influencer) external view returns (uint16); function discountPercent() external view returns (uint16); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 1000000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_withdrawalSCAddress","type":"address"},{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"AlreadyBought","type":"error"},{"inputs":[],"name":"AlreadyCanceled","type":"error"},{"inputs":[],"name":"AlreadyReturned","type":"error"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[{"internalType":"uint256","name":"availableAmount","type":"uint256"}],"name":"NotCorrectAmount","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"commission","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"}],"name":"NotCorrectCommission","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"commission","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"}],"name":"NotCorrectValue","type":"error"},{"inputs":[],"name":"NotForFullSell","type":"error"},{"inputs":[],"name":"NotForMyself","type":"error"},{"inputs":[],"name":"NotForSeller","type":"error"},{"inputs":[],"name":"NotOfferOwner","type":"error"},{"inputs":[],"name":"NotPartialSell","type":"error"},{"inputs":[],"name":"NotSeller","type":"error"},{"inputs":[],"name":"OfferNotExists","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"SaleNotExists","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellerRefferalsProfit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyerRefferalsProfit","type":"uint256"}],"name":"NFTBoughtFromMarketplace","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"NFTReturnedFromMarketplace","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sellerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"NFTSaleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellerRefferalsProfit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyerRefferalsProfit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyerNFTId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellerNFTId","type":"uint256"}],"name":"OfferApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offerId","type":"uint256"}],"name":"OfferCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"OfferMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"sellerAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyerNFTId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellerNFTId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellerRefferalsProfit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyerRefferalsProfit","type":"uint256"}],"name":"PartialNFTSold","type":"event"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"name":"approveOffer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"buyNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"buyPartNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"name":"cancelOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"makeOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftSales","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"address","name":"sellerAddress","type":"address"},{"internalType":"uint256","name":"tokensAmount","type":"uint256"},{"internalType":"uint256","name":"availableTokensAmount","type":"uint256"},{"internalType":"bool","name":"isWithdrawed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"offers","outputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"tokensAmount","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"enum NFTMarketplace.OfferStatus","name":"offerStatus","type":"uint8"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"putNFTForSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"returnNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0601f612b4938819003918201601f19168301916001600160401b038311848410176100fc5780849260409485528339810103126100f75761004181610112565b906001600160a01b039061005790602001610112565b169081156100e157600080546001600160a01b031981168417825560405193916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001808055600255600380546001600160a01b0319166001600160a01b0392909216919091179055612a2290816101278239608051815050f35b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036100f75756fe60c080604052600436101561001d575b50361561001b57600080fd5b005b600090813560e01c90816305b7cdd314611d4357508063150b7a0214611c7e57806334c1d5ef1461192457806344432bfc1461186957806351ed8288146113ed578063715018a6146113515780638a72ea6a146112975780638da5cb5b14611246578063a5d7c10a14610b34578063b0cd2aa0146108b9578063d11357fc14610392578063ef706adf146101a55763f2fde38b0361000f57346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a25773ffffffffffffffffffffffffffffffffffffffff610101612084565b6101096123d6565b1680156101765773ffffffffffffffffffffffffffffffffffffffff8254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b6024827f1e4fbdf700000000000000000000000000000000000000000000000000000000815280600452fd5b80fd5b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a2576004358082526005602052604082206002604051916101f38361211a565b805483526001810154602084015201549061023560ff6060604084019373ffffffffffffffffffffffffffffffffffffffff86168552019360a01c16836121b1565b73ffffffffffffffffffffffffffffffffffffffff8151161561036a575173ffffffffffffffffffffffffffffffffffffffff16330361034257805160038110156102ed5760021461031a57805160038110156102ed576001146102c5577f0ff09947dd7d2583091e8cbfb427fecacb697bf895187b243fd0072c0ee9b95191600260209252604051908152a180f35b6004837f0b3465c2000000000000000000000000000000000000000000000000000000008152fd5b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b6004837f4b06e2b6000000000000000000000000000000000000000000000000000000008152fd5b6004837fd2241dbf000000000000000000000000000000000000000000000000000000008152fd5b6004847fdd2c43c3000000000000000000000000000000000000000000000000000000008152fd5b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a25760043581526004602052604081206040516103d7816120cf565b815481526001820154602082015273ffffffffffffffffffffffffffffffffffffffff600283015416604082015273ffffffffffffffffffffffffffffffffffffffff600383015416918260608301526004810154926080830193845260ff600660058401549360a08601948552015416151560c08401523314610891578151926104aa73ffffffffffffffffffffffffffffffffffffffff604085015116926104b673ffffffffffffffffffffffffffffffffffffffff606087015116946104a186828a6126b4565b949096876128bc565b939199909233916126b4565b6104c033836128bc565b97919990968951905114610869578c8080808e61051c60c0820151151573ffffffffffffffffffffffffffffffffffffffff60608401511683519073ffffffffffffffffffffffffffffffffffffffff604086015116926122c0565b600435825260046020526006604083200160017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905561058673ffffffffffffffffffffffffffffffffffffffff60608301511691516105808989612248565b90612248565b905af1610591612255565b5015610841578c936105e06105c18c8f88976105bb6105b6926105b68b9a8b9a612248565b612248565b95612248565b73ffffffffffffffffffffffffffffffffffffffff6003541692612285565b905af16105eb612255565b5015610819578893929161ffff8992166107b8575b505061ffff1661075e575b505060408381015160208501519251606086015183517fe5e03c840000000000000000000000000000000000000000000000000000000081526004810195909552602485019190915233604485015273ffffffffffffffffffffffffffffffffffffffff9081166064850152929392849160849183918a91165af1938415610753577fc90266c443ed87d39323ca7295afbe1c5962592e9176f17a213685404e1b41989460e09487948892610704575b50606073ffffffffffffffffffffffffffffffffffffffff910151169360405194338652602086015260043560408601526060850152608084015260a083015260c0820152a180f35b6060955073ffffffffffffffffffffffffffffffffffffffff9192506107419060403d60401161074c575b6107398183612136565b8101906122aa565b9590959291506106bb565b503d61072f565b6040513d87823e3d90fd5b81808573ffffffffffffffffffffffffffffffffffffffff8294165af1610783612255565b501561079057843861060b565b6004857f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b9380809394959273ffffffffffffffffffffffffffffffffffffffff8294165af16107e1612255565b50156107f1579086918638610600565b6004877f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b6004897f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b60048d7f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b60048d7f13a1d59d000000000000000000000000000000000000000000000000000000008152fd5b6004847f0ae7c088000000000000000000000000000000000000000000000000000000008152fd5b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435808252600460205260408220604051610904816120cf565b815481526001820154916020820192835260c073ffffffffffffffffffffffffffffffffffffffff600283015416926040810193845260ff600673ffffffffffffffffffffffffffffffffffffffff600386015416946060840195865260048101546080850152600581015460a085015201541615159182910152610b0c5773ffffffffffffffffffffffffffffffffffffffff8151163303610ae457849084825260046020526006604083200160017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff808451169151168451823b15610ad5576040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff92909216602483015260448201529082908290606490829084905af18015610ad957610abc575b507f517d843c6a9bb1fdeaf690730b10760d1cc1cf82c528e488c0e926bfc0bf906d6060848673ffffffffffffffffffffffffffffffffffffffff865116915160405192835260208301526040820152a180f35b81610ac991949394612136565b610ad557908338610a68565b8380fd5b6040513d84823e3d90fd5b6004857f5ec82351000000000000000000000000000000000000000000000000000000008152fd5b6004857f6d6a4f9f000000000000000000000000000000000000000000000000000000008152fd5b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a2576004358152600560205260408120610bba60ff600260405193610b818561211a565b8054855260018101546020860152015473ffffffffffffffffffffffffffffffffffffffff8116604085015260a01c16606083016121b1565b8051825260046020526040822090610c5e610c5760405193610bdb856120cf565b805485526001810154602086015273ffffffffffffffffffffffffffffffffffffffff600282015416604086015273ffffffffffffffffffffffffffffffffffffffff600382015416606086015260ff6006600483015492836080890152600581015460a0890152015416151560c08601526020840151612425565b8351612527565b9173ffffffffffffffffffffffffffffffffffffffff60408201511690610cbe73ffffffffffffffffffffffffffffffffffffffff60408501511692610cc784610ca933848a6126b4565b610cb333836128bc565b97919990968c6126b4565b949093846128bc565b95919b909460608c01516003811015611219576002146111f15773ffffffffffffffffffffffffffffffffffffffff60608b01511633036111c95760c08a01516111a157610d158486612248565b340361116d57600160608d8101919091526040808e0151918c015190517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831660048201529116602482015260448101929092528d969594939291906020826064818b7394373a4919b3240d86ea41593d5eba789fef38485af18015611162578e6105b68f604073ffffffffffffffffffffffffffffffffffffffff91602097610dfa96611147575b500151169573ffffffffffffffffffffffffffffffffffffffff6003541694612248565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9485166004820152919093166024820152604481019290925281606481897394373a4919b3240d86ea41593d5eba789fef38485af194851561113c5761ffff87958e938d9861111f575b5016611044575b505090610eb283946105b6859473ffffffffffffffffffffffffffffffffffffffff6003541694612248565b905af1610ebd612255565b50156107f157908361ffff889316611010575b5050835186525060046020818152604080882060060180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558381015184830151928701518288015160609096015183517fe5e03c8400000000000000000000000000000000000000000000000000000000815295860194909452602485015273ffffffffffffffffffffffffffffffffffffffff9485166044850152918416606484015291928391168188816084810103925af1908115610753577f31c2f91f94ebed46a14abdc75f5a267d9b5a6610ccbc07e85361762f759fe3369460c09487928894610fe9575b505193604051946004358652602086015260408501526060840152608083015260a0820152a180f35b90935061100691925060403d60401161074c576107398183612136565b9190919238610fc0565b8280929173ffffffffffffffffffffffffffffffffffffffff8293165af1611036612255565b501561079057843883610ed0565b60408c81015190517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201529116602482015260448101919091529093509150602082606481877394373a4919b3240d86ea41593d5eba789fef38485af190811561111457610eb2896105b68796879687966110e5575b5093945050948c9150610e86565b6111069060203d60201161110d575b6110fe8183612136565b810190612292565b50386110d7565b503d6110f4565b6040513d86823e3d90fd5b6111379060203d60201161110d576110fe8183612136565b610e7f565b6040513d88823e3d90fd5b61115d90893d8b1161110d576110fe8183612136565b610dd6565b6040513d8a823e3d90fd5b60648e85877fa7c2407300000000000000000000000000000000000000000000000000000000835234600452602452604452fd5b60048e7f0b3465c2000000000000000000000000000000000000000000000000000000008152fd5b60048e7f5ec82351000000000000000000000000000000000000000000000000000000008152fd5b60048e7f4b06e2b6000000000000000000000000000000000000000000000000000000008152fd5b60248f7f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b50346101a257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a25773ffffffffffffffffffffffffffffffffffffffff6020915416604051908152f35b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435815260056020526040812080549073ffffffffffffffffffffffffffffffffffffffff6002600183015492015460ff8160a01c16926040519485526020850152166040830152600381101561132457608092506060820152f35b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b50346101a257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a2576113886123d6565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435815260046020526040812060405160a05261143760a0516120cf565b805460a051526001810154602060a051015273ffffffffffffffffffffffffffffffffffffffff60028201541690604060a0510191825273ffffffffffffffffffffffffffffffffffffffff60038201541680606060a0510152600482015490608060a0510191825260ff600660058501549460a0805101958652015416151560c060a0510152331461089157519051036118415760a0515173ffffffffffffffffffffffffffffffffffffffff82511661152073ffffffffffffffffffffffffffffffffffffffff606060a0510151169261152f6115178585846126b4565b939095866128bc565b909391608052929433916126b4565b939061153b33826128bc565b969197909561158c60c060a051015115158b73ffffffffffffffffffffffffffffffffffffffff606060a05101511673ffffffffffffffffffffffffffffffffffffffff60a05151925116926122c0565b6004358b526004602052600660408c200160017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790558a80808073ffffffffffffffffffffffffffffffffffffffff606060a0510151166115f48760a05151612248565b905af16115ff612255565b5015611819578a936116266105c18b6105b688976105bb89986105b68a9960805192612248565b905af1611631612255565b50156107f15791849161ffff889594166117dc575b5061ffff16611780575b505073ffffffffffffffffffffffffffffffffffffffff835116602060a051015190803b1561177c576040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019290925282908290606490829084905af18015610ad957611767575b505073ffffffffffffffffffffffffffffffffffffffff7f717d06d30997e89eef967a42478791fa9d1b26d0243c0209d549851e5c307cf3925116611761602060a051015192604051938493608051916004359133879273ffffffffffffffffffffffffffffffffffffffff60a09592989796938160c087019a1686521660208501526040840152606083015260808201520152565b0390a180f35b8161177191612136565b61177c5782386116cb565b8280fd5b8280929173ffffffffffffffffffffffffffffffffffffffff8293165af16117a6612255565b50156117b457823882611650565b6004837f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b84809350809294959173ffffffffffffffffffffffffffffffffffffffff60805191165af1611809612255565b5015610790579082859238611646565b60048b7f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b6004827ff60085b1000000000000000000000000000000000000000000000000000000008152fd5b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257604060e091600435815260046020522080549060018101549073ffffffffffffffffffffffffffffffffffffffff60028201541673ffffffffffffffffffffffffffffffffffffffff60038301541660048301549160ff600660058601549501541694604051968752602087015260408601526060850152608084015260a0830152151560c0820152f35b50346101a25760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435906024356044359273ffffffffffffffffffffffffffffffffffffffff841693848103610ad5576064356040517f9a06b0b10000000000000000000000000000000000000000000000000000000081528460048201526020816024818a5afa90811561113c578691611c4c575b508115611c2157808211611c2157863b15611c1d576040517f42842e0e000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690528681606481838c5af18015611c1257611bcd575b507f2fee70c317c7ecaeff2d718d52c77a658fa4eb6943f4ca16cc6a8d2ce1821159939291866006611bc79899611bbf9460405191611a64836120cf565b88835273ffffffffffffffffffffffffffffffffffffffff60208401918c83526040850190815281606086019133835260808701948a865260a08801968752604060c089019a808c526001548152600460205220975188555160018801555116826002870191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055511673ffffffffffffffffffffffffffffffffffffffff6003850191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055516004830155516005820155019051151560ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008354169116179055600154809660405195869533879273ffffffffffffffffffffffffffffffffffffffff60a09592989796938160c087019a1686521660208501526040840152606083015260808201520152565b0390a16121ec565b60015580f35b91611bbf91600688611c05611bc79a7f2fee70c317c7ecaeff2d718d52c77a658fa4eb6943f4ca16cc6a8d2ce1821159999897612136565b9850509150919293611a26565b6040513d89823e3d90fd5b8580fd5b7f69ff0f0c000000000000000000000000000000000000000000000000000000008652600452602485fd5b90506020813d602011611c76575b81611c6760209383612136565b81010312611c1d5751386119c4565b3d9150611c5a565b50346101a25760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257611cb6612084565b50611cbf6120ac565b5060643567ffffffffffffffff8111611d3f5736602382011215611d3f578060040135611ceb81612177565b611cf86040519182612136565b8181523660248385010111610ad557816024602094018483013701015260206040517f150b7a02000000000000000000000000000000000000000000000000000000008152f35b5080fd5b905034611d3f5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112611d3f576004356024359181845260046020526040842090611d91816120cf565b815481526001820154906020810191825273ffffffffffffffffffffffffffffffffffffffff600284015416926040820193845260c060ff600673ffffffffffffffffffffffffffffffffffffffff6003850154169384606087015260048101546080870152600581015460a087015201541692019115158252331461205c578151156120345751610b0c5773ffffffffffffffffffffffffffffffffffffffff60209151925116916024604051809481937f9a06b0b100000000000000000000000000000000000000000000000000000000835260048301525afa908115611114578491612002575b508215611fd75780831015611fd75750604051611e978161211a565b8181526020810183815273ffffffffffffffffffffffffffffffffffffffff8060026040850194338652606081019489865282548a52600560205260408a209151825551600182015501935116167fffffffffffffffffffffffff0000000000000000000000000000000000000000835416178255516003811015611faa57611fa493927f9acbe117161a06df774887046f66a09c3dffa69c80a9984f2e303e1939b1b033926080927fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff74ff000000000000000000000000000000000000000083549260a01b169116179055600254936040519185835260208301526040820152336060820152a16121ec565b60025580f35b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b7f69ff0f0c000000000000000000000000000000000000000000000000000000008452600452602483fd5b90506020813d60201161202c575b8161201d60209383612136565b81010312610ad5575138611e7b565b3d9150612010565b6004867f2128d120000000000000000000000000000000000000000000000000000000008152fd5b6004867f0ae7c088000000000000000000000000000000000000000000000000000000008152fd5b6004359073ffffffffffffffffffffffffffffffffffffffff821682036120a757565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff821682036120a757565b60e0810190811067ffffffffffffffff8211176120eb57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff8211176120eb57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176120eb57604052565b67ffffffffffffffff81116120eb57601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60038210156121bd5752565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146122195760010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9190820391821161221957565b3d15612280573d9061226682612177565b916122746040519384612136565b82523d6000602084013e565b606090565b9190820180921161221957565b908160209103126120a7575180151581036120a75790565b91908260409103126120a7576020825192015190565b9091926122cf903390856126b4565b9290916123ac5773ffffffffffffffffffffffffffffffffffffffff1680156123825733146123585761230b6123058383612248565b84612285565b340361231657505050565b60849350604051927f42d45f78000000000000000000000000000000000000000000000000000000008452346004850152602484015260448301526064820152fd5b7fccdbee850000000000000000000000000000000000000000000000000000000060005260046000fd5b7f2128d1200000000000000000000000000000000000000000000000000000000060005260046000fd5b7f0b3465c20000000000000000000000000000000000000000000000000000000060005260046000fd5b73ffffffffffffffffffffffffffffffffffffffff6000541633036123f757565b7f118cdaa7000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b9060648202907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60648409928280851094039380850394146124eb57838211156124c1576064829109816000038216809204600281600302188082026002030280820260020302808202600203028082026002030280820260020302809102600203029360018380600003040190848311900302920304170290565b7f227bc1530000000000000000000000000000000000000000000000000000000060005260046000fd5b50809250156124f8570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b9190916000838202917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff858209918380841093039280840393146125d15782606411156125a957507f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c2993946064910990828211900360fe1b910360021c170290565b807f227bc1530000000000000000000000000000000000000000000000000000000060049252fd5b50505060649192500490565b9190916000838202917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8582099183808410930392808403931461266157826103e811156125a957507fac083126e978d4fdf3b645a1cac083126e978d4fdf3b645a1cac083126e978d593946103e8910990828211900360fd1b910360031c170290565b5050506103e89192500490565b908160209103126120a7575161ffff811681036120a75790565b908160209103126120a7575173ffffffffffffffffffffffffffffffffffffffff811681036120a75790565b602073ffffffffffffffffffffffffffffffffffffffff929493946004604051809581937f77d3550b000000000000000000000000000000000000000000000000000000008352165afa90811561282f57600091612886575b61271792506125dd565b9173ffffffffffffffffffffffffffffffffffffffff60035416604051917f29ef1919000000000000000000000000000000000000000000000000000000008352602083600481855afa92831561282f5760009361283b575b5073ffffffffffffffffffffffffffffffffffffffff602460209260405194859384927f23f6f9680000000000000000000000000000000000000000000000000000000084521660048301525afa801561282f5773ffffffffffffffffffffffffffffffffffffffff91600091612800575b5016156127fa5761ffff6127f7911683612527565b90565b50600090565b612822915060203d602011612828575b61281a8183612136565b810190612688565b386127e2565b503d612810565b6040513d6000823e3d90fd5b6020919350602461287673ffffffffffffffffffffffffffffffffffffffff92843d861161287f575b61286e8183612136565b81019061266e565b94925050612770565b503d612864565b90506020823d6020116128b4575b816128a160209383612136565b810103126120a75761271791519061270d565b3d9150612894565b909173ffffffffffffffffffffffffffffffffffffffff600354169173ffffffffffffffffffffffffffffffffffffffff604051947f23f6f968000000000000000000000000000000000000000000000000000000008652166004850152602084602481865afa92831561282f576024946000946129ca575b50602090604051958680927f5d8162b000000000000000000000000000000000000000000000000000000000825273ffffffffffffffffffffffffffffffffffffffff881660048301525afa93841561282f576000946129a5575b506129a09061ffff8516906125dd565b929190565b6129a09194506129c39060203d60201161287f5761286e8183612136565b9390612990565b60209194506129e590823d84116128285761281a8183612136565b939061293556fea2646970667358221220bf788bd6eac065654da4c81de20f907429b44be68b562da20b4308e4934ad4aa64736f6c634300081a0033000000000000000000000000aedfd5689fc5aa4500f78c81e29aad2de6c4146c000000000000000000000000c946cb236481c159f460b212b34ab246dac37fcd
Deployed Bytecode
0x60c080604052600436101561001d575b50361561001b57600080fd5b005b600090813560e01c90816305b7cdd314611d4357508063150b7a0214611c7e57806334c1d5ef1461192457806344432bfc1461186957806351ed8288146113ed578063715018a6146113515780638a72ea6a146112975780638da5cb5b14611246578063a5d7c10a14610b34578063b0cd2aa0146108b9578063d11357fc14610392578063ef706adf146101a55763f2fde38b0361000f57346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a25773ffffffffffffffffffffffffffffffffffffffff610101612084565b6101096123d6565b1680156101765773ffffffffffffffffffffffffffffffffffffffff8254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b6024827f1e4fbdf700000000000000000000000000000000000000000000000000000000815280600452fd5b80fd5b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a2576004358082526005602052604082206002604051916101f38361211a565b805483526001810154602084015201549061023560ff6060604084019373ffffffffffffffffffffffffffffffffffffffff86168552019360a01c16836121b1565b73ffffffffffffffffffffffffffffffffffffffff8151161561036a575173ffffffffffffffffffffffffffffffffffffffff16330361034257805160038110156102ed5760021461031a57805160038110156102ed576001146102c5577f0ff09947dd7d2583091e8cbfb427fecacb697bf895187b243fd0072c0ee9b95191600260209252604051908152a180f35b6004837f0b3465c2000000000000000000000000000000000000000000000000000000008152fd5b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b6004837f4b06e2b6000000000000000000000000000000000000000000000000000000008152fd5b6004837fd2241dbf000000000000000000000000000000000000000000000000000000008152fd5b6004847fdd2c43c3000000000000000000000000000000000000000000000000000000008152fd5b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a25760043581526004602052604081206040516103d7816120cf565b815481526001820154602082015273ffffffffffffffffffffffffffffffffffffffff600283015416604082015273ffffffffffffffffffffffffffffffffffffffff600383015416918260608301526004810154926080830193845260ff600660058401549360a08601948552015416151560c08401523314610891578151926104aa73ffffffffffffffffffffffffffffffffffffffff604085015116926104b673ffffffffffffffffffffffffffffffffffffffff606087015116946104a186828a6126b4565b949096876128bc565b939199909233916126b4565b6104c033836128bc565b97919990968951905114610869578c8080808e61051c60c0820151151573ffffffffffffffffffffffffffffffffffffffff60608401511683519073ffffffffffffffffffffffffffffffffffffffff604086015116926122c0565b600435825260046020526006604083200160017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905561058673ffffffffffffffffffffffffffffffffffffffff60608301511691516105808989612248565b90612248565b905af1610591612255565b5015610841578c936105e06105c18c8f88976105bb6105b6926105b68b9a8b9a612248565b612248565b95612248565b73ffffffffffffffffffffffffffffffffffffffff6003541692612285565b905af16105eb612255565b5015610819578893929161ffff8992166107b8575b505061ffff1661075e575b505060408381015160208501519251606086015183517fe5e03c840000000000000000000000000000000000000000000000000000000081526004810195909552602485019190915233604485015273ffffffffffffffffffffffffffffffffffffffff9081166064850152929392849160849183918a91165af1938415610753577fc90266c443ed87d39323ca7295afbe1c5962592e9176f17a213685404e1b41989460e09487948892610704575b50606073ffffffffffffffffffffffffffffffffffffffff910151169360405194338652602086015260043560408601526060850152608084015260a083015260c0820152a180f35b6060955073ffffffffffffffffffffffffffffffffffffffff9192506107419060403d60401161074c575b6107398183612136565b8101906122aa565b9590959291506106bb565b503d61072f565b6040513d87823e3d90fd5b81808573ffffffffffffffffffffffffffffffffffffffff8294165af1610783612255565b501561079057843861060b565b6004857f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b9380809394959273ffffffffffffffffffffffffffffffffffffffff8294165af16107e1612255565b50156107f1579086918638610600565b6004877f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b6004897f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b60048d7f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b60048d7f13a1d59d000000000000000000000000000000000000000000000000000000008152fd5b6004847f0ae7c088000000000000000000000000000000000000000000000000000000008152fd5b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435808252600460205260408220604051610904816120cf565b815481526001820154916020820192835260c073ffffffffffffffffffffffffffffffffffffffff600283015416926040810193845260ff600673ffffffffffffffffffffffffffffffffffffffff600386015416946060840195865260048101546080850152600581015460a085015201541615159182910152610b0c5773ffffffffffffffffffffffffffffffffffffffff8151163303610ae457849084825260046020526006604083200160017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff808451169151168451823b15610ad5576040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff92909216602483015260448201529082908290606490829084905af18015610ad957610abc575b507f517d843c6a9bb1fdeaf690730b10760d1cc1cf82c528e488c0e926bfc0bf906d6060848673ffffffffffffffffffffffffffffffffffffffff865116915160405192835260208301526040820152a180f35b81610ac991949394612136565b610ad557908338610a68565b8380fd5b6040513d84823e3d90fd5b6004857f5ec82351000000000000000000000000000000000000000000000000000000008152fd5b6004857f6d6a4f9f000000000000000000000000000000000000000000000000000000008152fd5b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a2576004358152600560205260408120610bba60ff600260405193610b818561211a565b8054855260018101546020860152015473ffffffffffffffffffffffffffffffffffffffff8116604085015260a01c16606083016121b1565b8051825260046020526040822090610c5e610c5760405193610bdb856120cf565b805485526001810154602086015273ffffffffffffffffffffffffffffffffffffffff600282015416604086015273ffffffffffffffffffffffffffffffffffffffff600382015416606086015260ff6006600483015492836080890152600581015460a0890152015416151560c08601526020840151612425565b8351612527565b9173ffffffffffffffffffffffffffffffffffffffff60408201511690610cbe73ffffffffffffffffffffffffffffffffffffffff60408501511692610cc784610ca933848a6126b4565b610cb333836128bc565b97919990968c6126b4565b949093846128bc565b95919b909460608c01516003811015611219576002146111f15773ffffffffffffffffffffffffffffffffffffffff60608b01511633036111c95760c08a01516111a157610d158486612248565b340361116d57600160608d8101919091526040808e0151918c015190517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831660048201529116602482015260448101929092528d969594939291906020826064818b7394373a4919b3240d86ea41593d5eba789fef38485af18015611162578e6105b68f604073ffffffffffffffffffffffffffffffffffffffff91602097610dfa96611147575b500151169573ffffffffffffffffffffffffffffffffffffffff6003541694612248565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9485166004820152919093166024820152604481019290925281606481897394373a4919b3240d86ea41593d5eba789fef38485af194851561113c5761ffff87958e938d9861111f575b5016611044575b505090610eb283946105b6859473ffffffffffffffffffffffffffffffffffffffff6003541694612248565b905af1610ebd612255565b50156107f157908361ffff889316611010575b5050835186525060046020818152604080882060060180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558381015184830151928701518288015160609096015183517fe5e03c8400000000000000000000000000000000000000000000000000000000815295860194909452602485015273ffffffffffffffffffffffffffffffffffffffff9485166044850152918416606484015291928391168188816084810103925af1908115610753577f31c2f91f94ebed46a14abdc75f5a267d9b5a6610ccbc07e85361762f759fe3369460c09487928894610fe9575b505193604051946004358652602086015260408501526060840152608083015260a0820152a180f35b90935061100691925060403d60401161074c576107398183612136565b9190919238610fc0565b8280929173ffffffffffffffffffffffffffffffffffffffff8293165af1611036612255565b501561079057843883610ed0565b60408c81015190517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201529116602482015260448101919091529093509150602082606481877394373a4919b3240d86ea41593d5eba789fef38485af190811561111457610eb2896105b68796879687966110e5575b5093945050948c9150610e86565b6111069060203d60201161110d575b6110fe8183612136565b810190612292565b50386110d7565b503d6110f4565b6040513d86823e3d90fd5b6111379060203d60201161110d576110fe8183612136565b610e7f565b6040513d88823e3d90fd5b61115d90893d8b1161110d576110fe8183612136565b610dd6565b6040513d8a823e3d90fd5b60648e85877fa7c2407300000000000000000000000000000000000000000000000000000000835234600452602452604452fd5b60048e7f0b3465c2000000000000000000000000000000000000000000000000000000008152fd5b60048e7f5ec82351000000000000000000000000000000000000000000000000000000008152fd5b60048e7f4b06e2b6000000000000000000000000000000000000000000000000000000008152fd5b60248f7f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b50346101a257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a25773ffffffffffffffffffffffffffffffffffffffff6020915416604051908152f35b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435815260056020526040812080549073ffffffffffffffffffffffffffffffffffffffff6002600183015492015460ff8160a01c16926040519485526020850152166040830152600381101561132457608092506060820152f35b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b50346101a257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a2576113886123d6565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435815260046020526040812060405160a05261143760a0516120cf565b805460a051526001810154602060a051015273ffffffffffffffffffffffffffffffffffffffff60028201541690604060a0510191825273ffffffffffffffffffffffffffffffffffffffff60038201541680606060a0510152600482015490608060a0510191825260ff600660058501549460a0805101958652015416151560c060a0510152331461089157519051036118415760a0515173ffffffffffffffffffffffffffffffffffffffff82511661152073ffffffffffffffffffffffffffffffffffffffff606060a0510151169261152f6115178585846126b4565b939095866128bc565b909391608052929433916126b4565b939061153b33826128bc565b969197909561158c60c060a051015115158b73ffffffffffffffffffffffffffffffffffffffff606060a05101511673ffffffffffffffffffffffffffffffffffffffff60a05151925116926122c0565b6004358b526004602052600660408c200160017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790558a80808073ffffffffffffffffffffffffffffffffffffffff606060a0510151166115f48760a05151612248565b905af16115ff612255565b5015611819578a936116266105c18b6105b688976105bb89986105b68a9960805192612248565b905af1611631612255565b50156107f15791849161ffff889594166117dc575b5061ffff16611780575b505073ffffffffffffffffffffffffffffffffffffffff835116602060a051015190803b1561177c576040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019290925282908290606490829084905af18015610ad957611767575b505073ffffffffffffffffffffffffffffffffffffffff7f717d06d30997e89eef967a42478791fa9d1b26d0243c0209d549851e5c307cf3925116611761602060a051015192604051938493608051916004359133879273ffffffffffffffffffffffffffffffffffffffff60a09592989796938160c087019a1686521660208501526040840152606083015260808201520152565b0390a180f35b8161177191612136565b61177c5782386116cb565b8280fd5b8280929173ffffffffffffffffffffffffffffffffffffffff8293165af16117a6612255565b50156117b457823882611650565b6004837f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b84809350809294959173ffffffffffffffffffffffffffffffffffffffff60805191165af1611809612255565b5015610790579082859238611646565b60048b7f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b6004827ff60085b1000000000000000000000000000000000000000000000000000000008152fd5b50346101a25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257604060e091600435815260046020522080549060018101549073ffffffffffffffffffffffffffffffffffffffff60028201541673ffffffffffffffffffffffffffffffffffffffff60038301541660048301549160ff600660058601549501541694604051968752602087015260408601526060850152608084015260a0830152151560c0820152f35b50346101a25760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257600435906024356044359273ffffffffffffffffffffffffffffffffffffffff841693848103610ad5576064356040517f9a06b0b10000000000000000000000000000000000000000000000000000000081528460048201526020816024818a5afa90811561113c578691611c4c575b508115611c2157808211611c2157863b15611c1d576040517f42842e0e000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690528681606481838c5af18015611c1257611bcd575b507f2fee70c317c7ecaeff2d718d52c77a658fa4eb6943f4ca16cc6a8d2ce1821159939291866006611bc79899611bbf9460405191611a64836120cf565b88835273ffffffffffffffffffffffffffffffffffffffff60208401918c83526040850190815281606086019133835260808701948a865260a08801968752604060c089019a808c526001548152600460205220975188555160018801555116826002870191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055511673ffffffffffffffffffffffffffffffffffffffff6003850191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055516004830155516005820155019051151560ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008354169116179055600154809660405195869533879273ffffffffffffffffffffffffffffffffffffffff60a09592989796938160c087019a1686521660208501526040840152606083015260808201520152565b0390a16121ec565b60015580f35b91611bbf91600688611c05611bc79a7f2fee70c317c7ecaeff2d718d52c77a658fa4eb6943f4ca16cc6a8d2ce1821159999897612136565b9850509150919293611a26565b6040513d89823e3d90fd5b8580fd5b7f69ff0f0c000000000000000000000000000000000000000000000000000000008652600452602485fd5b90506020813d602011611c76575b81611c6760209383612136565b81010312611c1d5751386119c4565b3d9150611c5a565b50346101a25760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a257611cb6612084565b50611cbf6120ac565b5060643567ffffffffffffffff8111611d3f5736602382011215611d3f578060040135611ceb81612177565b611cf86040519182612136565b8181523660248385010111610ad557816024602094018483013701015260206040517f150b7a02000000000000000000000000000000000000000000000000000000008152f35b5080fd5b905034611d3f5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112611d3f576004356024359181845260046020526040842090611d91816120cf565b815481526001820154906020810191825273ffffffffffffffffffffffffffffffffffffffff600284015416926040820193845260c060ff600673ffffffffffffffffffffffffffffffffffffffff6003850154169384606087015260048101546080870152600581015460a087015201541692019115158252331461205c578151156120345751610b0c5773ffffffffffffffffffffffffffffffffffffffff60209151925116916024604051809481937f9a06b0b100000000000000000000000000000000000000000000000000000000835260048301525afa908115611114578491612002575b508215611fd75780831015611fd75750604051611e978161211a565b8181526020810183815273ffffffffffffffffffffffffffffffffffffffff8060026040850194338652606081019489865282548a52600560205260408a209151825551600182015501935116167fffffffffffffffffffffffff0000000000000000000000000000000000000000835416178255516003811015611faa57611fa493927f9acbe117161a06df774887046f66a09c3dffa69c80a9984f2e303e1939b1b033926080927fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff74ff000000000000000000000000000000000000000083549260a01b169116179055600254936040519185835260208301526040820152336060820152a16121ec565b60025580f35b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526021600452fd5b7f69ff0f0c000000000000000000000000000000000000000000000000000000008452600452602483fd5b90506020813d60201161202c575b8161201d60209383612136565b81010312610ad5575138611e7b565b3d9150612010565b6004867f2128d120000000000000000000000000000000000000000000000000000000008152fd5b6004867f0ae7c088000000000000000000000000000000000000000000000000000000008152fd5b6004359073ffffffffffffffffffffffffffffffffffffffff821682036120a757565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff821682036120a757565b60e0810190811067ffffffffffffffff8211176120eb57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff8211176120eb57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176120eb57604052565b67ffffffffffffffff81116120eb57601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60038210156121bd5752565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146122195760010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9190820391821161221957565b3d15612280573d9061226682612177565b916122746040519384612136565b82523d6000602084013e565b606090565b9190820180921161221957565b908160209103126120a7575180151581036120a75790565b91908260409103126120a7576020825192015190565b9091926122cf903390856126b4565b9290916123ac5773ffffffffffffffffffffffffffffffffffffffff1680156123825733146123585761230b6123058383612248565b84612285565b340361231657505050565b60849350604051927f42d45f78000000000000000000000000000000000000000000000000000000008452346004850152602484015260448301526064820152fd5b7fccdbee850000000000000000000000000000000000000000000000000000000060005260046000fd5b7f2128d1200000000000000000000000000000000000000000000000000000000060005260046000fd5b7f0b3465c20000000000000000000000000000000000000000000000000000000060005260046000fd5b73ffffffffffffffffffffffffffffffffffffffff6000541633036123f757565b7f118cdaa7000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b9060648202907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60648409928280851094039380850394146124eb57838211156124c1576064829109816000038216809204600281600302188082026002030280820260020302808202600203028082026002030280820260020302809102600203029360018380600003040190848311900302920304170290565b7f227bc1530000000000000000000000000000000000000000000000000000000060005260046000fd5b50809250156124f8570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b9190916000838202917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff858209918380841093039280840393146125d15782606411156125a957507f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c2993946064910990828211900360fe1b910360021c170290565b807f227bc1530000000000000000000000000000000000000000000000000000000060049252fd5b50505060649192500490565b9190916000838202917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8582099183808410930392808403931461266157826103e811156125a957507fac083126e978d4fdf3b645a1cac083126e978d4fdf3b645a1cac083126e978d593946103e8910990828211900360fd1b910360031c170290565b5050506103e89192500490565b908160209103126120a7575161ffff811681036120a75790565b908160209103126120a7575173ffffffffffffffffffffffffffffffffffffffff811681036120a75790565b602073ffffffffffffffffffffffffffffffffffffffff929493946004604051809581937f77d3550b000000000000000000000000000000000000000000000000000000008352165afa90811561282f57600091612886575b61271792506125dd565b9173ffffffffffffffffffffffffffffffffffffffff60035416604051917f29ef1919000000000000000000000000000000000000000000000000000000008352602083600481855afa92831561282f5760009361283b575b5073ffffffffffffffffffffffffffffffffffffffff602460209260405194859384927f23f6f9680000000000000000000000000000000000000000000000000000000084521660048301525afa801561282f5773ffffffffffffffffffffffffffffffffffffffff91600091612800575b5016156127fa5761ffff6127f7911683612527565b90565b50600090565b612822915060203d602011612828575b61281a8183612136565b810190612688565b386127e2565b503d612810565b6040513d6000823e3d90fd5b6020919350602461287673ffffffffffffffffffffffffffffffffffffffff92843d861161287f575b61286e8183612136565b81019061266e565b94925050612770565b503d612864565b90506020823d6020116128b4575b816128a160209383612136565b810103126120a75761271791519061270d565b3d9150612894565b909173ffffffffffffffffffffffffffffffffffffffff600354169173ffffffffffffffffffffffffffffffffffffffff604051947f23f6f968000000000000000000000000000000000000000000000000000000008652166004850152602084602481865afa92831561282f576024946000946129ca575b50602090604051958680927f5d8162b000000000000000000000000000000000000000000000000000000000825273ffffffffffffffffffffffffffffffffffffffff881660048301525afa93841561282f576000946129a5575b506129a09061ffff8516906125dd565b929190565b6129a09194506129c39060203d60201161287f5761286e8183612136565b9390612990565b60209194506129e590823d84116128285761281a8183612136565b939061293556fea2646970667358221220bf788bd6eac065654da4c81de20f907429b44be68b562da20b4308e4934ad4aa64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000aedfd5689fc5aa4500f78c81e29aad2de6c4146c000000000000000000000000c946cb236481c159f460b212b34ab246dac37fcd
-----Decoded View---------------
Arg [0] : _withdrawalSCAddress (address): 0xaEdfD5689fc5aA4500F78C81E29AaD2DE6c4146C
Arg [1] : initialOwner (address): 0xC946cB236481C159F460b212b34AB246daC37FcD
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000aedfd5689fc5aa4500f78c81e29aad2de6c4146c
Arg [1] : 000000000000000000000000c946cb236481c159f460b212b34ab246dac37fcd
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.