From ac90d4981c3db0d97bba9c29874409eddfba7aba Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Mon, 20 May 2024 15:27:29 +0100 Subject: [PATCH] Revert "feat: small updates in Swap info schema" This reverts commit f4bf91eb36517a2eb5996ba60ede33848eb21f73. --- package.json | 2 +- src/services/Aggregator/ws/schemas/swapInfoSchema.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bc92500..6fc106a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.76-rc112", + "version": "0.20.76-rc111", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/Aggregator/ws/schemas/swapInfoSchema.ts b/src/services/Aggregator/ws/schemas/swapInfoSchema.ts index 9b385ad..48abe19 100644 --- a/src/services/Aggregator/ws/schemas/swapInfoSchema.ts +++ b/src/services/Aggregator/ws/schemas/swapInfoSchema.ts @@ -40,8 +40,8 @@ const swapInfoSchemaBase = baseMessageSchema.extend({ ai: z.string().toUpperCase(), // asset in ao: z.string().toUpperCase(), // asset out f: factorySchema, // factory - aai: z.string().optional(), // asset address in - aao: z.string().optional(), // asset address out + aai: z.string(), // asset address in + aao: z.string(), // asset address out })), usd: z.object({ // USD info of this swap, nullable aa: z.number().optional(), // available amount in, USD