import type { Address } from "viem"; import type { ExternalApy as ExternalApySDK, PoolExtraApy, PoolPointsInfo } from "../../rewards/apy/index.js"; import type { PoolPointsBase } from "../../rewards/index.js"; export interface PoolBaseAPY { type: "supplyAPY" | "tokenYield"; apy: number; } /** * External APY enriched with the cumulative `totalValue` * (base + extra + external). */ export interface PoolExternalAPY extends ExternalApySDK { totalValue: number; } export interface PoolFullAPY { totalAPY: number; baseAPY: PoolBaseAPY[]; extraAPY: PoolExtraApy[]; extraAPYTotal: number; externalAPY: PoolExternalAPY | undefined; } export interface PoolFullAPY7DAgo extends PoolFullAPY { loading7DAgo: boolean; } export interface PoolPointsWithTips { reward?: PoolPointsInfo; amount: string; name: string; tokenTitle?: string; fullTip: string; } type AllPoolsAPY = Record; type AllPoolsAPY7DAgo = Record; type AllPoolsPoints = Record; export interface GetPoolsAPYResult { data: AllPoolsAPY; data7DAgo: AllPoolsAPY7DAgo; pointsBase: PoolPointsBase; points: AllPoolsPoints; } export {};