From 75a3a9f66f3f1209629d1694e862f75ac9c771d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezin=CC=81ski?= Date: Thu, 14 Dec 2023 01:15:23 +0100 Subject: [PATCH] fix --- lib/helpers/listingTools.d.ts | 2 +- lib/helpers/listingTools.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/helpers/listingTools.d.ts b/lib/helpers/listingTools.d.ts index 64948c0..4e1d8ed 100644 --- a/lib/helpers/listingTools.d.ts +++ b/lib/helpers/listingTools.d.ts @@ -17,7 +17,7 @@ declare const PREMIUM_LISTING: { minVaultToDepositsRatio: number; netBorrowLimitWindowSizeTs: number; netBorrowLimitPerWindowQuote: number; - insuranceFound: boolean; + groupInsuranceFund: boolean; borrowWeightScaleStartQuote: number; depositWeightScaleStartQuote: number; preset_key: string; diff --git a/lib/helpers/listingTools.js b/lib/helpers/listingTools.js index ffe6d04..1dbd9c1 100644 --- a/lib/helpers/listingTools.js +++ b/lib/helpers/listingTools.js @@ -24,7 +24,7 @@ const PREMIUM_LISTING = { minVaultToDepositsRatio: 0.2, netBorrowLimitWindowSizeTs: 24 * 60 * 60, netBorrowLimitPerWindowQuote: toNative(50000, 6).toNumber(), - insuranceFound: true, + groupInsuranceFund: true, borrowWeightScaleStartQuote: toNative(250000, 6).toNumber(), depositWeightScaleStartQuote: toNative(250000, 6).toNumber(), preset_key: "PREMIUM", @@ -48,11 +48,11 @@ exports.LISTING_PRESETS = { //Price impact on $100,000 swap lower then 1% PREMIUM: Object.assign({}, PREMIUM_LISTING), //Price impact on $20,000 swap lower then 1% - MID: Object.assign(Object.assign({}, PREMIUM_LISTING), { maintAssetWeight: 0.75, initAssetWeight: 0.5, maintLiabWeight: 1.2, initLiabWeight: 1.4, liquidationFee: 0.1, loanFeeRate: 0.01, netBorrowLimitPerWindowQuote: toNative(20000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(50000, 6).toNumber(), depositWeightScaleStartQuote: toNative(50000, 6).toNumber(), insuranceFound: true, preset_name: "A", preset_key: "MID", preset_target_amount: 20000 }), + MID: Object.assign(Object.assign({}, PREMIUM_LISTING), { maintAssetWeight: 0.75, initAssetWeight: 0.5, maintLiabWeight: 1.2, initLiabWeight: 1.4, liquidationFee: 0.1, loanFeeRate: 0.01, netBorrowLimitPerWindowQuote: toNative(20000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(50000, 6).toNumber(), depositWeightScaleStartQuote: toNative(50000, 6).toNumber(), groupInsuranceFund: true, preset_name: "A", preset_key: "MID", preset_target_amount: 20000 }), //Price impact on $5,000 swap lower then 1% - MEME: Object.assign(Object.assign({}, PREMIUM_LISTING), { loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, loanFeeRate: 0.02, maintLiabWeight: 1.25, initLiabWeight: 1.5, liquidationFee: 0.1, netBorrowLimitPerWindowQuote: toNative(5000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(20000, 6).toNumber(), depositWeightScaleStartQuote: toNative(20000, 6).toNumber(), insuranceFound: false, preset_name: "BBB", preset_key: "MEME", preset_target_amount: 5000 }), + MEME: Object.assign(Object.assign({}, PREMIUM_LISTING), { loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, loanFeeRate: 0.02, maintLiabWeight: 1.25, initLiabWeight: 1.5, liquidationFee: 0.1, netBorrowLimitPerWindowQuote: toNative(5000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(20000, 6).toNumber(), depositWeightScaleStartQuote: toNative(20000, 6).toNumber(), groupInsuranceFund: false, preset_name: "BBB", preset_key: "MEME", preset_target_amount: 5000 }), //Price impact on $1,000 swap lower then 1% - SHIT: Object.assign(Object.assign({}, PREMIUM_LISTING), { loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, loanFeeRate: 0.02, maintLiabWeight: 1.3, initLiabWeight: 1.6, liquidationFee: 0.1, netBorrowLimitPerWindowQuote: toNative(5000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(20000, 6).toNumber(), depositWeightScaleStartQuote: toNative(20000, 6).toNumber(), insuranceFound: false, preset_name: "BB", preset_key: "SHIT", preset_target_amount: 1000, maxStalenessSlots: 1000, oracleConfFilter: 1000 }), + SHIT: Object.assign(Object.assign({}, PREMIUM_LISTING), { loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, loanFeeRate: 0.02, maintLiabWeight: 1.3, initLiabWeight: 1.6, liquidationFee: 0.1, netBorrowLimitPerWindowQuote: toNative(5000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(20000, 6).toNumber(), depositWeightScaleStartQuote: toNative(20000, 6).toNumber(), groupInsuranceFund: false, preset_name: "BB", preset_key: "SHIT", preset_target_amount: 1000, maxStalenessSlots: 1000, oracleConfFilter: 1000 }), //should run untrusted, instruction preset should be named C UNTRUSTED: {}, };