diff --git a/package.json b/package.json index e764f0f..fd24acf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc1", + "version": "0.20.10-rc2", "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 049c92f..baae7a8 100644 --- a/src/services/Integrator/schemas/basic-pool-info-schema.ts +++ b/src/services/Integrator/schemas/basic-pool-info-schema.ts @@ -20,7 +20,8 @@ const basicPoolInfo = z.object({ maxAPR: z.number().nonnegative(), avgAPR: z.number().nonnegative(), maxBoost: z.number().nonnegative().int(), - feeRate: z.array(z.number().nonnegative()), + // 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()), }); 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 edc31ae..f8ad119 100644 --- a/src/services/Integrator/schemas/list-pool-v2-response-schema.ts +++ b/src/services/Integrator/schemas/list-pool-v2-response-schema.ts @@ -45,9 +45,6 @@ const poolOfListPoolSchema = z.object({ ...basicPoolInfo.shape, - // This is a crutch. In the nearest future Yury will update his model and this feeRate can be deleted - feeRate: z.number().nonnegative(), - type: z.string().nonempty(), });