mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
feat: fix uniswap v3 test script
This commit is contained in:
parent
829dd0daca
commit
2c1bbf6c36
|
@ -112,16 +112,14 @@ describe("UniswapV3", function () {
|
||||||
connector: connectorName,
|
connector: connectorName,
|
||||||
method: "mint",
|
method: "mint",
|
||||||
args: [
|
args: [
|
||||||
{
|
DAI_ADDR,
|
||||||
tokenA: DAI_ADDR,
|
ethAddress,
|
||||||
tokenB: ethAddress,
|
FeeAmount.MEDIUM,
|
||||||
fee: FeeAmount.MEDIUM,
|
getMinTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
||||||
tickUpper: getMaxTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
getMaxTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
||||||
tickLower: getMinTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
daiAmount,
|
||||||
amtA: daiAmount,
|
ethAmount,
|
||||||
amtB: ethAmount,
|
"500000000000000000",
|
||||||
slippage: "500000000000000000"
|
|
||||||
},
|
|
||||||
getIds,
|
getIds,
|
||||||
setId
|
setId
|
||||||
],
|
],
|
||||||
|
@ -130,16 +128,14 @@ describe("UniswapV3", function () {
|
||||||
connector: connectorName,
|
connector: connectorName,
|
||||||
method: "mint",
|
method: "mint",
|
||||||
args: [
|
args: [
|
||||||
{
|
DAI_ADDR,
|
||||||
tokenA: DAI_ADDR,
|
USDT_ADDR,
|
||||||
tokenB: USDT_ADDR,
|
FeeAmount.MEDIUM,
|
||||||
fee: FeeAmount.MEDIUM,
|
getMinTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
||||||
tickUpper: getMaxTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
getMaxTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
||||||
tickLower: getMinTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
daiAmount,
|
||||||
amtA: daiAmount,
|
usdtAmount,
|
||||||
amtB: usdtAmount,
|
"300000000000000000",
|
||||||
slippage: "300000000000000000"
|
|
||||||
},
|
|
||||||
getIds,
|
getIds,
|
||||||
setId
|
setId
|
||||||
],
|
],
|
||||||
|
@ -148,16 +144,14 @@ describe("UniswapV3", function () {
|
||||||
connector: connectorName,
|
connector: connectorName,
|
||||||
method: "mint",
|
method: "mint",
|
||||||
args: [
|
args: [
|
||||||
{
|
ethAddress,
|
||||||
tokenA: ethAddress,
|
USDT_ADDR,
|
||||||
tokenB: USDT_ADDR,
|
FeeAmount.MEDIUM,
|
||||||
fee: FeeAmount.MEDIUM,
|
getMinTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
||||||
tickUpper: getMaxTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
getMaxTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
||||||
tickLower: getMinTick(TICK_SPACINGS[FeeAmount.MEDIUM]),
|
ethAmount,
|
||||||
amtA: ethAmount,
|
usdtAmount,
|
||||||
amtB: usdtAmount,
|
"300000000000000000",
|
||||||
slippage: "300000000000000000"
|
|
||||||
},
|
|
||||||
getIds,
|
getIds,
|
||||||
setId
|
setId
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user