Source Code
Latest 25 from a total of 913 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Accept Swap | 13556674 | 1467 days ago | IN | 0 ETH | 0.01959182 | ||||
| Initiate Swap | 13556592 | 1467 days ago | IN | 0.0025 ETH | 0.02267228 | ||||
| Propose Swap | 13556529 | 1467 days ago | IN | 0.0025 ETH | 0.02831416 | ||||
| Cancel Swap | 13556329 | 1467 days ago | IN | 0 ETH | 0.00812343 | ||||
| Propose Swap | 13555761 | 1467 days ago | IN | 0.0025 ETH | 0.02348857 | ||||
| Accept Swap | 13551995 | 1467 days ago | IN | 0 ETH | 0.04718026 | ||||
| Initiate Swap | 13551979 | 1467 days ago | IN | 0.0025 ETH | 0.03528653 | ||||
| Propose Swap | 13551877 | 1467 days ago | IN | 0.0025 ETH | 0.0797856 | ||||
| Accept Swap | 13544927 | 1468 days ago | IN | 0 ETH | 0.04735444 | ||||
| Initiate Swap | 13544917 | 1468 days ago | IN | 0.0025 ETH | 0.05306159 | ||||
| Propose Swap | 13544903 | 1468 days ago | IN | 86.5025 ETH | 0.04745433 | ||||
| Accept Swap | 13544514 | 1469 days ago | IN | 0 ETH | 0.06495439 | ||||
| Initiate Swap | 13544482 | 1469 days ago | IN | 27.0025 ETH | 0.04137276 | ||||
| Propose Swap | 13544449 | 1469 days ago | IN | 0.0025 ETH | 0.19896987 | ||||
| Cancel Swap | 13542714 | 1469 days ago | IN | 0 ETH | 0.01142404 | ||||
| Accept Swap | 13542080 | 1469 days ago | IN | 0 ETH | 0.03592924 | ||||
| Initiate Swap | 13542055 | 1469 days ago | IN | 0.0025 ETH | 0.02337821 | ||||
| Propose Swap | 13542033 | 1469 days ago | IN | 0.0025 ETH | 0.04700796 | ||||
| Propose Swap | 13541998 | 1469 days ago | IN | 0.0025 ETH | 0.03392265 | ||||
| Accept Swap | 13539159 | 1469 days ago | IN | 0 ETH | 0.0900773 | ||||
| Initiate Swap | 13539149 | 1469 days ago | IN | 0.0025 ETH | 0.03229843 | ||||
| Propose Swap | 13539094 | 1469 days ago | IN | 0.0025 ETH | 0.22738088 | ||||
| Cancel Swap | 13539064 | 1469 days ago | IN | 0 ETH | 0.10539248 | ||||
| Propose Swap | 13539044 | 1469 days ago | IN | 0.0025 ETH | 0.2458277 | ||||
| Accept Swap | 13538743 | 1469 days ago | IN | 0 ETH | 0.0533067 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
To
|
|||
|---|---|---|---|---|---|---|---|
| - | 13544927 | 1468 days ago | 86.5 ETH | ||||
| - | 13544514 | 1469 days ago | 27 ETH | ||||
| - | 13538743 | 1469 days ago | 91.5 ETH | ||||
| - | 13512928 | 1474 days ago | 0.385 ETH | ||||
| - | 13509200 | 1474 days ago | 30 ETH | ||||
| - | 13504148 | 1475 days ago | 0.34 ETH | ||||
| - | 13488430 | 1477 days ago | 5 ETH | ||||
| - | 13484871 | 1478 days ago | 17 ETH | ||||
| - | 13482310 | 1478 days ago | 75 ETH | ||||
| - | 13482050 | 1478 days ago | 2.8 ETH | ||||
| - | 13425110 | 1487 days ago | 0.4 ETH | ||||
| - | 13405005 | 1490 days ago | 1 ETH | ||||
| - | 13369543 | 1496 days ago | 0.5 ETH | ||||
| - | 13368537 | 1496 days ago | 1.5 ETH | ||||
| - | 13366922 | 1496 days ago | 55 ETH | ||||
| - | 13272498 | 1511 days ago | 0.4 ETH | ||||
| - | 13266161 | 1512 days ago | 168 ETH | ||||
| - | 13254582 | 1514 days ago | 3.65 ETH | ||||
| - | 13252567 | 1514 days ago | 0.9 ETH | ||||
| - | 13252301 | 1514 days ago | 3.75 ETH | ||||
| - | 13248273 | 1515 days ago | 4.8 ETH | ||||
| - | 13245124 | 1515 days ago | 1.2 ETH | ||||
| - | 13239173 | 1516 days ago | 10 ETH | ||||
| - | 13232018 | 1517 days ago | 2 ETH | ||||
| - | 13228692 | 1518 days ago | 10.5 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SwapKiwi
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.1;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract SwapKiwi is Ownable, IERC721Receiver {
uint256 private _swapsCounter;
uint256 private _etherLocked;
uint256 public fee;
mapping (address => uint256) private _balances;
mapping (uint256 => Swap) private _swaps;
struct Swap {
address payable initiator;
address[] initiatorNftAddresses;
uint256[] initiatorNftIds;
uint256 initiatorEtherValue;
address payable secondUser;
address[] secondUserNftAddresses;
uint256[] secondUserNftIds;
uint256 secondUserEtherValue;
}
event SwapExecuted(address indexed from, address indexed to, uint256 indexed swapId);
event SwapCanceled(address indexed canceledBy, uint256 indexed swapId);
event SwapProposed(
address indexed from,
address indexed to,
uint256 indexed swapId,
address[] nftAddresses,
uint256[] nftIds,
uint256 etherValue
);
event SwapInitiated(
address indexed from,
address indexed to,
uint256 indexed swapId,
address[] nftAddresses,
uint256[] nftIds,
uint256 etherValue
);
modifier onlyInitiator(uint256 swapId) {
require(msg.sender == _swaps[swapId].initiator,
"SwapKiwi: caller is not swap initiator");
_;
}
modifier requireSameLength(address[] memory nftAddresses, uint256[] memory nftIds) {
require(nftAddresses.length == nftIds.length, "SwapKiwi: NFT and ID arrays have to be same length");
_;
}
modifier chargeAppFee() {
require(msg.value >= fee, "SwapKiwi: Sent ETH amount needs to be more or equal application fee");
_;
}
constructor(uint256 initalAppFee, address contractOwnerAddress) {
fee = initalAppFee;
super.transferOwnership(contractOwnerAddress);
}
function setAppFee(uint newFee) public onlyOwner {
fee = newFee;
}
/**
* @dev First user proposes a swap to the second user with the NFTs that he deposits and wants to trade.
* Proposed NFTs are transfered to the SwapKiwi contract and
* kept there until the swap is accepted or canceled/rejected.
*
* @param secondUser address of the user that the first user wants to trade NFTs with
* @param nftAddresses array of NFT addressed that want to be traded
* @param nftIds array of IDs belonging to NFTs that want to be traded
*/
function proposeSwap(address secondUser, address[] memory nftAddresses, uint256[] memory nftIds)
external payable chargeAppFee requireSameLength(nftAddresses, nftIds) {
_swapsCounter += 1;
safeMultipleTransfersFrom(
msg.sender,
address(this),
nftAddresses,
nftIds
);
Swap storage swap = _swaps[_swapsCounter];
swap.initiator = payable(msg.sender);
swap.initiatorNftAddresses = nftAddresses;
swap.initiatorNftIds = nftIds;
if (msg.value > fee) {
swap.initiatorEtherValue = msg.value - fee;
_etherLocked += swap.initiatorEtherValue;
}
swap.secondUser = payable(secondUser);
emit SwapProposed(msg.sender, secondUser, _swapsCounter, nftAddresses, nftIds, swap.initiatorEtherValue);
}
/**
* @dev Second user accepts the swap (with proposed NFTs) from swap initiator and
* deposits his NFTs into the SwapKiwi contract.
* Callable only by second user that is invited by swap initiator.
*
* @param swapId ID of the swap that the second user is invited to participate in
* @param nftAddresses array of NFT addressed that want to be traded
* @param nftIds array of IDs belonging to NFTs that want to be traded
*/
function initiateSwap(uint256 swapId, address[] memory nftAddresses, uint256[] memory nftIds)
external payable chargeAppFee requireSameLength(nftAddresses, nftIds) {
require(_swaps[swapId].secondUser == msg.sender, "SwapKiwi: caller is not swap participator");
require(
_swaps[swapId].secondUserNftAddresses.length == 0 && _swaps[swapId].secondUserNftIds.length == 0,
"SwapKiwi: swap already initiated"
);
safeMultipleTransfersFrom(
msg.sender,
address(this),
nftAddresses,
nftIds
);
_swaps[swapId].secondUserNftAddresses = nftAddresses;
_swaps[swapId].secondUserNftIds = nftIds;
if (msg.value > fee) {
_swaps[swapId].secondUserEtherValue = msg.value - fee;
_etherLocked += _swaps[swapId].secondUserEtherValue;
}
emit SwapInitiated(
msg.sender,
_swaps[swapId].initiator,
swapId,
nftAddresses,
nftIds,
_swaps[swapId].secondUserEtherValue
);
}
/**
* @dev Swap initiator accepts the swap (NFTs proposed by the second user).
* Executeds the swap - transfers NFTs from SwapKiwi to the participating users.
* Callable only by swap initiator.
*
* @param swapId ID of the swap that the initator wants to execute
*/
function acceptSwap(uint256 swapId) external onlyInitiator(swapId) {
require( _swaps[swapId].secondUserNftAddresses.length != 0 &&
_swaps[swapId].initiatorNftAddresses.length != 0,
"SwapKiwi: Can't accept swap, both participants didn't add NFTs"
);
// transfer NFTs from escrow to initiator
safeMultipleTransfersFrom(
address(this),
_swaps[swapId].initiator,
_swaps[swapId].secondUserNftAddresses,
_swaps[swapId].secondUserNftIds
);
// transfer NFTs from escrow to second user
safeMultipleTransfersFrom(
address(this),
_swaps[swapId].secondUser,
_swaps[swapId].initiatorNftAddresses,
_swaps[swapId].initiatorNftIds
);
if (_swaps[swapId].initiatorEtherValue != 0) {
_etherLocked -= _swaps[swapId].initiatorEtherValue;
_swaps[swapId].secondUser.transfer(_swaps[swapId].initiatorEtherValue);
}
if (_swaps[swapId].secondUserEtherValue != 0) {
_etherLocked -= _swaps[swapId].secondUserEtherValue;
_swaps[swapId].initiator.transfer(_swaps[swapId].secondUserEtherValue);
}
emit SwapExecuted(_swaps[swapId].initiator, _swaps[swapId].secondUser, swapId);
delete _swaps[swapId];
}
/**
* @dev Returns NFTs from SwapKiwi to swap initator.
* Callable only if second user hasn't yet added NFTs.
*
* @param swapId ID of the swap that the swap participants want to cancel
*/
function cancelSwap(uint256 swapId) external {
require(
_swaps[swapId].initiator == msg.sender || _swaps[swapId].secondUser == msg.sender,
"SwapKiwi: Can't cancel swap, must be swap participant"
);
// return initiator NFTs
safeMultipleTransfersFrom(
address(this),
_swaps[swapId].initiator,
_swaps[swapId].initiatorNftAddresses,
_swaps[swapId].initiatorNftIds
);
if(_swaps[swapId].secondUserNftAddresses.length != 0) {
// return second user NFTs
safeMultipleTransfersFrom(
address(this),
_swaps[swapId].secondUser,
_swaps[swapId].secondUserNftAddresses,
_swaps[swapId].secondUserNftIds
);
}
if (_swaps[swapId].initiatorEtherValue != 0) {
_etherLocked -= _swaps[swapId].initiatorEtherValue;
_swaps[swapId].initiator.transfer(_swaps[swapId].initiatorEtherValue);
}
if (_swaps[swapId].secondUserEtherValue != 0) {
_etherLocked -= _swaps[swapId].secondUserEtherValue;
_swaps[swapId].secondUser.transfer(_swaps[swapId].secondUserEtherValue);
}
emit SwapCanceled(msg.sender, swapId);
delete _swaps[swapId];
}
function safeMultipleTransfersFrom(
address from,
address to,
address[] memory nftAddresses,
uint256[] memory nftIds
) internal virtual {
for (uint256 i=0; i < nftIds.length; i++){
safeTransferFrom(from, to, nftAddresses[i], nftIds[i], "");
}
}
function safeTransferFrom(
address from,
address to,
address tokenAddress,
uint256 tokenId,
bytes memory _data
) internal virtual {
IERC721(tokenAddress).safeTransferFrom(from, to, tokenId, _data);
}
function withdrawEther(address payable recipient, uint256 amount) external onlyOwner {
require(recipient != address(0), "SwapKiwi: transfer to the zero address");
require(
address(this).balance - _etherLocked >= amount,
"SwapKiwi: insufficient ETH in contract"
);
recipient.transfer(amount);
}
function onERC721Received(
/* solhint-disable */
address operator,
address from,
uint256 tokenId,
bytes calldata data
/* solhint-enable */
) external pure override returns (bytes4) {
return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface 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 `IERC721.onERC721Received.selector`.
*/
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../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`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev 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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"initalAppFee","type":"uint256"},{"internalType":"address","name":"contractOwnerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"canceledBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"SwapCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"SwapExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"nftAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"nftIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"etherValue","type":"uint256"}],"name":"SwapInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"nftAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"nftIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"etherValue","type":"uint256"}],"name":"SwapProposed","type":"event"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"acceptSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"cancelSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"},{"internalType":"address[]","name":"nftAddresses","type":"address[]"},{"internalType":"uint256[]","name":"nftIds","type":"uint256[]"}],"name":"initiateSwap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"secondUser","type":"address"},{"internalType":"address[]","name":"nftAddresses","type":"address[]"},{"internalType":"uint256[]","name":"nftIds","type":"uint256[]"}],"name":"proposeSwap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"setAppFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162001c0938038062001c09833981016040819052620000349162000173565b6000620000406200009e565b600080546001600160a01b0319166001600160a01b03831690811782556040519293509160008051602062001be9833981519152908290a350816003819055506200009681620000a260201b62000f241760201c565b50506200022b565b3390565b620000ac6200009e565b6001600160a01b0316620000bf62000164565b6001600160a01b031614620000f15760405162461bcd60e51b8152600401620000e890620001f6565b60405180910390fd5b6001600160a01b0381166200011a5760405162461bcd60e51b8152600401620000e890620001b0565b600080546040516001600160a01b038085169392169160008051602062001be983398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b6000806040838503121562000186578182fd5b825160208401519092506001600160a01b0381168114620001a5578182fd5b809150509250929050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6119ae806200023b6000396000f3fe60806040526004361061009c5760003560e01c8063715018a611610064578063715018a61461014c5780637ea5482a146101615780638da5cb5b14610181578063dbd6dd5f146101a3578063ddca3f43146101b6578063f2fde38b146101d85761009c565b8063150b7a02146100a15780631bf33004146100d7578063522f6815146100f957806354d6a2b71461011957806355a36d5614610139575b600080fd5b3480156100ad57600080fd5b506100c16100bc3660046112d5565b6101f8565b6040516100ce9190611542565b60405180910390f35b3480156100e357600080fd5b506100f76100f23660046113e2565b610222565b005b34801561010557600080fd5b506100f76101143660046112aa565b610655565b34801561012557600080fd5b506100f76101343660046113e2565b610722565b6100f761014736600461136f565b610b16565b34801561015857600080fd5b506100f7610c76565b34801561016d57600080fd5b506100f761017c3660046113e2565b610cff565b34801561018d57600080fd5b50610196610d43565b6040516100ce919061142c565b6100f76101b13660046113fa565b610d52565b3480156101c257600080fd5b506101cb610f1e565b6040516100ce919061188f565b3480156101e457600080fd5b506100f76101f3366004611287565b610f24565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b60008181526005602052604090205481906001600160a01b031633146102635760405162461bcd60e51b815260040161025a906116ff565b60405180910390fd5b6000828152600560208190526040909120015415801590610294575060008281526005602052604090206001015415155b6102b05760405162461bcd60e51b815260040161025a90611797565b60008281526005602081815260409283902080549201805484518184028101840190955280855261038b9430946001600160a01b0316939092919083018282801561032457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610306575b5050506000888152600560209081526040918290206006018054835181840281018401909452808452929450925083018282801561038157602002820191906000526020600020905b81548152602001906001019080831161036d575b5050505050610fe4565b60008281526005602090815260409182902060048101546001909101805484518185028101850190955280855261046c9430946001600160a01b03909416939092919083018282801561040757602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116103e9575b50505060008881526005602090815260409182902060020180548351818402810184019094528084529294509250830182828015610381576020028201919060005260206000209081548152602001906001019080831161036d575050505050610fe4565b600082815260056020526040902060030154156104fd5760008281526005602052604081206003015460028054919290916104a8908490611905565b9091555050600082815260056020526040808220600481015460039091015491516001600160a01b039091169282156108fc02929190818181858888f193505050501580156104fb573d6000803e3d6000fd5b505b6000828152600560205260409020600701541561058b576000828152600560205260408120600701546002805491929091610539908490611905565b9091555050600082815260056020526040808220805460079091015491516001600160a01b039091169282156108fc02929190818181858888f19350505050158015610589573d6000803e3d6000fd5b505b60008281526005602052604080822060048101549054915185936001600160a01b0392831693909216917fbad29f2bbbf6bb1e15563203bcdb0dd660c54eab078763eb66f797efa8f5e8c191a4600082815260056020526040812080546001600160a01b03191681559061060260018301826110e2565b6106106002830160006110e2565b6000600383018190556004830180546001600160a01b03191690556106399060058401906110e2565b6106476006830160006110e2565b600782016000905550505050565b61065d611073565b6001600160a01b031661066e610d43565b6001600160a01b0316146106945760405162461bcd60e51b815260040161025a906116ca565b6001600160a01b0382166106ba5760405162461bcd60e51b815260040161025a906117f4565b80600254476106c99190611905565b10156106e75760405162461bcd60e51b815260040161025a90611684565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561071d573d6000803e3d6000fd5b505050565b6000818152600560205260409020546001600160a01b031633148061076057506000818152600560205260409020600401546001600160a01b031633145b61077c5760405162461bcd60e51b815260040161025a9061183a565b60008181526005602090815260409182902080546001909101805484518185028101850190955280855261085a9430946001600160a01b0390941693909291908301828280156107f557602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107d7575b50505060008781526005602090815260409182902060020180548351818402810184019094528084529294509250830182828015610381576020028201919060005260206000209081548152602001906001019080831161036d575050505050610fe4565b600081815260056020819052604090912001541561094e5760008181526005602081815260409283902060048101549201805484518184028101840190955280855261094e9430946001600160a01b031693909291908301828280156108e957602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116108cb575b50505060008781526005602090815260409182902060060180548351818402810184019094528084529294509250830182828015610381576020028201919060005260206000209081548152602001906001019080831161036d575050505050610fe4565b600081815260056020526040902060030154156109dc57600081815260056020526040812060030154600280549192909161098a908490611905565b9091555050600081815260056020526040808220805460039091015491516001600160a01b039091169282156108fc02929190818181858888f193505050501580156109da573d6000803e3d6000fd5b505b60008181526005602052604090206007015415610a6d576000818152600560205260408120600701546002805491929091610a18908490611905565b9091555050600081815260056020526040808220600481015460079091015491516001600160a01b039091169282156108fc02929190818181858888f19350505050158015610a6b573d6000803e3d6000fd5b505b604051819033907fa715d65b6e7107257e3f1469a8b36f0003c039bf6cc6279c26d814b77efb658090600090a3600081815260056020526040812080546001600160a01b031916815590610ac460018301826110e2565b610ad26002830160006110e2565b6000600383018190556004830180546001600160a01b0319169055610afb9060058401906110e2565b610b096006830160006110e2565b6007820160009055505050565b600354341015610b385760405162461bcd60e51b815260040161025a9061161b565b81818051825114610b5b5760405162461bcd60e51b815260040161025a90611745565b6001806000828254610b6d91906118ed565b90915550610b7f905033308686610fe4565b60018054600090815260056020908152604090912080546001600160a01b0319163317815586519092610bb9929084019190880190611103565b508351610bcf9060028301906020870190611168565b50600354341115610c0657600354610be79034611905565b6003820181905560028054600090610c009084906118ed565b90915550505b6004810180546001600160a01b0319166001600160a01b038816908117909155600154600383015460405191929133917f47fb096797b2d0e6396ebd22643fca01f293468213c2fe2cb0c72256d21197e491610c66918b918b91906114b6565b60405180910390a4505050505050565b610c7e611073565b6001600160a01b0316610c8f610d43565b6001600160a01b031614610cb55760405162461bcd60e51b815260040161025a906116ca565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610d07611073565b6001600160a01b0316610d18610d43565b6001600160a01b031614610d3e5760405162461bcd60e51b815260040161025a906116ca565b600355565b6000546001600160a01b031690565b600354341015610d745760405162461bcd60e51b815260040161025a9061161b565b81818051825114610d975760405162461bcd60e51b815260040161025a90611745565b6000858152600560205260409020600401546001600160a01b03163314610dd05760405162461bcd60e51b815260040161025a90611557565b60008581526005602081905260409091200154158015610dff5750600085815260056020526040902060060154155b610e1b5760405162461bcd60e51b815260040161025a906115a0565b610e2733308686610fe4565b60008581526005602081815260409092208651610e4c93919092019190870190611103565b5060008581526005602090815260409091208451610e7292600690920191860190611168565b50600354341115610eb657600354610e8a9034611905565b600086815260056020526040812060070182905560028054909190610eb09084906118ed565b90915550505b600085815260056020526040908190208054600790910154915187926001600160a01b039092169133917f7b416b828b9210d412f535f753f5738b98aa13118616c9a6dc38b268a7b1fd0191610f0f918a918a916114b6565b60405180910390a45050505050565b60035481565b610f2c611073565b6001600160a01b0316610f3d610d43565b6001600160a01b031614610f635760405162461bcd60e51b815260040161025a906116ca565b6001600160a01b038116610f895760405162461bcd60e51b815260040161025a906115d5565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60005b815181101561106c5761105a858585848151811061101557634e487b7160e01b600052603260045260246000fd5b602002602001015185858151811061103d57634e487b7160e01b600052603260045260246000fd5b602002602001015160405180602001604052806000815250611077565b806110648161191c565b915050610fe7565b5050505050565b3390565b604051635c46a7ef60e11b81526001600160a01b0384169063b88d4fde906110a9908890889087908790600401611440565b600060405180830381600087803b1580156110c357600080fd5b505af11580156110d7573d6000803e3d6000fd5b505050505050505050565b508054600082559060005260206000209081019061110091906111a3565b50565b828054828255906000526020600020908101928215611158579160200282015b8281111561115857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611123565b506111649291506111a3565b5090565b828054828255906000526020600020908101928215611158579160200282015b82811115611158578251825591602001919060010190611188565b5b8082111561116457600081556001016111a4565b600082601f8301126111c8578081fd5b813560206111dd6111d8836118c9565b611898565b82815281810190858301838502870184018810156111f9578586fd5b855b8581101561122057813561120e81611963565b845292840192908401906001016111fb565b5090979650505050505050565b600082601f83011261123d578081fd5b8135602061124d6111d8836118c9565b8281528181019085830183850287018401881015611269578586fd5b855b858110156112205781358452928401929084019060010161126b565b600060208284031215611298578081fd5b81356112a381611963565b9392505050565b600080604083850312156112bc578081fd5b82356112c781611963565b946020939093013593505050565b6000806000806000608086880312156112ec578081fd5b85356112f781611963565b9450602086013561130781611963565b935060408601359250606086013567ffffffffffffffff8082111561132a578283fd5b818801915088601f83011261133d578283fd5b81358181111561134b578384fd5b89602082850101111561135c578384fd5b9699959850939650602001949392505050565b600080600060608486031215611383578283fd5b833561138e81611963565b9250602084013567ffffffffffffffff808211156113aa578384fd5b6113b6878388016111b8565b935060408601359150808211156113cb578283fd5b506113d88682870161122d565b9150509250925092565b6000602082840312156113f3578081fd5b5035919050565b60008060006060848603121561140e578283fd5b83359250602084013567ffffffffffffffff808211156113aa578384fd5b6001600160a01b0391909116815260200190565b600060018060a01b0380871683526020818716818501528560408501526080606085015284519150816080850152825b8281101561148c5785810182015185820160a001528101611470565b8281111561149d578360a084870101525b5050601f01601f19169190910160a00195945050505050565b606080825284519082018190526000906020906080840190828801845b828110156114f85781516001600160a01b0316845292840192908401906001016114d3565b50505083810382850152855180825286830191830190845b8181101561152c57835183529284019291840191600101611510565b5050809350505050826040830152949350505050565b6001600160e01b031991909116815260200190565b60208082526029908201527f537761704b6977693a2063616c6c6572206973206e6f742073776170207061726040820152683a34b1b4b830ba37b960b91b606082015260800190565b6020808252818101527f537761704b6977693a207377617020616c726561647920696e69746961746564604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526043908201527f537761704b6977693a2053656e742045544820616d6f756e74206e656564732060408201527f746f206265206d6f7265206f7220657175616c206170706c69636174696f6e2060608201526266656560e81b608082015260a00190565b60208082526026908201527f537761704b6977693a20696e73756666696369656e742045544820696e20636f6040820152651b9d1c9858dd60d21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f537761704b6977693a2063616c6c6572206973206e6f74207377617020696e696040820152653a34b0ba37b960d11b606082015260800190565b60208082526032908201527f537761704b6977693a204e465420616e64204944206172726179732068617665604082015271040e8de40c4ca40e6c2daca40d8cadccee8d60731b606082015260800190565b6020808252603e908201527f537761704b6977693a2043616e27742061636365707420737761702c20626f7460408201527f68207061727469636970616e7473206469646e277420616464204e4654730000606082015260800190565b60208082526026908201527f537761704b6977693a207472616e7366657220746f20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526035908201527f537761704b6977693a2043616e27742063616e63656c20737761702c206d75736040820152741d081899481cddd85c081c185c9d1a58da5c185b9d605a1b606082015260800190565b90815260200190565b604051601f8201601f1916810167ffffffffffffffff811182821017156118c1576118c161194d565b604052919050565b600067ffffffffffffffff8211156118e3576118e361194d565b5060209081020190565b6000821982111561190057611900611937565b500190565b60008282101561191757611917611937565b500390565b600060001982141561193057611930611937565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461110057600080fdfea264697066735822122024c5bdc5d3e37c27200f40bd2ed0ced69002a3f1177ce7dd465186df46bcdfcb64736f6c634300080100338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e00000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000f37dcdef718eb72b542933b27427f39a3af09ad7
Deployed Bytecode
0x60806040526004361061009c5760003560e01c8063715018a611610064578063715018a61461014c5780637ea5482a146101615780638da5cb5b14610181578063dbd6dd5f146101a3578063ddca3f43146101b6578063f2fde38b146101d85761009c565b8063150b7a02146100a15780631bf33004146100d7578063522f6815146100f957806354d6a2b71461011957806355a36d5614610139575b600080fd5b3480156100ad57600080fd5b506100c16100bc3660046112d5565b6101f8565b6040516100ce9190611542565b60405180910390f35b3480156100e357600080fd5b506100f76100f23660046113e2565b610222565b005b34801561010557600080fd5b506100f76101143660046112aa565b610655565b34801561012557600080fd5b506100f76101343660046113e2565b610722565b6100f761014736600461136f565b610b16565b34801561015857600080fd5b506100f7610c76565b34801561016d57600080fd5b506100f761017c3660046113e2565b610cff565b34801561018d57600080fd5b50610196610d43565b6040516100ce919061142c565b6100f76101b13660046113fa565b610d52565b3480156101c257600080fd5b506101cb610f1e565b6040516100ce919061188f565b3480156101e457600080fd5b506100f76101f3366004611287565b610f24565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b60008181526005602052604090205481906001600160a01b031633146102635760405162461bcd60e51b815260040161025a906116ff565b60405180910390fd5b6000828152600560208190526040909120015415801590610294575060008281526005602052604090206001015415155b6102b05760405162461bcd60e51b815260040161025a90611797565b60008281526005602081815260409283902080549201805484518184028101840190955280855261038b9430946001600160a01b0316939092919083018282801561032457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610306575b5050506000888152600560209081526040918290206006018054835181840281018401909452808452929450925083018282801561038157602002820191906000526020600020905b81548152602001906001019080831161036d575b5050505050610fe4565b60008281526005602090815260409182902060048101546001909101805484518185028101850190955280855261046c9430946001600160a01b03909416939092919083018282801561040757602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116103e9575b50505060008881526005602090815260409182902060020180548351818402810184019094528084529294509250830182828015610381576020028201919060005260206000209081548152602001906001019080831161036d575050505050610fe4565b600082815260056020526040902060030154156104fd5760008281526005602052604081206003015460028054919290916104a8908490611905565b9091555050600082815260056020526040808220600481015460039091015491516001600160a01b039091169282156108fc02929190818181858888f193505050501580156104fb573d6000803e3d6000fd5b505b6000828152600560205260409020600701541561058b576000828152600560205260408120600701546002805491929091610539908490611905565b9091555050600082815260056020526040808220805460079091015491516001600160a01b039091169282156108fc02929190818181858888f19350505050158015610589573d6000803e3d6000fd5b505b60008281526005602052604080822060048101549054915185936001600160a01b0392831693909216917fbad29f2bbbf6bb1e15563203bcdb0dd660c54eab078763eb66f797efa8f5e8c191a4600082815260056020526040812080546001600160a01b03191681559061060260018301826110e2565b6106106002830160006110e2565b6000600383018190556004830180546001600160a01b03191690556106399060058401906110e2565b6106476006830160006110e2565b600782016000905550505050565b61065d611073565b6001600160a01b031661066e610d43565b6001600160a01b0316146106945760405162461bcd60e51b815260040161025a906116ca565b6001600160a01b0382166106ba5760405162461bcd60e51b815260040161025a906117f4565b80600254476106c99190611905565b10156106e75760405162461bcd60e51b815260040161025a90611684565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561071d573d6000803e3d6000fd5b505050565b6000818152600560205260409020546001600160a01b031633148061076057506000818152600560205260409020600401546001600160a01b031633145b61077c5760405162461bcd60e51b815260040161025a9061183a565b60008181526005602090815260409182902080546001909101805484518185028101850190955280855261085a9430946001600160a01b0390941693909291908301828280156107f557602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107d7575b50505060008781526005602090815260409182902060020180548351818402810184019094528084529294509250830182828015610381576020028201919060005260206000209081548152602001906001019080831161036d575050505050610fe4565b600081815260056020819052604090912001541561094e5760008181526005602081815260409283902060048101549201805484518184028101840190955280855261094e9430946001600160a01b031693909291908301828280156108e957602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116108cb575b50505060008781526005602090815260409182902060060180548351818402810184019094528084529294509250830182828015610381576020028201919060005260206000209081548152602001906001019080831161036d575050505050610fe4565b600081815260056020526040902060030154156109dc57600081815260056020526040812060030154600280549192909161098a908490611905565b9091555050600081815260056020526040808220805460039091015491516001600160a01b039091169282156108fc02929190818181858888f193505050501580156109da573d6000803e3d6000fd5b505b60008181526005602052604090206007015415610a6d576000818152600560205260408120600701546002805491929091610a18908490611905565b9091555050600081815260056020526040808220600481015460079091015491516001600160a01b039091169282156108fc02929190818181858888f19350505050158015610a6b573d6000803e3d6000fd5b505b604051819033907fa715d65b6e7107257e3f1469a8b36f0003c039bf6cc6279c26d814b77efb658090600090a3600081815260056020526040812080546001600160a01b031916815590610ac460018301826110e2565b610ad26002830160006110e2565b6000600383018190556004830180546001600160a01b0319169055610afb9060058401906110e2565b610b096006830160006110e2565b6007820160009055505050565b600354341015610b385760405162461bcd60e51b815260040161025a9061161b565b81818051825114610b5b5760405162461bcd60e51b815260040161025a90611745565b6001806000828254610b6d91906118ed565b90915550610b7f905033308686610fe4565b60018054600090815260056020908152604090912080546001600160a01b0319163317815586519092610bb9929084019190880190611103565b508351610bcf9060028301906020870190611168565b50600354341115610c0657600354610be79034611905565b6003820181905560028054600090610c009084906118ed565b90915550505b6004810180546001600160a01b0319166001600160a01b038816908117909155600154600383015460405191929133917f47fb096797b2d0e6396ebd22643fca01f293468213c2fe2cb0c72256d21197e491610c66918b918b91906114b6565b60405180910390a4505050505050565b610c7e611073565b6001600160a01b0316610c8f610d43565b6001600160a01b031614610cb55760405162461bcd60e51b815260040161025a906116ca565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610d07611073565b6001600160a01b0316610d18610d43565b6001600160a01b031614610d3e5760405162461bcd60e51b815260040161025a906116ca565b600355565b6000546001600160a01b031690565b600354341015610d745760405162461bcd60e51b815260040161025a9061161b565b81818051825114610d975760405162461bcd60e51b815260040161025a90611745565b6000858152600560205260409020600401546001600160a01b03163314610dd05760405162461bcd60e51b815260040161025a90611557565b60008581526005602081905260409091200154158015610dff5750600085815260056020526040902060060154155b610e1b5760405162461bcd60e51b815260040161025a906115a0565b610e2733308686610fe4565b60008581526005602081815260409092208651610e4c93919092019190870190611103565b5060008581526005602090815260409091208451610e7292600690920191860190611168565b50600354341115610eb657600354610e8a9034611905565b600086815260056020526040812060070182905560028054909190610eb09084906118ed565b90915550505b600085815260056020526040908190208054600790910154915187926001600160a01b039092169133917f7b416b828b9210d412f535f753f5738b98aa13118616c9a6dc38b268a7b1fd0191610f0f918a918a916114b6565b60405180910390a45050505050565b60035481565b610f2c611073565b6001600160a01b0316610f3d610d43565b6001600160a01b031614610f635760405162461bcd60e51b815260040161025a906116ca565b6001600160a01b038116610f895760405162461bcd60e51b815260040161025a906115d5565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60005b815181101561106c5761105a858585848151811061101557634e487b7160e01b600052603260045260246000fd5b602002602001015185858151811061103d57634e487b7160e01b600052603260045260246000fd5b602002602001015160405180602001604052806000815250611077565b806110648161191c565b915050610fe7565b5050505050565b3390565b604051635c46a7ef60e11b81526001600160a01b0384169063b88d4fde906110a9908890889087908790600401611440565b600060405180830381600087803b1580156110c357600080fd5b505af11580156110d7573d6000803e3d6000fd5b505050505050505050565b508054600082559060005260206000209081019061110091906111a3565b50565b828054828255906000526020600020908101928215611158579160200282015b8281111561115857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611123565b506111649291506111a3565b5090565b828054828255906000526020600020908101928215611158579160200282015b82811115611158578251825591602001919060010190611188565b5b8082111561116457600081556001016111a4565b600082601f8301126111c8578081fd5b813560206111dd6111d8836118c9565b611898565b82815281810190858301838502870184018810156111f9578586fd5b855b8581101561122057813561120e81611963565b845292840192908401906001016111fb565b5090979650505050505050565b600082601f83011261123d578081fd5b8135602061124d6111d8836118c9565b8281528181019085830183850287018401881015611269578586fd5b855b858110156112205781358452928401929084019060010161126b565b600060208284031215611298578081fd5b81356112a381611963565b9392505050565b600080604083850312156112bc578081fd5b82356112c781611963565b946020939093013593505050565b6000806000806000608086880312156112ec578081fd5b85356112f781611963565b9450602086013561130781611963565b935060408601359250606086013567ffffffffffffffff8082111561132a578283fd5b818801915088601f83011261133d578283fd5b81358181111561134b578384fd5b89602082850101111561135c578384fd5b9699959850939650602001949392505050565b600080600060608486031215611383578283fd5b833561138e81611963565b9250602084013567ffffffffffffffff808211156113aa578384fd5b6113b6878388016111b8565b935060408601359150808211156113cb578283fd5b506113d88682870161122d565b9150509250925092565b6000602082840312156113f3578081fd5b5035919050565b60008060006060848603121561140e578283fd5b83359250602084013567ffffffffffffffff808211156113aa578384fd5b6001600160a01b0391909116815260200190565b600060018060a01b0380871683526020818716818501528560408501526080606085015284519150816080850152825b8281101561148c5785810182015185820160a001528101611470565b8281111561149d578360a084870101525b5050601f01601f19169190910160a00195945050505050565b606080825284519082018190526000906020906080840190828801845b828110156114f85781516001600160a01b0316845292840192908401906001016114d3565b50505083810382850152855180825286830191830190845b8181101561152c57835183529284019291840191600101611510565b5050809350505050826040830152949350505050565b6001600160e01b031991909116815260200190565b60208082526029908201527f537761704b6977693a2063616c6c6572206973206e6f742073776170207061726040820152683a34b1b4b830ba37b960b91b606082015260800190565b6020808252818101527f537761704b6977693a207377617020616c726561647920696e69746961746564604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526043908201527f537761704b6977693a2053656e742045544820616d6f756e74206e656564732060408201527f746f206265206d6f7265206f7220657175616c206170706c69636174696f6e2060608201526266656560e81b608082015260a00190565b60208082526026908201527f537761704b6977693a20696e73756666696369656e742045544820696e20636f6040820152651b9d1c9858dd60d21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f537761704b6977693a2063616c6c6572206973206e6f74207377617020696e696040820152653a34b0ba37b960d11b606082015260800190565b60208082526032908201527f537761704b6977693a204e465420616e64204944206172726179732068617665604082015271040e8de40c4ca40e6c2daca40d8cadccee8d60731b606082015260800190565b6020808252603e908201527f537761704b6977693a2043616e27742061636365707420737761702c20626f7460408201527f68207061727469636970616e7473206469646e277420616464204e4654730000606082015260800190565b60208082526026908201527f537761704b6977693a207472616e7366657220746f20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526035908201527f537761704b6977693a2043616e27742063616e63656c20737761702c206d75736040820152741d081899481cddd85c081c185c9d1a58da5c185b9d605a1b606082015260800190565b90815260200190565b604051601f8201601f1916810167ffffffffffffffff811182821017156118c1576118c161194d565b604052919050565b600067ffffffffffffffff8211156118e3576118e361194d565b5060209081020190565b6000821982111561190057611900611937565b500190565b60008282101561191757611917611937565b500390565b600060001982141561193057611930611937565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461110057600080fdfea264697066735822122024c5bdc5d3e37c27200f40bd2ed0ced69002a3f1177ce7dd465186df46bcdfcb64736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000f37dcdef718eb72b542933b27427f39a3af09ad7
-----Decoded View---------------
Arg [0] : initalAppFee (uint256): 2500000000000000
Arg [1] : contractOwnerAddress (address): 0xF37DcdeF718eB72b542933b27427F39a3Af09AD7
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000008e1bc9bf04000
Arg [1] : 000000000000000000000000f37dcdef718eb72b542933b27427f39a3af09ad7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $3,483.94 | 1.311 | $4,567.45 |
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.