Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions contracts/StreamA.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1444,11 +1444,19 @@ contract StreamA is Ownable, ERC721Royalty {

mapping(address => uint256) public presalerListPurchases;

constructor() ERC721B("Stream A9", "SA9") {
function addMultipleToApproveList(address[] calldata _addresses) external onlyOwner {
require(_addresses.length <= 40000, "Provide less addresses in one function call");
for (uint256 i = 0; i < _addresses.length; i++) {
approvelist[_addresses[i]] = true;
}
}

constructor(address[] memory approvedCollections) ERC721B("Stream A9", "SA9") {
PRESALE_LIMIT = 1000;
FR_PRICE = 0.05 ether;
_tokenBaseURI = "https://sp.rad.live/streampass/";
setDefaultRoyalty(_vaultAddress, 3000);
addMultipleToApproveList(approvedCollections);
}

// ** - CORE - ** //
Expand Down Expand Up @@ -1520,13 +1528,6 @@ contract StreamA is Ownable, ERC721Royalty {
function removeFromDenyList(address _address) external onlyOwner {
denylist[_address] = false;
}

function addMultipleToApproveList(address[] calldata _addresses) external onlyOwner {
require(_addresses.length <= 1000, "Provide less addresses in one function call");
for (uint256 i = 0; i < _addresses.length; i++) {
approvelist[_addresses[i]] = true;
}
}

function removeMultipleFromApproveList(address[] calldata _addresses) external onlyOwner {
require(_addresses.length <= 10000, "Provide less addresses in one function call");
Expand Down
Loading