synapsecns/sanguine

View on GitHub
services/rfq/relayer/pricer/fetcher.go

Summary

Maintainability
A
50 mins
Test Coverage

Method CoingeckoPriceFetcherImpl.GetPrice has 8 return statements (exceeds 4 allowed).
Open

func (c *CoingeckoPriceFetcherImpl) GetPrice(ctx context.Context, token string) (price float64, err error) {
    coingeckoID, ok := coingeckoIDLookup[token]
    if !ok {
        return price, fmt.Errorf("could not get coingecko id for token: %s", token)
    }
Severity: Major
Found in services/rfq/relayer/pricer/fetcher.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status