From 63be15bb90854406394bb8981b10fbb0724a2473 Mon Sep 17 00:00:00 2001 From: xihuwenhua Date: Sun, 20 Jul 2025 09:45:55 +0800 Subject: [PATCH] chore: fix inconsistent function name in comment Signed-off-by: xihuwenhua --- pkg/dia/scraper/liquidity-scrapers/BalancerV3Scraper.go | 2 +- pkg/model/assets.go | 2 +- pkg/utils/statistics.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/dia/scraper/liquidity-scrapers/BalancerV3Scraper.go b/pkg/dia/scraper/liquidity-scrapers/BalancerV3Scraper.go index 455170119..1d6362cc6 100644 --- a/pkg/dia/scraper/liquidity-scrapers/BalancerV3Scraper.go +++ b/pkg/dia/scraper/liquidity-scrapers/BalancerV3Scraper.go @@ -38,7 +38,7 @@ type BalancerV3Scraper struct { cachedAssets map[string]dia.Asset } -// NewBalancerV2Scraper returns a Balancer V2 scraper +// NewBalancerV3Scraper returns a Balancer V3 scraper func NewBalancerV3Scraper(exchange dia.Exchange, relDB *models.RelDB, datastore *models.DB) *BalancerV3Scraper { var ( restClient *ethclient.Client diff --git a/pkg/model/assets.go b/pkg/model/assets.go index 837934634..29db328bc 100644 --- a/pkg/model/assets.go +++ b/pkg/model/assets.go @@ -388,7 +388,7 @@ func (rdb *RelDB) GetAssets(symbol string) (assets []dia.Asset, err error) { return } -// GetAssetExchnage returns all assets which share the symbol ticker @symbol. +// GetAssetExchange returns all assets which share the symbol ticker @symbol. func (rdb *RelDB) GetAssetExchange(symbol string) (exchanges []string, err error) { query := fmt.Sprintf(` diff --git a/pkg/utils/statistics.go b/pkg/utils/statistics.go index 49e045d8f..3e4c110fc 100644 --- a/pkg/utils/statistics.go +++ b/pkg/utils/statistics.go @@ -40,7 +40,7 @@ func ComputeMedian(samples []float64) (median float64) { return } -// vwap returns the volume weighted average price for the slices @prices and @volumes. +// Vwap returns the volume weighted average price for the slices @prices and @volumes. func Vwap(prices []float64, volumes []float64) (float64, error) { //log.Info("prices, volumes: ", prices, volumes) if len(prices) != len(volumes) {