flash-sdk 5.0.2 → 6.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { Pool, TokenRatios, StakeStats, CompoundingStats, Permissions } from "./types";
4
3
  import { PublicKey } from "@solana/web3.js";
@@ -15,7 +14,9 @@ export declare class PoolAccount implements Pool {
15
14
  ratios: TokenRatios[];
16
15
  markets: PublicKey[];
17
16
  maxAumUsd: BN;
18
- aumUsd: BN;
17
+ buffer: BN;
18
+ rawAumUsd: BN;
19
+ equityUsd: BN;
19
20
  totalStaked: StakeStats;
20
21
  stakingFeeShareBps: BN;
21
22
  bump: number;
@@ -27,6 +27,8 @@ export interface MarketConfig {
27
27
  collateralCustody: PublicKey;
28
28
  side: Side;
29
29
  maxLev: number;
30
+ degenMinLev: number;
31
+ degenMaxLev: number;
30
32
  targetCustodyId: number;
31
33
  collateralCustodyId: number;
32
34
  targetMint: PublicKey;
@@ -173,7 +173,7 @@ var PoolConfig = (function () {
173
173
  var markets;
174
174
  try {
175
175
  markets = poolConfig['markets'].map(function (i) {
176
- return __assign(__assign({}, i), { marketAccount: new web3_js_1.PublicKey(i.marketAccount), marketCorrelation: i.marketCorrelation, pool: new web3_js_1.PublicKey(i.pool), targetCustody: new web3_js_1.PublicKey(i.targetCustody), collateralCustody: new web3_js_1.PublicKey(i.collateralCustody), side: i.side === 'long' ? types_1.Side.Long : types_1.Side.Short, maxLev: i.maxLev, targetMint: new web3_js_1.PublicKey(i.targetMint), collateralMint: new web3_js_1.PublicKey(i.collateralMint) });
176
+ return __assign(__assign({}, i), { marketAccount: new web3_js_1.PublicKey(i.marketAccount), marketCorrelation: i.marketCorrelation, pool: new web3_js_1.PublicKey(i.pool), targetCustody: new web3_js_1.PublicKey(i.targetCustody), collateralCustody: new web3_js_1.PublicKey(i.collateralCustody), side: i.side === 'long' ? types_1.Side.Long : types_1.Side.Short, maxLev: i.maxLev, degenMinLev: i.degenMinLev, degenMaxLev: i.degenMaxLev, targetMint: new web3_js_1.PublicKey(i.targetMint), collateralMint: new web3_js_1.PublicKey(i.collateralMint) });
177
177
  });
178
178
  }
179
179
  catch (error) {