mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-26 07:37:44 +03:00
feature: up version to 0.20.10-rc8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.20.10-rc7",
|
||||
"version": "0.20.10-rc8",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -6,7 +6,6 @@ const basicPoolInfo = z.object({
|
||||
isInitialized: z.boolean(),
|
||||
liquidity: z.number().nonnegative(),
|
||||
liquidityInUsd: z.number().nonnegative().optional(),
|
||||
liquidityInUSD: z.number().nonnegative().optional(),
|
||||
liquidityShare: z.number().nonnegative(),
|
||||
isFarming: z.boolean(),
|
||||
rewardsTotal: z.number().nonnegative(),
|
||||
|
||||
@@ -3,6 +3,9 @@ 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(),
|
||||
@@ -19,6 +22,7 @@ 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(),
|
||||
@@ -42,7 +46,7 @@ const poolOfListPoolSchema = z.object({
|
||||
userVeORN: z.number(),
|
||||
userORN: z.number(),
|
||||
|
||||
...basicPoolInfo.shape,
|
||||
...omittedBasicPoolInfo.shape,
|
||||
|
||||
type: z.string().nonempty(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user