+ var newStatus db.MarketConfigStatus = config.Status
+
+ if ErrorIs(resultErr, InvalidMarketCredentials) || ErrorIs(resultErr, IPRestrictedApiKey) || ErrorIs(resultErr, MarketCredentialsNotConfigured) {
+ newStatus = db.MarketConfigInvalidCredentials
+ } else if resultErr != nil {
+ return nil, NewInternalError(resultErr)
+ } else if resultErr != nil {