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 scripts/build-products.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const buildProducts = async () => {
.map(({ name }) => name)
.map(name => name.replace(/ /g, ''))
.map(name => name.replace(/ETH/g, 'Eth'))
.map(name => name.replace(/&/g, 'And'))
.map(name => `${name[0].toLowerCase()}${name.slice(1)}`)
.map(name => (name.endsWith('Cover') ? name.slice(0, -5) : name));
fs.appendFileSync(
Expand Down
8 changes: 7 additions & 1 deletion src/constants/cover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ export const DEFI_PASS_COMMISSION_RATIO = 10_00; // 10%
export const GENERALIZED_FUND_PORTFOLIO_COMMISSION_RATIO = 10_00; // 10%
export const CRYPTO_COVER_COMMISSION_RATIO = 10_00; // 10%
export const NEXUS_MUTUAL_COVER_COMMISSION_RATIO = 10_00; // 10%
export const NO_COMMISSION = 0; // 0%
export const LEVERAGED_LIQUIDATION_COMMISSION_RATIO = 10_00; // 10%
export const NON_EVM_PROTOCOL_COMMISSION_RATIO = 10_00;
export const KIDNAP_AND_RANSOM_COVER_COMMISSION_RATIO = 10_00;
export const NO_COMMISSION = 0; // 0%

// Commission destinations
export const NO_COMMISSION_DESTINATION = zeroAddress as Address;
Expand Down Expand Up @@ -68,6 +70,8 @@ export const BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE: Record<ProductTypes, nu
[ProductTypes.nativeSyndicate]: NO_COMMISSION,
[ProductTypes.spearbitCantina]: DEFAULT_COMMISSION_RATIO,
[ProductTypes.leveragedLiquidation]: LEVERAGED_LIQUIDATION_COMMISSION_RATIO,
[ProductTypes.nonEVMProtocol]: NON_EVM_PROTOCOL_COMMISSION_RATIO,
[ProductTypes.kidnapAndRansom]: KIDNAP_AND_RANSOM_COVER_COMMISSION_RATIO,
};

export const BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE: Record<ProductTypes, Address> = {
Expand Down Expand Up @@ -96,4 +100,6 @@ export const BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE: Record<ProductTyp
[ProductTypes.nativeSyndicate]: NO_COMMISSION_DESTINATION,
[ProductTypes.spearbitCantina]: SPEARBIT_CANTINA_ADDRESS,
[ProductTypes.leveragedLiquidation]: NEXUS_MUTUAL_DAO_TREASURY_ADDRESS,
[ProductTypes.nonEVMProtocol]: NEXUS_MUTUAL_DAO_TREASURY_ADDRESS,
[ProductTypes.kidnapAndRansom]: NEXUS_MUTUAL_DAO_TREASURY_ADDRESS,
};
2 changes: 2 additions & 0 deletions src/constants/privateProducts.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const allPrivateProductsIds = [
353, // Dialectic Ellipse
358, // DeFi Vault 1
359, // DeFi Vault 2
360, // TermMax Markets
361, // Vesu
];

module.exports = {
Expand Down
2 changes: 2 additions & 0 deletions src/constants/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,6 @@ export const productCategoryMap: { [productId: number]: ProductCategoryEnum } =
357: ProductCategoryEnum.YieldOptimizer, // Aegis
358: ProductCategoryEnum.Uncategorized, // DeFi Vault 1
359: ProductCategoryEnum.Uncategorized, // DeFi Vault 2
360: ProductCategoryEnum.Uncategorized, // TermMax Markets
361: ProductCategoryEnum.Uncategorized, // Vesu
};
26 changes: 26 additions & 0 deletions src/logos/360-termmax.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/logos/361-vesu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/types/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export const IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE: Record<ProductTypes, ContentType
[ProductTypes.nativeSyndicate]: undefined,
[ProductTypes.spearbitCantina]: undefined,
[ProductTypes.leveragedLiquidation]: undefined,
[ProductTypes.nonEVMProtocol]: undefined,
[ProductTypes.kidnapAndRansom]: undefined,
};

export interface IPFSContentForProductType {
Expand Down Expand Up @@ -145,6 +147,9 @@ export interface IPFSContentForProductType {
[ProductTypes.crypto]: undefined;
[ProductTypes.nativeSyndicate]: undefined;
[ProductTypes.spearbitCantina]: undefined;
[ProductTypes.leveragedLiquidation]: undefined;
[ProductTypes.nonEVMProtocol]: undefined;
[ProductTypes.kidnapAndRansom]: undefined;
}

export type IPFSUploadServiceResponse = {
Expand Down