Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akos-tk committed Dec 12, 2024
1 parent a6d76b1 commit 7a97d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/event_converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (h *Handler) convertActionExtraCurrencyTransfer(t *bath.ExtraCurrencyTransf
Name: "Extra Currency Transfer",
Description: "", // TODO: add description
Accounts: distinctAccounts(viewer, h.addressBook, &t.Sender, &t.Recipient),
Value: oas.NewOptString(fmt.Sprintf("%v %v", value.String(), meta.Name)),
Value: oas.NewOptString(fmt.Sprintf("%v %v", value.String(), meta.Symbol)),
}
return action, simplePreview
}
Expand Down
3 changes: 3 additions & 0 deletions pkg/references/extra_currency.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package references

import "fmt"

const DefaultExtraCurrencyDecimals = 9

type ExtraCurrencyMeta struct {
Expand All @@ -24,6 +26,7 @@ func GetExtraCurrencyMeta(id int32) ExtraCurrencyMeta {
}
return ExtraCurrencyMeta{
Decimals: DefaultExtraCurrencyDecimals,
Symbol: fmt.Sprintf("$%d", id),
// TODO: add default placeholders
}
}

0 comments on commit 7a97d76

Please sign in to comment.