Skip to content

Commit

Permalink
show own collections also below min_value
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Jun 14, 2023
1 parent 5a41ac4 commit f4046bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/trapri/trapri.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,13 @@ func formatTokenTransaction(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatche

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

ttx.DoNotPrint = true
ttx.DoNotPrint = true
}
}

// average price per item
Expand Down

0 comments on commit f4046bf

Please sign in to comment.