four-flap-meme-sdk 1.4.99 → 1.5.1
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.
|
@@ -437,8 +437,12 @@ export async function flapBundleCreateToDex(params) {
|
|
|
437
437
|
// ✅ 使用动态 Router 地址
|
|
438
438
|
const smartRouter = dexPoolType === 'v3' ? chainConfig.v3Router : chainConfig.v2Router;
|
|
439
439
|
const wrappedNative = chainConfig.wrappedNative;
|
|
440
|
-
// ✅ 根据 quoteToken
|
|
441
|
-
|
|
440
|
+
// ✅ 根据 quoteToken 强制选择 V3 费率(参考 Flap 官方配置)
|
|
441
|
+
// Flap 合约在毕业时创建的 V3 池子费率由 quoteToken 决定:
|
|
442
|
+
// - BNB (原生代币) → 0.25% (2500)
|
|
443
|
+
// - USD1 等稳定币 → 0.01% (100)
|
|
444
|
+
// 即使传入了 lpFeeProfile,Flap 合约也可能忽略,所以这里强制匹配
|
|
445
|
+
const actualV3Fee = useNativeToken ? DEFAULT_V3_FEE : USD1_V3_FEE;
|
|
442
446
|
// ✅ ERC20: 先构建 approve 交易
|
|
443
447
|
if (!useNativeToken) {
|
|
444
448
|
const approveNonce = noncesMap.get(addr);
|