mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/polygon/connectors/uniswap/v3/helpers.sol
Co-authored-by: Samyak Jain <34437877+KaymasJain@users.noreply.github.com>
This commit is contained in:
parent
8269728186
commit
0e6b071665
|
@ -71,16 +71,16 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
uint24 fee,
|
uint24 fee,
|
||||||
int24 initialTick
|
int24 initialTick
|
||||||
) internal returns (address pool) {
|
) internal returns (address pool) {
|
||||||
(tokenA, tokenB) = sortTokenAddress(tokenA, tokenB);
|
(TokenInterface token0Contract_, TokenInterface token1Contract_) = changeMaticAddress(
|
||||||
|
|
||||||
(TokenInterface _token0, TokenInterface _token1) = changeMaticAddress(
|
|
||||||
tokenA,
|
tokenA,
|
||||||
tokenB
|
tokenB
|
||||||
);
|
);
|
||||||
|
|
||||||
|
(address token0_, address token1_) = sortTokenAddress(address(token0Contract_), address(token1Contract_));
|
||||||
|
|
||||||
return nftManager.createAndInitializePoolIfNecessary(
|
return nftManager.createAndInitializePoolIfNecessary(
|
||||||
address(_token0),
|
token0_,
|
||||||
address(_token1),
|
token1_,
|
||||||
fee,
|
fee,
|
||||||
TickMath.getSqrtRatioAtTick(initialTick)
|
TickMath.getSqrtRatioAtTick(initialTick)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user