Skip to content

Commit db76d63

Browse files
committed
program: raise MAX_BASE_ASSET_AMOUNT_WITH_AMM numerical invariant
1 parent 5355cdc commit db76d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/drift/src/math/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub const MAX_K_BPS_INCREASE: i128 = TEN_BPS;
168168
pub const MAX_K_BPS_DECREASE: i128 = TWO_PT_TWO_PCT;
169169
pub const MAX_UPDATE_K_PRICE_CHANGE: u128 = HUNDRENTH_OF_CENT;
170170
pub const MAX_SQRT_K: u128 = 1000000000000000000000; // 1e21 (count 'em!)
171-
pub const MAX_BASE_ASSET_AMOUNT_WITH_AMM: u128 = 100000000000000000; // 1e17 (count 'em!)
171+
pub const MAX_BASE_ASSET_AMOUNT_WITH_AMM: u128 = 400000000000000000; // 4e17 (count 'em!)
172172

173173
pub const MAX_PEG_BPS_INCREASE: u128 = TEN_BPS as u128; // 10 bps increase
174174
pub const MAX_PEG_BPS_DECREASE: u128 = TEN_BPS as u128; // 10 bps decrease

0 commit comments

Comments
 (0)