four-flap-meme-sdk 1.5.67 → 1.5.68
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/xlayer/bundle.js +3 -4
- package/package.json +1 -1
package/dist/xlayer/bundle.js
CHANGED
|
@@ -1469,14 +1469,13 @@ export class BundleExecutor {
|
|
|
1469
1469
|
// ✅ 并行构建和签名所有外盘买入 UserOps
|
|
1470
1470
|
const signedDexBuyOps = await mapWithConcurrency(dexBuyData, 5, async (data) => {
|
|
1471
1471
|
const { wallet, info, buyWei } = data;
|
|
1472
|
-
//
|
|
1473
|
-
const approveData = encodeApproveCall(POTATOSWAP_V2_ROUTER);
|
|
1472
|
+
// ✅ 外盘买入:用 OKB 买代币,不需要 approve,直接调用 Router 的 swap 方法
|
|
1474
1473
|
const swapData = encodeSwapExactETHForTokensSupportingFee(0n, [WOKB, tokenAddress], info.sender, deadline);
|
|
1475
|
-
const
|
|
1474
|
+
const dexBuyCallData = encodeExecute(POTATOSWAP_V2_ROUTER, buyWei, swapData);
|
|
1476
1475
|
const dexBuyOpRes = await aaManager.buildUserOpWithFixedGas({
|
|
1477
1476
|
ownerWallet: wallet,
|
|
1478
1477
|
sender: info.sender,
|
|
1479
|
-
callData:
|
|
1478
|
+
callData: dexBuyCallData,
|
|
1480
1479
|
nonce: nonceMap.next(info.sender),
|
|
1481
1480
|
initCode: '0x', // HandleOps1 已部署
|
|
1482
1481
|
deployed: true,
|