Skip to content

Commit

Permalink
remove marketplace interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ElessarST committed Feb 29, 2024
1 parent 3353608 commit 8c9bd7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 15 additions & 1 deletion indexer/src/processing/marketplace/initialized.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,21 @@ export class MarketplaceInitializedHandler
);
await storage.setMarketplaceConfig(
new MarketplaceConfig({
...(marketplace.config || {}),
feePerUploadedFile: 0n,
gasForCloseAuction: 0n,
gasForDeleteCollection: 0n,
gasForGetTokenInfo: 0n,
gasForTransferToken: 0n,
maxCreatorRoyalty: 0,
maxNumberOfImages: 0n,
minimumTransferValue: 0n,
minimumValueForMint: 0n,
minimumValueForTrade: 0n,
msInBlock: 0,
royaltyToMarketplaceForMint: 0,
royaltyToMarketplaceForTrade: 0,
timeBetweenCreateCollections: 0n,
gasForCreation: 0n,
...Object.fromEntries(
Object.entries(event).filter(([, value]) => value !== null),
),
Expand Down
1 change: 0 additions & 1 deletion indexer/src/processing/storage/local.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export class LocalStorage implements IStorage {
}
await this.loadEntities();
this.initialized = true;
setInterval(() => this.loadMarketplace(), 10 * 1000); // 10 seconds
}

setStore(store: Store) {
Expand Down

0 comments on commit 8c9bd7c

Please sign in to comment.