From 825d4b14d41c18d874c54712993e524fe6cc5674 Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 4 Feb 2026 18:15:36 +0100 Subject: [PATCH 01/13] add ExtraFetchParams.headers --- src/helpers/fetchers/axios.ts | 3 ++- src/helpers/fetchers/fetch.ts | 7 ++++++- src/types.ts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/helpers/fetchers/axios.ts b/src/helpers/fetchers/axios.ts index 76bbf2959..18dd74b21 100644 --- a/src/helpers/fetchers/axios.ts +++ b/src/helpers/fetchers/axios.ts @@ -12,11 +12,12 @@ export const constructFetcher = // adding apiKey to headers if it's provided const headers = extra?.apiKey ? { + ...extra.headers, 'X-API-KEY': extra.apiKey, ...rest.headers, ...requestParams?.headers, } - : { ...rest.headers, ...requestParams?.headers }; + : { ...extra?.headers, ...rest.headers, ...requestParams?.headers }; const allParams = { ...rest, ...requestParams, headers }; diff --git a/src/helpers/fetchers/fetch.ts b/src/helpers/fetchers/fetch.ts index 2d87f5913..de6fb9eec 100644 --- a/src/helpers/fetchers/fetch.ts +++ b/src/helpers/fetchers/fetch.ts @@ -25,8 +25,13 @@ export const constructFetcher = // all headers combined const headers = - POSTheaders || apiHeaders || params.headers || requestParams?.headers + POSTheaders || + apiHeaders || + params.headers || + requestParams?.headers || + extra?.headers ? { + ...extra?.headers, ...apiHeaders, ...POSTheaders, ...params.headers, diff --git a/src/types.ts b/src/types.ts index 8b078193f..345f85d9f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -62,7 +62,10 @@ export type FetcherFunction = ( ) => Promise; // authentication or some other params required in `fetcher` -export type ExtraFetchParams = { apiKey?: string }; +export type ExtraFetchParams = { + apiKey?: string; + headers?: Record; +}; export interface ConstructFetchInput extends ConstructBaseInput { fetcher: FetcherFunction; From 4f536c5d669c6c9bdcd3a222bbcd29307f88c9cf Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 4 Feb 2026 18:15:46 +0100 Subject: [PATCH 02/13] reexport ExtraFetchParams --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index bd9bf992c..12ad1e256 100644 --- a/src/index.ts +++ b/src/index.ts @@ -134,6 +134,7 @@ import type { OptimalRate, OptionalRate, APIVersion, + ExtraFetchParams, } from './types'; import type { @@ -420,6 +421,7 @@ export type { FetcherErrorInterface, APIVersion, SwapSideUnion, + ExtraFetchParams, }; export { SDKConfig, constructPartialSDK } from './sdk/partial'; From 2121421976e0551d9ca876b8ec3457203bfffb94 Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 4 Feb 2026 18:16:08 +0100 Subject: [PATCH 03/13] fetch/constructFetcher/add extra.keepalive --- src/helpers/fetchers/fetch.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helpers/fetchers/fetch.ts b/src/helpers/fetchers/fetch.ts index de6fb9eec..378e96419 100644 --- a/src/helpers/fetchers/fetch.ts +++ b/src/helpers/fetchers/fetch.ts @@ -5,7 +5,10 @@ import { FetcherError } from '../misc'; type Fetch = typeof fetch; export const constructFetcher = - (fetch: Fetch, extra?: ExtraFetchParams): FetcherFunction => + ( + fetch: Fetch, + extra?: ExtraFetchParams & { keepalive?: boolean } + ): FetcherFunction => async (params) => { try { const { url, method, requestParams } = params; @@ -44,6 +47,7 @@ export const constructFetcher = body, ...requestParams, headers, + keepalive: extra?.keepalive, }); const data = await response.json(); From 652c882a9d9aac65cb84c6a1ce31e91993ca1d4a Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 4 Feb 2026 18:16:23 +0100 Subject: [PATCH 04/13] RateQueryParams/update type description --- src/methods/swap/rates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods/swap/rates.ts b/src/methods/swap/rates.ts index 8f5763c11..eb2df3dce 100644 --- a/src/methods/swap/rates.ts +++ b/src/methods/swap/rates.ts @@ -122,7 +122,7 @@ type RateQueryParams = { destTokenDexTransferFee?: string; /** - * @description To specify the protocol version. **Values:** 5 or 6.2 **Default**: 5. + * @description To specify the protocol version. **Values:** 5 or 6.2 **Default**: 6.2. */ version?: number | string; From 96cacf4f6e66a5fee5beaf8eed7f97c5e9509fa2 Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 4 Feb 2026 18:19:55 +0100 Subject: [PATCH 05/13] simpleSDK/constructFetcher/add extra.headers --- src/sdk/simple.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdk/simple.ts b/src/sdk/simple.ts index 659c9ceac..a95d79bd3 100644 --- a/src/sdk/simple.ts +++ b/src/sdk/simple.ts @@ -214,11 +214,12 @@ const constructFetcher = (options: FetcherOptions): FetcherFunction => { // adding apiKey to headers if it's provided const headers = options?.apiKey ? { + ...options.headers, 'X-API-KEY': options.apiKey, ...params.headers, ...params.requestParams?.headers, } - : params.headers; + : { ...options.headers, ...params.headers }; return options.fetcher({ ...params, headers }); }; From a45c346d5f4dfc2be86d88dd19cb56f6dc5c4a76 Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 4 Feb 2026 18:21:15 +0100 Subject: [PATCH 06/13] Release 9.3.2-dev.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 562dd8de5..2fca5cbd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@velora-dex/sdk", - "version": "9.3.1", + "version": "9.3.2-dev.1", "main": "dist/index.js", "module": "dist/sdk.esm.js", "typings": "dist/index.d.ts", From 1a6dcb1005fa81922d9fc671525fe75e108dbe72 Mon Sep 17 00:00:00 2001 From: Velenir Date: Thu, 5 Feb 2026 11:54:43 +0100 Subject: [PATCH 07/13] simple/constructFetcher/add missing headers --- src/sdk/simple.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sdk/simple.ts b/src/sdk/simple.ts index a95d79bd3..9fe76ac88 100644 --- a/src/sdk/simple.ts +++ b/src/sdk/simple.ts @@ -219,7 +219,11 @@ const constructFetcher = (options: FetcherOptions): FetcherFunction => { ...params.headers, ...params.requestParams?.headers, } - : { ...options.headers, ...params.headers }; + : { + ...options.headers, + ...params.headers, + ...params.requestParams?.headers, + }; return options.fetcher({ ...params, headers }); }; From b9fa5d614f42f6bb5febe960d85df31fc054ffaa Mon Sep 17 00:00:00 2001 From: Velenir Date: Thu, 5 Feb 2026 11:55:08 +0100 Subject: [PATCH 08/13] fetch/params/change override priority --- src/helpers/fetchers/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/fetchers/fetch.ts b/src/helpers/fetchers/fetch.ts index 378e96419..a8bdf1676 100644 --- a/src/helpers/fetchers/fetch.ts +++ b/src/helpers/fetchers/fetch.ts @@ -45,9 +45,9 @@ export const constructFetcher = const response = await fetch(url, { method, body, + keepalive: extra?.keepalive, ...requestParams, headers, - keepalive: extra?.keepalive, }); const data = await response.json(); From eac04b8d3b86c25bfdd267496a30e54fa4189b87 Mon Sep 17 00:00:00 2001 From: Velenir Date: Tue, 10 Feb 2026 13:22:01 +0100 Subject: [PATCH 09/13] market swap/getRate/add RateOptions.partnerFeeBps --- src/methods/swap/rates.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/methods/swap/rates.ts b/src/methods/swap/rates.ts index eb2df3dce..214e3d8fd 100644 --- a/src/methods/swap/rates.ts +++ b/src/methods/swap/rates.ts @@ -149,6 +149,8 @@ export type RateOptions = { excludeContractMethods?: ContractMethodByName[]; includeContractMethods?: ContractMethodByName[]; partner?: string; + /** @description Used together with `partner` if provided. Represented in basis points, 50bps=0.5% */ + partnerFeeBps?: number; /** @description In %. It's a way to bypass the API price impact check (default = 15%) */ maxImpact?: number; maxUSDImpact?: number; From ba85466b05d7d75ae436ab2c1f8ff1357ae046c4 Mon Sep 17 00:00:00 2001 From: Velenir Date: Tue, 10 Feb 2026 13:22:30 +0100 Subject: [PATCH 10/13] delta/getDeltaPrice/add DeltaPriceParams.partnerFeeBps --- src/methods/delta/getDeltaPrice.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/methods/delta/getDeltaPrice.ts b/src/methods/delta/getDeltaPrice.ts index bf6834cfa..d39ddc5a1 100644 --- a/src/methods/delta/getDeltaPrice.ts +++ b/src/methods/delta/getDeltaPrice.ts @@ -29,6 +29,8 @@ export type DeltaPriceParams = { beneficiary?: string; // beneficiary==owner if no transferTo /** @description Partner string. */ partner?: string; + /** @description Used together with `partner` if provided. Represented in basis points, 50bps=0.5% */ + partnerFeeBps?: number; /** @description Destination Chain ID for Crosschain Orders */ destChainId?: number; /** @description SELL or BUY, default is SELL */ From 8a83d43b638e0c22c76c5b165c032d3dca863eb3 Mon Sep 17 00:00:00 2001 From: Velenir Date: Tue, 10 Feb 2026 17:08:10 +0100 Subject: [PATCH 11/13] add QuoteParams.partnerFeeBps --- src/methods/quote/getQuote.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/methods/quote/getQuote.ts b/src/methods/quote/getQuote.ts index a8d3a1c14..9299f6f80 100644 --- a/src/methods/quote/getQuote.ts +++ b/src/methods/quote/getQuote.ts @@ -29,6 +29,8 @@ export type QuoteParams = { userAddress?: string; /** @description Partner string */ partner?: string; + /** @description Used together with `partner` if provided. Represented in basis points, 50bps=0.5% */ + partnerFeeBps?: number; /** @description Maximum price impact (in percentage) acceptable for the trade */ maxImpact?: number; /** @description Maximum price impact (in USD) acceptable for the trade */ From ecb5fd65a825c89cb2ca6a728d353c1730aae0bd Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 11 Feb 2026 10:30:02 +0100 Subject: [PATCH 12/13] fix some tests --- tests/__snapshots__/delta.test.ts.snap | 8 ++++---- tests/__snapshots__/partialSdk.test.ts.snap | 12 ------------ tests/__snapshots__/quote.test.ts.snap | 2 +- tests/__snapshots__/simpleSdk.test.ts.snap | 16 ---------------- tests/delta.test.ts | 15 +++++++++++++-- tests/nftOrders.test.ts | 3 ++- tests/quote.test.ts | 7 +++++-- 7 files changed, 25 insertions(+), 38 deletions(-) diff --git a/tests/__snapshots__/delta.test.ts.snap b/tests/__snapshots__/delta.test.ts.snap index bc20450d3..8f203e3a8 100644 --- a/tests/__snapshots__/delta.test.ts.snap +++ b/tests/__snapshots__/delta.test.ts.snap @@ -336,7 +336,7 @@ exports[`Delta:methods Get Delta Price 1`] = ` "gasCostUSDBeforeFee": "dynamic_number", "hmac": "dynamic_string", "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "receivedDestAmount": "dynamic_number", "receivedDestAmountBeforeFee": "dynamic_number", "receivedDestUSD": "dynamic_number", @@ -378,7 +378,7 @@ exports[`Delta:methods Get Delta Price Crosschain Get Delta Price Crosschain/des "gasCostUSDBeforeFee": "dynamic_number", "hmac": "dynamic_string", "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "receivedDestAmount": "dynamic_number", "receivedDestAmountBeforeFee": "dynamic_number", "receivedDestUSD": "dynamic_number", @@ -420,7 +420,7 @@ exports[`Delta:methods Get Delta Price Crosschain Get Delta Price Crosschain/des "gasCostUSDBeforeFee": "dynamic_number", "hmac": "dynamic_string", "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "receivedDestAmount": "dynamic_number", "receivedDestAmountBeforeFee": "dynamic_number", "receivedDestUSD": "dynamic_number", @@ -462,7 +462,7 @@ exports[`Delta:methods Get Delta Price Crosschain Get Delta Price Crosschain/des "gasCostUSDBeforeFee": "dynamic_number", "hmac": "dynamic_string", "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "receivedDestAmount": "dynamic_number", "receivedDestAmountBeforeFee": "dynamic_number", "receivedDestUSD": "dynamic_number", diff --git a/tests/__snapshots__/partialSdk.test.ts.snap b/tests/__snapshots__/partialSdk.test.ts.snap index 87a8eeef9..5436c2207 100644 --- a/tests/__snapshots__/partialSdk.test.ts.snap +++ b/tests/__snapshots__/partialSdk.test.ts.snap @@ -2,13 +2,10 @@ exports[`Partial SDK: fetching methods: axiosFetcher Get_Adapters: Get_Adapters 1`] = ` [ - "Bancor", - "Compound", "CurveV2", "Lido", "EtherFi", "CurveV1", - "Swerve", "BalancerV1", "BalancerV2", "UniswapV2", @@ -20,7 +17,6 @@ exports[`Partial SDK: fetching methods: axiosFetcher Get_Adapters: Get_Adapters "SushiSwapV3", "PancakeSwapV2", "PancakeswapV3", - "AaveV2", "AaveV3", "AaveV3Lido", "Weth", @@ -36,11 +32,9 @@ exports[`Partial SDK: fetching methods: axiosFetcher Get_Adapters: Get_Adapters "AngleStakedStableUSD", "AngleStakedStableEUR", "SolidlyV3", - "Wombat", "Swell", "Spark", "sUSDS", - "RingV2", "AugustusRFQ", ] `; @@ -118,13 +112,10 @@ exports[`Partial SDK: fetching methods: axiosFetcher Get_SwapTxData: Get_SwapTxD exports[`Partial SDK: fetching methods: fetchFetcher Get_Adapters: Get_Adapters 1`] = ` [ - "Bancor", - "Compound", "CurveV2", "Lido", "EtherFi", "CurveV1", - "Swerve", "BalancerV1", "BalancerV2", "UniswapV2", @@ -136,7 +127,6 @@ exports[`Partial SDK: fetching methods: fetchFetcher Get_Adapters: Get_Adapters "SushiSwapV3", "PancakeSwapV2", "PancakeswapV3", - "AaveV2", "AaveV3", "AaveV3Lido", "Weth", @@ -152,11 +142,9 @@ exports[`Partial SDK: fetching methods: fetchFetcher Get_Adapters: Get_Adapters "AngleStakedStableUSD", "AngleStakedStableEUR", "SolidlyV3", - "Wombat", "Swell", "Spark", "sUSDS", - "RingV2", "AugustusRFQ", ] `; diff --git a/tests/__snapshots__/quote.test.ts.snap b/tests/__snapshots__/quote.test.ts.snap index 135f5d912..3bd09f1e7 100644 --- a/tests/__snapshots__/quote.test.ts.snap +++ b/tests/__snapshots__/quote.test.ts.snap @@ -72,7 +72,7 @@ exports[`Quote:methods Get Quote for market 1`] = ` "maxImpactReached": false, "network": 1, "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "side": "SELL", "srcAmount": "100000000000", "srcDecimals": 6, diff --git a/tests/__snapshots__/simpleSdk.test.ts.snap b/tests/__snapshots__/simpleSdk.test.ts.snap index 5e18e932d..9b5741de5 100644 --- a/tests/__snapshots__/simpleSdk.test.ts.snap +++ b/tests/__snapshots__/simpleSdk.test.ts.snap @@ -2,15 +2,11 @@ exports[`Simple SDK: fetcher made with: axios Get_Adapters: Get_Adapters 1`] = ` [ - "Bancor", - "Compound", "CurveV2", "Lido", "EtherFi", - "Stader", "Bebop", "CurveV1", - "Swerve", "BalancerV1", "BalancerV2", "BalancerV3", @@ -24,7 +20,6 @@ exports[`Simple SDK: fetcher made with: axios Get_Adapters: Get_Adapters 1`] = ` "UniswapV4", "PancakeSwapV2", "PancakeswapV3", - "AaveV2", "AaveV3", "AaveV3Lido", "Weth", @@ -34,7 +29,6 @@ exports[`Simple SDK: fetcher made with: axios Get_Adapters: Get_Adapters 1`] = ` "CurveV1Factory", "CurveV1StableNg", "wstETH", - "wUSDM", "wUSDL", "sUSDe", "stcUSD", @@ -47,14 +41,12 @@ exports[`Simple SDK: fetcher made with: axios Get_Adapters: Get_Adapters 1`] = ` "AngleStakedStableUSD", "AngleStakedStableEUR", "SolidlyV3", - "Wombat", "Swell", "Spark", "sUSDS", "AaveV3Stata", "AaveV3StataV2", "OSwap", - "ConcentratorArusd", "FxProtocolRusd", "AaveGsm", "LitePsm", @@ -143,15 +135,11 @@ exports[`Simple SDK: fetcher made with: axios Get_SwapTxData: Get_SwapTxData::tx exports[`Simple SDK: fetcher made with: fetch Get_Adapters: Get_Adapters 1`] = ` [ - "Bancor", - "Compound", "CurveV2", "Lido", "EtherFi", - "Stader", "Bebop", "CurveV1", - "Swerve", "BalancerV1", "BalancerV2", "BalancerV3", @@ -165,7 +153,6 @@ exports[`Simple SDK: fetcher made with: fetch Get_Adapters: Get_Adapters 1`] = ` "UniswapV4", "PancakeSwapV2", "PancakeswapV3", - "AaveV2", "AaveV3", "AaveV3Lido", "Weth", @@ -175,7 +162,6 @@ exports[`Simple SDK: fetcher made with: fetch Get_Adapters: Get_Adapters 1`] = ` "CurveV1Factory", "CurveV1StableNg", "wstETH", - "wUSDM", "wUSDL", "sUSDe", "stcUSD", @@ -188,14 +174,12 @@ exports[`Simple SDK: fetcher made with: fetch Get_Adapters: Get_Adapters 1`] = ` "AngleStakedStableUSD", "AngleStakedStableEUR", "SolidlyV3", - "Wombat", "Swell", "Spark", "sUSDS", "AaveV3Stata", "AaveV3StataV2", "OSwap", - "ConcentratorArusd", "FxProtocolRusd", "AaveGsm", "LitePsm", diff --git a/tests/delta.test.ts b/tests/delta.test.ts index d9088b304..101328a6d 100644 --- a/tests/delta.test.ts +++ b/tests/delta.test.ts @@ -171,22 +171,27 @@ describe('Delta:methods', () => { const expectedToInclude = [ { displayName: 'Across', + icon: expect.any(String), protocol: 'Across', }, { displayName: 'Stargate Bus', + icon: expect.any(String), protocol: 'StargateBus', }, { displayName: 'Stargate Taxi', + icon: expect.any(String), protocol: 'StargateTaxi', }, { displayName: 'Stargate OFT V2', + icon: expect.any(String), protocol: 'StargateOftV2', }, { displayName: 'Relay', + icon: expect.any(String), protocol: 'Relay', }, ]; @@ -209,6 +214,7 @@ describe('Delta:methods', () => { const staticDeltaPrice: typeof deltaPrice = { ...deltaPrice, + partnerFee: NaN, // dynamic number destAmount: 'dynamic_number', destAmountBeforeFee: 'dynamic_number', srcUSD: 'dynamic_number', @@ -265,6 +271,7 @@ describe('Delta:methods', () => { const staticDeltaPrice: typeof deltaPrice = { ...deltaPrice, + partnerFee: NaN, // dynamic number destToken: 'dynamic_address', // will no longer match DAI_TOKEN_ON_ETHEREUM if bridge is Relay bridge: { ...deltaPrice.bridge, @@ -322,6 +329,7 @@ describe('Delta:methods', () => { const staticDeltaPrice: typeof deltaPrice = { ...deltaPrice, + partnerFee: NaN, // dynamic number bridge: { ...deltaPrice.bridge, protocolData: 'dynamic_string', @@ -376,6 +384,7 @@ describe('Delta:methods', () => { const staticDeltaPrice: typeof deltaPrice = { ...deltaPrice, + partnerFee: NaN, // dynamic number bridge: { ...deltaPrice.bridge, outputToken: 'dynamic_hash', // WETH or ETH depending on bridge used @@ -538,6 +547,7 @@ describe('Delta:methods', () => { destToken: DAI, srcAmount: amount, destAmount: destAmountAfterSlippage, // minimum acceptable destAmount + partnerAddress: ZERO_ADDRESS, }); const staticSignableOrderData: typeof signableOrderData = { @@ -548,7 +558,7 @@ describe('Delta:methods', () => { nonce: 'dynamic_number', }, }; - // capSurplus (true) shifted (<< 9) = 512 + // for ZERO partnerAddress capSurplus (true) shifted (<< 9) = 512 expect(signableOrderData.data.partnerAndFee).toEqual((1 << 9).toString()); expect(staticSignableOrderData).toMatchSnapshot(); }); @@ -838,6 +848,7 @@ describe('Delta:methods', () => { destToken: DAI, srcAmount: amount, destAmount: destAmountAfterSlippage, // minimum acceptable destAmount + partnerAddress: ZERO_ADDRESS, }; await dummySDK.submitDeltaOrder(input); @@ -855,7 +866,7 @@ describe('Delta:methods', () => { nonce: 'dynamic_number', }; - // capSurplus (true) shifted (<< 9) = 512 + // for ZERO partnerAddress capSurplus (true) shifted (<< 9) = 512 expect(order.partnerAndFee).toEqual((1 << 9).toString()); expect(staticSignedOrderData).toMatchSnapshot(); }); diff --git a/tests/nftOrders.test.ts b/tests/nftOrders.test.ts index 3c033db08..9c71c56fe 100644 --- a/tests/nftOrders.test.ts +++ b/tests/nftOrders.test.ts @@ -1208,6 +1208,7 @@ describe('NFT Orders', () => { const stablePriceRouteMatch: typeof priceRoute = { ...priceRoute, + partnerFee: NaN, // dynamic number, can change slightly depending on API config blockNumber: NaN, // will change with time srcAmount: '---', //will change based on srcToken/destToken rate hmac: '---', // will change with any other change @@ -1290,7 +1291,7 @@ describe('NFT Orders', () => { "maxImpactReached": false, "network": 1, "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "side": "BUY", "srcAmount": "---", "srcDecimals": 18, diff --git a/tests/quote.test.ts b/tests/quote.test.ts index 45c45a879..8ebe88a16 100644 --- a/tests/quote.test.ts +++ b/tests/quote.test.ts @@ -48,6 +48,7 @@ describe('Quote:methods', () => { const staticDeltaPrice: typeof quote.delta = { ...quote.delta, + partnerFee: NaN, // dynamic number, can change slightly depending on API config hmac: 'dynamic_string', destAmount: 'dynamic_number', destAmountBeforeFee: 'dynamic_number', @@ -84,7 +85,7 @@ describe('Quote:methods', () => { "gasCostUSDBeforeFee": "dynamic_number", "hmac": "dynamic_string", "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "receivedDestAmount": "dynamic_number", "receivedDestAmountBeforeFee": "dynamic_number", "receivedDestUSD": "dynamic_number", @@ -251,6 +252,7 @@ describe('Quote:methods', () => { const priceRouteStable = { ...priceRoute, + partnerFee: NaN, // dynamic number, can change slightly depending on API config gasCost: 'dynamic_number', gasCostUSD: 'dynamic_number', hmac: 'dynamic_string', @@ -281,6 +283,7 @@ describe('Quote:methods', () => { const staticDeltaPrice: typeof quote.delta = { ...quote.delta, + partnerFee: NaN, // dynamic number, can change slightly depending on API config hmac: 'dynamic_string', destAmount: 'dynamic_number', destAmountBeforeFee: 'dynamic_number', @@ -317,7 +320,7 @@ describe('Quote:methods', () => { "gasCostUSDBeforeFee": "dynamic_number", "hmac": "dynamic_string", "partner": "anon", - "partnerFee": 0, + "partnerFee": NaN, "receivedDestAmount": "dynamic_number", "receivedDestAmountBeforeFee": "dynamic_number", "receivedDestUSD": "dynamic_number", From aa81ba59821ede3bf5d4a3ea15ad581658411dfd Mon Sep 17 00:00:00 2001 From: Velenir Date: Wed, 11 Feb 2026 10:31:36 +0100 Subject: [PATCH 13/13] Release 9.3.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2fca5cbd5..aa28ba1c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@velora-dex/sdk", - "version": "9.3.2-dev.1", + "version": "9.3.2", "main": "dist/index.js", "module": "dist/sdk.esm.js", "typings": "dist/index.d.ts",