@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.
|
@@ -7097,7 +7097,7 @@ function scaleByFactor(amount, scalingFactor) {
|
|
|
7097
7097
|
if (!amount) return 0n;
|
|
7098
7098
|
if (scalingFactor === undefined) return amount;
|
|
7099
7099
|
var base = 10n;
|
|
7100
|
-
return scalingFactor < 0 ? amount /
|
|
7100
|
+
return scalingFactor < 0 ? amount / base ** BigInt(-scalingFactor) : amount * base ** BigInt(scalingFactor);
|
|
7101
7101
|
}
|
|
7102
7102
|
/**
|
|
7103
7103
|
* @description Checks whether an auction is fully executed.
|