From ee7beeced6a55f71fbb5c18f6273c6a92783b8ea Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 12 Nov 2024 16:09:51 +0800 Subject: [PATCH] deposit2transfer: add pin support --- pkg/strategy/deposit2transfer/strategy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/strategy/deposit2transfer/strategy.go b/pkg/strategy/deposit2transfer/strategy.go index 79547430d..16ec0e1c9 100644 --- a/pkg/strategy/deposit2transfer/strategy.go +++ b/pkg/strategy/deposit2transfer/strategy.go @@ -44,6 +44,7 @@ func init() { type SlackAlert struct { Channel string `json:"channel"` Mentions []string `json:"mentions"` + Pin bool `json:"pin"` } type Strategy struct { @@ -243,6 +244,7 @@ func (s *Strategy) addWatchingDeposit(deposit types.Deposit) { if s.SlackAlert != nil { bbgo.PostLiveNote(&deposit, livenote.Channel(s.SlackAlert.Channel), + livenote.Pin(s.SlackAlert.Pin), livenote.CompareObject(true), livenote.OneTimeMention(s.SlackAlert.Mentions...), )