diff --git a/package.json b/package.json index 35ee7bc..8041045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc11", + "version": "0.20.10-rc12", "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..a46acbf 100644 --- a/src/services/Integrator/schemas/basic-pool-info-schema.ts +++ b/src/services/Integrator/schemas/basic-pool-info-schema.ts @@ -5,7 +5,7 @@ const basicPoolInfo = z.object({ poolAddress: evmAddressSchema, isInitialized: z.boolean(), liquidity: z.number().nonnegative(), - liquidityInUsd: z.number().nonnegative(), + liquidityInUSD: z.number().nonnegative(), 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 48d40b9..f50af1d 100644 --- a/src/services/Integrator/schemas/list-pool-v2-response-schema.ts +++ b/src/services/Integrator/schemas/list-pool-v2-response-schema.ts @@ -3,9 +3,6 @@ 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(), @@ -22,7 +19,6 @@ 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(), @@ -45,8 +41,15 @@ const poolOfListPoolSchema = z.object({ userLockTimePeriod: z.number(), userVeORN: z.number(), userORN: z.number(), + userRewardToPool: z.number(), + boostTotalVeORN: z.number(), + boostCurrentPoolReward: z.number(), + boostTotalLiquidity: z.number(), + boostCurrentLiquidity: z.number(), + boostCurrentVeORN: z.number(), + boostTotalReward: z.number(), - ...omittedBasicPoolInfo.shape, + ...basicPoolInfo.shape, type: z.string().nonempty(), });