Files
orionprotocol-sdk/src/services/OrionBlockchain/schemas/poolsInfoSchema.ts
2022-08-22 18:45:11 +03:00

27 lines
642 B
TypeScript

import { z } from 'zod';
const poolsInfoSchema = z.object({
governance: z.object({
apr: z.string(),
rewardRate: z.string(),
totalBalance: z.string(),
}),
totalRewardRatePerWeek: z.string(),
pools: z.record(
z.object({
currentAPR: z.string(),
isUser: z.boolean().optional(),
price: z.string(),
reserves: z.record(z.string()),
totalLiquidityInDollars: z.string(),
totalRewardRatePerWeek: z.string(),
totalStakedAmountInDollars: z.string(),
totalSupply: z.string(),
totalVoted: z.string(),
weight: z.string(),
}),
),
});
export default poolsInfoSchema;