mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
fix
This commit is contained in:
parent
faa1cc6b0f
commit
a1c6607cdc
|
@ -46,30 +46,6 @@ contract uniswapSample {
|
||||||
UniswapV3Pool(0xCEda10b4d3bdE429DdA3A6daB87b38360313CBdB);
|
UniswapV3Pool(0xCEda10b4d3bdE429DdA3A6daB87b38360313CBdB);
|
||||||
uint24 public constant poolFee = 3000;
|
uint24 public constant poolFee = 3000;
|
||||||
|
|
||||||
function computeAddress(address factory_, PoolKey memory key_)
|
|
||||||
internal
|
|
||||||
pure
|
|
||||||
returns (address pool_)
|
|
||||||
{
|
|
||||||
require(key_.token0 < key_.token1);
|
|
||||||
pool_ = address(
|
|
||||||
uint160(
|
|
||||||
uint256(
|
|
||||||
keccak256(
|
|
||||||
abi.encodePacked(
|
|
||||||
hex"ff",
|
|
||||||
factory_,
|
|
||||||
keccak256(
|
|
||||||
abi.encode(key_.token0, key_.token1, key_.fee)
|
|
||||||
),
|
|
||||||
POOL_INIT_CODE_HASH
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getPriceLimit(
|
function getPriceLimit(
|
||||||
ISwapRouter.ExactInputSingleParams params,
|
ISwapRouter.ExactInputSingleParams params,
|
||||||
bool zeroForOne
|
bool zeroForOne
|
||||||
|
|
Loading…
Reference in New Issue
Block a user