feat: 优化 Lighter 适配器的订单过期逻辑,简化市场订单的即时过期处理

This commit is contained in:
discountry
2025-10-03 15:35:45 +08:00
parent fcb83bd16b
commit 971a2a6adb
2 changed files with 4 additions and 11 deletions
+1 -6
View File
@@ -42,12 +42,7 @@ export function App() {
const copyright = useMemo(() => loadCopyrightFragments(), []);
const integrityOk = useMemo(() => verifyCopyrightIntegrity(), []);
const exchangeId = useMemo(() => resolveExchangeId(), []);
const strategies = useMemo(() => {
if (exchangeId === "lighter") {
return STRATEGIES.filter((s) => s.id !== "trend");
}
return STRATEGIES;
}, [exchangeId]);
const strategies = useMemo(() => STRATEGIES, []);
useInput(
(input, key) => {