Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions x/dex/keeper/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ func (k Keeper) ExecuteDeposit(
depositAmount1,
inAmount0,
inAmount1,
pool.Id,
outShares.Amount,
)
events = append(events, depositEvent)
Expand Down
1 change: 1 addition & 0 deletions x/dex/keeper/withdraw.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (k Keeper) ExecuteWithdraw(
fee,
outAmount0,
outAmount1,
pool.Id,
sharesToRemove,
)
events = append(events, withdrawEvent)
Expand Down
5 changes: 5 additions & 0 deletions x/dex/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
AttributeTickIndex = "TickIndex"
AttributeFee = "Fee"
AttributeTrancheKey = "TrancheKey"
AttributePoolID = "PoolID"
AttributeSharesMinted = "SharesMinted"
AttributeReserves0Deposited = "ReservesZeroDeposited"
AttributeReserves1Deposited = "ReservesOneDeposited"
Expand Down Expand Up @@ -90,6 +91,7 @@ func CreateDepositEvent(
depositAmountReserve1 math.Int,
amountIn0 math.Int,
amountIn1 math.Int,
poolID uint64,
sharesMinted math.Int,
) sdk.Event {
attrs := []sdk.Attribute{
Expand All @@ -103,6 +105,7 @@ func CreateDepositEvent(
sdk.NewAttribute(AttributeFee, strconv.FormatUint(fee, 10)),
sdk.NewAttribute(AttributeReserves0Deposited, depositAmountReserve0.String()),
sdk.NewAttribute(AttributeReserves1Deposited, depositAmountReserve1.String()),
sdk.NewAttribute(AttributePoolID, strconv.FormatUint(poolID, 10)),
sdk.NewAttribute(AttributeSharesMinted, sharesMinted.String()),
sdk.NewAttribute(AttributeAmountIn0, amountIn0.String()),
sdk.NewAttribute(AttributeAmountIn1, amountIn1.String()),
Expand All @@ -120,6 +123,7 @@ func CreateWithdrawEvent(
fee uint64,
withdrawAmountReserve0 math.Int,
withdrawAmountReserve1 math.Int,
poolID uint64,
sharesRemoved math.Int,
) sdk.Event {
attrs := []sdk.Attribute{
Expand All @@ -133,6 +137,7 @@ func CreateWithdrawEvent(
sdk.NewAttribute(AttributeFee, strconv.FormatUint(fee, 10)),
sdk.NewAttribute(AttributeReserves0Withdrawn, withdrawAmountReserve0.String()),
sdk.NewAttribute(AttributeReserves1Withdrawn, withdrawAmountReserve1.String()),
sdk.NewAttribute(AttributePoolID, strconv.FormatUint(poolID, 10)),
sdk.NewAttribute(AttributeSharesRemoved, sharesRemoved.String()),
}

Expand Down
Loading