polkamarkets-js 3.1.8 → 3.1.9
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/package.json
CHANGED
|
@@ -278,13 +278,11 @@ class PredictionMarketV3Contract extends PredictionMarketV2Contract {
|
|
|
278
278
|
marketsPrices = await this.querier.getMarketsPrices({ marketIds });
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
// fetching all markets decimals asynchrounously
|
|
282
|
-
const marketDecimals = await this.getMarketsERC20Decimals({ marketIds });
|
|
283
|
-
|
|
284
281
|
return marketIds.reduce((obj, marketId) => {
|
|
285
282
|
const index = marketIds.indexOf(marketId);
|
|
286
283
|
const marketData = marketsPrices[index];
|
|
287
|
-
|
|
284
|
+
// market prices decimals are always 18, don't depend on the erc20 decimals
|
|
285
|
+
const decimals = 18;
|
|
288
286
|
|
|
289
287
|
return {
|
|
290
288
|
...obj,
|