@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.
package/src/global.ts CHANGED
@@ -67,7 +67,7 @@ const defaultTokens: TokenInfo[] = [{
67
67
  decimals: 8,
68
68
  coingeckId: undefined,
69
69
  displayDecimals: 6,
70
- priceCheckAmount: 0.0001, // 112000 * 0.0001 = $11.2
70
+ priceCheckAmount: 0.001, // 112000 * 0.0001 = $110.2
71
71
  }, {
72
72
  name: 'tBTC',
73
73
  symbol: 'tBTC',
@@ -76,7 +76,7 @@ const defaultTokens: TokenInfo[] = [{
76
76
  decimals: 18,
77
77
  coingeckId: undefined,
78
78
  displayDecimals: 6,
79
- priceCheckAmount: 0.0001, // 112000 * 0.0001 = $11.2
79
+ priceCheckAmount: 0.001, // 112000 * 0.0001 = $110.2
80
80
  }, {
81
81
  name: 'solvBTC',
82
82
  symbol: 'solvBTC',
@@ -105,8 +105,7 @@ const defaultTokens: TokenInfo[] = [{
105
105
  decimals: 8,
106
106
  coingeckId: undefined,
107
107
  displayDecimals: 6,
108
- priceProxySymbol: 'WBTC',
109
- priceCheckAmount: 0.0001, // 112000 * 0.0001 = $11.2
108
+ priceCheckAmount: 0.001, // 112000 * 0.0001 = $110.2
110
109
  }, {
111
110
  name: 'xsBTC',
112
111
  symbol: 'xsBTC',
@@ -118,6 +117,7 @@ const defaultTokens: TokenInfo[] = [{
118
117
  priceProxySymbol: 'WBTC',
119
118
  priceCheckAmount: 0.0001, // 112000 * 0.0001 = $11.2
120
119
  }, {
120
+ // todo upgrade proxy tokens once feeds are available
121
121
  name: 'xtBTC',
122
122
  symbol: 'xtBTC',
123
123
  logo: 'https://assets.strkfarm.com/integrations/tokens/xtbtc.svg',
@@ -125,8 +125,7 @@ const defaultTokens: TokenInfo[] = [{
125
125
  decimals: 18,
126
126
  coingeckId: undefined,
127
127
  displayDecimals: 6,
128
- priceProxySymbol: 'WBTC',
129
- priceCheckAmount: 0.0001, // 112000 * 0.0001 = $11.2
128
+ priceCheckAmount: 0.001, // 112000 * 0.0001 = $110.2
130
129
  }, {
131
130
  name: 'xLBTC',
132
131
  symbol: 'xLBTC',
@@ -147,14 +147,14 @@ export class Pricer extends PricerBase {
147
147
  logger.verbose(`Fetching price of ${token.symbol} using ${methodToUse}`);
148
148
  switch (methodToUse) {
149
149
  case 'Coinbase':
150
- try {
151
- const result = await this._getPriceCoinbase(token);
152
- this.methodToUse[token.symbol] = 'Coinbase';
153
- return result;
154
- } catch (error: any) {
155
- console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
156
- // do nothing, try next
157
- }
150
+ // try {
151
+ // const result = await this._getPriceCoinbase(token);
152
+ // this.methodToUse[token.symbol] = 'Coinbase';
153
+ // return result;
154
+ // } catch (error: any) {
155
+ // console.warn(`Coinbase: price err: message [${token.symbol}]: `, error.message);
156
+ // // do nothing, try next
157
+ // }
158
158
  case 'Coinmarketcap':
159
159
  try {
160
160
  const result = await this._getPriceCoinMarketCap(token);