Skip to content

Commit

Permalink
disable equity tier limit validation in DeliverTx (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 authored Oct 2, 2023
1 parent 1a849ae commit 8363c34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions protocol/x/clob/keeper/orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8363c34

Please sign in to comment.