Properties num Oracles num Oracles: number
ref Share Centibps Tier1 ref
Share
Centibps
Tier1
: BN ref Share Centibps Tier2 ref
Share
Centibps
Tier2
: BN ref Surcharge Centibps Tier1 ref
Surcharge
Centibps
Tier1
: BN ref Surcharge Centibps Tier2 ref
Surcharge
Centibps
Tier2
: BN root Bank Accounts root
Bank
Accounts
: ( undefined | RootBank ) [] tokens tokens: TokenInfo []
valid Interval valid Interval: number []
Methods cache Price To Ui cache Price To Ui( price: I80F48 , tokenIndex: number ) : number get Borrow Rate get Borrow Rate( tokenIndex: number ) : I80F48 get Deposit Rate get Deposit Rate( tokenIndex: number ) : I80F48 get Perp Market Index get Perp Market Index( perpMarketPk: PublicKey ) : number get Price Ui get Price Ui( tokenIndex: number , mangoCache: MangoCache ) : number get Quote Token Info get Quote Token Info( ) : TokenInfo get Root Bank Index get Root Bank Index( rootBank: PublicKey ) : number get Spot Market Index get Spot Market Index( spotMarketPk: PublicKey ) : number get Token Decimals get Token Decimals( tokenIndex: number ) : number get Ui Total Borrow get Ui Total Borrow( tokenIndex: number ) : I80F48 get Ui Total Deposit get Ui Total Deposit( tokenIndex: number ) : I80F48 load Cache load Cache( connection: Connection ) : Promise < MangoCache > load Perp Market load Perp Market( connection: Connection , marketIndex: number , baseDecimals: number , quoteDecimals: number ) : Promise < PerpMarket > Parameters connection: Connection marketIndex: number baseDecimals: number quoteDecimals: number load Root Banks load Root Banks( connection: Connection ) : Promise < ( undefined | RootBank ) [] > Parameters Returns Promise < ( undefined | RootBank ) [] > on Cache Change on Cache Change( connection: Connection , cb: ( c: MangoCache ) => void ) : number Legend Constructor Property Method Static property Static method Settings Theme OS Light Dark
Return the decimals in TokenInfo; If it's not QUOTE_INDEX and there is an oracle for this index but no SPL-Token, this will default to 6 Otherwise throw error