OP-2896 Remove pools qtyPrecision & pricePrecision (#26)

* OP-2896 Remove pools qtyPrecision & pricePrecision

* Change ver

* Update ver

Co-authored-by: Aleksandr Kraiz <selfsurfer@gmail.com>
This commit is contained in:
Dmitry
2022-11-10 10:56:01 +03:00
committed by GitHub
parent 993e7b7154
commit af631ba248
4 changed files with 1 additions and 7 deletions

View File

@@ -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",

View File

@@ -25,8 +25,6 @@ export interface IEditPool {
tokenBIcon?: string;
symbol?: string;
status: PairStatusEnum;
qtyPrecision?: number;
pricePrecision?: number;
minQty?: number;
tokenASymbol?: string;
tokenBSymbol?: string;

View File

@@ -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<typeof poolOnVerificationSchema>;

View File

@@ -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(),