Skip to content

Commit f4046bf

Browse files
committed
show own collections also below min_value
1 parent 5a41ac4 commit f4046bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/trapri/trapri.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,13 @@ func formatTokenTransaction(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatche
487487

488488
//
489489
// min value
490-
// belowAvgPriceMultiplier := 3.0
491-
totalValueBelowMinValue := ttx.GetPrice().Ether() < viper.GetFloat64("show.min_value")
492-
// avgValueBelowMultiMinValue := averagePrice.Ether()*belowAvgPriceMultiplier < viper.GetFloat64("show.min_value")
493-
if ttx.GetPrice().Ether() > 0.0 && totalValueBelowMinValue { // && avgValueBelowMultiMinValue {
494-
gbl.Log.Debugf("price is below min_value, not showing")
490+
if !isOwnCollection || (!ttx.IsListing() && !ttx.IsItemBid() && !ttx.IsCollectionOffer()) {
491+
totalValueBelowMinValue := ttx.GetPrice().Ether() < viper.GetFloat64("show.min_value")
492+
if ttx.GetPrice().Ether() > 0.0 && totalValueBelowMinValue {
493+
gbl.Log.Debugf("price is below min_value, not showing")
495494

496-
ttx.DoNotPrint = true
495+
ttx.DoNotPrint = true
496+
}
497497
}
498498

499499
// average price per item

0 commit comments

Comments
 (0)