Commit 0ea9dc04 authored by Moody Salem's avatar Moody Salem

bumped v3 sdk version

parent 3a34c2ec
...@@ -187,21 +187,14 @@ export default function AddLiquidity({ ...@@ -187,21 +187,14 @@ export default function AddLiquidity({
} }
if (position && account && deadline && fractionalizedTolerance) { if (position && account && deadline && fractionalizedTolerance) {
const { calldata, value } = const { calldata, value } = NonfungiblePositionManager.increaseCallParameters(position, {
hasExistingPosition && tokenId ...(hasExistingPosition && tokenId ? { tokenId } : {}),
? NonfungiblePositionManager.increaseLiquidityCallParameters(position, { slippageTolerance: fractionalizedTolerance,
tokenId: tokenId, recipient: account,
slippageTolerance: fractionalizedTolerance, deadline: deadline.toNumber(),
deadline: deadline.toNumber(), useEther: currencyA === ETHER || currencyB === ETHER,
useEther: currencyA === ETHER || currencyB === ETHER, createPool: noLiquidity,
}) })
: NonfungiblePositionManager.mintCallParameters(position, {
slippageTolerance: fractionalizedTolerance,
recipient: account,
deadline: deadline.toNumber(),
useEther: currencyA === ETHER || currencyB === ETHER,
createPool: noLiquidity,
})
const txn = { const txn = {
to: NONFUNGIBLE_POSITION_MANAGER_ADDRESSES[chainId], to: NONFUNGIBLE_POSITION_MANAGER_ADDRESSES[chainId],
......
...@@ -4158,10 +4158,10 @@ ...@@ -4158,10 +4158,10 @@
"@uniswap/v2-core" "1.0.1" "@uniswap/v2-core" "1.0.1"
"@uniswap/v3-core" "1.0.0-rc.2" "@uniswap/v3-core" "1.0.0-rc.2"
"@uniswap/v3-sdk@^1.0.0-alpha.23": "@uniswap/v3-sdk@^1.0.0-alpha.24":
version "1.0.0-alpha.23" version "1.0.0-alpha.24"
resolved "https://registry.yarnpkg.com/@uniswap/v3-sdk/-/v3-sdk-1.0.0-alpha.23.tgz#0971b38acd46e08d727f17ad8b10b5c21a25b99f" resolved "https://registry.yarnpkg.com/@uniswap/v3-sdk/-/v3-sdk-1.0.0-alpha.24.tgz#c516d3dfb5de84e92a1d22fe065fd2223b77725f"
integrity sha512-ibVW9EnwymIQAHBCCQCorwA5yLzRfQ4OYwafTkD1fHx2UtrZoHVYLBSshMa4tcN1uMAuiglFOQv/IIJ20ZRgyw== integrity sha512-X06R2y3xntZoLFSrGp/JVLYOc6l9wSFcLj3qjgCL16ktRtkTVJFoMTa4gk48/DZ0+uQe3R4S2YJrBbeqWhd5Ww==
dependencies: dependencies:
"@ethersproject/abi" "^5.0.12" "@ethersproject/abi" "^5.0.12"
"@ethersproject/solidity" "^5.0.9" "@ethersproject/solidity" "^5.0.9"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment