@myx-trade/sdk 0.1.239-beta.2 → 0.1.239-beta.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.
- package/dist/index.js +2 -11
- package/dist/index.mjs +2 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1834,7 +1834,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1834
1834
|
// package.json
|
|
1835
1835
|
var package_default = {
|
|
1836
1836
|
name: "@myx-trade/sdk",
|
|
1837
|
-
version: "0.1.239-beta.
|
|
1837
|
+
version: "0.1.239-beta.3",
|
|
1838
1838
|
private: false,
|
|
1839
1839
|
publishConfig: {
|
|
1840
1840
|
access: "public"
|
|
@@ -22111,16 +22111,7 @@ var Utils = class {
|
|
|
22111
22111
|
console.log("approveAuthorization: usdcContract-->", usdcContract);
|
|
22112
22112
|
const approveAmount = amount ?? import_ethers25.ethers.MaxUint256;
|
|
22113
22113
|
const spender = spenderAddress ?? getContractAddressByChainId(chainId).Account;
|
|
22114
|
-
const
|
|
22115
|
-
const _gasLimit = await usdcContract.approve.estimateGas(
|
|
22116
|
-
spender,
|
|
22117
|
-
approveAmount
|
|
22118
|
-
);
|
|
22119
|
-
const gasLimit = await this.getGasLimitByRatio(_gasLimit);
|
|
22120
|
-
const tx = await usdcContract.approve(spender, approveAmount, {
|
|
22121
|
-
gasLimit,
|
|
22122
|
-
gasPrice
|
|
22123
|
-
});
|
|
22114
|
+
const tx = await usdcContract.approve(spender, approveAmount);
|
|
22124
22115
|
await tx.wait();
|
|
22125
22116
|
return {
|
|
22126
22117
|
code: 0,
|
package/dist/index.mjs
CHANGED
|
@@ -1758,7 +1758,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1758
1758
|
// package.json
|
|
1759
1759
|
var package_default = {
|
|
1760
1760
|
name: "@myx-trade/sdk",
|
|
1761
|
-
version: "0.1.239-beta.
|
|
1761
|
+
version: "0.1.239-beta.3",
|
|
1762
1762
|
private: false,
|
|
1763
1763
|
publishConfig: {
|
|
1764
1764
|
access: "public"
|
|
@@ -22035,16 +22035,7 @@ var Utils = class {
|
|
|
22035
22035
|
console.log("approveAuthorization: usdcContract-->", usdcContract);
|
|
22036
22036
|
const approveAmount = amount ?? ethers7.MaxUint256;
|
|
22037
22037
|
const spender = spenderAddress ?? getContractAddressByChainId(chainId).Account;
|
|
22038
|
-
const
|
|
22039
|
-
const _gasLimit = await usdcContract.approve.estimateGas(
|
|
22040
|
-
spender,
|
|
22041
|
-
approveAmount
|
|
22042
|
-
);
|
|
22043
|
-
const gasLimit = await this.getGasLimitByRatio(_gasLimit);
|
|
22044
|
-
const tx = await usdcContract.approve(spender, approveAmount, {
|
|
22045
|
-
gasLimit,
|
|
22046
|
-
gasPrice
|
|
22047
|
-
});
|
|
22038
|
+
const tx = await usdcContract.approve(spender, approveAmount);
|
|
22048
22039
|
await tx.wait();
|
|
22049
22040
|
return {
|
|
22050
22041
|
code: 0,
|