mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 00:38:07 +00:00
feat: 优化 Lighter 适配器的订单过期逻辑,简化市场订单的即时过期处理
This commit is contained in:
+1
-6
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user