@@ -333,11 +333,7 @@ func ProcessTx(db *gorm.DB, tx txTypes.MergedTx) (txDBWapper dbTypes.TxDBWrapper
333
333
denomSent , err = dbTypes .GetDenomForBase (v .DenominationSent )
334
334
if err != nil {
335
335
// attempt to add missing denoms to the database
336
- if strings .Contains (v .DenominationSent , "gamm" ) {
337
- config .Log .Infof ("Denom lookup failed for gamm token. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , v .DenominationSent , err )
338
- } else {
339
- config .Log .Warnf ("Denom lookup failed. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , v .DenominationSent , err )
340
- }
336
+ config .Log .Warnf ("Denom lookup failed. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , v .DenominationSent , err )
341
337
denomSent , err = dbTypes .AddUnknownDenom (db , v .DenominationSent )
342
338
if err != nil {
343
339
config .Log .Error (fmt .Sprintf ("There was an error adding a missing denom. Denom sent: %v" , v .DenominationSent ), err )
@@ -353,11 +349,7 @@ func ProcessTx(db *gorm.DB, tx txTypes.MergedTx) (txDBWapper dbTypes.TxDBWrapper
353
349
denomReceived , err = dbTypes .GetDenomForBase (v .DenominationReceived )
354
350
if err != nil {
355
351
// attempt to add missing denoms to the database
356
- if strings .Contains (v .DenominationReceived , "gamm" ) {
357
- config .Log .Infof ("Denom lookup failed for gamm token. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , v .DenominationReceived , err )
358
- } else {
359
- config .Log .Warnf ("Denom lookup failed. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , v .DenominationReceived , err )
360
- }
352
+ config .Log .Warnf ("Denom lookup failed. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , v .DenominationReceived , err )
361
353
denomReceived , err = dbTypes .AddUnknownDenom (db , v .DenominationReceived )
362
354
if err != nil {
363
355
config .Log .Error (fmt .Sprintf ("There was an error adding a missing denom. Denom received: %v" , v .DenominationReceived ), err )
@@ -410,11 +402,7 @@ func ProcessFees(db *gorm.DB, authInfo cosmosTx.AuthInfo, signers []types.AccAdd
410
402
denom , err := dbTypes .GetDenomForBase (coin .Denom )
411
403
if err != nil {
412
404
// attempt to add missing denoms to the database
413
- if strings .Contains (coin .Denom , "gamm" ) {
414
- config .Log .Infof ("Denom lookup failed for gamm token. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , coin .Denom , err )
415
- } else {
416
- config .Log .Warnf ("Denom lookup failed. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , coin .Denom , err )
417
- }
405
+ config .Log .Warnf ("Denom lookup failed. Will be inserted as UNKNOWN. Denom Received: %v. Err: %v" , coin .Denom , err )
418
406
denom , err = dbTypes .AddUnknownDenom (db , coin .Denom )
419
407
if err != nil {
420
408
config .Log .Error (fmt .Sprintf ("There was an error adding a missing denom. Denom: %v" , coin .Denom ), err )
0 commit comments