@panoptic-eng/sdk 1.0.70 → 1.0.72

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,4 @@
1
- import { PanopticError, submitWrite } from "./rates-DDK4ZimJ.js";
1
+ import { PanopticError, submitWrite } from "./rates-BOGkyjVy.js";
2
2
  import { erc20Abi, getAddress, keccak256, maxUint256, stringToHex, zeroAddress } from "viem";
3
3
 
4
4
  //#region src/cow/addresses.ts
@@ -1207,4 +1207,4 @@ function calculatePositionDeltaWithSwap(input) {
1207
1207
  }
1208
1208
 
1209
1209
  //#endregion
1210
- export { BPS_DENOMINATOR, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, ORACLE_EPOCH_SECONDS, REORG_DEPTH, SCHEMA_VERSION, STORAGE_PREFIX, UTILIZATION_DENOMINATOR, WAD, ZERO_COLLATERAL, ZERO_VALUATION, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculatePositionValues, formatPriceRange, formatTick, formatTickRange, getAmountsForLiquidity, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegLiquidityRange, getLegNetValueWidth0, getLegValue, getLoanEffectiveDelta, getLpGreeks, getPositionDeltaMetrics, getPricesAtTick, getTickSpacing, isCall, isDefinedRisk, preparePositionValue, priceToTick, roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick };
1210
+ export { BPS_DENOMINATOR, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, ORACLE_EPOCH_SECONDS, REORG_DEPTH, SCHEMA_VERSION, STORAGE_PREFIX, UTILIZATION_DENOMINATOR, WAD, ZERO_COLLATERAL, ZERO_VALUATION, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculatePositionValues, formatPriceRange, formatTick, formatTickRange, getAmountsForLiquidity, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegLiquidityRange, getLegNetValueWidth0, getLegTokenInventory, getLegValue, getLoanEffectiveDelta, getLpGreeks, getPositionDeltaMetrics, getPricesAtTick, getTickSpacing, isCall, isDefinedRisk, preparePositionValue, priceToTick, roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick };
package/dist/index.d.ts CHANGED
@@ -37,6 +37,10 @@ declare function getAaveHoldings({
37
37
  debt: bigint;
38
38
  price: bigint;
39
39
  priceUnit: bigint;
40
+ /** Current supply APY, percent. */
41
+ supplyApyPct: number;
42
+ /** Current variable borrow APY, percent. */
43
+ borrowApyPct: number;
40
44
  }[];
41
45
  receiptTokens: Address$1[];
42
46
  blockNumber: bigint;
@@ -53,6 +57,8 @@ declare function getMorphoHoldings(account: Address$1, chainId: number): Promise
53
57
  priceUsd: string | null;
54
58
  marketId: string;
55
59
  kind: 'supply' | 'collateral' | 'debt';
60
+ /** Current APY in percent: supply APY, borrow APY for debt, 0 for collateral; null if unknown. */
61
+ apyPct: number | null;
56
62
  }[]>;
57
63
 
58
64
  //#endregion