binance: fix error check

This commit is contained in:
c9s 2022-04-26 16:51:41 +08:00
parent 6c29e10caf
commit 23dd60728e
No known key found for this signature in database
GPG Key ID: F0A7E4490F2EBC8C

View File

@ -254,6 +254,10 @@ func (e *Exchange) RepayMarginAsset(ctx context.Context, asset string, amount fi
log.Infof("repaying margin asset %s amount %f", asset, amount.Float64())
resp, err := req.Do(ctx)
if err != nil {
return err
}
log.Debugf("margin repayed %f %s, transaction id = %d", amount.Float64(), asset, resp.TranID)
return err
}