@0dotxyz/p0-ts-sdk 2.2.0-beta.1 → 2.2.0-beta.2

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.
package/dist/index.d.cts CHANGED
@@ -15595,6 +15595,7 @@ interface SwapQuoteResult {
15595
15595
  priceImpactPct?: string;
15596
15596
  contextSlot?: number;
15597
15597
  timeTaken?: number;
15598
+ provider?: SwapProvider;
15598
15599
  }
15599
15600
  interface SwapIxsResult {
15600
15601
  swapInstructions: TransactionInstruction[];
@@ -18201,7 +18202,7 @@ declare function computeMaxLeverage(depositBank: BankType, borrowBank: BankType,
18201
18202
  * );
18202
18203
  * ```
18203
18204
  */
18204
- declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositOracleInfo: OraclePrice, borrowOracleInfo: OraclePrice, opts?: {
18205
+ declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositPriceUsd: number, borrowPriceUsd: number, opts?: {
18205
18206
  assetWeightInit?: BigNumber$1;
18206
18207
  liabilityWeightInit?: BigNumber$1;
18207
18208
  }): {
package/dist/index.d.ts CHANGED
@@ -15595,6 +15595,7 @@ interface SwapQuoteResult {
15595
15595
  priceImpactPct?: string;
15596
15596
  contextSlot?: number;
15597
15597
  timeTaken?: number;
15598
+ provider?: SwapProvider;
15598
15599
  }
15599
15600
  interface SwapIxsResult {
15600
15601
  swapInstructions: TransactionInstruction[];
@@ -18201,7 +18202,7 @@ declare function computeMaxLeverage(depositBank: BankType, borrowBank: BankType,
18201
18202
  * );
18202
18203
  * ```
18203
18204
  */
18204
- declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositOracleInfo: OraclePrice, borrowOracleInfo: OraclePrice, opts?: {
18205
+ declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositPriceUsd: number, borrowPriceUsd: number, opts?: {
18205
18206
  assetWeightInit?: BigNumber$1;
18206
18207
  liabilityWeightInit?: BigNumber$1;
18207
18208
  }): {