Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15326233 | 782 days ago | IN | 0 ETH | 0.01671043 |
Loading...
Loading
Contract Name:
NraeLabSubscriptions
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 600 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; /// @title EarnLabs Subscription contract /// @author 0xQruz /// @notice Manage EarnLabs Subscriptions contract NraeLabSubscriptions is Ownable, Pausable, ReentrancyGuard { /*/////////////////////////////////////////////////////////////// VARIABLES //////////////////////////////////////////////////////////////*/ /// @notice The address of the token contract address public TOKEN; /// @notice The address of the contract that will be used to verify the passes address public VERIFIER; /// @notice Mapping of the address to the time of expiration mapping(address => uint256) public subscriptions; /// @notice address of treasury address public TREASURY; /// @notice Price of the monthly subscription (in tokens) uint256 public MONTHLY_PRICE = 5; /// @notice Price of the quarterly subscription (in tokens) uint256 public QUARTERLY_PRICE = 12; /// @notice Price of the yearly subscription (in tokens) uint256 public YEARLY_PRICE = 40; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ /// @notice Constructor of the contract /// @param _token The address of the token contract /// @param _verifier The address of the contract that will be used to verify the passes /// @param _treasury The address of the treasury contract constructor( address _token, address _verifier, address _treasury ) { TOKEN = _token; VERIFIER = _verifier; TREASURY = _treasury; } /*/////////////////////////////////////////////////////////////// PAUSE LOGIC //////////////////////////////////////////////////////////////*/ function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } /*/////////////////////////////////////////////////////////////// HELPERS //////////////////////////////////////////////////////////////*/ /// @notice Get the token interface function getToken() private view returns (IERC20) { return IERC20(TOKEN); } /// @notice Get length of the subscription type function getSubcriptionMonths(uint256 _subType) public pure returns (uint256) { if (_subType == 0) return 1; else if (_subType == 1) return 3; else if (_subType == 2) return 12; else return 0; } /*/////////////////////////////////////////////////////////////// SUBSCRIPTION LOGIC //////////////////////////////////////////////////////////////*/ /// @notice Emitted after the owner update the monthly price of a EarnLabs subscription /// @param user The authorized user who triggered the update /// @param NEW_PRICE The price to subscribe to a EarnLabs pass for 1 month event SubscriptionMonthPriceUpdated(address indexed user, uint256 NEW_PRICE); /// @notice Emitted after the owner update the quarterly price of a EarnLabs subscription /// @param user The authorized user who triggered the update /// @param NEW_PRICE The price to subscribe to a EarnLabs pass for 3 months event SubscriptionQuarterlyPriceUpdated(address indexed user, uint256 NEW_PRICE); /// @notice Emitted after the owner update the yearly price of a EarnLabs subscription /// @param user The authorized user who triggered the update /// @param NEW_PRICE The price to subscribe to a EarnLabs pass for 1 year event SubscriptionYearlyPriceUpdated(address indexed user, uint256 NEW_PRICE); /// @notice Emitted after a user has subscribed to a EarnLabs pass /// @param user The user who purchased the pass subscription /// @param months The amount of month of the subscription /// @param price The price paid to subscribe to the pass event Subscribed(address indexed user, uint256 months, uint256 price); function setSubscriptionMonthlyPrice(uint256 _MONTHLY_PRICE) external onlyOwner { require(_MONTHLY_PRICE != 0, 'INVALID_PRICE'); require(MONTHLY_PRICE != _MONTHLY_PRICE, 'SAME_PRICE'); MONTHLY_PRICE = _MONTHLY_PRICE; emit SubscriptionMonthPriceUpdated(msg.sender, _MONTHLY_PRICE); } function setSubscriptionQuarterlyPrice(uint256 _QUARTERLY_PRICE) external onlyOwner { require(_QUARTERLY_PRICE != 0, 'INVALID_PRICE'); require(QUARTERLY_PRICE != _QUARTERLY_PRICE, 'SAME_PRICE'); QUARTERLY_PRICE = _QUARTERLY_PRICE; emit SubscriptionQuarterlyPriceUpdated(msg.sender, _QUARTERLY_PRICE); } function setSubscriptionYearlyPrice(uint256 _YEARLY_PRICE) external onlyOwner { require(_YEARLY_PRICE != 0, 'INVALID_PRICE'); require(YEARLY_PRICE != _YEARLY_PRICE, 'SAME_PRICE'); YEARLY_PRICE = _YEARLY_PRICE; emit SubscriptionYearlyPriceUpdated(msg.sender, _YEARLY_PRICE); } /// @notice Subscribe to EarnLabs /// @param _subType Type of subscription (0: monthly, 1: quarterly, 2: yearly) function subscribe(uint256 _subType) external whenNotPaused nonReentrant { uint256 months = getSubcriptionMonths(_subType); // Check that the user amount of months is valid require(months > 0, 'INVALID_SUB_TYPE'); // check that the user has not an active pass require(!hasValidSubscription(msg.sender), 'SUBSCRIPTION_STILL_ACTIVE'); uint256 totalPrice = 0; if (_subType == 0) { totalPrice = 1e18 * MONTHLY_PRICE; } else if (_subType == 1) { totalPrice = 1e18 * QUARTERLY_PRICE; } else if (_subType == 2) { totalPrice = 1e18 * YEARLY_PRICE; } // check if the user has sent enough funds to subscribe to the pass require(getToken().balanceOf(msg.sender) >= totalPrice, 'INSUFFICIENT_FUNDS'); // Transfer the funds to the treasury bool result = getToken().transferFrom(msg.sender, address(this), totalPrice); require(result, 'TRANSFER_FAILED'); // Update subscriptions subscriptions[msg.sender] = block.timestamp + (31 days * months); // emit the event emit Subscribed(msg.sender, months, totalPrice); } /// @notice Airdrop function /// @param _to The address to send the airdrop to /// @param _months The amount of months to airdrop function airdrop(address _to, uint256 _months) external nonReentrant onlyOwner { // Check that the user amount of months is valid require(_months > 0, 'INVALID_SUB_LENGTH'); // Update subscriptions if (subscriptions[_to] < block.timestamp) { subscriptions[_to] = block.timestamp + (31 days * _months); } else { subscriptions[_to] += (31 days * _months); } emit Subscribed(msg.sender, _months, 0); } /// @notice Getter function to check validity of subscription /// @dev The function will also check if the wallet is holding the EarnLab : Access Pass (ERC721) /// @param _user The user to check the validity of the subscription /// @return True if the user has a valid subscription, false otherwise function hasValidSubscription(address _user) public view returns (bool) { return subscriptions[_user] > block.timestamp || IERC721(VERIFIER).balanceOf(_user) != 0; } /*/////////////////////////////////////////////////////////////// TREASURY LOGIC //////////////////////////////////////////////////////////////*/ /// @notice Emitted after the owner pull the funds to the treasury address /// @param user The authorized user who triggered the withdraw /// @param treasury The treasury address to which the funds have been sent /// @param amount The amount withdrawn event TreasuryWithdraw(address indexed user, address treasury, uint256 amount); /// @notice Emitted after the owner pull the funds to the treasury address /// @param user The authorized user who triggered the withdraw /// @param newTreasury The new treasury address event TreasuryUpdated(address indexed user, address newTreasury); function setTreasury(address _treasury) external onlyOwner { // check that the new treasury address is valid require(_treasury != address(0), 'INVALID_TREASURY_ADDRESS'); require(TREASURY != _treasury, 'SAME_TREASURY_ADDRESS'); // update the treasury TREASURY = _treasury; // emit the event emit TreasuryUpdated(msg.sender, _treasury); } function withdrawTreasury() external onlyOwner { // calc the amount of balance that can be sent to the treasury uint256 amount = getToken().balanceOf(address(this)); require(amount != 0, 'NO_TREASURY'); // emit the event emit TreasuryWithdraw(msg.sender, TREASURY, amount); // Transfer to the treasury bool success = getToken().transfer(TREASURY, amount); require(success, 'WITHDRAW_FAIL'); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 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 { _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 (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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.7.0) (token/ERC721/IERC721.sol) 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 600 }, "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":"_token","type":"address"},{"internalType":"address","name":"_verifier","type":"address"},{"internalType":"address","name":"_treasury","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"months","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Subscribed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"NEW_PRICE","type":"uint256"}],"name":"SubscriptionMonthPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"NEW_PRICE","type":"uint256"}],"name":"SubscriptionQuarterlyPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"NEW_PRICE","type":"uint256"}],"name":"SubscriptionYearlyPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TreasuryWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MONTHLY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUARTERLY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERIFIER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YEARLY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_months","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_subType","type":"uint256"}],"name":"getSubcriptionMonths","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"hasValidSubscription","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MONTHLY_PRICE","type":"uint256"}],"name":"setSubscriptionMonthlyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_QUARTERLY_PRICE","type":"uint256"}],"name":"setSubscriptionQuarterlyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_YEARLY_PRICE","type":"uint256"}],"name":"setSubscriptionYearlyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_subType","type":"uint256"}],"name":"subscribe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"subscriptions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526005600655600c60075560286008553480156200002057600080fd5b50604051620013a9380380620013a983398101604081905262000043916200010f565b6200004e33620000a2565b6000805460ff60a01b1916905560018055600280546001600160a01b039485166001600160a01b03199182161790915560038054938516938216939093179092556005805491909316911617905562000159565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200010a57600080fd5b919050565b6000806000606084860312156200012557600080fd5b6200013084620000f2565b92506200014060208501620000f2565b91506200015060408501620000f2565b90509250925092565b61124080620001696000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c806382bfefc8116100d85780638fb456d71161008c578063f046395a11610066578063f046395a146102dc578063f0f44260146102fc578063f2fde38b1461030f57600080fd5b80638fb456d7146102b75780639f809c8f146102c0578063dd4ef68a146102c957600080fd5b80638a87c166116100bd5780638a87c166146102805780638ba4cc3c146102935780638da5cb5b146102a657600080fd5b806382bfefc8146102655780638456cb591461027857600080fd5b80632d2c55651161013a5780635c975abb116101145780635c975abb1461022c578063715018a61461024a57806382a4910a1461025257600080fd5b80632d2c5565146101fe5780633a7f0e99146102115780633f4ba83a1461022457600080fd5b80630f574ba71161016b5780630f574ba7146101cc57806315c47aaa146101df578063166bab95146101f657600080fd5b8063057b722e1461018757806308c84e701461019c575b600080fd5b61019a610195366004611106565b610322565b005b6003546101af906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61019a6101da366004611106565b6103e9565b6101e860075481565b6040519081526020016101c3565b61019a610775565b6005546101af906001600160a01b031681565b61019a61021f366004611106565b61096f565b61019a610a2a565b600054600160a01b900460ff165b60405190151581526020016101c3565b61019a610a3c565b61023a610260366004611136565b610a4e565b6002546101af906001600160a01b031681565b61019a610ae6565b6101e861028e366004611106565b610af6565b61019a6102a1366004611158565b610b34565b6000546001600160a01b03166101af565b6101e860085481565b6101e860065481565b61019a6102d7366004611106565b610cb7565b6101e86102ea366004611136565b60046020526000908152604090205481565b61019a61030a366004611136565b610d72565b61019a61031d366004611136565b610e8b565b61032a610f04565b8061036c5760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b60448201526064015b60405180910390fd5b8060075414156103ab5760405162461bcd60e51b815260206004820152600a60248201526953414d455f505249434560b01b6044820152606401610363565b600781905560405181815233907fcac425ba9d45f4c7d8f14f9648cfe2b8d082e3773fd0642fb1d110d53d479ff4906020015b60405180910390a250565b6103f1610f5e565b600260015414156104445760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610363565b6002600155600061045482610af6565b9050600081116104a65760405162461bcd60e51b815260206004820152601060248201527f494e56414c49445f5355425f54595045000000000000000000000000000000006044820152606401610363565b6104af33610a4e565b156104fc5760405162461bcd60e51b815260206004820152601960248201527f535542534352495054494f4e5f5354494c4c5f414354495645000000000000006044820152606401610363565b60008261051f5760065461051890670de0b6b3a7640000611198565b905061055e565b826001141561053d5760075461051890670de0b6b3a7640000611198565b826002141561055e5760085461055b90670de0b6b3a7640000611198565b90505b806105716002546001600160a01b031690565b6040516370a0823160e01b81523360048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156105b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105db91906111b7565b10156106295760405162461bcd60e51b815260206004820152601260248201527f494e53554646494349454e545f46554e445300000000000000000000000000006044820152606401610363565b600061063d6002546001600160a01b031690565b6040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b0391909116906323b872dd906064016020604051808303816000875af1158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b691906111d0565b9050806107055760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610363565b610712836228de80611198565b61071c90426111f2565b3360008181526004602090815260409182902093909355805186815292830185905290917ff94991dcbea6e8ac439cbc93bd9c62a4d39f04e0ad656df9a703f13552c2787f910160405180910390a25050600180555050565b61077d610f04565b60006107916002546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156107d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fb91906111b7565b90508061084a5760405162461bcd60e51b815260206004820152600b60248201527f4e4f5f54524541535552590000000000000000000000000000000000000000006044820152606401610363565b600554604080516001600160a01b0390921682526020820183905233917fa9186eec1c1f118aa187d90aecd4ff2bf3d2e5412f3750362412ac6f7f572147910160405180910390a260006108a66002546001600160a01b031690565b60055460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb906044016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c91906111d0565b90508061096b5760405162461bcd60e51b815260206004820152600d60248201527f57495448445241575f4641494c000000000000000000000000000000000000006044820152606401610363565b5050565b610977610f04565b806109b45760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610363565b8060085414156109f35760405162461bcd60e51b815260206004820152600a60248201526953414d455f505249434560b01b6044820152606401610363565b600881905560405181815233907f1c72df6a479e7db77ade572b3f65a4989e9136d0687b4dfe7561d56554ae283f906020016103de565b610a32610f04565b610a3a610fb8565b565b610a44610f04565b610a3a600061100d565b6001600160a01b038116600090815260046020526040812054421080610ae057506003546040516370a0823160e01b81526001600160a01b038481166004830152909116906370a0823190602401602060405180830381865afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add91906111b7565b15155b92915050565b610aee610f04565b610a3a61106a565b600081610b0557506001919050565b8160011415610b1657506003919050565b8160021415610b275750600c919050565b506000919050565b919050565b60026001541415610b875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610363565b6002600155610b94610f04565b60008111610be45760405162461bcd60e51b815260206004820152601260248201527f494e56414c49445f5355425f4c454e47544800000000000000000000000000006044820152606401610363565b6001600160a01b038216600090815260046020526040902054421115610c3957610c11816228de80611198565b610c1b90426111f2565b6001600160a01b038316600090815260046020526040902055610c74565b610c46816228de80611198565b6001600160a01b03831660009081526004602052604081208054909190610c6e9084906111f2565b90915550505b604080518281526000602082015233917ff94991dcbea6e8ac439cbc93bd9c62a4d39f04e0ad656df9a703f13552c2787f910160405180910390a2505060018055565b610cbf610f04565b80610cfc5760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610363565b806006541415610d3b5760405162461bcd60e51b815260206004820152600a60248201526953414d455f505249434560b01b6044820152606401610363565b600681905560405181815233907f17298956a3e10ff3a36efa396df9dabf493514f67a4b63eaee8459997c97b511906020016103de565b610d7a610f04565b6001600160a01b038116610dd05760405162461bcd60e51b815260206004820152601860248201527f494e56414c49445f54524541535552595f4144445245535300000000000000006044820152606401610363565b6005546001600160a01b0382811691161415610e2e5760405162461bcd60e51b815260206004820152601560248201527f53414d455f54524541535552595f4144445245535300000000000000000000006044820152606401610363565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811790915560405190815233907f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a906020016103de565b610e93610f04565b6001600160a01b038116610ef85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610363565b610f018161100d565b50565b6000546001600160a01b03163314610a3a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b600054600160a01b900460ff1615610a3a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610363565b610fc06110ad565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611072610f5e565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ff03390565b600054600160a01b900460ff16610a3a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610363565b60006020828403121561111857600080fd5b5035919050565b80356001600160a01b0381168114610b2f57600080fd5b60006020828403121561114857600080fd5b6111518261111f565b9392505050565b6000806040838503121561116b57600080fd5b6111748361111f565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156111b2576111b2611182565b500290565b6000602082840312156111c957600080fd5b5051919050565b6000602082840312156111e257600080fd5b8151801515811461115157600080fd5b6000821982111561120557611205611182565b50019056fea2646970667358221220a97beff5953b157bdce35ce7ec38e9e03dd1a12dfdf331134a48a56ce46a1b7d64736f6c634300080c0033000000000000000000000000f4f821e7970cd66da7de039a3f3b0ac0ee6358dd000000000000000000000000f924b2fbdb7de04a4628e5dfe0bbd21ca644979f000000000000000000000000f924b2fbdb7de04a4628e5dfe0bbd21ca644979f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c806382bfefc8116100d85780638fb456d71161008c578063f046395a11610066578063f046395a146102dc578063f0f44260146102fc578063f2fde38b1461030f57600080fd5b80638fb456d7146102b75780639f809c8f146102c0578063dd4ef68a146102c957600080fd5b80638a87c166116100bd5780638a87c166146102805780638ba4cc3c146102935780638da5cb5b146102a657600080fd5b806382bfefc8146102655780638456cb591461027857600080fd5b80632d2c55651161013a5780635c975abb116101145780635c975abb1461022c578063715018a61461024a57806382a4910a1461025257600080fd5b80632d2c5565146101fe5780633a7f0e99146102115780633f4ba83a1461022457600080fd5b80630f574ba71161016b5780630f574ba7146101cc57806315c47aaa146101df578063166bab95146101f657600080fd5b8063057b722e1461018757806308c84e701461019c575b600080fd5b61019a610195366004611106565b610322565b005b6003546101af906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61019a6101da366004611106565b6103e9565b6101e860075481565b6040519081526020016101c3565b61019a610775565b6005546101af906001600160a01b031681565b61019a61021f366004611106565b61096f565b61019a610a2a565b600054600160a01b900460ff165b60405190151581526020016101c3565b61019a610a3c565b61023a610260366004611136565b610a4e565b6002546101af906001600160a01b031681565b61019a610ae6565b6101e861028e366004611106565b610af6565b61019a6102a1366004611158565b610b34565b6000546001600160a01b03166101af565b6101e860085481565b6101e860065481565b61019a6102d7366004611106565b610cb7565b6101e86102ea366004611136565b60046020526000908152604090205481565b61019a61030a366004611136565b610d72565b61019a61031d366004611136565b610e8b565b61032a610f04565b8061036c5760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b60448201526064015b60405180910390fd5b8060075414156103ab5760405162461bcd60e51b815260206004820152600a60248201526953414d455f505249434560b01b6044820152606401610363565b600781905560405181815233907fcac425ba9d45f4c7d8f14f9648cfe2b8d082e3773fd0642fb1d110d53d479ff4906020015b60405180910390a250565b6103f1610f5e565b600260015414156104445760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610363565b6002600155600061045482610af6565b9050600081116104a65760405162461bcd60e51b815260206004820152601060248201527f494e56414c49445f5355425f54595045000000000000000000000000000000006044820152606401610363565b6104af33610a4e565b156104fc5760405162461bcd60e51b815260206004820152601960248201527f535542534352495054494f4e5f5354494c4c5f414354495645000000000000006044820152606401610363565b60008261051f5760065461051890670de0b6b3a7640000611198565b905061055e565b826001141561053d5760075461051890670de0b6b3a7640000611198565b826002141561055e5760085461055b90670de0b6b3a7640000611198565b90505b806105716002546001600160a01b031690565b6040516370a0823160e01b81523360048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156105b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105db91906111b7565b10156106295760405162461bcd60e51b815260206004820152601260248201527f494e53554646494349454e545f46554e445300000000000000000000000000006044820152606401610363565b600061063d6002546001600160a01b031690565b6040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b0391909116906323b872dd906064016020604051808303816000875af1158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b691906111d0565b9050806107055760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610363565b610712836228de80611198565b61071c90426111f2565b3360008181526004602090815260409182902093909355805186815292830185905290917ff94991dcbea6e8ac439cbc93bd9c62a4d39f04e0ad656df9a703f13552c2787f910160405180910390a25050600180555050565b61077d610f04565b60006107916002546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156107d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fb91906111b7565b90508061084a5760405162461bcd60e51b815260206004820152600b60248201527f4e4f5f54524541535552590000000000000000000000000000000000000000006044820152606401610363565b600554604080516001600160a01b0390921682526020820183905233917fa9186eec1c1f118aa187d90aecd4ff2bf3d2e5412f3750362412ac6f7f572147910160405180910390a260006108a66002546001600160a01b031690565b60055460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb906044016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c91906111d0565b90508061096b5760405162461bcd60e51b815260206004820152600d60248201527f57495448445241575f4641494c000000000000000000000000000000000000006044820152606401610363565b5050565b610977610f04565b806109b45760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610363565b8060085414156109f35760405162461bcd60e51b815260206004820152600a60248201526953414d455f505249434560b01b6044820152606401610363565b600881905560405181815233907f1c72df6a479e7db77ade572b3f65a4989e9136d0687b4dfe7561d56554ae283f906020016103de565b610a32610f04565b610a3a610fb8565b565b610a44610f04565b610a3a600061100d565b6001600160a01b038116600090815260046020526040812054421080610ae057506003546040516370a0823160e01b81526001600160a01b038481166004830152909116906370a0823190602401602060405180830381865afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add91906111b7565b15155b92915050565b610aee610f04565b610a3a61106a565b600081610b0557506001919050565b8160011415610b1657506003919050565b8160021415610b275750600c919050565b506000919050565b919050565b60026001541415610b875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610363565b6002600155610b94610f04565b60008111610be45760405162461bcd60e51b815260206004820152601260248201527f494e56414c49445f5355425f4c454e47544800000000000000000000000000006044820152606401610363565b6001600160a01b038216600090815260046020526040902054421115610c3957610c11816228de80611198565b610c1b90426111f2565b6001600160a01b038316600090815260046020526040902055610c74565b610c46816228de80611198565b6001600160a01b03831660009081526004602052604081208054909190610c6e9084906111f2565b90915550505b604080518281526000602082015233917ff94991dcbea6e8ac439cbc93bd9c62a4d39f04e0ad656df9a703f13552c2787f910160405180910390a2505060018055565b610cbf610f04565b80610cfc5760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610363565b806006541415610d3b5760405162461bcd60e51b815260206004820152600a60248201526953414d455f505249434560b01b6044820152606401610363565b600681905560405181815233907f17298956a3e10ff3a36efa396df9dabf493514f67a4b63eaee8459997c97b511906020016103de565b610d7a610f04565b6001600160a01b038116610dd05760405162461bcd60e51b815260206004820152601860248201527f494e56414c49445f54524541535552595f4144445245535300000000000000006044820152606401610363565b6005546001600160a01b0382811691161415610e2e5760405162461bcd60e51b815260206004820152601560248201527f53414d455f54524541535552595f4144445245535300000000000000000000006044820152606401610363565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811790915560405190815233907f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a906020016103de565b610e93610f04565b6001600160a01b038116610ef85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610363565b610f018161100d565b50565b6000546001600160a01b03163314610a3a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b600054600160a01b900460ff1615610a3a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610363565b610fc06110ad565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611072610f5e565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ff03390565b600054600160a01b900460ff16610a3a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610363565b60006020828403121561111857600080fd5b5035919050565b80356001600160a01b0381168114610b2f57600080fd5b60006020828403121561114857600080fd5b6111518261111f565b9392505050565b6000806040838503121561116b57600080fd5b6111748361111f565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156111b2576111b2611182565b500290565b6000602082840312156111c957600080fd5b5051919050565b6000602082840312156111e257600080fd5b8151801515811461115157600080fd5b6000821982111561120557611205611182565b50019056fea2646970667358221220a97beff5953b157bdce35ce7ec38e9e03dd1a12dfdf331134a48a56ce46a1b7d64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f4f821e7970cd66da7de039a3f3b0ac0ee6358dd000000000000000000000000f924b2fbdb7de04a4628e5dfe0bbd21ca644979f000000000000000000000000f924b2fbdb7de04a4628e5dfe0bbd21ca644979f
-----Decoded View---------------
Arg [0] : _token (address): 0xf4F821e7970CD66DA7dE039a3f3B0AC0eE6358dD
Arg [1] : _verifier (address): 0xF924B2fbDB7DE04A4628e5dFE0bbd21cA644979F
Arg [2] : _treasury (address): 0xF924B2fbDB7DE04A4628e5dFE0bbd21cA644979F
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4f821e7970cd66da7de039a3f3b0ac0ee6358dd
Arg [1] : 000000000000000000000000f924b2fbdb7de04a4628e5dfe0bbd21ca644979f
Arg [2] : 000000000000000000000000f924b2fbdb7de04a4628e5dfe0bbd21ca644979f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.