From 8363c3426d15588c3982813742d1ac36a380ab1b Mon Sep 17 00:00:00 2001 From: jayy04 <103467857+jayy04@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:06:16 -0400 Subject: [PATCH] disable equity tier limit validation in DeliverTx (#427) --- protocol/x/clob/keeper/orders.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocol/x/clob/keeper/orders.go b/protocol/x/clob/keeper/orders.go index 357bb91ee8..354b4ce6eb 100644 --- a/protocol/x/clob/keeper/orders.go +++ b/protocol/x/clob/keeper/orders.go @@ -201,8 +201,10 @@ func (k Keeper) PlaceStatefulOrder( } // 3. Check that adding the order would not exceed the equity tier for the account. - if err := k.ValidateSubaccountEquityTierLimitForNewOrder(ctx, order); err != nil { - return err + if ctx.BlockHeight() < 956441 { + if err := k.ValidateSubaccountEquityTierLimitForNewOrder(ctx, order); err != nil { + return err + } } // 4. Perform a collateralization check for the full size of the order to mitigate spam.