From cb334476e9359262602974f81661e1ad963a42c7 Mon Sep 17 00:00:00 2001 From: nogo <0xnogo@gmail.com> Date: Thu, 11 Jul 2024 14:31:59 +0200 Subject: [PATCH] remove GetDestinationTokens --- .../ccip/internal/ccipcommon/shortcuts.go | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/core/services/ocr2/plugins/ccip/internal/ccipcommon/shortcuts.go b/core/services/ocr2/plugins/ccip/internal/ccipcommon/shortcuts.go index 82e8fad135..9db1703022 100644 --- a/core/services/ocr2/plugins/ccip/internal/ccipcommon/shortcuts.go +++ b/core/services/ocr2/plugins/ccip/internal/ccipcommon/shortcuts.go @@ -26,39 +26,6 @@ type BackfillArgs struct { SourceStartBlock, DestStartBlock uint64 } -// GetDestinationTokens returns the destination chain fee tokens from the provided price registry -// and the bridgeable tokens from the offramp. -// func GetDestinationTokens(ctx context.Context, offRamp ccipdata.OffRampReader, priceRegistry cciptypes.PriceRegistryReader) (fee, bridged []cciptypes.Address, err error) { -// eg := new(errgroup.Group) - -// var destFeeTokens []cciptypes.Address -// var destBridgeableTokens []cciptypes.Address - -// eg.Go(func() error { -// tokens, err := priceRegistry.GetFeeTokens(ctx) -// if err != nil { -// return fmt.Errorf("get dest fee tokens: %w", err) -// } -// destFeeTokens = tokens -// return nil -// }) - -// eg.Go(func() error { -// tokens, err := offRamp.GetTokens(ctx) -// if err != nil { -// return fmt.Errorf("get dest bridgeable tokens: %w", err) -// } -// destBridgeableTokens = tokens.DestinationTokens -// return nil -// }) - -// if err := eg.Wait(); err != nil { -// return nil, nil, err -// } - -// return destFeeTokens, destBridgeableTokens, nil -// } - // FlattenUniqueSlice returns a flattened slice that contains unique elements by preserving their order. func FlattenUniqueSlice[T comparable](slices ...[]T) []T { seen := make(map[T]struct{})