fix withdraw query order

This commit is contained in:
c9s 2021-03-11 15:57:24 +08:00
parent dbcf35e4a4
commit 75778675e3

View File

@ -503,7 +503,8 @@ func (e *Exchange) QueryWithdrawHistory(ctx context.Context, asset string, since
if len(withdraws) < limit {
startTime = endTime
} else {
startTime = time.Unix(withdraws[len(withdraws)-1].UpdatedAt, 0)
// its in descending order, so we get the first record
startTime = time.Unix(withdraws[0].UpdatedAt, 0)
}
}