binance: replace emptyTime with IsZero

This commit is contained in:
c9s 2023-08-06 20:03:52 +08:00
parent 0118f33bfc
commit 9346e7d1f6
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -595,8 +595,7 @@ func (e *Exchange) QueryWithdrawHistory(ctx context.Context, asset string, since
}
func (e *Exchange) QueryDepositHistory(ctx context.Context, asset string, since, until time.Time) (allDeposits []types.Deposit, err error) {
var emptyTime = time.Time{}
if since == emptyTime {
if since.IsZero() {
since, err = getLaunchDate()
if err != nil {
return nil, err