From af631ba2487dee15b18d1db1c823bf8dde587dac Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 10 Nov 2022 10:56:01 +0300 Subject: [PATCH] OP-2896 Remove pools qtyPrecision & pricePrecision (#26) * OP-2896 Remove pools qtyPrecision & pricePrecision * Change ver * Update ver Co-authored-by: Aleksandr Kraiz --- package.json | 2 +- src/services/OrionBlockchain/index.ts | 2 -- src/services/OrionBlockchain/schemas/adminPoolSchema.ts | 2 -- src/services/OrionBlockchain/schemas/poolsConfigSchema.ts | 2 -- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/package.json b/package.json index b7deb8f..6fd15ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.15.11-rc.1", + "version": "0.15.12", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/services/OrionBlockchain/index.ts b/src/services/OrionBlockchain/index.ts index 4422368..bc40964 100644 --- a/src/services/OrionBlockchain/index.ts +++ b/src/services/OrionBlockchain/index.ts @@ -25,8 +25,6 @@ export interface IEditPool { tokenBIcon?: string; symbol?: string; status: PairStatusEnum; - qtyPrecision?: number; - pricePrecision?: number; minQty?: number; tokenASymbol?: string; tokenBSymbol?: string; diff --git a/src/services/OrionBlockchain/schemas/adminPoolSchema.ts b/src/services/OrionBlockchain/schemas/adminPoolSchema.ts index dfcd2a6..82a0326 100644 --- a/src/services/OrionBlockchain/schemas/adminPoolSchema.ts +++ b/src/services/OrionBlockchain/schemas/adminPoolSchema.ts @@ -29,8 +29,6 @@ export const poolOnVerificationSchema = z.object({ status: pairStatusSchema, updatedAt: z.number(), createdAt: z.number(), - qtyPrecision: z.number().optional(), - pricePrecision: z.number().optional(), }); export type adminPoolType = z.infer; diff --git a/src/services/OrionBlockchain/schemas/poolsConfigSchema.ts b/src/services/OrionBlockchain/schemas/poolsConfigSchema.ts index 16aaf92..bb41269 100644 --- a/src/services/OrionBlockchain/schemas/poolsConfigSchema.ts +++ b/src/services/OrionBlockchain/schemas/poolsConfigSchema.ts @@ -19,8 +19,6 @@ const poolsConfigSchema = z.object({ z.object({ lpTokenAddress: z.string(), minQty: z.number().optional(), - pricePrecision: z.number().int().optional(), - qtyPrecision: z.number().int().optional(), reverted: z.boolean().optional(), rewardToken: z.string().nullable().optional(), state: z.number().int().optional(),