From 072ce7a23d46ab3c882a558d7f820eb3301fbc2d Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Sat, 21 Oct 2023 15:58:09 -0400 Subject: [PATCH] program: bump max sub accounts to 15k --- CHANGELOG.md | 1 + programs/drift/src/instructions/user.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0660eeb92..c14b8801c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Features +- program: bump max sub accounts to 15k - program: user custom margin ratio works with spot ([#633](https://github.com/drift-labs/protocol-v2/pull/633)) - program: add swap price bands ([#611](https://github.com/drift-labs/protocol-v2/pull/611)) - program: add 5min twap price bands to liquidate_perp and liquidate_spot ([#570](https://github.com/drift-labs/protocol-v2/pull/570)) diff --git a/programs/drift/src/instructions/user.rs b/programs/drift/src/instructions/user.rs index 59c9acd26..61275cf14 100644 --- a/programs/drift/src/instructions/user.rs +++ b/programs/drift/src/instructions/user.rs @@ -136,7 +136,7 @@ pub fn handle_initialize_user( safe_increment!(state.number_of_sub_accounts, 1); validate!( - state.number_of_sub_accounts <= 12500, + state.number_of_sub_accounts <= 15000, ErrorCode::MaxNumberOfUsers )?;