@xoxno/types 1.0.431 → 1.0.432

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.
@@ -16,5 +16,7 @@ export declare class LendingIndexesDto {
16
16
  aggregatorPriceEgldShort: number;
17
17
  aggregatorPriceUsd: string;
18
18
  aggregatorPriceUsdShort: number;
19
+ withinFirstTolerance?: boolean;
20
+ withinSecondTolerance?: boolean;
19
21
  chain?: ActivityChain;
20
22
  }
@@ -143,6 +143,24 @@ __decorate([
143
143
  }),
144
144
  __metadata("design:type", Number)
145
145
  ], LendingIndexesDto.prototype, "aggregatorPriceUsdShort", void 0);
146
+ __decorate([
147
+ (0, swagger_1.ApiProperty)({
148
+ description: 'Whether the oracle price is within the first (tightest) deviation tolerance band. MVX-only; absent for chains whose oracle does not expose tolerance bands (e.g. Stellar). The UI borrow/withdraw flow reads this flag.',
149
+ required: false,
150
+ type: Boolean,
151
+ example: true,
152
+ }),
153
+ __metadata("design:type", Boolean)
154
+ ], LendingIndexesDto.prototype, "withinFirstTolerance", void 0);
155
+ __decorate([
156
+ (0, swagger_1.ApiProperty)({
157
+ description: 'Whether the oracle price is within the second (wider) deviation tolerance band. MVX-only; absent for chains whose oracle does not expose tolerance bands (e.g. Stellar). The UI borrow/withdraw flow reads this flag.',
158
+ required: false,
159
+ type: Boolean,
160
+ example: true,
161
+ }),
162
+ __metadata("design:type", Boolean)
163
+ ], LendingIndexesDto.prototype, "withinSecondTolerance", void 0);
146
164
  __decorate([
147
165
  (0, swagger_1.ApiProperty)({
148
166
  description: 'Blockchain network the indexes belong to (optional, defaults downstream to MVX when absent)',
@@ -48,4 +48,13 @@ export interface StellarLendingActivityData {
48
48
  * events yields realized PnL. `null` for non-position events.
49
49
  */
50
50
  index: string | null;
51
+ /**
52
+ * Entry risk params for a collateral (supply) leg, in basis points — carried
53
+ * to Kusto so health factor is computed there (collateral-weighted), matching
54
+ * the MVX `LiquidationThreshold`-in-activity pattern. `null` on borrow and
55
+ * non-position rows.
56
+ */
57
+ liquidationThresholdBps: number | null;
58
+ liquidationBonusBps: number | null;
59
+ loanToValueBps: number | null;
51
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.431",
3
+ "version": "1.0.432",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {