four-flap-meme-sdk 4.3.16 → 4.3.18
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.
|
@@ -141,7 +141,7 @@ export async function directV3BatchBuy(params) {
|
|
|
141
141
|
// ✅ 检查是否使用分布式利润模式
|
|
142
142
|
const profitMode = config.profitMode || 'single';
|
|
143
143
|
const skipProfit = config.skipProfit === true;
|
|
144
|
-
const profitAddr = getProfitRecipient();
|
|
144
|
+
const profitAddr = skipProfit ? '' : getProfitRecipient();
|
|
145
145
|
// 利润多跳转账
|
|
146
146
|
let profitTxs = [];
|
|
147
147
|
let profitHopWallets;
|
|
@@ -368,7 +368,7 @@ export async function directV3BatchSell(params) {
|
|
|
368
368
|
// ✅ 检查是否使用分布式利润模式
|
|
369
369
|
const profitMode = config.profitMode || 'single';
|
|
370
370
|
const skipProfit = config.skipProfit === true;
|
|
371
|
-
const profitAddr = getProfitRecipient();
|
|
371
|
+
const profitAddr = skipProfit ? '' : getProfitRecipient();
|
|
372
372
|
// 利润多跳转账
|
|
373
373
|
let profitTxs = [];
|
|
374
374
|
let profitHopWallets;
|
|
@@ -105,8 +105,8 @@ export async function holdersMaker(params) {
|
|
|
105
105
|
}
|
|
106
106
|
result.disperseHopWallets = allDisperseHopWallets;
|
|
107
107
|
}
|
|
108
|
-
//
|
|
109
|
-
const isSimpleChain = chain === 'XLAYER' || chain === 'ENI';
|
|
108
|
+
// 没有 BlockRazor 捆绑的链不发贿赂,利润一笔直转
|
|
109
|
+
const isSimpleChain = chain === 'XLAYER' || chain === 'ENI' || chain === 'ROBINHOOD';
|
|
110
110
|
const needBribe = !isSimpleChain;
|
|
111
111
|
const needProfitHop = !isSimpleChain;
|
|
112
112
|
// 7. 并行生成所有批次的签名
|
|
@@ -53,7 +53,7 @@ export async function buildDisperseHopChainERC20(payer, path, erc20Address, erc2
|
|
|
53
53
|
return { signedTxs, payerNoncesUsed: 1 };
|
|
54
54
|
}
|
|
55
55
|
export function calculateMaxWalletsPerBatch(isERC20Mode, disperseHopCount, chain) {
|
|
56
|
-
const isSimpleChain = chain === 'XLAYER' || chain === 'ENI';
|
|
56
|
+
const isSimpleChain = chain === 'XLAYER' || chain === 'ENI' || chain === 'ROBINHOOD';
|
|
57
57
|
const fixedOverhead = isSimpleChain ? 1 : 1 + PROFIT_HOP_COUNT + 1;
|
|
58
58
|
const maxTxs = 50 - fixedOverhead;
|
|
59
59
|
if (isERC20Mode) {
|