Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V6 replace uni v2 router and add polygon #300

Merged
merged 6 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading