Skip to content

Commit

Permalink
Fix missing support for uniswap v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuh25 committed Oct 9, 2024
1 parent 2d16580 commit 2a501e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tradeexecutor/ethereum/ethereum_protocol_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def create_uniswap_v2_adapter(
ReserveCurrency.usdc
)
else:
raise NotImplementedError(f"Exchange not yet supported: {exchange}")
routing_model = create_uniswap_v2_compatible_routing(
TradeRouting.uniswap_v2_usdc,
ReserveCurrency.usdc
)

pricing_model = UniswapV2LivePricing(
web3,
Expand Down

0 comments on commit 2a501e7

Please sign in to comment.