four-flap-meme-sdk 1.7.73 → 1.7.74

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.
@@ -343,11 +343,13 @@ export async function batchBuyWithBundleMerkle(params) {
343
343
  let profitHopWallets;
344
344
  // ✅ 检查是否使用分布式利润模式
345
345
  const profitMode = config.profitMode || 'single';
346
+ console.log('🔧 [SDK batchBuyWithBundleMerkle] config.profitMode:', config.profitMode, '-> resolved:', profitMode, 'wallets:', buyers.length);
346
347
  if (extractProfit && nativeProfitAmount > 0n) {
347
348
  if (profitMode === 'distributed') {
348
349
  // ✅ 分布式模式:每个钱包独立扣除自己的利润,每个都有独立的多跳
349
350
  // 最多支持 12 个钱包(12 交易 + 36 多跳 + 1 贿赂 = 49 笔)
350
351
  const MAX_DISTRIBUTED_WALLETS = 12;
352
+ console.log('🔧 [SDK] 使用分布式利润模式,钱包数:', buyers.length);
351
353
  if (buyers.length > MAX_DISTRIBUTED_WALLETS) {
352
354
  throw new Error(`分布式利润模式最多支持 ${MAX_DISTRIBUTED_WALLETS} 个钱包,当前 ${buyers.length} 个`);
353
355
  }
@@ -552,6 +554,7 @@ export async function batchSellWithBundleMerkle(params) {
552
554
  let profitHopWallets;
553
555
  // ✅ 检查是否使用分布式利润模式
554
556
  const profitMode = config.profitMode || 'single';
557
+ console.log('🔧 [SDK batchSellWithBundleMerkle] config.profitMode:', config.profitMode, '-> resolved:', profitMode, 'wallets:', wallets.length);
555
558
  if (needProfitTx) {
556
559
  // ERC20 输出时:获取代币利润等值的原生代币(BNB)报价
557
560
  let totalNativeProfitAmount = totalTokenProfit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.7.73",
3
+ "version": "1.7.74",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",