sidestream-tech / unified-auctions-ui

Unified MakerDAO auctions
https://unified-auctions.makerdao.com
GNU Affero General Public License v3.0
16 stars 13 forks source link

Investigate callees for other DEX protocols #576

Open LukSteib opened 1 year ago

LukSteib commented 1 year ago

Goal

Research notes on how to implement callee for other DEX protocols

Context

Currently, the main liquidity provider for unified-auctions swap transactions is UniswapV3. But we want to add at least one other callee, the one which is the easiest to integrate in the limited amount of time we have. For this, we need to investigate further the technical details of the implementation and testing framework and prepare proof-of-concept.

Tasks

LukSteib commented 1 year ago

Research done by @valiafetisov.

What a typical existing callee code does:

The only variations between callees that I've found so far:

So the overall next questions:

  1. What external function we need to call to swap using 1inch?
  2. What data do we need to pass to 1inch swap function (eg a route, something else)?