event tmp
This commit is contained in:
@@ -46,6 +46,9 @@ contract FilterAdmin is InitializableInternalMintableERC20 {
|
||||
for (uint256 i = 0; i < filters.length; i++) {
|
||||
_FILTER_REGISTRY_[filters[i]] = true;
|
||||
}
|
||||
|
||||
//event FilterAdminInit(addres owner, uint256 feeRate)
|
||||
|
||||
}
|
||||
|
||||
function mintFragTo(address to, uint256 rawAmount) external returns (uint256) {
|
||||
@@ -108,10 +111,12 @@ contract FilterAdmin is InitializableInternalMintableERC20 {
|
||||
}
|
||||
|
||||
//================= Owner ================
|
||||
function addFilter(address filter) external onlyOwner {
|
||||
require(!isRegisteredFilter(filter), "FILTER_ALREADY_EXIST");
|
||||
_FILTERS_.push(filter);
|
||||
_FILTER_REGISTRY_[filter] = true;
|
||||
function addFilter(address[] memory filters) external onlyOwner {
|
||||
for(uint256 i = 0; i < filters.length; i++) {
|
||||
require(!isRegisteredFilter(filters[i]), "FILTER_ALREADY_EXIST");
|
||||
_FILTERS_.push(filter[i]);
|
||||
_FILTER_REGISTRY_[filter[i]] = true;
|
||||
}
|
||||
}
|
||||
|
||||
function changeFeeRate(uint256 newFeeRate) external onlyOwner {
|
||||
|
||||
@@ -41,6 +41,8 @@ contract FilterERC1155V1 is IERC1155Receiver, BaseFilterV1 {
|
||||
for (uint256 i = 0; i < spreadIds.length; i++) {
|
||||
_SPREAD_IDS_REGISTRY_[spreadIds[i]] = true;
|
||||
}
|
||||
|
||||
//event FilterInit(address filterAdmin, address nftCollection, string memory name);
|
||||
}
|
||||
|
||||
// ================= Trading ================
|
||||
|
||||
@@ -43,6 +43,8 @@ contract FilterERC721V1 is IERC721Receiver, BaseFilterV1 {
|
||||
for (uint256 i = 0; i < spreadIds.length; i++) {
|
||||
_SPREAD_IDS_REGISTRY_[spreadIds[i]] = true;
|
||||
}
|
||||
|
||||
//event FilterInit(address filterAdmin, address nftCollection, string memory name);
|
||||
}
|
||||
|
||||
// ================= Trading ================
|
||||
@@ -62,6 +64,8 @@ contract FilterERC721V1 is IERC721Receiver, BaseFilterV1 {
|
||||
);
|
||||
_NFT_IDS_.push(tokenId);
|
||||
_NFT_RESERVE_[tokenId] = 1;
|
||||
|
||||
//event Erc721TokenIn(uint256 index, uint256 tokenId);
|
||||
}
|
||||
_TOTAL_NFT_AMOUNT_ = _NFT_IDS_.length;
|
||||
(uint256 rawReceive, ) = queryNFTIn(tokenIds.length);
|
||||
@@ -112,6 +116,9 @@ contract FilterERC721V1 is IERC721Receiver, BaseFilterV1 {
|
||||
_NFT_IDS_[index] = _NFT_IDS_[_NFT_IDS_.length - 1];
|
||||
_NFT_IDS_.pop();
|
||||
_NFT_RESERVE_[tokenId] = 0;
|
||||
|
||||
//idx,oldTokenId,newTokenId
|
||||
//event Erc721Out(uint256 index, uint256 tokenId)
|
||||
}
|
||||
|
||||
function emergencyWithdraw(
|
||||
|
||||
Reference in New Issue
Block a user