@sodax/sdk 2.2.0-rc.8 → 2.2.0

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.cjs CHANGED
@@ -6514,7 +6514,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
6514
6514
  }
6515
6515
 
6516
6516
  // ../types/dist/index.js
6517
- var CONFIG_VERSION = 2020008;
6517
+ var CONFIG_VERSION = 2020099;
6518
6518
  var RC_STABLE = 99;
6519
6519
  var MIN_CONFIG_VERSION = 1e6;
6520
6520
  var MAX_CONFIG_VERSION = 99999999;
@@ -34977,7 +34977,7 @@ var LeverageYieldApiService = class _LeverageYieldApiService {
34977
34977
  /**
34978
34978
  * Build an unsigned token-approval transaction for the deposit input token.
34979
34979
  *
34980
- * @returns `Result<ApproveResponseV2>` — `{ tx }` (chain-specific unsigned tx).
34980
+ * @returns `Result<ApproveResponseV2>` — `{ tx, resetTx? }` (chain-specific unsigned txs); mine `resetTx` first when present.
34981
34981
  */
34982
34982
  async approve(body, config) {
34983
34983
  const txSchema = swapsApi.rawTxSchemaForChainKey(body.srcChainKey);
package/dist/index.d.cts CHANGED
@@ -8094,7 +8094,7 @@ declare class LeverageYieldApiService implements ResultifiedLeverageYieldApiV2 {
8094
8094
  /**
8095
8095
  * Build an unsigned token-approval transaction for the deposit input token.
8096
8096
  *
8097
- * @returns `Result<ApproveResponseV2>` — `{ tx }` (chain-specific unsigned tx).
8097
+ * @returns `Result<ApproveResponseV2>` — `{ tx, resetTx? }` (chain-specific unsigned txs); mine `resetTx` first when present.
8098
8098
  */
8099
8099
  approve(body: CreateDepositIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<ApproveResponseV2>>;
8100
8100
  /**
@@ -18639,8 +18639,10 @@ type LeverageYieldApr = {
18639
18639
  /** Target LTV in basis points, as read from `vault.targetLTV()`. */
18640
18640
  targetLtvBps: bigint;
18641
18641
  /**
18642
- * Leverage multiplier ×1e18 (e.g. 5.667x is `5_666_666_666_666_666_667n`). Caller can
18643
- * divide by `10n ** 18n` for the decimal form.
18642
+ * Borrowed multiple of equity (debt ÷ equity) ×1e18, i.e. `targetLTV / (1 - targetLTV)` — e.g.
18643
+ * 5.667x is `5_666_666_666_666_666_666n` (integer division truncates). Not total exposure: that is
18644
+ * `1 + leverageMultiplier` (= `1 / (1 - targetLTV)`), so a UI "Leverage" label shows the sum.
18645
+ * Divide by `10n ** 18n` for the decimal form.
18644
18646
  */
18645
18647
  leverageMultiplierWad: bigint;
18646
18648
  /** Net APR earned by a depositor at `targetLtvBps`, in RAY. Can be negative. */
package/dist/index.d.ts CHANGED
@@ -8094,7 +8094,7 @@ declare class LeverageYieldApiService implements ResultifiedLeverageYieldApiV2 {
8094
8094
  /**
8095
8095
  * Build an unsigned token-approval transaction for the deposit input token.
8096
8096
  *
8097
- * @returns `Result<ApproveResponseV2>` — `{ tx }` (chain-specific unsigned tx).
8097
+ * @returns `Result<ApproveResponseV2>` — `{ tx, resetTx? }` (chain-specific unsigned txs); mine `resetTx` first when present.
8098
8098
  */
8099
8099
  approve(body: CreateDepositIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<ApproveResponseV2>>;
8100
8100
  /**
@@ -18639,8 +18639,10 @@ type LeverageYieldApr = {
18639
18639
  /** Target LTV in basis points, as read from `vault.targetLTV()`. */
18640
18640
  targetLtvBps: bigint;
18641
18641
  /**
18642
- * Leverage multiplier ×1e18 (e.g. 5.667x is `5_666_666_666_666_666_667n`). Caller can
18643
- * divide by `10n ** 18n` for the decimal form.
18642
+ * Borrowed multiple of equity (debt ÷ equity) ×1e18, i.e. `targetLTV / (1 - targetLTV)` — e.g.
18643
+ * 5.667x is `5_666_666_666_666_666_666n` (integer division truncates). Not total exposure: that is
18644
+ * `1 + leverageMultiplier` (= `1 / (1 - targetLTV)`), so a UI "Leverage" label shows the sum.
18645
+ * Divide by `10n ** 18n` for the decimal form.
18644
18646
  */
18645
18647
  leverageMultiplierWad: bigint;
18646
18648
  /** Net APR earned by a depositor at `targetLtvBps`, in RAY. Can be negative. */
package/dist/index.mjs CHANGED
@@ -6487,7 +6487,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
6487
6487
  }
6488
6488
 
6489
6489
  // ../types/dist/index.js
6490
- var CONFIG_VERSION = 2020008;
6490
+ var CONFIG_VERSION = 2020099;
6491
6491
  var RC_STABLE = 99;
6492
6492
  var MIN_CONFIG_VERSION = 1e6;
6493
6493
  var MAX_CONFIG_VERSION = 99999999;
@@ -34950,7 +34950,7 @@ var LeverageYieldApiService = class _LeverageYieldApiService {
34950
34950
  /**
34951
34951
  * Build an unsigned token-approval transaction for the deposit input token.
34952
34952
  *
34953
- * @returns `Result<ApproveResponseV2>` — `{ tx }` (chain-specific unsigned tx).
34953
+ * @returns `Result<ApproveResponseV2>` — `{ tx, resetTx? }` (chain-specific unsigned txs); mine `resetTx` first when present.
34954
34954
  */
34955
34955
  async approve(body, config) {
34956
34956
  const txSchema = rawTxSchemaForChainKey(body.srcChainKey);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "2.2.0-rc.8",
7
+ "version": "2.2.0",
8
8
  "license": "MIT",
9
9
  "description": "Sodax SDK",
10
10
  "keywords": [
@@ -67,10 +67,10 @@
67
67
  "rlp": "3.0.0",
68
68
  "viem": "2.29.2",
69
69
  "valibot": "1.4.2",
70
- "@sodax/bridge-api": "2.2.0-rc.8",
71
- "@sodax/swaps-api": "2.2.0-rc.8",
72
- "@sodax/libs": "2.2.0-rc.8",
73
- "@sodax/types": "2.2.0-rc.8"
70
+ "@sodax/bridge-api": "2.2.0",
71
+ "@sodax/libs": "2.2.0",
72
+ "@sodax/swaps-api": "2.2.0",
73
+ "@sodax/types": "2.2.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@arethetypeswrong/cli": "0.17.4",