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,
|
||||
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)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user