mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
engine/okgroup: fix panic when calling GetDepositAddress() (#858)
* engine/okgroup: fix caller panic and patched for re-occurance * engine/helpers: remove nil check as it was not neccessary.
This commit is contained in:
@@ -691,10 +691,7 @@ func (bot *Engine) GetCryptocurrencyDepositAddressesByExchange(exchName string)
|
||||
func (bot *Engine) GetExchangeCryptocurrencyDepositAddress(ctx context.Context, exchName, accountID, chain string, item currency.Code, bypassCache bool) (*deposit.Address, error) {
|
||||
if bot.DepositAddressManager != nil && bot.DepositAddressManager.IsSynced() && !bypassCache {
|
||||
resp, err := bot.DepositAddressManager.GetDepositAddressByExchangeAndCurrency(exchName, chain, item)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resp, nil
|
||||
return &resp, err
|
||||
}
|
||||
exch, err := bot.GetExchangeByName(exchName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user