Merge branch 'refs/heads/main' into feat/OP-4308-cross-chain-swap

# Conflicts:
#	package.json
This commit is contained in:
TheJuze
2024-05-28 18:37:38 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.22.0-rc3",
"version": "0.22.0-rc4",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -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());