@strkfarm/sdk 1.0.11 → 1.0.12

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.
@@ -35197,7 +35197,7 @@ var strkfarm_risk_engine = (() => {
35197
35197
  const amountIn2 = new Web3Number(100, token.decimals);
35198
35198
  return await this._getPriceEkubo(token, amountIn2, retry + 1);
35199
35199
  }
35200
- const usdcPrice = (await this.getPrice("USDC")).price;
35200
+ const usdcPrice = 1;
35201
35201
  logger.verbose(`USDC Price: ${usdcPrice}`);
35202
35202
  return outputUSDC * usdcPrice;
35203
35203
  }
package/dist/index.js CHANGED
@@ -340,7 +340,7 @@ var Pricer = class {
340
340
  const amountIn2 = new Web3Number(100, token.decimals);
341
341
  return await this._getPriceEkubo(token, amountIn2, retry + 1);
342
342
  }
343
- const usdcPrice = (await this.getPrice("USDC")).price;
343
+ const usdcPrice = 1;
344
344
  logger.verbose(`USDC Price: ${usdcPrice}`);
345
345
  return outputUSDC * usdcPrice;
346
346
  }
package/dist/index.mjs CHANGED
@@ -293,7 +293,7 @@ var Pricer = class {
293
293
  const amountIn2 = new Web3Number(100, token.decimals);
294
294
  return await this._getPriceEkubo(token, amountIn2, retry + 1);
295
295
  }
296
- const usdcPrice = (await this.getPrice("USDC")).price;
296
+ const usdcPrice = 1;
297
297
  logger.verbose(`USDC Price: ${usdcPrice}`);
298
298
  return outputUSDC * usdcPrice;
299
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
5
5
  "typings": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -202,7 +202,7 @@ export class Pricer {
202
202
  // if usdc depegs, it will not longer be 1 USD
203
203
  // so we need to get the price of USDC in USD
204
204
  // and then convert the outputUSDC to USD
205
- const usdcPrice = (await this.getPrice('USDC')).price;
205
+ const usdcPrice = 1; // (await this.getPrice('USDC')).price;
206
206
  logger.verbose(`USDC Price: ${usdcPrice}`);
207
207
  return outputUSDC * usdcPrice;
208
208
  }