mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-24 22:58:01 +03:00
feature: up version to 0.20.10-rc12
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user