From 3572aba81393c6b511440c37216ac643a9d4657c Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Tue, 28 May 2024 15:12:35 +0100 Subject: [PATCH 1/2] feat: changed default fee --- src/Unit/Exchange/callGenerators/uniswapV2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unit/Exchange/callGenerators/uniswapV2.ts b/src/Unit/Exchange/callGenerators/uniswapV2.ts index 86778bc..4fa1566 100644 --- a/src/Unit/Exchange/callGenerators/uniswapV2.ts +++ b/src/Unit/Exchange/callGenerators/uniswapV2.ts @@ -36,7 +36,7 @@ export async function generateUni2Calls( } const lastSwap = path.last(); - const fee = lastSwap.fee ?? 3; + const fee = lastSwap.fee ?? 30; const scaledFee = countScaledFee(fee.toString()); const calldata = executorInterface.encodeFunctionData('swapUniV2Scaled', [ lastSwap.pool, @@ -54,7 +54,7 @@ export function generateUni2Call( assetIn: string, assetOut: string, recipient: string, - fee: BigNumberish = 3, + fee: BigNumberish = 30, ) { const executorInterface = SwapExecutor__factory.createInterface() const scaledFee = countScaledFee(fee.toString()); From 4ccfce8efa9f4a42b5e635e497ac44104b650f1b Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Tue, 28 May 2024 15:13:16 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f7a719..769c078 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.21.2", + "version": "0.21.3", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js",