fixes
This commit is contained in:
parent
8f9eb7b3c3
commit
0ceac89b8a
|
@ -29,121 +29,7 @@ export type LISTING_PRESETS_KEYS = "PREMIUM" | "MID" | "MEME" | "SHIT" | "UNTRUS
|
||||||
export declare const LISTING_PRESETS: {
|
export declare const LISTING_PRESETS: {
|
||||||
[key in LISTING_PRESETS_KEYS]: ListingPreset | Record<string, never>;
|
[key in LISTING_PRESETS_KEYS]: ListingPreset | Record<string, never>;
|
||||||
};
|
};
|
||||||
export declare const LISTING_PRESETS_PYTH: {
|
export declare const LISTING_PRESETS_PYTH: typeof LISTING_PRESETS;
|
||||||
PREMIUM: {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
oracleConfFilter: number;
|
|
||||||
adjustmentFactor: number;
|
|
||||||
util0: number;
|
|
||||||
rate0: number;
|
|
||||||
util1: number;
|
|
||||||
rate1: number;
|
|
||||||
maxRate: number;
|
|
||||||
loanFeeRate: number;
|
|
||||||
loanOriginationFeeRate: number;
|
|
||||||
maintAssetWeight: number;
|
|
||||||
initAssetWeight: number;
|
|
||||||
maintLiabWeight: number;
|
|
||||||
initLiabWeight: number;
|
|
||||||
liquidationFee: number;
|
|
||||||
minVaultToDepositsRatio: number;
|
|
||||||
netBorrowLimitWindowSizeTs: number;
|
|
||||||
netBorrowLimitPerWindowQuote: number;
|
|
||||||
insuranceFound: boolean;
|
|
||||||
borrowWeightScale: number;
|
|
||||||
depositWeightScale: number;
|
|
||||||
preset_key: string;
|
|
||||||
preset_name: string;
|
|
||||||
preset_target_amount: number;
|
|
||||||
} | {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
};
|
|
||||||
MID: {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
oracleConfFilter: number;
|
|
||||||
adjustmentFactor: number;
|
|
||||||
util0: number;
|
|
||||||
rate0: number;
|
|
||||||
util1: number;
|
|
||||||
rate1: number;
|
|
||||||
maxRate: number;
|
|
||||||
loanFeeRate: number;
|
|
||||||
loanOriginationFeeRate: number;
|
|
||||||
maintAssetWeight: number;
|
|
||||||
initAssetWeight: number;
|
|
||||||
maintLiabWeight: number;
|
|
||||||
initLiabWeight: number;
|
|
||||||
liquidationFee: number;
|
|
||||||
minVaultToDepositsRatio: number;
|
|
||||||
netBorrowLimitWindowSizeTs: number;
|
|
||||||
netBorrowLimitPerWindowQuote: number;
|
|
||||||
insuranceFound: boolean;
|
|
||||||
borrowWeightScale: number;
|
|
||||||
depositWeightScale: number;
|
|
||||||
preset_key: string;
|
|
||||||
preset_name: string;
|
|
||||||
preset_target_amount: number;
|
|
||||||
} | {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
};
|
|
||||||
MEME: {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
oracleConfFilter: number;
|
|
||||||
adjustmentFactor: number;
|
|
||||||
util0: number;
|
|
||||||
rate0: number;
|
|
||||||
util1: number;
|
|
||||||
rate1: number;
|
|
||||||
maxRate: number;
|
|
||||||
loanFeeRate: number;
|
|
||||||
loanOriginationFeeRate: number;
|
|
||||||
maintAssetWeight: number;
|
|
||||||
initAssetWeight: number;
|
|
||||||
maintLiabWeight: number;
|
|
||||||
initLiabWeight: number;
|
|
||||||
liquidationFee: number;
|
|
||||||
minVaultToDepositsRatio: number;
|
|
||||||
netBorrowLimitWindowSizeTs: number;
|
|
||||||
netBorrowLimitPerWindowQuote: number;
|
|
||||||
insuranceFound: boolean;
|
|
||||||
borrowWeightScale: number;
|
|
||||||
depositWeightScale: number;
|
|
||||||
preset_key: string;
|
|
||||||
preset_name: string;
|
|
||||||
preset_target_amount: number;
|
|
||||||
} | {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
};
|
|
||||||
SHIT: {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
oracleConfFilter: number;
|
|
||||||
adjustmentFactor: number;
|
|
||||||
util0: number;
|
|
||||||
rate0: number;
|
|
||||||
util1: number;
|
|
||||||
rate1: number;
|
|
||||||
maxRate: number;
|
|
||||||
loanFeeRate: number;
|
|
||||||
loanOriginationFeeRate: number;
|
|
||||||
maintAssetWeight: number;
|
|
||||||
initAssetWeight: number;
|
|
||||||
maintLiabWeight: number;
|
|
||||||
initLiabWeight: number;
|
|
||||||
liquidationFee: number;
|
|
||||||
minVaultToDepositsRatio: number;
|
|
||||||
netBorrowLimitWindowSizeTs: number;
|
|
||||||
netBorrowLimitPerWindowQuote: number;
|
|
||||||
insuranceFound: boolean;
|
|
||||||
borrowWeightScale: number;
|
|
||||||
depositWeightScale: number;
|
|
||||||
preset_key: string;
|
|
||||||
preset_name: string;
|
|
||||||
preset_target_amount: number;
|
|
||||||
} | {
|
|
||||||
maxStalenessSlots: number;
|
|
||||||
};
|
|
||||||
UNTRUSTED: {};
|
|
||||||
};
|
|
||||||
export type MarketTradingParams = {
|
export type MarketTradingParams = {
|
||||||
baseLots: number;
|
baseLots: number;
|
||||||
quoteLots: number;
|
quoteLots: number;
|
||||||
|
|
|
@ -35,11 +35,11 @@ exports.LISTING_PRESETS = {
|
||||||
//Price impact on $100,000 swap lower then 1%
|
//Price impact on $100,000 swap lower then 1%
|
||||||
PREMIUM: Object.assign({}, PREMIUM_LISTING),
|
PREMIUM: Object.assign({}, PREMIUM_LISTING),
|
||||||
//Price impact on $20,000 swap lower then 1%
|
//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, netBorrowLimitPerWindowQuote: toNative(20000, 6).toNumber(), borrowWeightScale: toNative(50000, 6).toNumber(), depositWeightScale: toNative(50000, 6).toNumber(), insuranceFound: false, preset_name: "Midwit", 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.125, netBorrowLimitPerWindowQuote: toNative(20000, 6).toNumber(), borrowWeightScale: toNative(50000, 6).toNumber(), depositWeightScale: 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%
|
//Price impact on $5,000 swap lower then 1%
|
||||||
MEME: Object.assign(Object.assign({}, PREMIUM_LISTING), { maxStalenessSlots: 800, loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, maintLiabWeight: 1.25, initLiabWeight: 1.5, liquidationFee: 0.125, netBorrowLimitPerWindowQuote: toNative(5000, 6).toNumber(), borrowWeightScale: toNative(20000, 6).toNumber(), depositWeightScale: toNative(20000, 6).toNumber(), insuranceFound: false, preset_name: "Meme Coin", preset_key: "MEME", preset_target_amount: 5000 }),
|
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(), borrowWeightScale: toNative(20000, 6).toNumber(), depositWeightScale: 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%
|
//Price impact on $1,000 swap lower then 1%
|
||||||
SHIT: Object.assign(Object.assign({}, PREMIUM_LISTING), { maxStalenessSlots: 800, loanOriginationFeeRate: 0.002, maintAssetWeight: 0, initAssetWeight: 0, maintLiabWeight: 1.4, initLiabWeight: 1.8, liquidationFee: 0.2, netBorrowLimitPerWindowQuote: toNative(1000, 6).toNumber(), borrowWeightScale: toNative(5000, 6).toNumber(), depositWeightScale: toNative(5000, 6).toNumber(), insuranceFound: false, preset_name: "Shit Coin", preset_key: "SHIT", preset_target_amount: 1000 }),
|
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(), borrowWeightScale: toNative(5000, 6).toNumber(), depositWeightScale: toNative(5000, 6).toNumber(), insuranceFound: false, preset_name: "Shit Coin", preset_key: "SHIT", preset_target_amount: 1000 }),
|
||||||
//should run untrusted instruction
|
//should run untrusted instruction
|
||||||
UNTRUSTED: {},
|
UNTRUSTED: {},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue