@algofi/v0
Version:
The official JavaScript SDK for Algofi
47 lines (46 loc) • 1.54 kB
TypeScript
import { Algodv2 } from "algosdk";
export declare class Market {
algodClient: Algodv2;
marketAppId: number;
marketAddress: string;
marketCounter: number;
underlyingAssetId: number;
bankAssetId: number;
oracleAppId: number;
oraclePriceField: string;
oraclePriceScaleFactor: number;
collateralFactor: number;
liquidationIncentive: number;
reserveFactor: number;
baseInterestRate: number;
slope1: number;
slope2: number;
utilizationOptimal: number;
marketSupplyCapInDollars: number;
marketBorrowCapInDollars: number;
activeCollateral: number;
bankCirculation: number;
bankToUnderlyingExchange: number;
underlyingBorrowed: number;
outstandingBorrowShares: number;
underlyingCash: number;
underlyingReserves: number;
totalBorrowInterestRate: number;
asset: any;
constructor(algodClient: any, marketAppId: any);
getMarketAppId: () => number;
getMarketAddress: () => string;
getMarketCounter: () => number;
getAsset: () => any;
getActiveCollateral: () => number;
getBankCirculation: () => number;
getBankToUnderlyingExchange: () => number;
getUnderlyingBorrowed: () => Promise<any>;
getOutstandingBorrowShares: () => void;
getUnderlyingCash: () => void;
getUnderlyingReserves: () => void;
getTotalBorrowInterestRate: () => void;
getCollateralFactor: () => void;
getLiquidationIncentive: () => void;
getStorageState: () => void;
}