From 4f8a5f300df257475c1d899282df736a131abe32 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Fri, 27 Feb 2026 10:39:53 +0200 Subject: [PATCH 1/7] getDeltaPrice/ add new fields to AvailableBridgePrice --- src/methods/delta/getDeltaPrice.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/methods/delta/getDeltaPrice.ts b/src/methods/delta/getDeltaPrice.ts index d39ddc5a..f63f5cb3 100644 --- a/src/methods/delta/getDeltaPrice.ts +++ b/src/methods/delta/getDeltaPrice.ts @@ -99,6 +99,10 @@ export type DeltaPrice = { type AvailableBridgePrice = Pick< DeltaPrice, + | 'srcAmount' + | 'srcAmountBeforeFee' // Available for BUY side + | 'srcUSD' + | 'srcUSDBeforeFee' // Available for BUY side | 'destToken' | 'destAmount' | 'destAmountBeforeFee' // Available for SELL side From ab4cf293ccc607da17876d7d5c250478f04a8087 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Fri, 27 Feb 2026 10:46:14 +0200 Subject: [PATCH 2/7] Release 9.3.4-dev.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 09b9d1cb..6ee2a2de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@velora-dex/sdk", - "version": "9.3.3", + "version": "9.3.4-dev.2", "main": "dist/index.js", "module": "dist/sdk.esm.js", "typings": "dist/index.d.ts", From d185b36604347a7d5354170d0229235f073ea563 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Tue, 10 Mar 2026 18:21:29 +0200 Subject: [PATCH 3/7] add degenMode param for traces --- src/methods/delta/getDeltaPrice.ts | 1 + src/methods/delta/index.ts | 2 ++ src/methods/delta/postDeltaOrder.ts | 15 ++++++++++++--- src/methods/swap/rates.ts | 2 ++ src/methods/swap/transaction.ts | 1 + 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/methods/delta/getDeltaPrice.ts b/src/methods/delta/getDeltaPrice.ts index 2d8327dd..52871405 100644 --- a/src/methods/delta/getDeltaPrice.ts +++ b/src/methods/delta/getDeltaPrice.ts @@ -42,6 +42,7 @@ export type DeltaPriceParams = { /** @description Allow swap on destChain after bridge. Default is true. */ allowBridgeAndSwap?: boolean; + degenMode?: boolean; }; type DeltaPriceQueryOptions = Omit< diff --git a/src/methods/delta/index.ts b/src/methods/delta/index.ts index e18ebc63..f925e037 100644 --- a/src/methods/delta/index.ts +++ b/src/methods/delta/index.ts @@ -60,6 +60,7 @@ export type SubmitDeltaOrderParams = BuildDeltaOrderDataParams & { partiallyFillable?: boolean; /** @description Referrer address */ referrerAddress?: string; + degenMode?: boolean; } & Pick; type SubmitDeltaOrder = ( @@ -91,6 +92,7 @@ export const constructSubmitDeltaOrder = ( type: orderParams.type, includeAgents: orderParams.includeAgents, excludeAgents: orderParams.excludeAgents, + degenMode: orderParams.degenMode, }); return response; diff --git a/src/methods/delta/postDeltaOrder.ts b/src/methods/delta/postDeltaOrder.ts index 5c457ec0..b98a5bb0 100644 --- a/src/methods/delta/postDeltaOrder.ts +++ b/src/methods/delta/postDeltaOrder.ts @@ -1,4 +1,5 @@ import { API_URL } from '../../constants'; +import { constructSearchString } from '../../helpers/misc'; import type { ConstructFetchInput, RequestParameters } from '../../types'; import { DeltaAuctionOrder, DeltaAuction } from './helpers/types'; @@ -21,7 +22,9 @@ export type DeltaOrderToPost = { excludeAgents?: string[]; }; -export type PostDeltaOrderParams = Omit; +export type PostDeltaOrderParams = Omit & { + degenMode?: boolean; +}; export type DeltaOrderApiResponse = Omit & { orderVersion: string; // "2.0.0" @@ -45,11 +48,17 @@ export const constructPostDeltaOrder = ({ }: ConstructFetchInput): PostDeltaOrderFunctions => { const postOrderUrl = `${apiURL}/delta/orders` as const; - const postDeltaOrder: PostDeltaOrder = (postData, requestParams) => { + const postDeltaOrder: PostDeltaOrder = (_postData, requestParams) => { + const { degenMode, ...postData } = _postData; const deltaOrderToPost: DeltaOrderToPost = { ...postData, chainId }; + const search = constructSearchString<{ degenMode?: boolean }>({ + degenMode, + }); + const fetchURL = `${postOrderUrl}/${search}` as const; + return fetcher({ - url: postOrderUrl, + url: fetchURL, method: 'POST', data: deltaOrderToPost, requestParams, diff --git a/src/methods/swap/rates.ts b/src/methods/swap/rates.ts index 214e3d8f..7e0f1d38 100644 --- a/src/methods/swap/rates.ts +++ b/src/methods/swap/rates.ts @@ -139,6 +139,7 @@ type RateQueryParams = { * @description Exclude all RFQs from pricing, e.g.: AugustusRFQ, Hashflow. Default: false */ excludeRFQ?: boolean; + degenMode?: boolean; }; // more details in the docs https://developers.velora.xyz/api/velora-api/velora-market-api/get-rate-for-a-token-pair#query-parameters @@ -169,6 +170,7 @@ export type RateOptions = { srcTokenDexTransferFee?: string; /** @description Some tokens only charge tax when swapped in/out DEXs and not on ordinary transfers. */ destTokenDexTransferFee?: string; + degenMode?: boolean; }; type CommonGetRateInput = { diff --git a/src/methods/swap/transaction.ts b/src/methods/swap/transaction.ts index 1662a985..74cfbce3 100644 --- a/src/methods/swap/transaction.ts +++ b/src/methods/swap/transaction.ts @@ -168,6 +168,7 @@ export type BuildOptionsBase = { ignoreAllowance?: boolean; /** @description Allows the API to return the contract parameters only. */ onlyParams?: boolean; + degenMode?: boolean; }; export type BuildOptionsWithGasPrice = BuildOptionsBase & Partial; From 3de5c2182cb4a34c2c2d4db75454d062fbeeb157 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Tue, 10 Mar 2026 18:23:31 +0200 Subject: [PATCH 4/7] DeltaPriceParams/maxImpact --- 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 52871405..943b890d 100644 --- a/src/methods/delta/getDeltaPrice.ts +++ b/src/methods/delta/getDeltaPrice.ts @@ -34,6 +34,8 @@ export type DeltaPriceParams = { destChainId?: number; /** @description SELL or BUY, default is SELL */ side?: SwapSideUnion; + /** @description In %. It's a way to bypass the API price impact check (default = 15%) */ + maxImpact?: number; includeAgents?: string[]; excludeAgents?: string[]; From 2293f51c32a405ca9cc78ce82f294b371962aeb2 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Wed, 11 Mar 2026 10:50:24 +0200 Subject: [PATCH 5/7] Release 9.3.5-dev.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3e7a847e..c6d73ff6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@velora-dex/sdk", - "version": "9.3.4", + "version": "9.3.5-dev.1", "main": "dist/index.js", "module": "dist/sdk.esm.js", "typings": "dist/index.d.ts", From f732de0b4e4c602d2c93d8befd9c54b0fa6dbee1 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Thu, 12 Mar 2026 13:14:21 +0200 Subject: [PATCH 6/7] remove slash, add maxUSDImpact --- src/methods/delta/getDeltaPrice.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/methods/delta/getDeltaPrice.ts b/src/methods/delta/getDeltaPrice.ts index 943b890d..270c23c2 100644 --- a/src/methods/delta/getDeltaPrice.ts +++ b/src/methods/delta/getDeltaPrice.ts @@ -36,6 +36,7 @@ export type DeltaPriceParams = { side?: SwapSideUnion; /** @description In %. It's a way to bypass the API price impact check (default = 15%) */ maxImpact?: number; + maxUSDImpact?: number; includeAgents?: string[]; excludeAgents?: string[]; @@ -198,7 +199,7 @@ export const constructGetDeltaPrice = ({ excludeBridges: excludeBridgesString, }); - const fetchURL = `${pricesUrl}/${search}` as const; + const fetchURL = `${pricesUrl}${search}` as const; const data = await fetcher({ url: fetchURL, From 897a20607342149ed3df723251669fb648101e41 Mon Sep 17 00:00:00 2001 From: andrii-shymkiv Date: Wed, 18 Mar 2026 17:59:08 +0200 Subject: [PATCH 7/7] Release 9.3.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 111d76cc..973f827f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@velora-dex/sdk", - "version": "9.3.5", + "version": "9.3.6", "main": "dist/index.js", "module": "dist/sdk.esm.js", "typings": "dist/index.d.ts",