This commit is contained in:
Adrian Brzeziński 2023-11-28 19:01:05 +01:00
parent e4e42d5b45
commit 37c30cba45
4 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
declare const PREMIUM_LISTING: {
maxStalenessSlots: number;
maxStalenessSlots: number | null;
oracleConfFilter: number;
adjustmentFactor: number;
util0: number;

View File

@ -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: {},
};

View File

@ -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": {

View File

@ -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: {},