@hubbleprotocol/hubble-sdk
Version:
Hubble Protocol client SDK
29 lines (28 loc) • 875 B
TypeScript
import { PublicKey } from '@solana/web3.js';
import Decimal from 'decimal.js';
export type GlobalConfig = {
version: number;
userBorrowMin: Decimal;
userBorrowMax: Decimal;
userDebtMin: Decimal;
userDebtMax: Decimal;
treasuryFeeRate: Decimal;
protocolEpoch: Decimal;
oracleProgramId: PublicKey;
delegateCollateralAllowActiveOnly: boolean;
blockWithdrawCollateral: boolean;
blockTryLiquidate: boolean;
blockBorrow: boolean;
blockDepositAndBorrow: boolean;
blockClearLiquidationGains: boolean;
blockHarvestLiquidationGains: boolean;
blockWithdrawStability: boolean;
blockAirdropHbb: boolean;
emergencyMode: boolean;
userDepositMax: Decimal;
totalDepositMax: Decimal;
issuancePerSecond: Decimal;
useIssuancePerMinute: boolean;
scopeProgramId: PublicKey;
};
export default GlobalConfig;