Skip to content

Commit

Permalink
deposit2transfer: fix emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Nov 15, 2024
1 parent 4dc04e9 commit 0917b13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/strategy/deposit2transfer/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,21 +225,21 @@ func (s *Strategy) checkDeposits(ctx context.Context) {
}

if amount.IsZero() || amount.Sign() < 0 {
bbgo.Notify("Found succeeded deposit %s %s, but the balance %s %s is insufficient, skip transferring",
bbgo.Notify("🔍 Found succeeded deposit %s %s, but the balance %s %s is insufficient, skip transferring",
d.Amount.String(), d.Asset,
bal.Available.String(), bal.Currency)
continue
}
}

bbgo.Notify("Found succeeded deposit %s %s, transferring %s %s into the margin account",
bbgo.Notify("🔍 Found succeeded deposit %s %s, transferring %s %s into the margin account",
d.Amount.String(), d.Asset,
amount.String(), d.Asset)

if s.SlackAlert != nil {
bbgo.PostLiveNote(&d,
livenote.Channel(s.SlackAlert.Channel),
livenote.Comment(fmt.Sprintf("Transferring deposit asset %s %s into the margin account", amount.String(), d.Asset)),
livenote.Comment(fmt.Sprintf("🚥 Transferring deposit asset %s %s into the margin account", amount.String(), d.Asset)),
)
}

Expand All @@ -253,14 +253,14 @@ func (s *Strategy) checkDeposits(ctx context.Context) {
if s.SlackAlert != nil {
bbgo.PostLiveNote(&d,
livenote.Channel(s.SlackAlert.Channel),
livenote.Comment(fmt.Sprintf(":cross_mark: Margin account transfer error: %+v", err2)),
livenote.Comment(fmt.Sprintf(" Margin account transfer error: %+v", err2)),
)
}
} else {
if s.SlackAlert != nil {
bbgo.PostLiveNote(&d,
livenote.Channel(s.SlackAlert.Channel),
livenote.Comment(fmt.Sprintf(":check_mark_button: %s %s transferred successfully", amount.String(), d.Asset)),
livenote.Comment(fmt.Sprintf(" %s %s transferred successfully", amount.String(), d.Asset)),
)
}
}
Expand Down

0 comments on commit 0917b13

Please sign in to comment.