@strkfarm/sdk 1.1.15 → 1.1.17

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.
@@ -49099,8 +49099,8 @@ ${JSON.stringify(data, null, 2)}`;
49099
49099
  decimals: 8,
49100
49100
  coingeckId: void 0,
49101
49101
  displayDecimals: 6,
49102
- priceCheckAmount: 1e-4
49103
- // 112000 * 0.0001 = $11.2
49102
+ priceCheckAmount: 1e-3
49103
+ // 112000 * 0.0001 = $110.2
49104
49104
  }, {
49105
49105
  name: "tBTC",
49106
49106
  symbol: "tBTC",
@@ -49109,8 +49109,8 @@ ${JSON.stringify(data, null, 2)}`;
49109
49109
  decimals: 18,
49110
49110
  coingeckId: void 0,
49111
49111
  displayDecimals: 6,
49112
- priceCheckAmount: 1e-4
49113
- // 112000 * 0.0001 = $11.2
49112
+ priceCheckAmount: 1e-3
49113
+ // 112000 * 0.0001 = $110.2
49114
49114
  }, {
49115
49115
  name: "solvBTC",
49116
49116
  symbol: "solvBTC",
@@ -49141,9 +49141,8 @@ ${JSON.stringify(data, null, 2)}`;
49141
49141
  decimals: 8,
49142
49142
  coingeckId: void 0,
49143
49143
  displayDecimals: 6,
49144
- priceProxySymbol: "WBTC",
49145
- priceCheckAmount: 1e-4
49146
- // 112000 * 0.0001 = $11.2
49144
+ priceCheckAmount: 1e-3
49145
+ // 112000 * 0.0001 = $110.2
49147
49146
  }, {
49148
49147
  name: "xsBTC",
49149
49148
  symbol: "xsBTC",
@@ -49156,6 +49155,7 @@ ${JSON.stringify(data, null, 2)}`;
49156
49155
  priceCheckAmount: 1e-4
49157
49156
  // 112000 * 0.0001 = $11.2
49158
49157
  }, {
49158
+ // todo upgrade proxy tokens once feeds are available
49159
49159
  name: "xtBTC",
49160
49160
  symbol: "xtBTC",
49161
49161
  logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
@@ -49163,9 +49163,8 @@ ${JSON.stringify(data, null, 2)}`;
49163
49163
  decimals: 18,
49164
49164
  coingeckId: void 0,
49165
49165
  displayDecimals: 6,
49166
- priceProxySymbol: "WBTC",
49167
- priceCheckAmount: 1e-4
49168
- // 112000 * 0.0001 = $11.2
49166
+ priceCheckAmount: 1e-3
49167
+ // 112000 * 0.0001 = $110.2
49169
49168
  }, {
49170
49169
  name: "xLBTC",
49171
49170
  symbol: "xLBTC",
@@ -49384,13 +49383,14 @@ ${JSON.stringify(data, null, 2)}`;
49384
49383
  logger2.verbose(`Fetching price of ${token.symbol} using ${methodToUse}`);
49385
49384
  switch (methodToUse) {
49386
49385
  case "Coinbase":
49387
- try {
49388
- const result = await this._getPriceCoinbase(token);
49389
- this.methodToUse[token.symbol] = "Coinbase";
49390
- return result;
49391
- } catch (error2) {
49392
- console.warn(`Coinbase: price err: message [${token.symbol}]: `, error2.message);
49393
- }
49386
+ // try {
49387
+ // const result = await this._getPriceCoinbase(token);
49388
+ // this.methodToUse[token.symbol] = 'Coinbase';
49389
+ // return result;
49390
+ // } catch (error: any) {
49391
+ // console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
49392
+ // // do nothing, try next
49393
+ // }
49394
49394
  case "Coinmarketcap":
49395
49395
  try {
49396
49396
  const result = await this._getPriceCoinMarketCap(token);
@@ -192,8 +192,8 @@ var defaultTokens = [{
192
192
  decimals: 8,
193
193
  coingeckId: void 0,
194
194
  displayDecimals: 6,
195
- priceCheckAmount: 1e-4
196
- // 112000 * 0.0001 = $11.2
195
+ priceCheckAmount: 1e-3
196
+ // 112000 * 0.0001 = $110.2
197
197
  }, {
198
198
  name: "tBTC",
199
199
  symbol: "tBTC",
@@ -202,8 +202,8 @@ var defaultTokens = [{
202
202
  decimals: 18,
203
203
  coingeckId: void 0,
204
204
  displayDecimals: 6,
205
- priceCheckAmount: 1e-4
206
- // 112000 * 0.0001 = $11.2
205
+ priceCheckAmount: 1e-3
206
+ // 112000 * 0.0001 = $110.2
207
207
  }, {
208
208
  name: "solvBTC",
209
209
  symbol: "solvBTC",
@@ -234,9 +234,8 @@ var defaultTokens = [{
234
234
  decimals: 8,
235
235
  coingeckId: void 0,
236
236
  displayDecimals: 6,
237
- priceProxySymbol: "WBTC",
238
- priceCheckAmount: 1e-4
239
- // 112000 * 0.0001 = $11.2
237
+ priceCheckAmount: 1e-3
238
+ // 112000 * 0.0001 = $110.2
240
239
  }, {
241
240
  name: "xsBTC",
242
241
  symbol: "xsBTC",
@@ -249,6 +248,7 @@ var defaultTokens = [{
249
248
  priceCheckAmount: 1e-4
250
249
  // 112000 * 0.0001 = $11.2
251
250
  }, {
251
+ // todo upgrade proxy tokens once feeds are available
252
252
  name: "xtBTC",
253
253
  symbol: "xtBTC",
254
254
  logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
@@ -256,9 +256,8 @@ var defaultTokens = [{
256
256
  decimals: 18,
257
257
  coingeckId: void 0,
258
258
  displayDecimals: 6,
259
- priceProxySymbol: "WBTC",
260
- priceCheckAmount: 1e-4
261
- // 112000 * 0.0001 = $11.2
259
+ priceCheckAmount: 1e-3
260
+ // 112000 * 0.0001 = $110.2
262
261
  }, {
263
262
  name: "xLBTC",
264
263
  symbol: "xLBTC",
@@ -477,13 +476,14 @@ var Pricer = class extends PricerBase {
477
476
  logger.verbose(`Fetching price of ${token.symbol} using ${methodToUse}`);
478
477
  switch (methodToUse) {
479
478
  case "Coinbase":
480
- try {
481
- const result = await this._getPriceCoinbase(token);
482
- this.methodToUse[token.symbol] = "Coinbase";
483
- return result;
484
- } catch (error) {
485
- console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
486
- }
479
+ // try {
480
+ // const result = await this._getPriceCoinbase(token);
481
+ // this.methodToUse[token.symbol] = 'Coinbase';
482
+ // return result;
483
+ // } catch (error: any) {
484
+ // console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
485
+ // // do nothing, try next
486
+ // }
487
487
  case "Coinmarketcap":
488
488
  try {
489
489
  const result = await this._getPriceCoinMarketCap(token);
package/dist/index.js CHANGED
@@ -325,8 +325,8 @@ var defaultTokens = [{
325
325
  decimals: 8,
326
326
  coingeckId: void 0,
327
327
  displayDecimals: 6,
328
- priceCheckAmount: 1e-4
329
- // 112000 * 0.0001 = $11.2
328
+ priceCheckAmount: 1e-3
329
+ // 112000 * 0.0001 = $110.2
330
330
  }, {
331
331
  name: "tBTC",
332
332
  symbol: "tBTC",
@@ -335,8 +335,8 @@ var defaultTokens = [{
335
335
  decimals: 18,
336
336
  coingeckId: void 0,
337
337
  displayDecimals: 6,
338
- priceCheckAmount: 1e-4
339
- // 112000 * 0.0001 = $11.2
338
+ priceCheckAmount: 1e-3
339
+ // 112000 * 0.0001 = $110.2
340
340
  }, {
341
341
  name: "solvBTC",
342
342
  symbol: "solvBTC",
@@ -367,9 +367,8 @@ var defaultTokens = [{
367
367
  decimals: 8,
368
368
  coingeckId: void 0,
369
369
  displayDecimals: 6,
370
- priceProxySymbol: "WBTC",
371
- priceCheckAmount: 1e-4
372
- // 112000 * 0.0001 = $11.2
370
+ priceCheckAmount: 1e-3
371
+ // 112000 * 0.0001 = $110.2
373
372
  }, {
374
373
  name: "xsBTC",
375
374
  symbol: "xsBTC",
@@ -382,6 +381,7 @@ var defaultTokens = [{
382
381
  priceCheckAmount: 1e-4
383
382
  // 112000 * 0.0001 = $11.2
384
383
  }, {
384
+ // todo upgrade proxy tokens once feeds are available
385
385
  name: "xtBTC",
386
386
  symbol: "xtBTC",
387
387
  logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
@@ -389,9 +389,8 @@ var defaultTokens = [{
389
389
  decimals: 18,
390
390
  coingeckId: void 0,
391
391
  displayDecimals: 6,
392
- priceProxySymbol: "WBTC",
393
- priceCheckAmount: 1e-4
394
- // 112000 * 0.0001 = $11.2
392
+ priceCheckAmount: 1e-3
393
+ // 112000 * 0.0001 = $110.2
395
394
  }, {
396
395
  name: "xLBTC",
397
396
  symbol: "xLBTC",
@@ -610,13 +609,14 @@ var Pricer = class extends PricerBase {
610
609
  logger.verbose(`Fetching price of ${token.symbol} using ${methodToUse}`);
611
610
  switch (methodToUse) {
612
611
  case "Coinbase":
613
- try {
614
- const result = await this._getPriceCoinbase(token);
615
- this.methodToUse[token.symbol] = "Coinbase";
616
- return result;
617
- } catch (error) {
618
- console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
619
- }
612
+ // try {
613
+ // const result = await this._getPriceCoinbase(token);
614
+ // this.methodToUse[token.symbol] = 'Coinbase';
615
+ // return result;
616
+ // } catch (error: any) {
617
+ // console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
618
+ // // do nothing, try next
619
+ // }
620
620
  case "Coinmarketcap":
621
621
  try {
622
622
  const result = await this._getPriceCoinMarketCap(token);
package/dist/index.mjs CHANGED
@@ -233,8 +233,8 @@ var defaultTokens = [{
233
233
  decimals: 8,
234
234
  coingeckId: void 0,
235
235
  displayDecimals: 6,
236
- priceCheckAmount: 1e-4
237
- // 112000 * 0.0001 = $11.2
236
+ priceCheckAmount: 1e-3
237
+ // 112000 * 0.0001 = $110.2
238
238
  }, {
239
239
  name: "tBTC",
240
240
  symbol: "tBTC",
@@ -243,8 +243,8 @@ var defaultTokens = [{
243
243
  decimals: 18,
244
244
  coingeckId: void 0,
245
245
  displayDecimals: 6,
246
- priceCheckAmount: 1e-4
247
- // 112000 * 0.0001 = $11.2
246
+ priceCheckAmount: 1e-3
247
+ // 112000 * 0.0001 = $110.2
248
248
  }, {
249
249
  name: "solvBTC",
250
250
  symbol: "solvBTC",
@@ -275,9 +275,8 @@ var defaultTokens = [{
275
275
  decimals: 8,
276
276
  coingeckId: void 0,
277
277
  displayDecimals: 6,
278
- priceProxySymbol: "WBTC",
279
- priceCheckAmount: 1e-4
280
- // 112000 * 0.0001 = $11.2
278
+ priceCheckAmount: 1e-3
279
+ // 112000 * 0.0001 = $110.2
281
280
  }, {
282
281
  name: "xsBTC",
283
282
  symbol: "xsBTC",
@@ -290,6 +289,7 @@ var defaultTokens = [{
290
289
  priceCheckAmount: 1e-4
291
290
  // 112000 * 0.0001 = $11.2
292
291
  }, {
292
+ // todo upgrade proxy tokens once feeds are available
293
293
  name: "xtBTC",
294
294
  symbol: "xtBTC",
295
295
  logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
@@ -297,9 +297,8 @@ var defaultTokens = [{
297
297
  decimals: 18,
298
298
  coingeckId: void 0,
299
299
  displayDecimals: 6,
300
- priceProxySymbol: "WBTC",
301
- priceCheckAmount: 1e-4
302
- // 112000 * 0.0001 = $11.2
300
+ priceCheckAmount: 1e-3
301
+ // 112000 * 0.0001 = $110.2
303
302
  }, {
304
303
  name: "xLBTC",
305
304
  symbol: "xLBTC",
@@ -518,13 +517,14 @@ var Pricer = class extends PricerBase {
518
517
  logger.verbose(`Fetching price of ${token.symbol} using ${methodToUse}`);
519
518
  switch (methodToUse) {
520
519
  case "Coinbase":
521
- try {
522
- const result = await this._getPriceCoinbase(token);
523
- this.methodToUse[token.symbol] = "Coinbase";
524
- return result;
525
- } catch (error) {
526
- console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
527
- }
520
+ // try {
521
+ // const result = await this._getPriceCoinbase(token);
522
+ // this.methodToUse[token.symbol] = 'Coinbase';
523
+ // return result;
524
+ // } catch (error: any) {
525
+ // console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
526
+ // // do nothing, try next
527
+ // }
528
528
  case "Coinmarketcap":
529
529
  try {
530
530
  const result = await this._getPriceCoinMarketCap(token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
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
  "types": "dist/index.d.ts",