export interface LendingPoolSubgraph { id: string; totalUserInterestAmount: string; totalLossAmount: string; name: string; balance: string; firstLostCapital: string; isStopped: boolean; pendingPool: { id: string; totalPendingDepositAmounts: string[]; totalPendingDepositsAmount: string; totalPendingWithdrawalShares: string[]; }; tranches: TrancheSubgraph[]; configuration: LendingPoolConfigurationSubgraph; } export interface LendingPoolSubgraphReturn { lendingPools: LendingPoolSubgraph[]; } export interface TrancheSubgraph { balance: string; id: string; totalInterestAmount: string; orderId: string; lendingPool: { id: string; }; } export interface TrancheSubgraphResult { lendingPoolTranches: TrancheSubgraph[]; } export interface TrancheInterestRateUpdateSubgraph { id: string; lendingPoolTrancheConfiguration: TrancheConfigurationSubgraph[]; epochId: number; epochInterestRate: string; } export interface TrancheConfigurationSubgraph { maxDepositAmount: string; minDepositAmount: string; interestRate: string; id: string; desiredRatio: string; orderId: string; lendingPoolTrancheInterestRateUpdates: TrancheInterestRateUpdateSubgraph[]; lendingPoolTrancheFixedTermConfigs: { configId: string; epochLockDuration: string; epochInterestRate: string; fixedTermDepositStatus: 'Everyone' | 'AllowlistedOnly'; fixedTermDepositAllowlist: { isAllowlisted: boolean; user: { id: string; }; }[]; }[]; } export interface TrancheConfigurationSubgraphResult { lendingPoolTrancheConfigurations: TrancheConfigurationSubgraph[]; } export interface LendingPoolConfigurationSubgraph { desiredDrawAmount: string; drawRecipient: string; id: string; minimumExcessLiquidityPercentage: string; targetExcessLiquidityPercentage: string; trancheInterestChangeEpochDelay: string; tranchesConfig: TrancheConfigurationSubgraph[]; lendingPoolWithdrawalConfig: { requestEpochsInAdvance: string; }; } export interface LendingPoolConfigurationSubgraphReturn { lendingPoolConfigurations: LendingPoolConfigurationSubgraph[]; } export interface LendingPoolWithdrawalAndDepositSubgraph { lendingPools: { id: string; pendingPool: { totalPendingDepositAmounts: string[]; totalPendingDepositsAmount: string; totalPendingWithdrawalShares: string[]; }; totalDepositsAccepted: string; totalWithdrawalsAccepted: string; }[]; }