Represents a product stored in SpotEngine.

calcBorrowRatePerSecond for more details on the calculation and interest parameters

interface SpotProduct {
    productId: number;
    oraclePrice: BigNumber;
    longWeightInitial: BigNumber;
    shortWeightInitial: BigNumber;
    longWeightMaintenance: BigNumber;
    shortWeightMaintenance: BigNumber;
    totalLpQuoteAmount: BigNumber;
    totalLpBaseAmount: BigNumber;
    totalLpSupply: BigNumber;
    type: SPOT;
    tokenAddr: string;
    interestFloor: BigNumber;
    interestInflectionUtil: BigNumber;
    interestSmallCap: BigNumber;
    interestLargeCap: BigNumber;
    totalDeposited: BigNumber;
    totalBorrowed: BigNumber;
}

Hierarchy (view full)

Properties

productId: number
oraclePrice: BigNumber
longWeightInitial: BigNumber
shortWeightInitial: BigNumber
longWeightMaintenance: BigNumber
shortWeightMaintenance: BigNumber
totalLpQuoteAmount: BigNumber
totalLpBaseAmount: BigNumber
totalLpSupply: BigNumber
type: SPOT
tokenAddr: string
interestFloor: BigNumber
interestInflectionUtil: BigNumber
interestSmallCap: BigNumber
interestLargeCap: BigNumber
totalDeposited: BigNumber
totalBorrowed: BigNumber