@velora-dex/sdk 9.5.3-dev.0 → 9.5.3-dev.1
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/sdk.esm.js
CHANGED
|
@@ -7094,7 +7094,7 @@ function scaleByFactor(amount, scalingFactor) {
|
|
|
7094
7094
|
if (!amount) return 0n;
|
|
7095
7095
|
if (scalingFactor === undefined) return amount;
|
|
7096
7096
|
var base = 10n;
|
|
7097
|
-
return scalingFactor < 0 ? amount /
|
|
7097
|
+
return scalingFactor < 0 ? amount / base ** BigInt(-scalingFactor) : amount * base ** BigInt(scalingFactor);
|
|
7098
7098
|
}
|
|
7099
7099
|
/**
|
|
7100
7100
|
* @description Checks whether an auction is fully executed.
|