add mixSwapV1
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
/*
|
||||
|
||||
Copyright 2020 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
interface IChi {
|
||||
function freeUpTo(uint256 value) external returns (uint256);
|
||||
}
|
||||
}
|
||||
@@ -29,4 +29,15 @@ interface IDODOV1Proxy01 {
|
||||
bytes memory callDataConcat,
|
||||
uint256 deadLine
|
||||
) external payable returns (uint256 returnAmount);
|
||||
|
||||
function mixSwapV1(
|
||||
address fromToken,
|
||||
address toToken,
|
||||
uint256 fromTokenAmount,
|
||||
uint256 minReturnAmount,
|
||||
address[] memory mixPairs,
|
||||
uint8[] memory directions,
|
||||
address[] memory portionPath,
|
||||
uint256 deadLine
|
||||
) external payable returns (uint256 returnAmount);
|
||||
}
|
||||
|
||||
12
contracts/SmartRoute/intf/IUni.sol
Normal file
12
contracts/SmartRoute/intf/IUni.sol
Normal file
@@ -0,0 +1,12 @@
|
||||
pragma solidity 0.6.9;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
interface IUni {
|
||||
function swapExactTokensForTokens(
|
||||
uint amountIn,
|
||||
uint amountOutMin,
|
||||
address[] calldata path,
|
||||
address to,
|
||||
uint deadline
|
||||
) external returns (uint[] memory amounts);
|
||||
}
|
||||
Reference in New Issue
Block a user