mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 19:13:52 +00:00
Merge pull request #1811 from c9s/c9s/d2t/fix-scan-time
FIX: [deposit2transfer] fix last deposit time checking
This commit is contained in:
commit
a2c1a00de2
|
@ -300,10 +300,12 @@ func (s *Strategy) scanDepositHistory(ctx context.Context, asset string, duratio
|
|||
if deposit.Time.After(depositTime) {
|
||||
logger.Infof("adding new succeedded deposit: %s", deposit.TransactionID)
|
||||
s.addWatchingDeposit(deposit)
|
||||
} else {
|
||||
// ignore all initial deposits that are already in success status
|
||||
logger.Infof("ignored expired succeedded deposit: %s %+v", deposit.TransactionID, deposit)
|
||||
}
|
||||
} else {
|
||||
// ignore all initial deposits that are already in success status
|
||||
logger.Infof("ignored expired succeedded deposit: %s %+v", deposit.TransactionID, deposit)
|
||||
s.addWatchingDeposit(deposit)
|
||||
}
|
||||
|
||||
case types.DepositCredited, types.DepositPending:
|
||||
|
|
Loading…
Reference in New Issue
Block a user