Skip to content

contract.ERC20SaleExtension

Aleksey Bykhun edited this page Jan 18, 2023 · 1 revision

ERC20SaleExtension

Git Source

Inherits: NFTExtension, Ownable

State Variables

currency

IERC20 public currency;

price

uint256 public price;

maxPerMint

uint256 public maxPerMint;

Functions

constructor

constructor(address _nft, address _currencyAddress, uint256 _price, uint256 _maxPerMint) NFTExtension(_nft);

mint

function mint(uint256 nTokens) external;

changeCurrency

function changeCurrency(address _newCurrency, uint256 _newPrice) external onlyOwner;

Events

currencyChanged

event currencyChanged(address indexed newCurrency, uint256 newPrice);
Clone this wiki locally