import { EthAddress, IncentiveData, LeverageType, NetworkNumber } from './common'; export declare enum LiquityV2Versions { LiquityV2Eth = "liquityv2eth", LiquityV2WstEth = "liquityv2wsteth", LiquityV2REth = "liquityv2reth", LiquityV2EthLegacy = "liquityv2ethlegacy", LiquityV2WstEthLegacy = "liquityv2wstethlegacy", LiquityV2REthLegacy = "liquityv2rethlegacy" } export declare enum LIQUITY_V2_TROVE_STATUS_ENUM { nonExistent = 0, active = 1, closedByOwner = 2, closedByLiquidation = 3, zombie = 4 } export declare const LIQUITY_V2_STATUS_MAPPING: { nonExistent: string; active: string; closedByOwner: string; closedByLiquidation: string; zombie: string; }; export interface LiquityV2MarketInfo { chainIds: NetworkNumber[]; label: string; shortLabel: string; url: string; value: LiquityV2Versions; debtToken: string; collateralToken: string; marketAddress: EthAddress; protocolName: string; isLegacy: boolean; } export interface LiquityV2AssetData { symbol: string; address: string; price: string; totalSupply: string; totalBorrow: string; canBeSupplied: boolean; canBeBorrowed: boolean; leftToBorrowGlobal: string; leftToWithdrawGlobal: string; supplyIncentives: IncentiveData[]; borrowIncentives: IncentiveData[]; } export type LiquityV2AssetsData = { [key: string]: LiquityV2AssetData; }; export interface InnerLiquityV2MarketData { minCollRatio: string; totalCollRatio: string; criticalCollRatio: string; batchCollRatio: string; isUnderCollateralized: boolean; hintHelperAddress: EthAddress; troveNFTAddress: EthAddress; borrowerOperationsAddress: EthAddress; troveManagerAddress: EthAddress; stabilityPoolAddress: EthAddress; collSurplusPoolAddress: EthAddress; activePoolAddress: EthAddress; } export interface LiquityV2MarketData { assetsData: LiquityV2AssetsData; marketData: InnerLiquityV2MarketData; } export interface LiquityV2UsedAsset { symbol: string; collateral?: boolean; supplied: string; suppliedUsd: string; borrowed: string; borrowedUsd: string; isSupplied: boolean; isBorrowed: boolean; } export type LiquityV2UsedAssets = { [key: string]: LiquityV2UsedAsset; }; export interface LiquityV2AggregatedTroveData { suppliedUsd: string; borrowedUsd: string; borrowLimitUsd: string; liquidationLimitUsd: string; leftToBorrowUsd: string; netApy: string; incentiveUsd: string; totalInterestUsd: string; leveragedType: LeverageType; leveragedAsset: string; liquidationPrice: string; ratio: string; collRatio: string; safetyRatio: string; exposure: string; } export interface LiquityV2TroveData { usedAssets: LiquityV2UsedAssets; troveId: string; ratio: string; collRatio: string; safetyRatio?: string; liqRatio: string; borrowLimitRatio: string; interestRate: string; leftToBorrowUsd: string; borrowLimitUsd: string; liquidationLimitUsd: string; suppliedUsd: string; borrowedUsd: string; netApy: string; incentiveUsd: string; totalInterestUsd: string; interestBatchManager: EthAddress; troveStatus: string; leveragedType: LeverageType; leveragedAsset: string; liquidationPrice: string; debtInFront: string; lastInterestRateAdjTime: string; exposure: string; } /** The stability pool deposit of an address in one market, from getLiquityV2Staking. */ export interface LiquityV2StakingData { totalBOLDDeposited: string; stakedBOLDBalance: string; stabilityRewardColl: string; stabilityRewardYield: string; showStakingBalances: boolean; debtTokenBalance: string; stabilityPoolApy: string; } /** sBOLD, yBOLD and stYBOLD of an address, from getLiquitySAndYBold. */ export interface LiquityV2SBoldYBoldData { spApy: string; yBoldApy: string; totalBoldDepositedSBold: string; boldRateSBold: string; maxWithdrawSBold: string; totalBoldDepositedYBold: string; boldRateYBold: string; maxWithdrawYBold: string; sBoldBalance: string; yBoldBalance: string; stYBoldBalance: string; }