Skip to content

Commit 8eea148

Browse files
committed
rawExchangeRestrictions
1 parent c7269f5 commit 8eea148

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@orionprotocol/sdk",
3-
"version": "0.20.35",
3+
"version": "0.20.36",
44
"description": "Orion Protocol SDK",
55
"main": "./lib/index.cjs",
66
"module": "./lib/index.js",

src/services/Aggregator/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class Aggregator {
198198
partnerId?: string,
199199
fromWidget?: boolean,
200200
source?: string,
201+
rawExchangeRestrictions?: string | undefined,
201202
) => {
202203
const headers = {
203204
'Content-Type': 'application/json',
@@ -228,7 +229,7 @@ class Aggregator {
228229
{
229230
headers,
230231
method: 'POST',
231-
body: JSON.stringify(signedOrder),
232+
body: JSON.stringify({ signedOrder, rawExchangeRestrictions }),
232233
},
233234
errorSchema,
234235
);

src/services/Aggregator/ws/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type SwapInfoSubscriptionPayload = {
4040
i: string // asset in
4141
o: string // asset out
4242
a: number // amount IN/OUT
43-
es?: string[] | 'cex' | 'pools' // exchange list of all cex or all pools (ORION_POOL, UNISWAP, PANCAKESWAP etc)
43+
es?: string // exchange list of all cex or all pools (ORION_POOL, UNISWAP, PANCAKESWAP etc)
4444
e?: boolean // is amount IN? Value `false` means a = amount OUT, `true` if omitted
4545
is?: boolean // instant settlement
4646
}

0 commit comments

Comments
 (0)