mirror of
				https://github.com/Instadapp/dsa-connectors.git
				synced 2024-07-29 22:37:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			882 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			882 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| //SPDX-License-Identifier: MIT
 | |
| pragma solidity ^0.7.6;
 | |
| pragma abicoder v2;
 | |
| 
 | |
| interface UniswapV3Pool {
 | |
|     struct Slot0 {
 | |
|         uint160 sqrtPriceX96;
 | |
|         int24 tick;
 | |
|         uint16 observationIndex;
 | |
|         uint16 observationCardinality;
 | |
|         uint16 observationCardinalityNext;
 | |
|         uint8 feeProtocol;
 | |
|         bool unlocked;
 | |
|     }
 | |
| 
 | |
|     function liquidity() external view returns (uint128);
 | |
| 
 | |
|     function slot0() external view returns (Slot0 memory);
 | |
| }
 | |
| 
 | |
| interface ISwapRouter {
 | |
|     struct ExactInputSingleParams {
 | |
|         address tokenIn;
 | |
|         address tokenOut;
 | |
|         uint24 fee;
 | |
|         address recipient;
 | |
|         uint256 deadline;
 | |
|         uint256 amountIn;
 | |
|         uint256 amountOutMinimum;
 | |
|         uint160 sqrtPriceLimitX96;
 | |
|     }
 | |
| 
 | |
|     function exactInputSingle(ExactInputSingleParams calldata params)
 | |
|         external
 | |
|         payable
 | |
|         returns (uint256);
 | |
| }
 | 
