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, 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)
); );