Skip to content

Commit

Permalink
int
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Mar 12, 2024
1 parent 50a7977 commit 22ae823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/x/perpetuals/keeper/perpetual_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,11 +883,11 @@ func TestGetMarginRequirements_Success(t *testing.T) {

// If test case contains non-nil open interest, set it up.
if tc.openInterest != nil {
pc.PerpetualsKeeper.ModifyOpenInterest(
require.NoError(t, pc.PerpetualsKeeper.ModifyOpenInterest(
pc.Ctx,
perpetual.Params.Id,
tc.openInterest, // initialized as zero, so passing `openInterest` as delta amount.
)
))
}

// Verify initial and maintenance margin requirements are calculated correctly.
Expand Down

0 comments on commit 22ae823

Please sign in to comment.