@galacticcouncil/sdk-next 0.36.3 → 0.36.4

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.
@@ -27,6 +27,20 @@ export declare function mulScaled(value: bigint, multiplier: bigint, valueDecima
27
27
  * @returns scaled spot multiplication result
28
28
  */
29
29
  export declare function mulSpot(value: bigint, spot: bigint, valueDecimals: number, targetDecimals: number): bigint;
30
+ /**
31
+ * Divide a value by a spot price and rescale the result
32
+ * to the desired target decimals.
33
+ *
34
+ * Inverse of `mulSpot` — equivalent to multiplying
35
+ * by the reciprocal (1 / spot).
36
+ *
37
+ * @param value - base value (native bigint)
38
+ * @param spot - spot price (scaled by RUNTIME_DECIMALS)
39
+ * @param valueDecimals - decimals of the base value
40
+ * @param targetDecimals - desired decimals of the result
41
+ * @returns scaled division result
42
+ */
43
+ export declare function divSpot(value: bigint, spot: bigint, valueDecimals: number, targetDecimals: number): bigint;
30
44
  /**
31
45
  * Get % fraction from native value
32
46
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk-next",
3
- "version": "0.36.3",
3
+ "version": "0.36.4",
4
4
  "description": "Galactic next gen sdk (papi)",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {