From 9d19ef787ae931839028e2fe791b1820ea43fab4 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Wed, 25 Dec 2024 11:02:03 +0700 Subject: [PATCH] update simulate amount --- packages/universal-swap/package.json | 2 +- packages/universal-swap/src/helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/universal-swap/package.json b/packages/universal-swap/package.json index 82e4c3d8..1609735e 100644 --- a/packages/universal-swap/package.json +++ b/packages/universal-swap/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-universal-swap", - "version": "1.2.0-beta25", + "version": "1.2.0-beta26", "main": "build/index.js", "files": [ "build/" diff --git a/packages/universal-swap/src/helper.ts b/packages/universal-swap/src/helper.ts index 198b40b0..fbab7619 100644 --- a/packages/universal-swap/src/helper.ts +++ b/packages/universal-swap/src/helper.ts @@ -901,7 +901,7 @@ export class UniversalSwapHelper { return { amount, displayAmount }; } - const routerConfigDefault = UniversalSwapHelper.getRouterConfig({}); + const routerConfigDefault = UniversalSwapHelper.getRouterConfig(query.routerConfig); let fromInfo = getTokenOnOraichain(query.originalFromInfo.coinGeckoId, query.oraichainTokens); let toInfo = getTokenOnOraichain(query.originalToInfo.coinGeckoId, query.oraichainTokens);