@azuro-org/toolkit 4.3.2 → 4.3.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5296,8 +5296,9 @@ const calcPrematchOdds = async (props) => {
5296
5296
  contracts,
5297
5297
  });
5298
5298
  odds = selections.reduce((acc, { conditionId, outcomeId }, index) => {
5299
+ const key = `${conditionId}-${outcomeId}`;
5299
5300
  const result = response[index]?.result;
5300
- acc[`${conditionId}-${outcomeId}`] = formatToFixed(formatUnits(typeof result === 'bigint' ? result : 0n, ODDS_DECIMALS), 3);
5301
+ acc[key] = formatToFixed(formatUnits(typeof result === 'bigint' ? result : 0n, ODDS_DECIMALS), 5);
5301
5302
  return acc;
5302
5303
  }, {});
5303
5304
  }
@@ -5321,7 +5322,7 @@ const calcPrematchOdds = async (props) => {
5321
5322
  });
5322
5323
  return selections.reduce((acc, { conditionId, outcomeId }, index) => {
5323
5324
  const key = `${conditionId}-${outcomeId}`;
5324
- acc[key] = formatToFixed(formatUnits(conditionOdds[index], ODDS_DECIMALS), 3);
5325
+ acc[key] = formatToFixed(formatUnits(conditionOdds[index], ODDS_DECIMALS), 5);
5325
5326
  return acc;
5326
5327
  }, {});
5327
5328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azuro-org/toolkit",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "Set of helpers to work with Azuro protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",