@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/dist/index.browser.global.js +17 -17
- package/dist/index.browser.mjs +17 -17
- package/dist/index.js +17 -17
- package/dist/index.mjs +17 -17
- package/package.json +1 -1
- package/src/data/vesu-pool-v2.abi.json +1852 -0
- package/src/global.ts +5 -6
- package/src/modules/pricer.ts +8 -8
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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',
|
package/src/modules/pricer.ts
CHANGED
|
@@ -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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
} catch (error: any) {
|
|
155
|
-
|
|
156
|
-
|
|
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);
|