chore: Rename Uniswapv2SwapExecutor to UniswapV2Executor
--- don't change below this line --- ENG-4033 Took 4 minutes
This commit is contained in:
@@ -3,11 +3,11 @@ pragma solidity ^0.8.28;
|
||||
|
||||
import "@uniswap-v2/contracts/interfaces/IUniswapV2Pair.sol";
|
||||
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
||||
import {ISwapExecutor} from "../interfaces/ISwapExecutor.sol";
|
||||
import {IExecutor} from "../interfaces/IExecutor.sol";
|
||||
|
||||
error UniswapV2Executor__InvalidDataLength();
|
||||
|
||||
contract UniswapV2SwapExecutor is ISwapExecutor {
|
||||
contract UniswapV2Executor is IExecutor {
|
||||
using SafeERC20 for IERC20;
|
||||
|
||||
function swap(uint256 givenAmount, bytes calldata data)
|
||||
@@ -5,7 +5,7 @@ import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
||||
|
||||
pragma abicoder v2;
|
||||
|
||||
interface ISwapExecutor {
|
||||
interface IExecutor {
|
||||
/**
|
||||
* @notice Performs a swap on a liquidity pool.
|
||||
* @dev This method can either take the amount of the input token or the amount
|
||||
@@ -31,7 +31,7 @@ interface ISwapExecutor {
|
||||
returns (uint256 calculatedAmount);
|
||||
}
|
||||
|
||||
interface ISwapExecutorErrors {
|
||||
interface IExecutorErrors {
|
||||
error InvalidParameterLength(uint256);
|
||||
error UnknownCurveType(uint8);
|
||||
}
|
||||
Reference in New Issue
Block a user