feat: 添加获取交易所显示名称的功能,并在 MakerApp、OffsetMakerApp 和 TrendApp 中显示交易所名称

This commit is contained in:
discountry
2025-09-27 17:13:08 +08:00
parent 3ca0a96fbd
commit 151130dfc4
4 changed files with 34 additions and 15 deletions
+4
View File
@@ -20,6 +20,10 @@ export function resolveExchangeId(value?: string | null): SupportedExchangeId {
return "aster";
}
export function getExchangeDisplayName(id: SupportedExchangeId): string {
return id === "grvt" ? "GRVT" : "AsterDex";
}
export function createExchangeAdapter(options: ExchangeFactoryOptions): ExchangeAdapter {
const id = resolveExchangeId(options.exchange);
if (id === "grvt") {