From c65b71dd7a07ccf6aa5e8fa44e994267ed72bfc3 Mon Sep 17 00:00:00 2001 From: 0xbigz <83473873+0xbigz@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:53:06 -0500 Subject: [PATCH 1/2] program: bigz/update-high-lev-min-margin-ratio-constant --- programs/drift/src/math/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/drift/src/math/constants.rs b/programs/drift/src/math/constants.rs index 5f0b279dc..75e0b7223 100644 --- a/programs/drift/src/math/constants.rs +++ b/programs/drift/src/math/constants.rs @@ -183,7 +183,7 @@ pub const MAX_MARK_TWAP_DIVERGENCE: u128 = 500_000; // expo = -3 pub const MAX_MARGIN_RATIO: u32 = MARGIN_PRECISION; // 1x leverage pub const MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 50; // 50x leverage -pub const HIGH_LEVERAGE_MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 100; // 100x leverage +pub const HIGH_LEVERAGE_MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 50; // 200x leverage pub const MAX_BID_ASK_INVENTORY_SKEW_FACTOR: u64 = 10 * BID_ASK_SPREAD_PRECISION; From d2a12ae0bddddfe8131000f3a9bbb852a95774cd Mon Sep 17 00:00:00 2001 From: 0xbigz <83473873+0xbigz@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:54:01 -0500 Subject: [PATCH 2/2] correct denom --- programs/drift/src/math/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/drift/src/math/constants.rs b/programs/drift/src/math/constants.rs index 75e0b7223..6bf4c2379 100644 --- a/programs/drift/src/math/constants.rs +++ b/programs/drift/src/math/constants.rs @@ -183,7 +183,7 @@ pub const MAX_MARK_TWAP_DIVERGENCE: u128 = 500_000; // expo = -3 pub const MAX_MARGIN_RATIO: u32 = MARGIN_PRECISION; // 1x leverage pub const MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 50; // 50x leverage -pub const HIGH_LEVERAGE_MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 50; // 200x leverage +pub const HIGH_LEVERAGE_MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 200; // 200x leverage pub const MAX_BID_ASK_INVENTORY_SKEW_FACTOR: u64 = 10 * BID_ASK_SPREAD_PRECISION;