From 9475d9545c334db82fb2dd1803e27a0532e09eef Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Sat, 19 Mar 2022 08:52:38 +0100 Subject: [PATCH] add comment Signed-off-by: microwavedcola1 --- programs/mango-v4/src/state/mango_account.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/mango-v4/src/state/mango_account.rs b/programs/mango-v4/src/state/mango_account.rs index a681bc4a7..cdb093884 100644 --- a/programs/mango-v4/src/state/mango_account.rs +++ b/programs/mango-v4/src/state/mango_account.rs @@ -4,6 +4,12 @@ use fixed::types::I80F48; use crate::error::*; use crate::state::*; +// todo: these are arbitrary +// ckamm: Either we put hard limits on everything, or we have a simple model for how much +// compute a token/serum/perp market needs, so users who don't use serum markets can have +// more perp markets open at the same time etc +// In particular if perp markets don't require the base token to be active on the account, +// we could probably support 1 token (quote currency) + 15 active perp markets at the same time const MAX_INDEXED_POSITIONS: usize = 16; const MAX_SERUM_OPEN_ORDERS: usize = 8;