import { EthAddress, IncentiveData, LeverageType, NetworkNumber } from './common'; import { BandData, UserBandData } from './curveUsd'; export declare enum LLVersionsEth { LLWstethCrvusd = "llamaLendwstETHcrvUSD", LLWstethCrvusd2 = "llamaLendwstETHcrvUSD2", LLSusdeCrvusd = "llamaLendsUSDecrvUSD", LLSusdeCrvusd2 = "llamaLendsUSDecrvUSD2", LLWbtcCrvusd = "llamaLendWBTCcrvUSD", LLUsdeCrvusd = "llamaLendUSDecrvUSD", LLWethCrvusd2 = "llamaLendWETHcrvUSD2", LLCrvCrvusd = "llamaLendCRVcrvUSD", LLCrvusdCrv = "llamaLendcrvUSDCRV", LLTbtcCrvusd = "llamaLendTBTCcrvUSD", LLCrvusdTbtc = "llamaLendcrvUSDTBTC", LLWethCrvusd = "llamaLendWETHcrvUSD", LLCrvusdWeth = "llamaLendcrvUSDWETH" } export declare enum LLVersionsArb { LLArbCrvusd = "llamaLendArbcrvUSD", LLArbCrvusd2 = "llamaLendArbcrvUSD2", LLFxnCrvusd = "llamaLendFXNcrvUSD", LLWbtcCrvusd = "llamaLendWBTCcrvUSD", LLWbtcCrvusd2 = "llamaLendWBTCcrvUSD2", LLCrvCrvusd = "llamaLendCRVcrvUSD", LLWethCrvusd = "llamaLendWETHcrvUSD", LLWethCrvusd2 = "llamaLendWETHcrvUSD2" } export declare const LlamaLendVersions: { readonly LLArbCrvusd: LLVersionsArb.LLArbCrvusd; readonly LLArbCrvusd2: LLVersionsArb.LLArbCrvusd2; readonly LLFxnCrvusd: LLVersionsArb.LLFxnCrvusd; readonly LLWbtcCrvusd: LLVersionsArb.LLWbtcCrvusd; readonly LLWbtcCrvusd2: LLVersionsArb.LLWbtcCrvusd2; readonly LLCrvCrvusd: LLVersionsArb.LLCrvCrvusd; readonly LLWethCrvusd: LLVersionsArb.LLWethCrvusd; readonly LLWethCrvusd2: LLVersionsArb.LLWethCrvusd2; readonly LLWstethCrvusd: LLVersionsEth.LLWstethCrvusd; readonly LLWstethCrvusd2: LLVersionsEth.LLWstethCrvusd2; readonly LLSusdeCrvusd: LLVersionsEth.LLSusdeCrvusd; readonly LLSusdeCrvusd2: LLVersionsEth.LLSusdeCrvusd2; readonly LLUsdeCrvusd: LLVersionsEth.LLUsdeCrvusd; readonly LLCrvusdCrv: LLVersionsEth.LLCrvusdCrv; readonly LLTbtcCrvusd: LLVersionsEth.LLTbtcCrvusd; readonly LLCrvusdTbtc: LLVersionsEth.LLCrvusdTbtc; readonly LLCrvusdWeth: LLVersionsEth.LLCrvusdWeth; }; export type LlamaLendVersionsType = typeof LlamaLendVersions[keyof typeof LlamaLendVersions]; export declare enum LlamaLendStatus { Nonexistant = "Nonexistant", Safe = "Safe", Risk = "Risk", SoftLiquidating = "SoftLiquidating", SoftLiquidated = "SoftLiquidated" } export interface LlamaLendMarketData { chainIds: NetworkNumber[]; label: string; shortLabel: string; value: LlamaLendVersionsType; collAsset: string; baseAsset: string; controllerAddress: EthAddress; vaultAddress: EthAddress; url: string; } export interface LlamaLendAssetData { symbol: string; address: string; price: string; supplyRate: string; borrowRate: string; totalSupply?: string; totalBorrow?: string; canBeSupplied?: boolean; canBeBorrowed?: boolean; shares?: string; supplyIncentives: IncentiveData[]; borrowIncentives: IncentiveData[]; } export type LlamaLendAssetsData = { [key: string]: LlamaLendAssetData; }; export interface LlamaLendGlobalMarketData { A: string; loanDiscount: string; activeBand: string; totalDebt: string; totalDebtSupplied: string; utilization: string; ammPrice: string; basePrice: string; oraclePrice: string; minted: string; redeemed: string; monetaryPolicyRate: string; ammRate: string; minBand: string; maxBand: string; borrowRate: string; lendRate: string; futureBorrowRate: string; leftToBorrow: string; bands: BandData[]; assetsData: LlamaLendAssetsData; } export interface LlamaLendAggregatedPositionData { ratio: string; suppliedUsd: string; borrowedUsd: string; suppliedForYieldUsd: string; safetyRatio: string; borrowLimitUsd: string; minAllowedRatio: number; collFactor: string; leveragedType: LeverageType; leveragedAsset?: string; liquidationPrice?: string; netApy: string; incentiveUsd: string; totalInterestUsd: string; exposure: string; } export interface LlamaLendUsedAsset { isSupplied: boolean; supplied: string; suppliedUsd: string; borrowed: string; borrowedUsd: string; isBorrowed: boolean; symbol: string; collateral: boolean; price: string; interestRate?: string; suppliedForYield?: string; suppliedForYieldUsd?: string; shares?: string; } export interface LlamaLendUsedAssets { [key: string]: LlamaLendUsedAsset; } export type LlamaLendPositionAggregatedFields = Partial>; export interface LlamaLendUserData extends LlamaLendPositionAggregatedFields { debtAmount: string; health: string; healthPercent: string; priceHigh: string; priceLow: string; liquidationDiscount: string; numOfBands: string; usedAssets: LlamaLendUsedAssets; status: LlamaLendStatus; ratio: string; suppliedUsd: string; borrowedUsd: string; suppliedForYieldUsd: string; safetyRatio: string; userBands: UserBandData[]; loanExists: boolean; borrowRate?: string; exposure: string; collateralPrice?: bigint; marketCollateralAmount?: bigint; debtTokenCollateralAmount?: bigint; N?: bigint; bandRange?: readonly [bigint, bigint]; usersBands?: readonly [readonly bigint[], readonly bigint[]]; collRatio?: bigint; isInSoftLiquidation?: boolean; debtTokenSuppliedShares?: bigint; debtTokenSuppliedAssets?: bigint; }