Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/dia/scraper/liquidity-scrapers/BalancerV3Scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/model/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/statistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down