From 37c30cba45db2d60e24a0fcf0bb50e266be3c6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezin=CC=81ski?= Date: Tue, 28 Nov 2023 19:01:05 +0100 Subject: [PATCH] v0.2.21 --- lib/helpers/listingTools.d.ts | 2 +- lib/helpers/listingTools.js | 2 +- package.json | 2 +- src/helpers/listingTools.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/helpers/listingTools.d.ts b/lib/helpers/listingTools.d.ts index 037088b..0a5166d 100644 --- a/lib/helpers/listingTools.d.ts +++ b/lib/helpers/listingTools.d.ts @@ -1,5 +1,5 @@ declare const PREMIUM_LISTING: { - maxStalenessSlots: number; + maxStalenessSlots: number | null; oracleConfFilter: number; adjustmentFactor: number; util0: number; diff --git a/lib/helpers/listingTools.js b/lib/helpers/listingTools.js index 157953d..07537e9 100644 --- a/lib/helpers/listingTools.js +++ b/lib/helpers/listingTools.js @@ -48,7 +48,7 @@ exports.LISTING_PRESETS = { //Price impact on $5,000 swap lower then 1% MEME: Object.assign(Object.assign({}, PREMIUM_LISTING), { loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, maintLiabWeight: 1.25, initLiabWeight: 1.5, liquidationFee: 0.2, netBorrowLimitPerWindowQuote: toNative(5000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(20000, 6).toNumber(), depositWeightScaleStartQuote: toNative(20000, 6).toNumber(), insuranceFound: false, preset_name: "Meme Coin", 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, maintLiabWeight: 1.4, initLiabWeight: 1.8, liquidationFee: 0.2, netBorrowLimitPerWindowQuote: toNative(1000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(5000, 6).toNumber(), depositWeightScaleStartQuote: toNative(5000, 6).toNumber(), insuranceFound: false, preset_name: "Shit Coin", preset_key: "SHIT", preset_target_amount: 1000, reduceOnly: 2, maxStalenessSlots: -1 }), + SHIT: Object.assign(Object.assign({}, PREMIUM_LISTING), { loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, maintLiabWeight: 1.4, initLiabWeight: 1.8, liquidationFee: 0.2, netBorrowLimitPerWindowQuote: toNative(1000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(5000, 6).toNumber(), depositWeightScaleStartQuote: toNative(5000, 6).toNumber(), insuranceFound: false, preset_name: "Shit Coin", preset_key: "SHIT", preset_target_amount: 1000, reduceOnly: 2, maxStalenessSlots: null }), //should run untrusted instruction UNTRUSTED: {}, }; diff --git a/package.json b/package.json index 3788c9c..0670643 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blockworks-foundation/mango-v4-settings", - "version": "0.2.20", + "version": "0.2.21", "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { diff --git a/src/helpers/listingTools.ts b/src/helpers/listingTools.ts index b2d0270..83f7a84 100644 --- a/src/helpers/listingTools.ts +++ b/src/helpers/listingTools.ts @@ -1,7 +1,7 @@ import BN from "bn.js"; const PREMIUM_LISTING = { - maxStalenessSlots: 10000, + maxStalenessSlots: 10000 as number | null, oracleConfFilter: 0.1, adjustmentFactor: 0.004, util0: 0.5, @@ -111,7 +111,7 @@ export const LISTING_PRESETS: { preset_key: "SHIT", preset_target_amount: 1000, reduceOnly: 2, - maxStalenessSlots: -1, + maxStalenessSlots: null, }, //should run untrusted instruction UNTRUSTED: {},