Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 committed Feb 27, 2024
1 parent 844eea0 commit 69c9879
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions protocol/x/clob/keeper/orders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ func TestPlaceShortTermOrder(t *testing.T) {
// 1. The first should have a buy price well below the oracle price of 50,000. (success)
// 2. The second should have a buy price above the oracle price of 50,000. (undercollateralized)
// 3. The third should have the order in common with #1 and the subaccount in common with #2 and should succeed.
`Subaccount can now place buy order that would failed the deprecated pessimistic collateralization check with the oracle price`: {
`Subaccount can now place buy order that would failed the
deprecated pessimistic collateralization check with the oracle price`: {
perpetuals: []perptypes.Perpetual{
constants.BtcUsd_50PercentInitial_40PercentMaintenance,
},
Expand Down Expand Up @@ -591,7 +592,8 @@ func TestPlaceShortTermOrder(t *testing.T) {
// 1. The first should have a sell price well above the oracle price of 50,000. (success)
// 2. The second should have a sell price below the oracle price of 50,000 subticks. (undercollateralized)
// 3. The third should have the order in common with #1 and the subaccount in common with #2 and should succeed.
`Subaccount can now place sell order that would failed the deprecated pessimistic collateralization check with the oracle price`: {
`Subaccount can now place sell order that would failed the
deprecated pessimistic collateralization check with the oracle price`: {
perpetuals: []perptypes.Perpetual{
constants.BtcUsd_50PercentInitial_40PercentMaintenance,
},
Expand Down Expand Up @@ -700,7 +702,7 @@ func TestPlaceShortTermOrder(t *testing.T) {
require.NoError(t, err)
}

ks.ClobKeeper.InitializeEquityTierLimit(
err = ks.ClobKeeper.InitializeEquityTierLimit(
ctx,
types.EquityTierLimitConfiguration{
ShortTermOrderEquityTiers: []types.EquityTierLimit{
Expand All @@ -717,6 +719,7 @@ func TestPlaceShortTermOrder(t *testing.T) {
},
},
)
require.NoError(t, err)

// Create all existing orders.
for _, order := range tc.existingOrders {
Expand Down

0 comments on commit 69c9879

Please sign in to comment.