Skip to content

Commit

Permalink
Merge pull request #1811 from c9s/c9s/d2t/fix-scan-time
Browse files Browse the repository at this point in the history
FIX: [deposit2transfer] fix last deposit time checking
  • Loading branch information
c9s authored Nov 13, 2024
2 parents 24e33fc + d76f8c3 commit a2c1a00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/strategy/deposit2transfer/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a2c1a00

Please sign in to comment.