@masterpeach/market-sdk 0.2.0-beta.20261002.1 → 0.2.0-beta.20261002.2
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14859,7 +14859,7 @@ function createMarketWriteActions(publicClient, walletClient, chain, preflight =
|
|
|
14859
14859
|
"currency",
|
|
14860
14860
|
"Native currency does not support approval."
|
|
14861
14861
|
);
|
|
14862
|
-
assertMarketUint(params.amount, "amount",
|
|
14862
|
+
assertMarketUint(params.amount, "amount", 256);
|
|
14863
14863
|
const live = await account();
|
|
14864
14864
|
return prepare({
|
|
14865
14865
|
action: "approve",
|
|
@@ -15063,7 +15063,7 @@ function createMarketWriteActions(publicClient, walletClient, chain, preflight =
|
|
|
15063
15063
|
const config = requireMarketSwap(context);
|
|
15064
15064
|
if ((0, import_viem19.isAddressEqual)(tokenIn, import_viem19.zeroAddress))
|
|
15065
15065
|
throw new InvalidMarketConfigError("token", "Native input needs no approval.");
|
|
15066
|
-
assertMarketUint(params.amount, "amount",
|
|
15066
|
+
assertMarketUint(params.amount, "amount", 256);
|
|
15067
15067
|
return prepare({
|
|
15068
15068
|
action: "swapTokenApproval",
|
|
15069
15069
|
key,
|
|
@@ -15113,7 +15113,7 @@ function createMarketWriteActions(publicClient, walletClient, chain, preflight =
|
|
|
15113
15113
|
"currency",
|
|
15114
15114
|
"Native currency does not support approval."
|
|
15115
15115
|
);
|
|
15116
|
-
assertMarketUint(params.amount, "amount",
|
|
15116
|
+
assertMarketUint(params.amount, "amount", 256);
|
|
15117
15117
|
const live = await account();
|
|
15118
15118
|
return prepare({
|
|
15119
15119
|
action: "zapApproval",
|