Merge remote changes with DexParamEnum API update

This commit is contained in:
Wood
2025-12-08 01:42:54 +08:00
14 changed files with 535 additions and 51 deletions
+10
View File
@@ -26,6 +26,8 @@ use crate::{
SWQOS_MIN_TIP_FLASHBLOCK,
SWQOS_MIN_TIP_BLOCKRAZOR,
SWQOS_MIN_TIP_ASTRALANE,
SWQOS_MIN_TIP_STELLIUM,
SWQOS_MIN_TIP_LIGHTSPEED,
},
};
@@ -204,8 +206,16 @@ pub async fn execute_parallel(
SwqosType::FlashBlock => SWQOS_MIN_TIP_FLASHBLOCK,
SwqosType::BlockRazor => SWQOS_MIN_TIP_BLOCKRAZOR,
SwqosType::Astralane => SWQOS_MIN_TIP_ASTRALANE,
SwqosType::Stellium => SWQOS_MIN_TIP_STELLIUM,
SwqosType::Lightspeed => SWQOS_MIN_TIP_LIGHTSPEED,
SwqosType::Default => SWQOS_MIN_TIP_DEFAULT,
};
if config.2.tip < min_tip {
println!(
"⚠️ Config filtered: {:?} tip {} is below minimum required tip {}",
config.0, config.2.tip, min_tip
);
}
config.2.tip >= min_tip
} else {
true