synapsecns/sanguine

View on GitHub
services/explorer/consumer/fetcher/swapfetcher.go

Summary

Maintainability
A
50 mins
Test Coverage

Method swapFetcher.GetTokenMetaData has 8 return statements (exceeds 4 allowed).
Open

func (s *swapFetcher) GetTokenMetaData(ctx context.Context, tokenAddress common.Address) (*string, *uint8, error) {
    if s.metaSwap != nil {
        erc20caller, err := metaswap.NewERC20(tokenAddress, s.backend)
        if err != nil {
            logger.Errorf("could not bind erc20 contract: %s", err)
Severity: Major
Found in services/explorer/consumer/fetcher/swapfetcher.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status