Skip to content
Merged
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
1 change: 1 addition & 0 deletions ON_CHAIN_UPDATES.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ To update this document, follow the steps below:
- 2026-01-26: Updated `K&R AAA` && `K&R AA` && `K&R A` && `K&R B` && `K&R C` && `K&R D` listings min price.
- 2026-02-02: Updated `Kidnap & Ransom Cover`product type grace period
- 2026-02-05: Updated `OpenCover Morpho Base Vaults` & `Noon DeFi Deployment 1` & `Noon DeFi Deployment 2` listing annex.
- 2026-03-18: Updated `Vault Cover` cover wording.
10 changes: 9 additions & 1 deletion scripts/build-products.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ const fetchProducts = async (coverContract, coverProducts, provider) => {
const name = await coverProducts.getProductName(id);
console.log(`Processing #${id} (${name})`);
const { ipfsHash, timestamp } = productMetadata[id];
const metadata = ipfsHash === '' ? {} : await fetch(ipfsURL(ipfsHash)).then(res => res.json());
const metadata =
ipfsHash === ''
? {}
: await fetch(ipfsURL(ipfsHash))
.then(res => res.json())
.catch(_err => {
console.error(`Error fetching metadata for product #${id}: ${_err}`);
return { annex: ipfsHash };
});

if (logos[id] === undefined) {
logos[id] = 'nexus-mutual.svg';
Expand Down
Loading