Skip to content

Commit

Permalink
add address attribute for EmitFundPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
McDaan authored Oct 26, 2022
1 parent a6f1ceb commit cdf9925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/margin/keeper/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
))
Expand Down

0 comments on commit cdf9925

Please sign in to comment.