four-flap-meme-sdk 1.6.21 → 1.6.22
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.
|
@@ -299,8 +299,8 @@ export async function buildTransfersWithProfit(params) {
|
|
|
299
299
|
const unsigned = [];
|
|
300
300
|
const opOwnerIndex = [];
|
|
301
301
|
// ✅ 第二步:构建 UserOps
|
|
302
|
-
//
|
|
303
|
-
//
|
|
302
|
+
// 每个钱包只转归集金额(扣除利润后)给目标地址,不转利润
|
|
303
|
+
// 利润保留在 AA 钱包或由其他机制处理(类似 BSC 的做法)
|
|
304
304
|
for (let idx = 0; idx < transferInfos.length; idx++) {
|
|
305
305
|
const info = transferInfos[idx];
|
|
306
306
|
const i = info.walletIndex;
|
|
@@ -311,7 +311,7 @@ export async function buildTransfersWithProfit(params) {
|
|
|
311
311
|
let callData;
|
|
312
312
|
let callGasLimit;
|
|
313
313
|
if (params.kind === 'native') {
|
|
314
|
-
// ✅ Native (OKB):只转 toWei,利润保留在 AA
|
|
314
|
+
// ✅ Native (OKB):只转 toWei,利润保留在 AA 钱包(用于后续 gas)
|
|
315
315
|
callData = encodeExecute(info.to, info.toWei, '0x');
|
|
316
316
|
callGasLimit = 120000n;
|
|
317
317
|
}
|