@myx-trade/sdk 0.1.47 → 0.1.48
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1836,7 +1836,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1836
1836
|
// package.json
|
|
1837
1837
|
var package_default = {
|
|
1838
1838
|
name: "@myx-trade/sdk",
|
|
1839
|
-
version: "0.1.
|
|
1839
|
+
version: "0.1.48",
|
|
1840
1840
|
private: false,
|
|
1841
1841
|
publishConfig: {
|
|
1842
1842
|
access: "public"
|
|
@@ -10504,7 +10504,7 @@ var COMMON_LP_AMOUNT_DECIMALS = 18;
|
|
|
10504
10504
|
|
|
10505
10505
|
// src/common/tradingGas.ts
|
|
10506
10506
|
var bigintTradingGasToRatioCalculator = (gas, ratio) => {
|
|
10507
|
-
return gas * (0, import_ethers6.parseUnits)(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
|
|
10507
|
+
return BigInt(gas) * (0, import_ethers6.parseUnits)(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
|
|
10508
10508
|
};
|
|
10509
10509
|
var bigintTradingGasPriceWithRatio = async (chainId) => {
|
|
10510
10510
|
try {
|
|
@@ -10514,7 +10514,7 @@ var bigintTradingGasPriceWithRatio = async (chainId) => {
|
|
|
10514
10514
|
if (!gasPrice) {
|
|
10515
10515
|
throw new Error("Network Error");
|
|
10516
10516
|
}
|
|
10517
|
-
const gasPriceWithRatio = bigintTradingGasToRatioCalculator(gasPrice, chainInfo.gasPriceRatio);
|
|
10517
|
+
const gasPriceWithRatio = bigintTradingGasToRatioCalculator(BigInt(gasPrice), chainInfo.gasPriceRatio);
|
|
10518
10518
|
return {
|
|
10519
10519
|
gasPrice: gasPriceWithRatio
|
|
10520
10520
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1751,7 +1751,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1751
1751
|
// package.json
|
|
1752
1752
|
var package_default = {
|
|
1753
1753
|
name: "@myx-trade/sdk",
|
|
1754
|
-
version: "0.1.
|
|
1754
|
+
version: "0.1.48",
|
|
1755
1755
|
private: false,
|
|
1756
1756
|
publishConfig: {
|
|
1757
1757
|
access: "public"
|
|
@@ -10419,7 +10419,7 @@ var COMMON_LP_AMOUNT_DECIMALS = 18;
|
|
|
10419
10419
|
|
|
10420
10420
|
// src/common/tradingGas.ts
|
|
10421
10421
|
var bigintTradingGasToRatioCalculator = (gas, ratio) => {
|
|
10422
|
-
return gas * parseUnits3(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
|
|
10422
|
+
return BigInt(gas) * parseUnits3(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
|
|
10423
10423
|
};
|
|
10424
10424
|
var bigintTradingGasPriceWithRatio = async (chainId) => {
|
|
10425
10425
|
try {
|
|
@@ -10429,7 +10429,7 @@ var bigintTradingGasPriceWithRatio = async (chainId) => {
|
|
|
10429
10429
|
if (!gasPrice) {
|
|
10430
10430
|
throw new Error("Network Error");
|
|
10431
10431
|
}
|
|
10432
|
-
const gasPriceWithRatio = bigintTradingGasToRatioCalculator(gasPrice, chainInfo.gasPriceRatio);
|
|
10432
|
+
const gasPriceWithRatio = bigintTradingGasToRatioCalculator(BigInt(gasPrice), chainInfo.gasPriceRatio);
|
|
10433
10433
|
return {
|
|
10434
10434
|
gasPrice: gasPriceWithRatio
|
|
10435
10435
|
};
|