Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x7a4ff44d4a5df7c46872a4f8f6ffcd1c0730e4ecb804609721759578580d8ea2 | - | (pending) | 2 days ago | IN | 0.0001 ETH | (Pending) | |||
Mint | 10681181 | 37 days ago | IN | 0.0001 ETH | 0.00001631 | ||||
Mint | 10671541 | 37 days ago | IN | 0.0001 ETH | 0.00003424 | ||||
Mint | 10634106 | 39 days ago | IN | 0.0001 ETH | 0.00002098 | ||||
Mint | 10630116 | 39 days ago | IN | 0.0001 ETH | 0.00002756 | ||||
Mint | 10388617 | 46 days ago | IN | 0.0001 ETH | 0.00001205 | ||||
Mint | 10381578 | 46 days ago | IN | 0.0001 ETH | 0.00002871 | ||||
Mint | 10377879 | 47 days ago | IN | 0.0001 ETH | 0.0000387 | ||||
Mint | 10371015 | 47 days ago | IN | 0.0001 ETH | 0.00002397 | ||||
Mint | 10357425 | 47 days ago | IN | 0.0001 ETH | 0.00002368 | ||||
Mint | 10356918 | 47 days ago | IN | 0.0001 ETH | 0.00002373 | ||||
Mint | 10352451 | 47 days ago | IN | 0.0001 ETH | 0.00001706 | ||||
Mint | 10352421 | 47 days ago | IN | 0.0001 ETH | 0.00001731 | ||||
Mint | 10350430 | 48 days ago | IN | 0.0001 ETH | 0.00001872 | ||||
Mint | 10349659 | 48 days ago | IN | 0.0001 ETH | 0.00001721 | ||||
Mint | 10346505 | 48 days ago | IN | 0.0001 ETH | 0.00001774 | ||||
Mint | 10346463 | 48 days ago | IN | 0.0001 ETH | 0.00001538 | ||||
Mint | 10346402 | 48 days ago | IN | 0.0001 ETH | 0.00001538 | ||||
Mint | 10346341 | 48 days ago | IN | 0.0001 ETH | 0.00001513 | ||||
Mint | 10346275 | 48 days ago | IN | 0.0001 ETH | 0.00001555 | ||||
Mint | 10346221 | 48 days ago | IN | 0.0001 ETH | 0.00001525 | ||||
Mint | 10346160 | 48 days ago | IN | 0.0001 ETH | 0.00001515 | ||||
Mint | 10346119 | 48 days ago | IN | 0.0001 ETH | 0.00001503 | ||||
Mint | 10345999 | 48 days ago | IN | 0.0001 ETH | 0.00001569 | ||||
Mint | 10345953 | 48 days ago | IN | 0.0001 ETH | 0.00001561 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
10681181 | 37 days ago | 0.00008 ETH | ||||
10681181 | 37 days ago | 0.00002 ETH | ||||
10671541 | 37 days ago | 0.00008 ETH | ||||
10671541 | 37 days ago | 0.00002 ETH | ||||
10634106 | 39 days ago | 0.00008 ETH | ||||
10634106 | 39 days ago | 0.00002 ETH | ||||
10630116 | 39 days ago | 0.00008 ETH | ||||
10630116 | 39 days ago | 0.00002 ETH | ||||
10388617 | 46 days ago | 0.00008 ETH | ||||
10388617 | 46 days ago | 0.00002 ETH | ||||
10381578 | 46 days ago | 0.00008 ETH | ||||
10381578 | 46 days ago | 0.00002 ETH | ||||
10377879 | 47 days ago | 0.00008 ETH | ||||
10377879 | 47 days ago | 0.00002 ETH | ||||
10371015 | 47 days ago | 0.00008 ETH | ||||
10371015 | 47 days ago | 0.00002 ETH | ||||
10357425 | 47 days ago | 0.00008 ETH | ||||
10357425 | 47 days ago | 0.00002 ETH | ||||
10356918 | 47 days ago | 0.00008 ETH | ||||
10356918 | 47 days ago | 0.00002 ETH | ||||
10352451 | 47 days ago | 0.00008 ETH | ||||
10352451 | 47 days ago | 0.00002 ETH | ||||
10352421 | 47 days ago | 0.00008 ETH | ||||
10352421 | 47 days ago | 0.00002 ETH | ||||
10350430 | 48 days ago | 0.00008 ETH |
Loading...
Loading
Contract Name:
IggyPostMinter
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.17; import { OwnableWithManagers } from "../access/OwnableWithManagers.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IIggyPostNft { function getPostPrice (string memory _postId, address _author) external view returns (uint256); function owner() external view returns(address); function mint( string memory _postId, address _author, address _nftReceiver, string memory _textPreview, string memory _image, uint256 _quantity ) external returns(uint256); } interface IIggyPostStats { function addMintedPostId(address _user, uint256 _postId) external; function addMintedWei(address _user, uint256 _wei) external; function addWeiEarnedByAuthorPerPostId(uint256 _postId, uint256 _wei) external; } /** @title IggyPostMinter (V1) @notice This contract allows users to mint IggyPost NFTs and paying with ETH. @dev Use this contract when CHAT token is NOT deployed yet. */ contract IggyPostMinter is OwnableWithManagers, ReentrancyGuard { address public daoAddress; address public devAddress; address public devFeeUpdaterAddress; address public immutable postAddress; address public statsAddress; bool public statsEnabled = false; bool public paused = false; uint256 public constant MAX_BPS = 10_000; uint256 public daoFee; // share of each domain purchase (in bips) that goes to the DAO/community that owns the frontend uint256 public devFee; // share of each domain purchase (in bips) that goes to the developer (Iggy team) uint256 public referrerFee; // share of each domain purchase (in bips) that goes to the referrer // CONSTRUCTOR constructor( address _daoAddress, address _devAddress, address _postAddress, uint256 _daoFee, uint256 _devFee, uint256 _referrerFee ) { daoAddress = _daoAddress; devAddress = _devAddress; devFeeUpdaterAddress = _devAddress; postAddress = _postAddress; daoFee = _daoFee; devFee = _devFee; referrerFee = _referrerFee; } // WRITE function mint( string memory _postId, address _author, address _nftReceiver, address _referrer, string memory _textPreview, string memory _image, uint256 _quantity ) external nonReentrant payable returns(uint256 tokenId) { require(!paused, "Minting paused"); // find price uint256 price = IIggyPostNft(postAddress).getPostPrice(_postId, _author) * _quantity; require(msg.value >= price, "Value below price"); // send a referrer fee uint256 referrerPayment; if (referrerFee > 0 && _referrer != address(0)) { referrerPayment = (price * referrerFee) / MAX_BPS; (bool sentReferrerFee, ) = _referrer.call{value: referrerPayment}(""); require(sentReferrerFee, "Failed to send referrer fee"); } // send a dev fee if (devFee > 0 && devAddress != address(0)) { uint256 devPayment = (price * devFee) / MAX_BPS; (bool sentDevFee, ) = devAddress.call{value: devPayment}(""); require(sentDevFee, "Failed to send dev fee"); } // send a dao fee if (daoFee > 0 && daoAddress != address(0)) { uint256 daoFeePayment = (price * daoFee) / MAX_BPS; (bool sentDaoFee, ) = daoAddress.call{value: daoFeePayment}(""); require(sentDaoFee, "Failed to send dao fee"); } // send the rest to post author (bool sent, ) = _author.call{value: address(this).balance}(""); require(sent, "Failed to send payment to the post author"); // mint the post as NFT tokenId = IIggyPostNft(postAddress).mint(_postId, _author, _nftReceiver, _textPreview, _image, _quantity); // store some stats in the stats contract if (statsEnabled && statsAddress != address(0)) { uint256 fees; if (referrerPayment > 0) { // referral fee was taken and sent to the referrer fees = (price * (devFee + daoFee)) / MAX_BPS; // asign wei from referrer fee to referrer in stats IIggyPostStats(statsAddress).addMintedWei(_referrer, referrerPayment); } else { // referral fee was not taken fees = (price * (referrerFee + devFee + daoFee)) / MAX_BPS; } // feel free to comment out the stats that you don't need to track IIggyPostStats(statsAddress).addMintedWei(_nftReceiver, fees); // exclude fees from the price price -= fees; IIggyPostStats(statsAddress).addWeiEarnedByAuthorPerPostId(tokenId, price); IIggyPostStats(statsAddress).addMintedPostId(_nftReceiver, tokenId); } } // OWNER // change dao fee function changeDaoFee(uint256 _daoFee) external onlyManagerOrOwner { require(_daoFee <= MAX_BPS, "Fee cannot be more than 100%"); daoFee = _daoFee; } // change stats address function changeStatsAddress(address _statsAddress) external onlyManagerOrOwner { statsAddress = _statsAddress; } // change referrer fee function changeReferrerFee(uint256 _referrerFee) external onlyManagerOrOwner { require(_referrerFee <= 2000, "Fee cannot be more than 20%"); referrerFee = _referrerFee; } /// @notice Recover any ERC-20 token mistakenly sent to this contract address function recoverERC20(address tokenAddress_, uint256 tokenAmount_, address recipient_) external onlyManagerOrOwner { IERC20(tokenAddress_).transfer(recipient_, tokenAmount_); } function toggleStatsEnabled() external onlyManagerOrOwner { statsEnabled = !statsEnabled; } function togglePaused() external onlyManagerOrOwner { paused = !paused; } /// @notice Withdraw native coins from contract function withdraw() external onlyManagerOrOwner { (bool success, ) = owner().call{value: address(this).balance}(""); require(success, "Failed to withdraw native coins from contract"); } // OTHER WRITE METHODS /// @notice This changes the DAO address in the minter contract function changeDaoAddress(address _daoAddress) external { require(_msgSender() == daoAddress, "Sender is not the DAO"); daoAddress = _daoAddress; } /// @notice This changes the developer's address in the minter contract function changeDevAddress(address _devAddress) external { require(_msgSender() == devAddress, "Sender is not the developer"); devAddress = _devAddress; } /// @notice This changes the dev fee updater's address in the minter contract function changeDevFeeUpdaterAddress(address _devFeeUpdaterAddress) external { require(_msgSender() == devFeeUpdaterAddress, "Sender is not the dev fee updater"); devFeeUpdaterAddress = _devFeeUpdaterAddress; } // change dev fee (only dev fee updater can change it) function changeDevFee(uint256 _devFee) external { require(_msgSender() == devFeeUpdaterAddress, "Sender is not the dev fee updater"); require(_devFee <= 2000, "Fee cannot be more than 20%"); devFee = _devFee; } // RECEIVE & FALLBACK receive() external payable {} fallback() external payable {} }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.17; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; /** @title Extended Ownable contract with managers functionality @author Tempe Techie */ abstract contract OwnableWithManagers is Ownable { address[] public managers; // array of managers mapping (address => bool) public isManager; // mapping of managers // MODIFIERS modifier onlyManagerOrOwner() { require(isManager[msg.sender] || msg.sender == owner(), "OwnableWithManagers: caller is not a manager or owner"); _; } // EVENTS event ManagerAdd(address indexed owner_, address indexed manager_); event ManagerRemove(address indexed owner_, address indexed manager_); // READ function getManagers() external view returns (address[] memory) { return managers; } function getManagersLength() external view returns (uint256) { return managers.length; } // MANAGER function removeYourselfAsManager() external onlyManagerOrOwner { address manager_ = msg.sender; isManager[manager_] = false; uint256 length = managers.length; for (uint256 i = 0; i < length;) { if (managers[i] == manager_) { managers[i] = managers[length - 1]; managers.pop(); emit ManagerRemove(msg.sender, manager_); return; } unchecked { i++; } } } // OWNER function addManager(address manager_) external onlyOwner { require(!isManager[manager_], "OwnableWithManagers: manager already added"); isManager[manager_] = true; managers.push(manager_); emit ManagerAdd(msg.sender, manager_); } function removeManagerByAddress(address manager_) external onlyOwner { isManager[manager_] = false; uint256 length = managers.length; for (uint256 i = 0; i < length;) { if (managers[i] == manager_) { managers[i] = managers[length - 1]; managers.pop(); emit ManagerRemove(msg.sender, manager_); return; } unchecked { i++; } } } function removeManagerByIndex(uint256 index_) external onlyOwner { emit ManagerRemove(msg.sender, managers[index_]); isManager[managers[index_]] = false; managers[index_] = managers[managers.length - 1]; managers.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0-rc.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0-rc.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0-rc.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_postAddress","type":"address"},{"internalType":"uint256","name":"_daoFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_referrerFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"manager_","type":"address"}],"name":"ManagerAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"manager_","type":"address"}],"name":"ManagerRemove","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager_","type":"address"}],"name":"addManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"}],"name":"changeDaoAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_daoFee","type":"uint256"}],"name":"changeDaoFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"changeDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"changeDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devFeeUpdaterAddress","type":"address"}],"name":"changeDevFeeUpdaterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_referrerFee","type":"uint256"}],"name":"changeReferrerFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_statsAddress","type":"address"}],"name":"changeStatsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daoAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFeeUpdaterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getManagers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getManagersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"managers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_postId","type":"string"},{"internalType":"address","name":"_author","type":"address"},{"internalType":"address","name":"_nftReceiver","type":"address"},{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"string","name":"_textPreview","type":"string"},{"internalType":"string","name":"_image","type":"string"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"postAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress_","type":"address"},{"internalType":"uint256","name":"tokenAmount_","type":"uint256"},{"internalType":"address","name":"recipient_","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"referrerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager_","type":"address"}],"name":"removeManagerByAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"removeManagerByIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeYourselfAsManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"statsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"statsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleStatsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040526007805461ffff60a01b191690553480156200001f57600080fd5b50604051620020a1380380620020a1833981016040819052620000429162000115565b6200004d33620000a8565b6001600355600480546001600160a01b039788166001600160a01b03199182161790915560058054968816968216871790556006805490911690951790945591909316608052600892909255600991909155600a556200017b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200011057600080fd5b919050565b60008060008060008060c087890312156200012f57600080fd5b6200013a87620000f8565b95506200014a60208801620000f8565b94506200015a60408801620000f8565b9350606087015192506080870151915060a087015190509295509295509295565b608051611efc620001a56000396000818161046f01528181610b5a0152610fa90152611efc6000f3fe6080604052600436106101e55760003560e01c80637ab52a7611610101578063b70023091161009a578063f2fde38b1161006c578063f2fde38b14610572578063f3ae241514610592578063f883a696146105c2578063fd967f47146105e2578063ff96afbb146105f857005b8063b700230914610513578063c40f36e114610528578063d00d8efe1461053d578063d570fb341461055d57005b80639bb3e4ae116100d35780639bb3e4ae14610491578063a8d088bb146104b1578063b51609b4146104d3578063b6dcc2d7146104f357005b80637ab52a76146103ff5780638da5cb5b1461041f57806392b463901461043d57806399de7e751461045d57005b80633d39c2601161017e578063632a40c611610150578063632a40c61461038b5780636827e764146103ab5780636e88a7bd146103c1578063715018a6146103d757806372d1f22e146103ec57005b80633d39c2601461030a5780634e8df91e1461032a5780635ab5de8a1461034a5780635c975abb1461036a57005b80632ecdad81116101b75780632ecdad811461028f57806336566f06146102c05780633ad10ef6146102d55780633ccfd60b146102f557005b80631e7fc847146101ee5780632131c68c1461020e5780632957b8391461024b5780632d06177a1461026f57005b366101ec57005b005b3480156101fa57600080fd5b506101ec610209366004611a4f565b610618565b34801561021a57600080fd5b5060045461022e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561025757600080fd5b5061026160085481565b604051908152602001610242565b34801561027b57600080fd5b506101ec61028a366004611a4f565b61069a565b34801561029b57600080fd5b506007546102b090600160a01b900460ff1681565b6040519015158152602001610242565b3480156102cc57600080fd5b506101ec6107aa565b3480156102e157600080fd5b5060055461022e906001600160a01b031681565b34801561030157600080fd5b506101ec61080f565b34801561031657600080fd5b5061022e610325366004611a71565b61090f565b34801561033657600080fd5b506101ec610345366004611a4f565b610939565b34801561035657600080fd5b506101ec610365366004611a4f565b61098e565b34801561037657600080fd5b506007546102b090600160a81b900460ff1681565b34801561039757600080fd5b5060075461022e906001600160a01b031681565b3480156103b757600080fd5b5061026160095481565b3480156103cd57600080fd5b50610261600a5481565b3480156103e357600080fd5b506101ec610aec565b6102616103fa366004611b2d565b610b00565b34801561040b57600080fd5b506101ec61041a366004611a71565b611281565b34801561042b57600080fd5b506000546001600160a01b031661022e565b34801561044957600080fd5b506101ec610458366004611a4f565b61130b565b34801561046957600080fd5b5061022e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049d57600080fd5b506101ec6104ac366004611a71565b611390565b3480156104bd57600080fd5b506104c661142b565b6040516102429190611bf1565b3480156104df57600080fd5b506101ec6104ee366004611c3e565b61148d565b3480156104ff57600080fd5b506101ec61050e366004611a4f565b61154a565b34801561051f57600080fd5b506101ec6115b0565b34801561053457600080fd5b506101ec611663565b34801561054957600080fd5b506101ec610558366004611a71565b6116c8565b34801561056957600080fd5b50600154610261565b34801561057e57600080fd5b506101ec61058d366004611a4f565b611763565b34801561059e57600080fd5b506102b06105ad366004611a4f565b60026020526000908152604090205460ff1681565b3480156105ce57600080fd5b506101ec6105dd366004611a71565b6117d9565b3480156105ee57600080fd5b5061026161271081565b34801561060457600080fd5b5060065461022e906001600160a01b031681565b6004546001600160a01b0316336001600160a01b0316146106785760405162461bcd60e51b815260206004820152601560248201527453656e646572206973206e6f74207468652044414f60581b60448201526064015b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6106a2611930565b6001600160a01b03811660009081526002602052604090205460ff161561071e5760405162461bcd60e51b815260206004820152602a60248201527f4f776e61626c65576974684d616e61676572733a206d616e6167657220616c726044820152691958591e48185919195960b21b606482015260840161066f565b6001600160a01b038116600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b031916841790555133917ffef4b799044e6259138adfd04ab1cca8b2442cc484dd25672ae344fa8a9e208b91a350565b3360009081526002602052604090205460ff16806107d257506000546001600160a01b031633145b6107ee5760405162461bcd60e51b815260040161066f90611c7a565b6007805460ff60a81b198116600160a81b9182900460ff1615909102179055565b3360009081526002602052604090205460ff168061083757506000546001600160a01b031633145b6108535760405162461bcd60e51b815260040161066f90611c7a565b600080546040516001600160a01b039091169047908381818185875af1925050503d80600081146108a0576040519150601f19603f3d011682016040523d82523d6000602084013e6108a5565b606091505b505090508061090c5760405162461bcd60e51b815260206004820152602d60248201527f4661696c656420746f207769746864726177206e617469766520636f696e732060448201526c199c9bdb4818dbdb9d1c9858dd609a1b606482015260840161066f565b50565b6001818154811061091f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6006546001600160a01b0316336001600160a01b03161461096c5760405162461bcd60e51b815260040161066f90611ccf565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b610996611930565b6001600160a01b0381166000908152600260205260408120805460ff19169055600154905b81811015610ae757826001600160a01b0316600182815481106109e0576109e0611d10565b6000918252602090912001546001600160a01b031603610adf576001610a068184611d3c565b81548110610a1657610a16611d10565b600091825260209091200154600180546001600160a01b039092169183908110610a4257610a42611d10565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001805480610a8157610a81611d55565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b0385169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a3505050565b6001016109bb565b505050565b610af4611930565b610afe600061198a565b565b6000610b0a6119da565b600754600160a81b900460ff1615610b555760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d1a5b99c81c185d5cd95960921b604482015260640161066f565b6000827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166320fd18088b8b6040518363ffffffff1660e01b8152600401610ba6929190611db1565b602060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611ddb565b610bf19190611df4565b905080341015610c375760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b604482015260640161066f565b600080600a54118015610c5257506001600160a01b03871615155b15610d1957612710600a5483610c689190611df4565b610c729190611e0b565b90506000876001600160a01b03168260405160006040518083038185875af1925050503d8060008114610cc1576040519150601f19603f3d011682016040523d82523d6000602084013e610cc6565b606091505b5050905080610d175760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f2073656e64207265666572726572206665650000000000604482015260640161066f565b505b6000600954118015610d3557506005546001600160a01b031615155b15610dfb57600061271060095484610d4d9190611df4565b610d579190611e0b565b6005546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610da9576040519150601f19603f3d011682016040523d82523d6000602084013e610dae565b606091505b5050905080610df85760405162461bcd60e51b81526020600482015260166024820152754661696c656420746f2073656e64206465762066656560501b604482015260640161066f565b50505b6000600854118015610e1757506004546001600160a01b031615155b15610edd57600061271060085484610e2f9190611df4565b610e399190611e0b565b6004546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610e8b576040519150601f19603f3d011682016040523d82523d6000602084013e610e90565b606091505b5050905080610eda5760405162461bcd60e51b81526020600482015260166024820152754661696c656420746f2073656e642064616f2066656560501b604482015260640161066f565b50505b6000896001600160a01b03164760405160006040518083038185875af1925050503d8060008114610f2a576040519150601f19603f3d011682016040523d82523d6000602084013e610f2f565b606091505b5050905080610f925760405162461bcd60e51b815260206004820152602960248201527f4661696c656420746f2073656e64207061796d656e7420746f2074686520706f60448201526839ba1030baba3437b960b91b606482015260840161066f565b604051630af8529b60e31b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906357c294d890610fe8908e908e908e908d908d908d90600401611e2d565b6020604051808303816000875af1158015611007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102b9190611ddb565b600754909450600160a01b900460ff16801561105157506007546001600160a01b031615155b1561126957600082156110f2576127106008546009546110719190611e91565b61107b9086611df4565b6110859190611e0b565b60075460405163f93cba9560e01b81526001600160a01b038c811660048301526024820187905292935091169063f93cba9590604401600060405180830381600087803b1580156110d557600080fd5b505af11580156110e9573d6000803e3d6000fd5b50505050611129565b612710600854600954600a546111089190611e91565b6111129190611e91565b61111c9086611df4565b6111269190611e0b565b90505b60075460405163f93cba9560e01b81526001600160a01b038c81166004830152602482018490529091169063f93cba9590604401600060405180830381600087803b15801561117757600080fd5b505af115801561118b573d6000803e3d6000fd5b50505050808461119b9190611d3c565b6007546040516355915b5960e11b815260048101889052602481018390529195506001600160a01b03169063ab22b6b290604401600060405180830381600087803b1580156111e957600080fd5b505af11580156111fd573d6000803e3d6000fd5b5050600754604051631ac8fdc160e21b81526001600160a01b038e81166004830152602482018a90529091169250636b23f7049150604401600060405180830381600087803b15801561124f57600080fd5b505af1158015611263573d6000803e3d6000fd5b50505050505b5050506112766001600355565b979650505050505050565b6006546001600160a01b0316336001600160a01b0316146112b45760405162461bcd60e51b815260040161066f90611ccf565b6107d08111156113065760405162461bcd60e51b815260206004820152601b60248201527f4665652063616e6e6f74206265206d6f7265207468616e203230250000000000604482015260640161066f565b600955565b6005546001600160a01b0316336001600160a01b03161461136e5760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206973206e6f742074686520646576656c6f7065720000000000604482015260640161066f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526002602052604090205460ff16806113b857506000546001600160a01b031633145b6113d45760405162461bcd60e51b815260040161066f90611c7a565b6127108111156114265760405162461bcd60e51b815260206004820152601c60248201527f4665652063616e6e6f74206265206d6f7265207468616e203130302500000000604482015260640161066f565b600855565b6060600180548060200260200160405190810160405280929190818152602001828054801561148357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611465575b5050505050905090565b3360009081526002602052604090205460ff16806114b557506000546001600160a01b031633145b6114d15760405162461bcd60e51b815260040161066f90611c7a565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af1158015611520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115449190611ea4565b50505050565b3360009081526002602052604090205460ff168061157257506000546001600160a01b031633145b61158e5760405162461bcd60e51b815260040161066f90611c7a565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526002602052604090205460ff16806115d857506000546001600160a01b031633145b6115f45760405162461bcd60e51b815260040161066f90611c7a565b336000818152600260205260408120805460ff19169055600154905b81811015610ae757826001600160a01b03166001828154811061163557611635611d10565b6000918252602090912001546001600160a01b03160361165b576001610a068184611d3c565b600101611610565b3360009081526002602052604090205460ff168061168b57506000546001600160a01b031633145b6116a75760405162461bcd60e51b815260040161066f90611c7a565b6007805460ff60a01b198116600160a01b9182900460ff1615909102179055565b3360009081526002602052604090205460ff16806116f057506000546001600160a01b031633145b61170c5760405162461bcd60e51b815260040161066f90611c7a565b6107d081111561175e5760405162461bcd60e51b815260206004820152601b60248201527f4665652063616e6e6f74206265206d6f7265207468616e203230250000000000604482015260640161066f565b600a55565b61176b611930565b6001600160a01b0381166117d05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066f565b61090c8161198a565b6117e1611930565b600181815481106117f4576117f4611d10565b60009182526020822001546040516001600160a01b039091169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a36000600260006001848154811061184d5761184d611d10565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560018054611890908290611d3c565b815481106118a0576118a0611d10565b600091825260209091200154600180546001600160a01b0390921691839081106118cc576118cc611d10565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600180548061190b5761190b611d55565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6000546001600160a01b03163314610afe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161066f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260035403611a2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161066f565b6002600355565b80356001600160a01b0381168114611a4a57600080fd5b919050565b600060208284031215611a6157600080fd5b611a6a82611a33565b9392505050565b600060208284031215611a8357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611ab157600080fd5b813567ffffffffffffffff80821115611acc57611acc611a8a565b604051601f8301601f19908116603f01168101908282118183101715611af457611af4611a8a565b81604052838152866020858801011115611b0d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060e0888a031215611b4857600080fd5b873567ffffffffffffffff80821115611b6057600080fd5b611b6c8b838c01611aa0565b9850611b7a60208b01611a33565b9750611b8860408b01611a33565b9650611b9660608b01611a33565b955060808a0135915080821115611bac57600080fd5b611bb88b838c01611aa0565b945060a08a0135915080821115611bce57600080fd5b50611bdb8a828b01611aa0565b92505060c0880135905092959891949750929550565b6020808252825182820181905260009190848201906040850190845b81811015611c325783516001600160a01b031683529284019291840191600101611c0d565b50909695505050505050565b600080600060608486031215611c5357600080fd5b611c5c84611a33565b925060208401359150611c7160408501611a33565b90509250925092565b60208082526035908201527f4f776e61626c65576974684d616e61676572733a2063616c6c6572206973206e60408201527437ba10309036b0b730b3b2b91037b91037bbb732b960591b606082015260800190565b60208082526021908201527f53656e646572206973206e6f74207468652064657620666565207570646174656040820152603960f91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115611d4f57611d4f611d26565b92915050565b634e487b7160e01b600052603160045260246000fd5b6000815180845260005b81811015611d9157602081850181015186830182015201611d75565b506000602082860101526020601f19601f83011685010191505092915050565b604081526000611dc46040830185611d6b565b905060018060a01b03831660208301529392505050565b600060208284031215611ded57600080fd5b5051919050565b8082028115828204841417611d4f57611d4f611d26565b600082611e2857634e487b7160e01b600052601260045260246000fd5b500490565b60c081526000611e4060c0830189611d6b565b6001600160a01b038881166020850152871660408401528281036060840152611e698187611d6b565b90508281036080840152611e7d8186611d6b565b9150508260a0830152979650505050505050565b80820180821115611d4f57611d4f611d26565b600060208284031215611eb657600080fd5b81518015158114611a6a57600080fdfea2646970667358221220a594a2b373305e344911f32a3519697586ebdf0adc6f3eaeaa8a436e09f61e8264736f6c634300081100330000000000000000000000000e66249733ddfe422f7a127b0b9e906601f23e06000000000000000000000000e08033d0bdbcebe7e619c3ae165e7957ab577961000000000000000000000000a9cfa4e8ea79537f5893f45c3b1491a2f7b54e7e00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode
0x6080604052600436106101e55760003560e01c80637ab52a7611610101578063b70023091161009a578063f2fde38b1161006c578063f2fde38b14610572578063f3ae241514610592578063f883a696146105c2578063fd967f47146105e2578063ff96afbb146105f857005b8063b700230914610513578063c40f36e114610528578063d00d8efe1461053d578063d570fb341461055d57005b80639bb3e4ae116100d35780639bb3e4ae14610491578063a8d088bb146104b1578063b51609b4146104d3578063b6dcc2d7146104f357005b80637ab52a76146103ff5780638da5cb5b1461041f57806392b463901461043d57806399de7e751461045d57005b80633d39c2601161017e578063632a40c611610150578063632a40c61461038b5780636827e764146103ab5780636e88a7bd146103c1578063715018a6146103d757806372d1f22e146103ec57005b80633d39c2601461030a5780634e8df91e1461032a5780635ab5de8a1461034a5780635c975abb1461036a57005b80632ecdad81116101b75780632ecdad811461028f57806336566f06146102c05780633ad10ef6146102d55780633ccfd60b146102f557005b80631e7fc847146101ee5780632131c68c1461020e5780632957b8391461024b5780632d06177a1461026f57005b366101ec57005b005b3480156101fa57600080fd5b506101ec610209366004611a4f565b610618565b34801561021a57600080fd5b5060045461022e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561025757600080fd5b5061026160085481565b604051908152602001610242565b34801561027b57600080fd5b506101ec61028a366004611a4f565b61069a565b34801561029b57600080fd5b506007546102b090600160a01b900460ff1681565b6040519015158152602001610242565b3480156102cc57600080fd5b506101ec6107aa565b3480156102e157600080fd5b5060055461022e906001600160a01b031681565b34801561030157600080fd5b506101ec61080f565b34801561031657600080fd5b5061022e610325366004611a71565b61090f565b34801561033657600080fd5b506101ec610345366004611a4f565b610939565b34801561035657600080fd5b506101ec610365366004611a4f565b61098e565b34801561037657600080fd5b506007546102b090600160a81b900460ff1681565b34801561039757600080fd5b5060075461022e906001600160a01b031681565b3480156103b757600080fd5b5061026160095481565b3480156103cd57600080fd5b50610261600a5481565b3480156103e357600080fd5b506101ec610aec565b6102616103fa366004611b2d565b610b00565b34801561040b57600080fd5b506101ec61041a366004611a71565b611281565b34801561042b57600080fd5b506000546001600160a01b031661022e565b34801561044957600080fd5b506101ec610458366004611a4f565b61130b565b34801561046957600080fd5b5061022e7f000000000000000000000000a9cfa4e8ea79537f5893f45c3b1491a2f7b54e7e81565b34801561049d57600080fd5b506101ec6104ac366004611a71565b611390565b3480156104bd57600080fd5b506104c661142b565b6040516102429190611bf1565b3480156104df57600080fd5b506101ec6104ee366004611c3e565b61148d565b3480156104ff57600080fd5b506101ec61050e366004611a4f565b61154a565b34801561051f57600080fd5b506101ec6115b0565b34801561053457600080fd5b506101ec611663565b34801561054957600080fd5b506101ec610558366004611a71565b6116c8565b34801561056957600080fd5b50600154610261565b34801561057e57600080fd5b506101ec61058d366004611a4f565b611763565b34801561059e57600080fd5b506102b06105ad366004611a4f565b60026020526000908152604090205460ff1681565b3480156105ce57600080fd5b506101ec6105dd366004611a71565b6117d9565b3480156105ee57600080fd5b5061026161271081565b34801561060457600080fd5b5060065461022e906001600160a01b031681565b6004546001600160a01b0316336001600160a01b0316146106785760405162461bcd60e51b815260206004820152601560248201527453656e646572206973206e6f74207468652044414f60581b60448201526064015b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6106a2611930565b6001600160a01b03811660009081526002602052604090205460ff161561071e5760405162461bcd60e51b815260206004820152602a60248201527f4f776e61626c65576974684d616e61676572733a206d616e6167657220616c726044820152691958591e48185919195960b21b606482015260840161066f565b6001600160a01b038116600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b031916841790555133917ffef4b799044e6259138adfd04ab1cca8b2442cc484dd25672ae344fa8a9e208b91a350565b3360009081526002602052604090205460ff16806107d257506000546001600160a01b031633145b6107ee5760405162461bcd60e51b815260040161066f90611c7a565b6007805460ff60a81b198116600160a81b9182900460ff1615909102179055565b3360009081526002602052604090205460ff168061083757506000546001600160a01b031633145b6108535760405162461bcd60e51b815260040161066f90611c7a565b600080546040516001600160a01b039091169047908381818185875af1925050503d80600081146108a0576040519150601f19603f3d011682016040523d82523d6000602084013e6108a5565b606091505b505090508061090c5760405162461bcd60e51b815260206004820152602d60248201527f4661696c656420746f207769746864726177206e617469766520636f696e732060448201526c199c9bdb4818dbdb9d1c9858dd609a1b606482015260840161066f565b50565b6001818154811061091f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6006546001600160a01b0316336001600160a01b03161461096c5760405162461bcd60e51b815260040161066f90611ccf565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b610996611930565b6001600160a01b0381166000908152600260205260408120805460ff19169055600154905b81811015610ae757826001600160a01b0316600182815481106109e0576109e0611d10565b6000918252602090912001546001600160a01b031603610adf576001610a068184611d3c565b81548110610a1657610a16611d10565b600091825260209091200154600180546001600160a01b039092169183908110610a4257610a42611d10565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001805480610a8157610a81611d55565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b0385169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a3505050565b6001016109bb565b505050565b610af4611930565b610afe600061198a565b565b6000610b0a6119da565b600754600160a81b900460ff1615610b555760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d1a5b99c81c185d5cd95960921b604482015260640161066f565b6000827f000000000000000000000000a9cfa4e8ea79537f5893f45c3b1491a2f7b54e7e6001600160a01b03166320fd18088b8b6040518363ffffffff1660e01b8152600401610ba6929190611db1565b602060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611ddb565b610bf19190611df4565b905080341015610c375760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b604482015260640161066f565b600080600a54118015610c5257506001600160a01b03871615155b15610d1957612710600a5483610c689190611df4565b610c729190611e0b565b90506000876001600160a01b03168260405160006040518083038185875af1925050503d8060008114610cc1576040519150601f19603f3d011682016040523d82523d6000602084013e610cc6565b606091505b5050905080610d175760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f2073656e64207265666572726572206665650000000000604482015260640161066f565b505b6000600954118015610d3557506005546001600160a01b031615155b15610dfb57600061271060095484610d4d9190611df4565b610d579190611e0b565b6005546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610da9576040519150601f19603f3d011682016040523d82523d6000602084013e610dae565b606091505b5050905080610df85760405162461bcd60e51b81526020600482015260166024820152754661696c656420746f2073656e64206465762066656560501b604482015260640161066f565b50505b6000600854118015610e1757506004546001600160a01b031615155b15610edd57600061271060085484610e2f9190611df4565b610e399190611e0b565b6004546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610e8b576040519150601f19603f3d011682016040523d82523d6000602084013e610e90565b606091505b5050905080610eda5760405162461bcd60e51b81526020600482015260166024820152754661696c656420746f2073656e642064616f2066656560501b604482015260640161066f565b50505b6000896001600160a01b03164760405160006040518083038185875af1925050503d8060008114610f2a576040519150601f19603f3d011682016040523d82523d6000602084013e610f2f565b606091505b5050905080610f925760405162461bcd60e51b815260206004820152602960248201527f4661696c656420746f2073656e64207061796d656e7420746f2074686520706f60448201526839ba1030baba3437b960b91b606482015260840161066f565b604051630af8529b60e31b81526001600160a01b037f000000000000000000000000a9cfa4e8ea79537f5893f45c3b1491a2f7b54e7e16906357c294d890610fe8908e908e908e908d908d908d90600401611e2d565b6020604051808303816000875af1158015611007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102b9190611ddb565b600754909450600160a01b900460ff16801561105157506007546001600160a01b031615155b1561126957600082156110f2576127106008546009546110719190611e91565b61107b9086611df4565b6110859190611e0b565b60075460405163f93cba9560e01b81526001600160a01b038c811660048301526024820187905292935091169063f93cba9590604401600060405180830381600087803b1580156110d557600080fd5b505af11580156110e9573d6000803e3d6000fd5b50505050611129565b612710600854600954600a546111089190611e91565b6111129190611e91565b61111c9086611df4565b6111269190611e0b565b90505b60075460405163f93cba9560e01b81526001600160a01b038c81166004830152602482018490529091169063f93cba9590604401600060405180830381600087803b15801561117757600080fd5b505af115801561118b573d6000803e3d6000fd5b50505050808461119b9190611d3c565b6007546040516355915b5960e11b815260048101889052602481018390529195506001600160a01b03169063ab22b6b290604401600060405180830381600087803b1580156111e957600080fd5b505af11580156111fd573d6000803e3d6000fd5b5050600754604051631ac8fdc160e21b81526001600160a01b038e81166004830152602482018a90529091169250636b23f7049150604401600060405180830381600087803b15801561124f57600080fd5b505af1158015611263573d6000803e3d6000fd5b50505050505b5050506112766001600355565b979650505050505050565b6006546001600160a01b0316336001600160a01b0316146112b45760405162461bcd60e51b815260040161066f90611ccf565b6107d08111156113065760405162461bcd60e51b815260206004820152601b60248201527f4665652063616e6e6f74206265206d6f7265207468616e203230250000000000604482015260640161066f565b600955565b6005546001600160a01b0316336001600160a01b03161461136e5760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206973206e6f742074686520646576656c6f7065720000000000604482015260640161066f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526002602052604090205460ff16806113b857506000546001600160a01b031633145b6113d45760405162461bcd60e51b815260040161066f90611c7a565b6127108111156114265760405162461bcd60e51b815260206004820152601c60248201527f4665652063616e6e6f74206265206d6f7265207468616e203130302500000000604482015260640161066f565b600855565b6060600180548060200260200160405190810160405280929190818152602001828054801561148357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611465575b5050505050905090565b3360009081526002602052604090205460ff16806114b557506000546001600160a01b031633145b6114d15760405162461bcd60e51b815260040161066f90611c7a565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af1158015611520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115449190611ea4565b50505050565b3360009081526002602052604090205460ff168061157257506000546001600160a01b031633145b61158e5760405162461bcd60e51b815260040161066f90611c7a565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526002602052604090205460ff16806115d857506000546001600160a01b031633145b6115f45760405162461bcd60e51b815260040161066f90611c7a565b336000818152600260205260408120805460ff19169055600154905b81811015610ae757826001600160a01b03166001828154811061163557611635611d10565b6000918252602090912001546001600160a01b03160361165b576001610a068184611d3c565b600101611610565b3360009081526002602052604090205460ff168061168b57506000546001600160a01b031633145b6116a75760405162461bcd60e51b815260040161066f90611c7a565b6007805460ff60a01b198116600160a01b9182900460ff1615909102179055565b3360009081526002602052604090205460ff16806116f057506000546001600160a01b031633145b61170c5760405162461bcd60e51b815260040161066f90611c7a565b6107d081111561175e5760405162461bcd60e51b815260206004820152601b60248201527f4665652063616e6e6f74206265206d6f7265207468616e203230250000000000604482015260640161066f565b600a55565b61176b611930565b6001600160a01b0381166117d05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066f565b61090c8161198a565b6117e1611930565b600181815481106117f4576117f4611d10565b60009182526020822001546040516001600160a01b039091169133917fc322b4d5159f72837eec184e14dde68867f91c6da39449fb9829f42121fc704d9190a36000600260006001848154811061184d5761184d611d10565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560018054611890908290611d3c565b815481106118a0576118a0611d10565b600091825260209091200154600180546001600160a01b0390921691839081106118cc576118cc611d10565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600180548061190b5761190b611d55565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6000546001600160a01b03163314610afe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161066f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260035403611a2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161066f565b6002600355565b80356001600160a01b0381168114611a4a57600080fd5b919050565b600060208284031215611a6157600080fd5b611a6a82611a33565b9392505050565b600060208284031215611a8357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611ab157600080fd5b813567ffffffffffffffff80821115611acc57611acc611a8a565b604051601f8301601f19908116603f01168101908282118183101715611af457611af4611a8a565b81604052838152866020858801011115611b0d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060e0888a031215611b4857600080fd5b873567ffffffffffffffff80821115611b6057600080fd5b611b6c8b838c01611aa0565b9850611b7a60208b01611a33565b9750611b8860408b01611a33565b9650611b9660608b01611a33565b955060808a0135915080821115611bac57600080fd5b611bb88b838c01611aa0565b945060a08a0135915080821115611bce57600080fd5b50611bdb8a828b01611aa0565b92505060c0880135905092959891949750929550565b6020808252825182820181905260009190848201906040850190845b81811015611c325783516001600160a01b031683529284019291840191600101611c0d565b50909695505050505050565b600080600060608486031215611c5357600080fd5b611c5c84611a33565b925060208401359150611c7160408501611a33565b90509250925092565b60208082526035908201527f4f776e61626c65576974684d616e61676572733a2063616c6c6572206973206e60408201527437ba10309036b0b730b3b2b91037b91037bbb732b960591b606082015260800190565b60208082526021908201527f53656e646572206973206e6f74207468652064657620666565207570646174656040820152603960f91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115611d4f57611d4f611d26565b92915050565b634e487b7160e01b600052603160045260246000fd5b6000815180845260005b81811015611d9157602081850181015186830182015201611d75565b506000602082860101526020601f19601f83011685010191505092915050565b604081526000611dc46040830185611d6b565b905060018060a01b03831660208301529392505050565b600060208284031215611ded57600080fd5b5051919050565b8082028115828204841417611d4f57611d4f611d26565b600082611e2857634e487b7160e01b600052601260045260246000fd5b500490565b60c081526000611e4060c0830189611d6b565b6001600160a01b038881166020850152871660408401528281036060840152611e698187611d6b565b90508281036080840152611e7d8186611d6b565b9150508260a0830152979650505050505050565b80820180821115611d4f57611d4f611d26565b600060208284031215611eb657600080fd5b81518015158114611a6a57600080fdfea2646970667358221220a594a2b373305e344911f32a3519697586ebdf0adc6f3eaeaa8a436e09f61e8264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000e66249733ddfe422f7a127b0b9e906601f23e06000000000000000000000000e08033d0bdbcebe7e619c3ae165e7957ab577961000000000000000000000000a9cfa4e8ea79537f5893f45c3b1491a2f7b54e7e00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e8
-----Decoded View---------------
Arg [0] : _daoAddress (address): 0x0E66249733DDFe422F7A127B0b9E906601F23E06
Arg [1] : _devAddress (address): 0xE08033d0bDBcEbE7e619c3aE165E7957Ab577961
Arg [2] : _postAddress (address): 0xa9cfa4e8EA79537F5893f45c3B1491A2f7B54e7E
Arg [3] : _daoFee (uint256): 1000
Arg [4] : _devFee (uint256): 1000
Arg [5] : _referrerFee (uint256): 1000
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e66249733ddfe422f7a127b0b9e906601f23e06
Arg [1] : 000000000000000000000000e08033d0bdbcebe7e619c3ae165e7957ab577961
Arg [2] : 000000000000000000000000a9cfa4e8ea79537f5893f45c3b1491a2f7b54e7e
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [5] : 00000000000000000000000000000000000000000000000000000000000003e8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.