@xoxno/types 1.0.387 → 1.0.388

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.
@@ -31,7 +31,7 @@ export declare class LendingAccountProfileDoc {
31
31
  _ts: number;
32
32
  constructor(props?: Partial<LendingAccountProfileDoc>);
33
33
  }
34
- declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "address", "flashLoan", "oracleProvider", "indexes"];
34
+ declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "address", "flashLoan", "oracleProvider", "indexes", "chain"];
35
35
  export declare class LendingAccountProfile extends LendingAccountProfileDoc {
36
36
  supplyAmount: string;
37
37
  borrowAmount: string;
@@ -240,6 +240,13 @@ const selectFields = [
240
240
  'flashLoan',
241
241
  'oracleProvider',
242
242
  'indexes',
243
+ // `chain` must be in the projection so manage-flow chain resolution
244
+ // (resolveLendingManageChain in xoxno-ui) can tell a Stellar position
245
+ // from an MVX one. Without it, every position's marketProfile.chain is
246
+ // stripped by PickType serialization, normalizeLendingChain defaults
247
+ // to MVX, and Stellar users get the "Switch your Wallet" modal on
248
+ // Remove / Withdraw / Repay / Borrow / Swap / Liquidate.
249
+ 'chain',
243
250
  ];
244
251
  class LendingAccountProfile extends LendingAccountProfileDoc {
245
252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.387",
3
+ "version": "1.0.388",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {