diff --git a/package.json b/package.json index fd24acf..66b9c24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc2", + "version": "0.20.10-rc3", "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 baae7a8..049c92f 100644 --- a/src/services/Integrator/schemas/basic-pool-info-schema.ts +++ b/src/services/Integrator/schemas/basic-pool-info-schema.ts @@ -20,8 +20,7 @@ const basicPoolInfo = z.object({ maxAPR: z.number().nonnegative(), avgAPR: z.number().nonnegative(), maxBoost: z.number().nonnegative().int(), - // This is a crutch. In the nearest future Yury will update his model and OR condition need to be removed - feeRate: z.array(z.number().nonnegative()).or(z.number().nonnegative()), + feeRate: z.array(z.number().nonnegative()), }); export default basicPoolInfo; 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 f8ad119..6212605 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({ feeRate: true }) + const poolOfListPoolSchema = z.object({ pair: z.string(), token0: z.string().nonempty(), @@ -42,8 +45,9 @@ const poolOfListPoolSchema = z.object({ userLockTimePeriod: z.number(), userVeORN: z.number(), userORN: z.number(), + feeRate: z.number().nonnegative(), - ...basicPoolInfo.shape, + ...omittedBasicPoolInfo.shape, type: z.string().nonempty(), });