exchange/max: fix query reward issue

This commit is contained in:
c9s 2021-03-10 14:18:01 +08:00
parent b58e96a8a2
commit 48fe6054b0

View File

@ -595,7 +595,7 @@ func (e *Exchange) QueryRewards(ctx context.Context, startTime time.Time) ([]typ
var now = time.Now() var now = time.Now()
for { for {
if from.After(now) { if from.After(now) {
break return nil, nil
} }
// scan by 30 days // scan by 30 days