Skip to content

Commit 59d836c

Browse files
committed
program: update-min-margin-const-limit (#1802)
* program: update-min-margin-const-limit * add CHANGELOG.md
1 parent 8de9f60 commit 59d836c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- program: add new settle pnl invariants ([#1812](https://github.com/drift-labs/protocol-v2/pull/1812))
1313
- program: add update_perp_market_pnl_pool ([#1810](https://github.com/drift-labs/protocol-v2/pull/1810))
14+
- program: increase min margin ratio invariant constant ([#1802](https://github.com/drift-labs/protocol-v2/pull/1802))
1415
- program: update mark twap crank use 5min basis for bid/ask ([#1769](https://github.com/drift-labs/protocol-v2/pull/1769))
1516

1617
### Fixes
1718

1819
- program: correct fee tier 5 volume requirement ([#1800](https://github.com/drift-labs/protocol-v2/pull/1800))
19-
2020
- program: fix small number mark-twap-integer-bias ([#1783](https://github.com/drift-labs/protocol-v2/pull/1783))
2121

2222
### Breaking

programs/drift/src/math/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pub const MAX_LIQUIDATION_SLIPPAGE_U128: u128 = 10_000; // expo = -2
186186
pub const MAX_MARK_TWAP_DIVERGENCE: u128 = 500_000; // expo = -3
187187

188188
pub const MAX_MARGIN_RATIO: u32 = MARGIN_PRECISION; // 1x leverage
189-
pub const MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 50; // 50x leverage
189+
pub const MIN_MARGIN_RATIO: u32 = 125; // 80x leverage
190190
pub const HIGH_LEVERAGE_MIN_MARGIN_RATIO: u32 = MARGIN_PRECISION / 200; // 200x leverage
191191

192192
pub const MAX_BID_ASK_INVENTORY_SKEW_FACTOR: u64 = 10 * BID_ASK_SPREAD_PRECISION;

0 commit comments

Comments
 (0)