Skip to content

Commit

Permalink
fix: missing hook arg (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Jun 24, 2024
1 parent 9f6d1d9 commit c7000d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/perpetual/keeper/add_collateral.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (k Keeper) AddCollateralToMtp(ctx sdk.Context, msg *types.MsgAddCollateral)
k.EmitOpenEvent(ctx, &mtp)

if k.hooks != nil {
k.hooks.AfterPerpetualPositionModified(ctx, ammPool, pool)
k.hooks.AfterPerpetualPositionModified(ctx, ammPool, pool, msg.Creator)
}

return &types.MsgAddCollateralResponse{}, nil
Expand Down

0 comments on commit c7000d2

Please sign in to comment.