feature: updated pool v2 and v3 schemas

This commit is contained in:
Mikhail Gladchenko
2023-10-31 14:10:13 +00:00
parent 3be6c56f9c
commit 3bccd256ac
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.10-rc19",
"version": "0.20.10-rc20",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -19,7 +19,7 @@ export const listPoolV3Schema = z.object({
...basicPoolInfo.shape,
type: z.string().nonempty(),
type: z.literal('v3'),
});
const listPoolV3ResponseSchema = z.object({

View File

@@ -50,7 +50,7 @@ const poolInfoSchema = z.object({
boostCurrentLiquidity: z.number(),
boostCurrentVeORN: z.number(),
boostTotalReward: z.number(),
type: z.string(),
type: z.literal('v2'),
...basicPoolInfo.shape,
});