@hubbleprotocol/hubble-sdk
Version:
Hubble Protocol client SDK
44 lines (41 loc) • 1.44 kB
text/typescript
import { PublicKey } from '@solana/web3.js';
import CollateralAmounts from './CollateralAmounts';
import Decimal from 'decimal.js';
import SupportedCollateral from './SupportedCollateral';
import CollateralWithdrawalCaps from './CollateralWithdrawalCaps';
import WithdrawalCaps from './WithdrawalCaps';
export type BorrowingMarketState = {
version: number;
initialMarketOwner: PublicKey;
redemptionsQueue: PublicKey;
redemption_candidates_queue: PublicKey;
stablecoinMint: PublicKey;
stablecoinMintAuthority: PublicKey;
stablecoinMintSeed: number;
hbbMint: PublicKey;
hbbMintAuthority: PublicKey;
hbbMintSeed: number;
numUsers: Decimal;
numActiveUsers: Decimal;
stablecoinBorrowed: Decimal;
depositedCollateral: { amounts: Decimal[] };
inactiveCollateral: { amounts: Decimal[] };
baseRateBps: number;
lastFeeEvent: Decimal;
redistributedStablecoin: Decimal;
totalStake: Decimal;
collateralRewardPerToken: CollateralAmounts;
stablecoinRewardPerToken: Decimal;
totalStakeSnapshot: Decimal;
totalDebtMax: Decimal;
borrowedStablecoinSnapshot: Decimal;
supportedCollaterals: SupportedCollateral[];
marketMcr: Decimal;
liquidationPenaltyPoolBased: Decimal;
liquidationPenaltyCashBased: Decimal;
minCashBasedLiquidationRepayment: Decimal;
withdrawalCap: WithdrawalCaps;
withdrawalCapsCollateral: CollateralWithdrawalCaps[];
pubkey: PublicKey;
};
export default BorrowingMarketState;