Skip to content

Commit

Permalink
Merge pull request #300 from consenlabs/v6-replace-uni-v2-router-and-…
Browse files Browse the repository at this point in the history
…add-polygon

V6 replace uni v2 router and add polygon
  • Loading branch information
charlesjhongc authored Nov 9, 2023
2 parents 4b55012 + 22e1a59 commit d894011
Show file tree
Hide file tree
Showing 26 changed files with 284 additions and 868 deletions.
147 changes: 0 additions & 147 deletions contracts/AMMStrategy.sol

This file was deleted.

51 changes: 0 additions & 51 deletions contracts/UniswapStrategy.sol

This file was deleted.

2 changes: 1 addition & 1 deletion contracts/interfaces/IUniswapSwapRouter02.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface ISwapRouter02 {
interface IUniswapSwapRouter02 {
function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to) external payable returns (uint256 amountOut);

function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] calldata path, address to) external payable returns (uint256 amountIn);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface IUniswapRouterV2 {
interface IUniswapV2Router {
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
Expand Down
17 changes: 0 additions & 17 deletions contracts/interfaces/IUniswapV3SwapCallback.sol

This file was deleted.

4 changes: 1 addition & 3 deletions contracts/interfaces/IUniswapV3SwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

import { IUniswapV3SwapCallback } from "./IUniswapV3SwapCallback.sol";

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface IUniswapV3SwapRouter is IUniswapV3SwapCallback {
interface IUniswapV3SwapRouter {
struct ExactInputSingleParams {
address tokenIn;
address tokenOut;
Expand Down
40 changes: 0 additions & 40 deletions contracts/libraries/UniswapV2.sol

This file was deleted.

Loading

0 comments on commit d894011

Please sign in to comment.