feature: up version to 0.20.10-rc12

This commit is contained in:
Mikhail Gladchenko
2023-10-19 13:52:31 +01:00
parent 3798574542
commit 8a27a13a09
3 changed files with 10 additions and 7 deletions

View File

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

View File

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

View File

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