Remove isThroughPoolOptimal

This commit is contained in:
Aleksandr Kraiz
2022-08-25 14:49:59 +04:00
parent d2a6c9c127
commit b4bd644b4a
5 changed files with 32 additions and 151 deletions

View File

@@ -7,7 +7,7 @@ const swapInfoBase = z.object({
assetIn: z.string(),
assetOut: z.string(),
path: z.array(z.string()),
isThroughPoolOptimal: z.boolean(),
// isThroughPoolOptimal: z.boolean(), // deprecated
executionInfo: z.string(),
orderInfo: z.object({
assetPair: z.string(),
@@ -15,7 +15,7 @@ const swapInfoBase = z.object({
amount: z.number(),
safePrice: z.number(),
}).nullable(),
exchanges: z.array(z.string()).optional(),
exchanges: z.array(z.string()),
price: z.number().nullable(), // spending asset price
minAmountOut: z.number(),
minAmountIn: z.number(),