From cdf9925157d5f199b6e18e71fb04230f7b52997e Mon Sep 17 00:00:00 2001 From: Mainnvest Date: Wed, 26 Oct 2022 21:06:14 +0200 Subject: [PATCH] add address attribute for EmitFundPayment --- x/margin/keeper/events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/margin/keeper/events.go b/x/margin/keeper/events.go index 9adfd27366..eab7f799b1 100644 --- a/x/margin/keeper/events.go +++ b/x/margin/keeper/events.go @@ -57,6 +57,7 @@ func (k Keeper) EmitAdminCloseAll(ctx sdk.Context, takeMarginFund bool) { func (k Keeper) EmitFundPayment(ctx sdk.Context, mtp *types.MTP, takeAmount sdk.Uint, takeAsset string, paymentType string) { ctx.EventManager().EmitEvent(sdk.NewEvent(paymentType, sdk.NewAttribute("id", strconv.FormatInt(int64(mtp.Id), 10)), + sdk.NewAttribute("address", mtp.Address), sdk.NewAttribute("payment_amount", takeAmount.String()), sdk.NewAttribute("payment_asset", takeAsset), ))