@@ -333,11 +333,7 @@ func ProcessTx(db *gorm.DB, tx txTypes.MergedTx) (txDBWapper dbTypes.TxDBWrapper
333333 denomSent , err = dbTypes .GetDenomForBase (v .DenominationSent )
334334 if err != nil {
335335 // 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 )
341337 denomSent , err = dbTypes .AddUnknownDenom (db , v .DenominationSent )
342338 if err != nil {
343339 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
353349 denomReceived , err = dbTypes .GetDenomForBase (v .DenominationReceived )
354350 if err != nil {
355351 // 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 )
361353 denomReceived , err = dbTypes .AddUnknownDenom (db , v .DenominationReceived )
362354 if err != nil {
363355 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
410402 denom , err := dbTypes .GetDenomForBase (coin .Denom )
411403 if err != nil {
412404 // 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 )
418406 denom , err = dbTypes .AddUnknownDenom (db , coin .Denom )
419407 if err != nil {
420408 config .Log .Error (fmt .Sprintf ("There was an error adding a missing denom. Denom: %v" , coin .Denom ), err )
0 commit comments