Add DODO-only EnhancedSwapRouterV2 routing helpers

This commit is contained in:
defiQUG
2026-04-29 23:50:26 -07:00
parent 1a14622b22
commit 6aaa100bbc
12 changed files with 564 additions and 173 deletions

View File

@@ -5,22 +5,23 @@ import "../RouteTypesV2.sol";
import "../LiquidityPoolETH.sol";
interface IEnhancedSwapRouterV2 {
function executeRoute(
RouteTypesV2.RoutePlan calldata plan
) external payable returns (uint256 amountOut);
function executeRoute(RouteTypesV2.RoutePlan calldata plan) external payable returns (uint256 amountOut);
function quoteConfiguredProviders(
address tokenIn,
address tokenOut,
uint256 amountIn
) external view returns (RouteTypesV2.ProviderQuote[] memory quotes);
function quoteConfiguredProviders(address tokenIn, address tokenOut, uint256 amountIn)
external
view
returns (RouteTypesV2.ProviderQuote[] memory quotes);
function swapTokenToToken(
function quoteConfiguredProvider(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 amountOutMin
) external returns (uint256 amountOut);
RouteTypesV2.Provider provider
) external view returns (RouteTypesV2.ProviderQuote memory quote);
function swapTokenToToken(address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOutMin)
external
returns (uint256 amountOut);
function swapToStablecoin(
LiquidityPoolETH.AssetType inputAsset,