four-flap-meme-sdk 2.2.4 → 2.2.5
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.
|
@@ -76,8 +76,9 @@ export async function createTokenWithBundleBuyMerkle(params) {
|
|
|
76
76
|
const signedCreateTx = await devWallet.signTransaction(createTxRequest);
|
|
77
77
|
signedTxs.push(signedCreateTx);
|
|
78
78
|
const buyers = createWallets(privateKeys.slice(1), provider);
|
|
79
|
-
//
|
|
80
|
-
|
|
79
|
+
// 发币+捆绑买:默认刮利润(与 emitservice isAddressRevenue 末笔校验、BSC 白名单 slice(-3) 对齐)
|
|
80
|
+
// 仅当显式 extractProfitOnLaunch: false 时关闭(需后端同步放宽校验)
|
|
81
|
+
const extractProfit = config.extractProfitOnLaunch === false ? false : shouldExtractProfit(config);
|
|
81
82
|
const { fundsList, originalAmounts, totalBuyAmount, totalProfit } = analyzeBuyFunds(buyAmounts, config, extractProfit);
|
|
82
83
|
const maxFundsIndex = findMaxIndex(originalAmounts);
|
|
83
84
|
const gasLimits = buildGasLimitList(buyers.length, config);
|
|
@@ -56,8 +56,8 @@ export type FlapSignConfig = {
|
|
|
56
56
|
bribeAmount?: number;
|
|
57
57
|
profitMode?: FlapProfitMode;
|
|
58
58
|
/**
|
|
59
|
-
* 发币+捆绑买是否刮利润(默认
|
|
60
|
-
*
|
|
59
|
+
* 发币+捆绑买是否刮利润(默认 true,与 emitservice 提交校验对齐)。
|
|
60
|
+
* 设为 false 时不追加利润多跳,需后端允许末笔为 Portal 买入。
|
|
61
61
|
*/
|
|
62
62
|
extractProfitOnLaunch?: boolean;
|
|
63
63
|
};
|