mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-01 01:51:19 +08:00
- Redesign dashboard into a cream-paper + vermilion IBM Plex Mono terminal (live L2 order book, cost/liq map, WS K-line, signal matrix, orchestration topology, risk radar, execution log, current positions, equity curve) - Convert all user-facing UI and backend strings/prompts from Chinese to English (multi-language retained, default English) - Add /api/statistics/full endpoint + full-stats frontend wiring - Fix Autopilot launch: reuse the existing trader instead of creating duplicates (eliminates repeat ~35s create cost and stale-trader 404s); launch sends 5m scan interval - Fix unreadable toasts: cream theme with high-contrast text + per-type accent - Silence background dashboard polls (getTraderConfig) to stop error-toast spam
19 lines
681 B
Go
19 lines
681 B
Go
package hyperliquid
|
|
|
|
import "testing"
|
|
|
|
func TestDefaultBuilderIsHardcodedToApprovedFeeTier(t *testing.T) {
|
|
if defaultBuilder == nil {
|
|
t.Fatal("defaultBuilder is nil")
|
|
}
|
|
if got := defaultBuilder.Builder; got != "0x891dc6f05ad47a3c1a05da55e7a7517971faaf0d" {
|
|
t.Fatalf("defaultBuilder.Builder = %s, want hardcoded NOFX builder", got)
|
|
}
|
|
// Fee is in tenths of a basis point: 50 = 5 bps = 0.05% (5 per 10,000).
|
|
// Must match defaultHyperliquidBuilderMaxFee on the API side and the
|
|
// frontend HYPERLIQUID_BUILDER_MAX_FEE constant the user signs against.
|
|
if got := defaultBuilder.Fee; got != 50 {
|
|
t.Fatalf("defaultBuilder.Fee = %d, want hardcoded 50 for 0.05%%", got)
|
|
}
|
|
}
|