Skip to content

Commit

Permalink
types: make deposit slack field shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 16, 2024
1 parent 3a8ed00 commit 118b186
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/types/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment {
fields = append(fields, slack.AttachmentField{
Title: "Status",
Value: string(d.Status) + " " + d.Status.Emoji(),
Short: false,
Short: true,
})
}

Expand All @@ -138,23 +138,23 @@ func (d *Deposit) SlackAttachment() slack.Attachment {
fields = append(fields, slack.AttachmentField{
Title: "Confirmation",
Value: text,
Short: false,
Short: true,
})
}

if len(d.Exchange) > 0 {
fields = append(fields, slack.AttachmentField{
Title: "Exchange",
Value: d.Exchange.String(),
Short: false,
Short: true,
})
}

if len(d.Network) > 0 {
fields = append(fields, slack.AttachmentField{
Title: "Network",
Value: d.Network,
Short: false,
Short: true,
})
}

Expand All @@ -164,14 +164,14 @@ func (d *Deposit) SlackAttachment() slack.Attachment {
fields = append(fields, slack.AttachmentField{
Title: "Hostname",
Value: hostname,
Short: false,
Short: true,
})
}

fields = append(fields, slack.AttachmentField{
Title: "Amount",
Value: d.Amount.String() + " " + d.Asset,
Short: false,
Short: true,
})

return slack.Attachment{
Expand Down

0 comments on commit 118b186

Please sign in to comment.