Type alias SpotMarketAccount

SpotMarketAccount: {
    assetTier: AssetTier;
    borrowBalance: BN;
    borrowTokenTwap: BN;
    cumulativeBorrowInterest: BN;
    cumulativeDepositInterest: BN;
    decimals: number;
    depositBalance: BN;
    depositTokenTwap: BN;
    flashLoanAmount: BN;
    flashLoanInitialTokenAmount: BN;
    fuelBoostBorrows: number;
    fuelBoostDeposits: number;
    fuelBoostInsurance: number;
    fuelBoostMaker: number;
    fuelBoostTaker: number;
    historicalIndexData: HistoricalIndexData;
    historicalOracleData: HistoricalOracleData;
    ifLiquidationFee: number;
    ifPausedOperations: number;
    imfFactor: number;
    initialAssetWeight: number;
    initialLiabilityWeight: number;
    insuranceFund: {
        lastRevenueSettleTs: BN;
        revenueSettlePeriod: BN;
        sharesBase: BN;
        totalFactor: number;
        totalShares: BN;
        unstakingPeriod: BN;
        userFactor: number;
        userShares: BN;
        vault: PublicKey;
    };
    lastInterestTs: BN;
    lastTwapTs: BN;
    liquidatorFee: number;
    maintenanceAssetWeight: number;
    maintenanceLiabilityWeight: number;
    marketIndex: number;
    maxBorrowRate: number;
    maxPositionSize: BN;
    maxTokenBorrowsFraction: number;
    maxTokenDeposits: BN;
    minBorrowRate: number;
    minOrderSize: BN;
    mint: PublicKey;
    name: number[];
    nextDepositRecordId: BN;
    nextFillRecordId: BN;
    optimalBorrowRate: number;
    optimalUtilization: number;
    oracle: PublicKey;
    oracleSource: OracleSource;
    orderStepSize: BN;
    orderTickSize: BN;
    ordersEnabled: boolean;
    pausedOperations: number;
    pubkey: PublicKey;
    revenuePool: PoolBalance;
    scaleInitialAssetWeightStart: BN;
    spotFeePool: PoolBalance;
    status: MarketStatus;
    tokenProgram: number;
    totalQuoteSocialLoss: BN;
    totalSocialLoss: BN;
    totalSpotFee: BN;
    totalSwapFee: BN;
    utilizationTwap: BN;
    vault: PublicKey;
    withdrawGuardThreshold: BN;
}

Type declaration

  • assetTier: AssetTier
  • borrowBalance: BN
  • borrowTokenTwap: BN
  • cumulativeBorrowInterest: BN
  • cumulativeDepositInterest: BN
  • decimals: number
  • depositBalance: BN
  • depositTokenTwap: BN
  • flashLoanAmount: BN
  • flashLoanInitialTokenAmount: BN
  • fuelBoostBorrows: number
  • fuelBoostDeposits: number
  • fuelBoostInsurance: number
  • fuelBoostMaker: number
  • fuelBoostTaker: number
  • historicalIndexData: HistoricalIndexData
  • historicalOracleData: HistoricalOracleData
  • ifLiquidationFee: number
  • ifPausedOperations: number
  • imfFactor: number
  • initialAssetWeight: number
  • initialLiabilityWeight: number
  • insuranceFund: {
        lastRevenueSettleTs: BN;
        revenueSettlePeriod: BN;
        sharesBase: BN;
        totalFactor: number;
        totalShares: BN;
        unstakingPeriod: BN;
        userFactor: number;
        userShares: BN;
        vault: PublicKey;
    }
    • lastRevenueSettleTs: BN
    • revenueSettlePeriod: BN
    • sharesBase: BN
    • totalFactor: number
    • totalShares: BN
    • unstakingPeriod: BN
    • userFactor: number
    • userShares: BN
    • vault: PublicKey
  • lastInterestTs: BN
  • lastTwapTs: BN
  • liquidatorFee: number
  • maintenanceAssetWeight: number
  • maintenanceLiabilityWeight: number
  • marketIndex: number
  • maxBorrowRate: number
  • maxPositionSize: BN
  • maxTokenBorrowsFraction: number
  • maxTokenDeposits: BN
  • minBorrowRate: number
  • minOrderSize: BN
  • mint: PublicKey
  • name: number[]
  • nextDepositRecordId: BN
  • nextFillRecordId: BN
  • optimalBorrowRate: number
  • optimalUtilization: number
  • oracle: PublicKey
  • oracleSource: OracleSource
  • orderStepSize: BN
  • orderTickSize: BN
  • ordersEnabled: boolean
  • pausedOperations: number
  • pubkey: PublicKey
  • revenuePool: PoolBalance
  • scaleInitialAssetWeightStart: BN
  • spotFeePool: PoolBalance
  • status: MarketStatus
  • tokenProgram: number
  • totalQuoteSocialLoss: BN
  • totalSocialLoss: BN
  • totalSpotFee: BN
  • totalSwapFee: BN
  • utilizationTwap: BN
  • vault: PublicKey
  • withdrawGuardThreshold: BN

Generated using TypeDoc