@1delta/margin-fetcher 0.0.159 → 0.0.161

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.
@@ -0,0 +1,12 @@
1
+ import type { BalanceData, AprData, PostTradeMetrics } from '../base/utils';
2
+ import type { LenderYields } from '../../../types/lenderTypes';
3
+ import type { SumerPositionInput } from './types';
4
+ /**
5
+ * Compute post-trade balance metrics for a Sumer borrow operation.
6
+ *
7
+ * Re-runs the waterfall absorption with increased debt for the target market.
8
+ * Debt changes affect the waterfall because debt is absorbed by collateral
9
+ * in the 4-phase process.
10
+ */
11
+ export declare function computeSumerBorrowDelta(amount: number, price: number, targetMarketUid: string, balanceData: BalanceData, positions: SumerPositionInput[], apr?: AprData, yieldParams?: LenderYields, irMode?: number): PostTradeMetrics;
12
+ //# sourceMappingURL=borrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"borrow.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/borrow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAajD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,kBAAkB,EAAE,EAC/B,GAAG,CAAC,EAAE,OAAO,EACb,WAAW,CAAC,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,GACd,gBAAgB,CA6ElB"}
@@ -0,0 +1,11 @@
1
+ import type { BalanceData, AprData, PostTradeMetrics } from '../base/utils';
2
+ import type { LenderYields } from '../../../types/lenderTypes';
3
+ import type { SumerPositionInput } from './types';
4
+ /**
5
+ * Compute post-trade balance metrics for a Sumer deposit operation.
6
+ *
7
+ * Unlike the standard deposit, Sumer must re-run the waterfall absorption
8
+ * across ALL positions to determine the new effective collateral.
9
+ */
10
+ export declare function computeSumerDepositDelta(amount: number, price: number, targetMarketUid: string, balanceData: BalanceData, positions: SumerPositionInput[], createNewSubAccount?: boolean, apr?: AprData, yieldParams?: LenderYields): PostTradeMetrics;
11
+ //# sourceMappingURL=deposit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deposit.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/deposit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAajD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,kBAAkB,EAAE,EAC/B,mBAAmB,UAAQ,EAC3B,GAAG,CAAC,EAAE,OAAO,EACb,WAAW,CAAC,EAAE,YAAY,GACzB,gBAAgB,CA0ElB"}
@@ -0,0 +1,7 @@
1
+ export { computeSumerDepositDelta } from './deposit';
2
+ export { computeSumerWithdrawDelta } from './withdraw';
3
+ export { computeSumerBorrowDelta } from './borrow';
4
+ export { computeSumerRepayDelta } from './repay';
5
+ export { computeSumerWaterfall, buildSumerAccumulators, applyPositionDelta, } from './waterfall';
6
+ export type { SumerPositionInput, GroupAccumulator } from './types';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { BalanceData, AprData, PostTradeMetrics } from '../base/utils';
2
+ import type { LenderYields } from '../../../types/lenderTypes';
3
+ import type { SumerPositionInput } from './types';
4
+ /**
5
+ * Compute post-trade balance metrics for a Sumer repay operation.
6
+ *
7
+ * Re-runs the waterfall absorption with decreased debt for the target market.
8
+ * Reducing debt frees collateral from intra-group absorption, potentially
9
+ * increasing the effective collateral valued at inter-group rates.
10
+ */
11
+ export declare function computeSumerRepayDelta(amount: number, price: number, targetMarketUid: string, balanceData: BalanceData, positions: SumerPositionInput[], apr?: AprData, yieldParams?: LenderYields, irMode?: number): PostTradeMetrics;
12
+ //# sourceMappingURL=repay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repay.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/repay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAajD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,kBAAkB,EAAE,EAC/B,GAAG,CAAC,EAAE,OAAO,EACb,WAAW,CAAC,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,GACd,gBAAgB,CA6ElB"}
@@ -0,0 +1,27 @@
1
+ import type { SumerMarketMeta } from '../../user-data/utils/types';
2
+ export type { SumerMarketMeta };
3
+ /**
4
+ * A single Sumer market position with all data needed
5
+ * to rebuild waterfall accumulators after a trade delta.
6
+ *
7
+ * Callers build this from:
8
+ * - `payload.lendingPositions['0'][marketUid]` → depositsUSD, debtUSD, debtStableUSD, collateralEnabled
9
+ * - `lenderData[marketUid].sumerMeta` → SumerMarketMeta
10
+ * - `lenderData[marketUid].flags?.collateralActive` → collateralActive
11
+ */
12
+ export type SumerPositionInput = {
13
+ marketUid: string;
14
+ depositsUSD: number;
15
+ debtUSD: number;
16
+ debtStableUSD: number;
17
+ collateralEnabled: boolean;
18
+ sumerMeta: SumerMarketMeta;
19
+ collateralActive: boolean;
20
+ };
21
+ export type GroupAccumulator = Record<number, {
22
+ cDep: number;
23
+ sDep: number;
24
+ cDebt: number;
25
+ sDebt: number;
26
+ }>;
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,YAAY,EAAE,eAAe,EAAE,CAAA;AAE/B;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,SAAS,EAAE,eAAe,CAAA;IAC1B,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAC7D,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { SumerMarketMeta } from '../../user-data/utils/types';
2
+ import type { SumerPositionInput, GroupAccumulator } from './types';
3
+ /**
4
+ * Sumer absorption waterfall: computes total effective collateral in USD.
5
+ *
6
+ * For each group, collateral absorbs debt in priority order:
7
+ * 1. cToken collateral absorbs suToken debt @ intraMintRate (highest)
8
+ * 2. cToken collateral absorbs cToken debt @ intraCRate
9
+ * 3. suToken collateral absorbs remaining suToken debt @ intraSuRate
10
+ * 4. suToken collateral absorbs remaining cToken debt @ intraSuRate
11
+ * Remaining collateral is valued at inter-group rates.
12
+ */
13
+ export declare function computeSumerWaterfall(groups: SumerMarketMeta[], accum: GroupAccumulator): number;
14
+ /**
15
+ * Build group-level rate maps and accumulators from a position array.
16
+ *
17
+ * Returns:
18
+ * - groupRatesMap: unique SumerMarketMeta per groupId
19
+ * - gAccum: per-group accumulators (enabled collateral only)
20
+ * - gAccumAll: per-group accumulators (all protocol-active markets)
21
+ */
22
+ export declare function buildSumerAccumulators(positions: SumerPositionInput[]): {
23
+ groupRatesMap: Record<number, SumerMarketMeta>;
24
+ gAccum: GroupAccumulator;
25
+ gAccumAll: GroupAccumulator;
26
+ };
27
+ /**
28
+ * Clone positions and apply a USD delta to the target market.
29
+ */
30
+ export declare function applyPositionDelta(positions: SumerPositionInput[], targetMarketUid: string, depositsDeltaUSD: number, debtDeltaUSD: number, debtStableDeltaUSD: number): SumerPositionInput[];
31
+ //# sourceMappingURL=waterfall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waterfall.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/waterfall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,eAAe,EAAE,EACzB,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAiDR;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG;IACvE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IAC9C,MAAM,EAAE,gBAAgB,CAAA;IACxB,SAAS,EAAE,gBAAgB,CAAA;CAC5B,CAgCA;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,kBAAkB,EAAE,EAC/B,eAAe,EAAE,MAAM,EACvB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,MAAM,GACzB,kBAAkB,EAAE,CAUtB"}
@@ -0,0 +1,10 @@
1
+ import type { BalanceData, AprData, PostTradeMetrics } from '../base/utils';
2
+ import type { LenderYields } from '../../../types/lenderTypes';
3
+ import type { SumerPositionInput } from './types';
4
+ /**
5
+ * Compute post-trade balance metrics for a Sumer withdraw operation.
6
+ *
7
+ * Re-runs the waterfall absorption with decreased deposits for the target market.
8
+ */
9
+ export declare function computeSumerWithdrawDelta(amount: number, price: number, targetMarketUid: string, balanceData: BalanceData, positions: SumerPositionInput[], apr?: AprData, yieldParams?: LenderYields): PostTradeMetrics;
10
+ //# sourceMappingURL=withdraw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../../src/lending/margin/sumer/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAajD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,kBAAkB,EAAE,EAC/B,GAAG,CAAC,EAAE,OAAO,EACb,WAAW,CAAC,EAAE,YAAY,GACzB,gBAAgB,CAyElB"}
@@ -1 +1 @@
1
- {"version":3,"file":"publicCallParse.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/compound-v2/publicCallParse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAA;AAiQzF,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,QAAQ;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EACnC,kBAAkB,gBAAgB,EAClC,YAAW,gBAAqB,KAC/B,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,+BAA+B,GAAG,SAAS,EAAE,MAAM,CAsEvE,CAAA"}
1
+ {"version":3,"file":"publicCallParse.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/compound-v2/publicCallParse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAA;AA8QzF,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,QAAQ;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EACnC,kBAAkB,gBAAgB,EAClC,YAAW,gBAAqB,KAC/B,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,+BAA+B,GAAG,SAAS,EAAE,MAAM,CAyEvE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"createSumerUserState.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/utils/createSumerUserState.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAEL,mBAAmB,EAEnB,QAAQ,EACT,MAAM,SAAS,CAAA;AAEhB,KAAK,cAAc,GACf,yBAAyB,GACzB,yBAAyB,GACzB,6BAA6B,CAAA;AAqEjC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,mBAAmB,EAC/B,gBAAgB,GAAE,MAAU,EAC5B,YAAY,GAAE,MAAU,GACvB,QAAQ,CA2NV"}
1
+ {"version":3,"file":"createSumerUserState.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/utils/createSumerUserState.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAEL,mBAAmB,EAEnB,QAAQ,EACT,MAAM,SAAS,CAAA;AAEhB,KAAK,cAAc,GACf,yBAAyB,GACzB,yBAAyB,GACzB,6BAA6B,CAAA;AAEjC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,mBAAmB,EAC/B,gBAAgB,GAAE,MAAU,EAC5B,YAAY,GAAE,MAAU,GACvB,QAAQ,CA2NV"}
@@ -1,6 +1,7 @@
1
1
  import { RewardsMap } from './aave-v3-types';
2
2
  import { GenericCurrency } from '../general';
3
3
  import { LenderConfigData } from '../lenderTypes';
4
+ import { SumerMarketMeta } from '../../lending/user-data/utils/types';
4
5
  export interface CompoundV2GeneralPublicResponse {
5
6
  data: {
6
7
  [tokenSymbol: string]: {
@@ -39,6 +40,8 @@ export interface CompoundV2GeneralPublicResponse {
39
40
  metadata: {
40
41
  cToken: string;
41
42
  exchangeRate: string;
43
+ cTokenDecimals?: number;
44
+ sumer?: SumerMarketMeta;
42
45
  };
43
46
  };
44
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"compound-v2-types.d.ts","sourceRoot":"","sources":["../../../src/types/lender/compound-v2-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE;QACJ,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,SAAS,EAAE,MAAM,CAAA;YACjB,KAAK,EAAE,eAAe,CAAA;YACtB,MAAM,EAAE,MAAM,CAAA;YACd,UAAU,EAAE,MAAM,CAAA;YAElB,aAAa,EAAE,MAAM,CAAA;YACrB,eAAe,EAAE,MAAM,CAAA;YACvB,SAAS,EAAE,MAAM,CAAA;YAEjB,gBAAgB,EAAE,MAAM,CAAA;YACxB,kBAAkB,EAAE,MAAM,CAAA;YAC1B,YAAY,EAAE,MAAM,CAAA;YACpB,cAAc,EAAE,MAAM,CAAA;YACtB,iBAAiB,EAAE,MAAM,CAAA;YAGzB,WAAW,EAAE,MAAM,CAAA;YACnB,kBAAkB,EAAE,MAAM,CAAA;YAC1B,gBAAgB,EAAE,CAAC,CAAA;YACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;YAC5B,cAAc,EAAE,MAAM,CAAA;YAGtB,OAAO,CAAC,EAAE,UAAU,CAAA;YAGpB,QAAQ,CAAC,EAAE,MAAM,CAAA;YAEjB,MAAM,EAAE;gBACN,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAAA;aACnC,CAAA;YAGD,gBAAgB,EAAE,OAAO,CAAA;YACzB,gBAAgB,EAAE,OAAO,CAAA;YACzB,SAAS,EAAE,KAAK,CAAA;YAChB,QAAQ,EAAE,OAAO,CAAA;YACjB,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE;gBACL,mBAAmB,EAAE,MAAM,CAAA;gBAC3B,cAAc,EAAE,MAAM,CAAA;aACvB,CAAA;YAGD,MAAM,CAAC,EAAE;gBAAE,QAAQ,EAAE;oBAAE,MAAM,EAAE,MAAM,CAAC;oBAAC,YAAY,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;SAChE,CAAA;KACF,CAAA;IACD,OAAO,EAAE,MAAM,CAAA;CAChB"}
1
+ {"version":3,"file":"compound-v2-types.d.ts","sourceRoot":"","sources":["../../../src/types/lender/compound-v2-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAErE,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE;QACJ,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,SAAS,EAAE,MAAM,CAAA;YACjB,KAAK,EAAE,eAAe,CAAA;YACtB,MAAM,EAAE,MAAM,CAAA;YACd,UAAU,EAAE,MAAM,CAAA;YAElB,aAAa,EAAE,MAAM,CAAA;YACrB,eAAe,EAAE,MAAM,CAAA;YACvB,SAAS,EAAE,MAAM,CAAA;YAEjB,gBAAgB,EAAE,MAAM,CAAA;YACxB,kBAAkB,EAAE,MAAM,CAAA;YAC1B,YAAY,EAAE,MAAM,CAAA;YACpB,cAAc,EAAE,MAAM,CAAA;YACtB,iBAAiB,EAAE,MAAM,CAAA;YAGzB,WAAW,EAAE,MAAM,CAAA;YACnB,kBAAkB,EAAE,MAAM,CAAA;YAC1B,gBAAgB,EAAE,CAAC,CAAA;YACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;YAC5B,cAAc,EAAE,MAAM,CAAA;YAGtB,OAAO,CAAC,EAAE,UAAU,CAAA;YAGpB,QAAQ,CAAC,EAAE,MAAM,CAAA;YAEjB,MAAM,EAAE;gBACN,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAAA;aACnC,CAAA;YAGD,gBAAgB,EAAE,OAAO,CAAA;YACzB,gBAAgB,EAAE,OAAO,CAAA;YACzB,SAAS,EAAE,KAAK,CAAA;YAChB,QAAQ,EAAE,OAAO,CAAA;YACjB,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE;gBACL,mBAAmB,EAAE,MAAM,CAAA;gBAC3B,cAAc,EAAE,MAAM,CAAA;aACvB,CAAA;YAGD,MAAM,CAAC,EAAE;gBACP,QAAQ,EAAE;oBACR,MAAM,EAAE,MAAM,CAAA;oBACd,YAAY,EAAE,MAAM,CAAA;oBACpB,cAAc,CAAC,EAAE,MAAM,CAAA;oBACvB,KAAK,CAAC,EAAE,eAAe,CAAA;iBACxB,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAA;IACD,OAAO,EAAE,MAAM,CAAA;CAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/margin-fetcher",
3
- "version": "0.0.159",
3
+ "version": "0.0.161",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -21,9 +21,9 @@
21
21
  "async-retry": "^1.3.3",
22
22
  "lodash": "^4.17.23",
23
23
  "@1delta/abis": "0.0.1",
24
- "@1delta/lender-registry": "0.0.13",
25
- "@1delta/calldata-sdk": "0.0.133",
24
+ "@1delta/calldata-sdk": "0.0.134",
26
25
  "@1delta/dex-registry": "0.0.98",
26
+ "@1delta/lender-registry": "0.0.13",
27
27
  "@1delta/providers": "0.0.42"
28
28
  },
29
29
  "devDependencies": {