Skip to content

Commit

Permalink
feat: Update uniswap provider to use new websocket api (backport #308) (
Browse files Browse the repository at this point in the history
#309)

* feat: Update uniswap provider to use new websocket api (#308)

* replace uniswap provider with new websocket api

(cherry picked from commit 9ca4545)

* resolve conflicts

---------

Co-authored-by: Kyle <[email protected]>
  • Loading branch information
mergify[bot] and zarazan committed Nov 15, 2023
1 parent 937cb8c commit 49bbb9a
Show file tree
Hide file tree
Showing 7 changed files with 363 additions and 697 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ issues:
- path: _test\.go
linters:
- gosec
- path: oracle/provider/*
linters:
- gosec
- linters:
- lll
source: "https://"
Expand Down
2 changes: 1 addition & 1 deletion oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func NewProvider(
return provider.NewMockProvider(), nil

case provider.ProviderEthUniswap:
return provider.NewUniswapProvider(ctx, logger, providerName.String(), endpoint, providerPairs...), nil
return provider.NewUniswapProvider(ctx, logger, endpoint, providerPairs...)
}

return nil, fmt.Errorf("provider %s not found", providerName)
Expand Down
Loading

0 comments on commit 49bbb9a

Please sign in to comment.