mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
deposit2transfer: fix last deposit time checking
This commit is contained in:
parent
24e33fcdfd
commit
d76f8c31a6
|
@ -300,11 +300,13 @@ func (s *Strategy) scanDepositHistory(ctx context.Context, asset string, duratio
|
||||||
if deposit.Time.After(depositTime) {
|
if deposit.Time.After(depositTime) {
|
||||||
logger.Infof("adding new succeedded deposit: %s", deposit.TransactionID)
|
logger.Infof("adding new succeedded deposit: %s", deposit.TransactionID)
|
||||||
s.addWatchingDeposit(deposit)
|
s.addWatchingDeposit(deposit)
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// ignore all initial deposits that are already in success status
|
// ignore all initial deposits that are already in success status
|
||||||
logger.Infof("ignored expired succeedded deposit: %s %+v", deposit.TransactionID, deposit)
|
logger.Infof("ignored expired succeedded deposit: %s %+v", deposit.TransactionID, deposit)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
s.addWatchingDeposit(deposit)
|
||||||
|
}
|
||||||
|
|
||||||
case types.DepositCredited, types.DepositPending:
|
case types.DepositCredited, types.DepositPending:
|
||||||
logger.Infof("adding pending deposit: %s", deposit.TransactionID)
|
logger.Infof("adding pending deposit: %s", deposit.TransactionID)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user