@@ -125,9 +125,9 @@ func (s *Stats) salesPerMinute() float64 {
125
125
// }
126
126
127
127
func (s * Stats ) salesVolumePerMinute () float64 {
128
- ethVolume , _ := subscriptions .WeiToEther (s .salesVolume ).Uint64 ()
128
+ ethVolume , _ := subscriptions .WeiToEther (s .salesVolume ).Float64 ()
129
129
130
- return float64 ((ethVolume * 60 ) / uint64 ( s .interval .Seconds () ))
130
+ return float64 ((ethVolume * 60 ) / s .interval .Seconds ())
131
131
}
132
132
133
133
func (s * Stats ) processedLogs () uint64 {
@@ -263,7 +263,7 @@ func (s *Stats) getPrimaryStatsLists() []string {
263
263
firstColumn = append (firstColumn , []string {
264
264
// listItem(FormatCounter(lipgloss.NewStyle().Align(lipgloss.Right).Render(fmt.Sprintf("%4d", GetEstimatedGasPrice())), "𛱟 gas")),
265
265
listItem (formatCounter (fmt .Sprintf ("%.1f" , s .salesVolumePerMinute ()), "Ξ vol/min" )),
266
- listItem (formatCounter (fmt .Sprintf ("%4d" , uint (s .salesPerMinute ())), " sales/min" )),
266
+ listItem (formatCounter (fmt .Sprintf ("%4d" , uint (s .salesPerMinute ())), " sales/min" )),
267
267
// listItem(formatCounter(fmt.Sprintf("%4d", uint(s.mintsPerMinute())), " mints/min")),
268
268
}... )
269
269
@@ -291,7 +291,7 @@ func (s *Stats) getPrimaryStatsLists() []string {
291
291
}... )
292
292
}
293
293
294
- statsOutput := []string {listStyle .Copy ().Width (18 ).Render (lipgloss .JoinVertical (lipgloss .Left , firstColumn ... ))}
294
+ statsOutput := []string {listStyle .Copy ().Width (17 ).Render (lipgloss .JoinVertical (lipgloss .Left , firstColumn ... ))}
295
295
296
296
if len (secondcolumn ) > 0 {
297
297
statsOutput = append (statsOutput , listStyle .Copy ().Width (20 ).Render (lipgloss .JoinVertical (lipgloss .Left , secondcolumn ... )))
0 commit comments