Skip to content

Commit

Permalink
upgrade file comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx committed Mar 18, 2024
1 parent 861b1af commit 1d4c13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/app/upgrades/v5.0.0/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ func blockRateLimitConfigUpdate(
allowedNumShortTermPlaceAndCancelInFiveBlocks :=
(numAllowedShortTermOrderPlacementsInOneBlock + numAllowedShortTermOrderCancellationsInOneBlock) * 5

// Based off of https://docs.dydx.exchange/trading/rate_limits
blockRateLimitConfig := clobtypes.BlockRateLimitConfiguration{
// Kept the same
MaxStatefulOrdersPerNBlocks: oldBlockRateLimitConfig.MaxStatefulOrdersPerNBlocks,
// Combine place and cancel, gate over 5 blocks to allow burst
MaxShortTermOrdersAndCancelsPerNBlocks: []clobtypes.MaxPerNBlocksRateLimit{
{
NumBlocks: 5,
Expand Down

0 comments on commit 1d4c13c

Please sign in to comment.