Update contracts/polygon/connectors/uniswap/v3/helpers.sol

Co-authored-by: Samyak Jain <34437877+KaymasJain@users.noreply.github.com>
This commit is contained in:
Thrilok kumar 2021-12-21 18:46:07 +05:30 committed by GitHub
parent 8269728186
commit 0e6b071665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,16 +71,16 @@ abstract contract Helpers is DSMath, Basic {
uint24 fee,
int24 initialTick
) internal returns (address pool) {
(tokenA, tokenB) = sortTokenAddress(tokenA, tokenB);
(TokenInterface _token0, TokenInterface _token1) = changeMaticAddress(
(TokenInterface token0Contract_, TokenInterface token1Contract_) = changeMaticAddress(
tokenA,
tokenB
);
(address token0_, address token1_) = sortTokenAddress(address(token0Contract_), address(token1Contract_));
return nftManager.createAndInitializePoolIfNecessary(
address(_token0),
address(_token1),
token0_,
token1_,
fee,
TickMath.getSqrtRatioAtTick(initialTick)
);