From 48fe6054b05d52de31745ba4c2d856dc8deced73 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 10 Mar 2021 14:18:01 +0800 Subject: [PATCH] exchange/max: fix query reward issue --- pkg/exchange/max/exchange.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exchange/max/exchange.go b/pkg/exchange/max/exchange.go index b069110b0..f5eff8158 100644 --- a/pkg/exchange/max/exchange.go +++ b/pkg/exchange/max/exchange.go @@ -595,7 +595,7 @@ func (e *Exchange) QueryRewards(ctx context.Context, startTime time.Time) ([]typ var now = time.Now() for { if from.After(now) { - break + return nil, nil } // scan by 30 days