This commit is contained in:
Adrian Brzeziński 2023-11-28 18:49:16 +01:00
parent b9b41ec7bc
commit e4e42d5b45
3 changed files with 5 additions and 6 deletions

View File

@ -46,9 +46,9 @@ exports.LISTING_PRESETS = {
//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.125, netBorrowLimitPerWindowQuote: toNative(20000, 6).toNumber(), borrowWeightScaleStartQuote: toNative(50000, 6).toNumber(), depositWeightScaleStartQuote: toNative(50000, 6).toNumber(), insuranceFound: false, preset_name: "Midwit", 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, 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, reduceOnly: 2 }),
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 }),
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 }),
//should run untrusted instruction
UNTRUSTED: {},
};
@ -57,7 +57,7 @@ exports.LISTING_PRESETS_PYTH = {
PREMIUM: Object.assign(Object.assign({}, exports.LISTING_PRESETS.PREMIUM), { maxStalenessSlots: 250 }),
MID: Object.assign(Object.assign({}, exports.LISTING_PRESETS.MID), { maxStalenessSlots: 250 }),
MEME: Object.assign(Object.assign({}, exports.LISTING_PRESETS.MEME), { maxStalenessSlots: 250 }),
SHIT: Object.assign(Object.assign({}, exports.LISTING_PRESETS.SHIT), { maxStalenessSlots: 250 }),
SHIT: Object.assign({}, exports.LISTING_PRESETS.SHIT),
UNTRUSTED: {},
};
// definitions:

View File

@ -1,6 +1,6 @@
{
"name": "@blockworks-foundation/mango-v4-settings",
"version": "0.2.19",
"version": "0.2.20",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {

View File

@ -93,7 +93,6 @@ export const LISTING_PRESETS: {
preset_name: "Meme Coin",
preset_key: "MEME",
preset_target_amount: 5000,
reduceOnly: 2,
},
//Price impact on $1,000 swap lower then 1%
SHIT: {
@ -112,6 +111,7 @@ export const LISTING_PRESETS: {
preset_key: "SHIT",
preset_target_amount: 1000,
reduceOnly: 2,
maxStalenessSlots: -1,
},
//should run untrusted instruction
UNTRUSTED: {},
@ -136,7 +136,6 @@ export const LISTING_PRESETS_PYTH: typeof LISTING_PRESETS = {
},
SHIT: {
...(LISTING_PRESETS.SHIT as ListingPreset),
maxStalenessSlots: 250,
},
UNTRUSTED: {},
};