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
- // 发币+捆绑买:默认不刮利润,避免跟买缩水与 Dev 钱包多 3 笔多跳导致 BlockRazor 模拟失败
80
- const extractProfit = config.extractProfitOnLaunch === true ? shouldExtractProfit(config) : false;
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
- * 发币+捆绑买是否刮利润(默认 false)。
60
- * true 时跟买金额会缩水并可能追加利润多跳,易导致 BlockRazor 捆绑模拟失败。
59
+ * 发币+捆绑买是否刮利润(默认 true,与 emitservice 提交校验对齐)。
60
+ * 设为 false 时不追加利润多跳,需后端允许末笔为 Portal 买入。
61
61
  */
62
62
  extractProfitOnLaunch?: boolean;
63
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",