Skip to content

Commit

Permalink
Remove second TON from "Swapping x TON TON for ..."
Browse files Browse the repository at this point in the history
(cherry picked from commit f0fa862)
  • Loading branch information
aleksej-paschenko authored and mr-tron committed Oct 13, 2023
1 parent a0f4fd8 commit d6fae81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/event_converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ func (h *Handler) convertAction(ctx context.Context, viewer *tongo.AccountID, a
simplePreviewData := i18n.Template{}
if a.JettonSwap.In.IsTon {
swapAction.TonIn = oas.NewOptInt64(a.JettonSwap.In.Amount.Int64())
simplePreviewData["JettonIn"] = "TON"
simplePreviewData["JettonIn"] = ""
simplePreviewData["AmountIn"] = i18n.FormatTONs(a.JettonSwap.In.Amount.Int64())
} else {
swapAction.AmountIn = a.JettonSwap.In.Amount.String()
Expand All @@ -541,7 +541,7 @@ func (h *Handler) convertAction(ctx context.Context, viewer *tongo.AccountID, a
}
if a.JettonSwap.Out.IsTon {
swapAction.TonOut = oas.NewOptInt64(a.JettonSwap.Out.Amount.Int64())
simplePreviewData["JettonOut"] = "TON"
simplePreviewData["JettonOut"] = ""
simplePreviewData["AmountOut"] = i18n.FormatTONs(a.JettonSwap.Out.Amount.Int64())
} else {
swapAction.AmountOut = a.JettonSwap.Out.Amount.String()
Expand Down

0 comments on commit d6fae81

Please sign in to comment.