diff --git a/package.json b/package.json index 43269c2..42d61dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc7", + "version": "0.20.10-rc8", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/Integrator/schemas/basic-pool-info-schema.ts b/src/services/Integrator/schemas/basic-pool-info-schema.ts index 156b1ee..3459fb6 100644 --- a/src/services/Integrator/schemas/basic-pool-info-schema.ts +++ b/src/services/Integrator/schemas/basic-pool-info-schema.ts @@ -6,7 +6,6 @@ const basicPoolInfo = z.object({ isInitialized: z.boolean(), liquidity: z.number().nonnegative(), liquidityInUsd: z.number().nonnegative().optional(), - liquidityInUSD: z.number().nonnegative().optional(), liquidityShare: z.number().nonnegative(), isFarming: z.boolean(), rewardsTotal: z.number().nonnegative(), diff --git a/src/services/Integrator/schemas/list-pool-v2-response-schema.ts b/src/services/Integrator/schemas/list-pool-v2-response-schema.ts index 2813b83..48d40b9 100644 --- a/src/services/Integrator/schemas/list-pool-v2-response-schema.ts +++ b/src/services/Integrator/schemas/list-pool-v2-response-schema.ts @@ -3,6 +3,9 @@ import { evmAddressSchema } from './util-schemas.js'; import basicPoolInfo from './basic-pool-info-schema.js'; import infoSchema from './info-schema.js'; +// This is a crutch. In the nearest future Yuriy will update his model and we need to replace this constant with basicPoolInfo +const omittedBasicPoolInfo = basicPoolInfo.omit({ liquidityInUsd: true }) + const poolOfListPoolSchema = z.object({ pair: z.string(), token0: z.string().nonempty(), @@ -19,6 +22,7 @@ const poolOfListPoolSchema = z.object({ weight: z.number(), liquidity0: z.number(), liquidity1: z.number(), + liquidityInUSD: z.number(), token0Price: z.number(), token1Price: z.number(), totalLPSupply: z.number(), @@ -42,7 +46,7 @@ const poolOfListPoolSchema = z.object({ userVeORN: z.number(), userORN: z.number(), - ...basicPoolInfo.shape, + ...omittedBasicPoolInfo.shape, type: z.string().nonempty(), });