Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
91 lines (81 loc) · 3.14 KB
/
Copy path.env.example
File metadata and controls
91 lines (81 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Tycho API settings
TYCHO_API_KEY=your_api_key_here
# Runtime chain selection (required): must match a chain in simulator-manifest.toml
CHAIN_ID=1
# Required for the simulator service: HTTP base URL for the Tycho broadcaster.
# Local helpers use this loopback URL to start the broadcaster on PORT=3001 before the simulator.
TYCHO_BROADCASTER_URL=http://127.0.0.1:3001
# Hosted Tycho endpoint is selected automatically from CHAIN_ID.
# Optional JSON-RPC endpoint matching CHAIN_ID, used for on-chain helpers like ERC4626 deposits
RPC_URL=
# Optional Base-specific JSON-RPC endpoint. Used as RPC_URL when CHAIN_ID=8453 and RPC_URL was not passed explicitly.
BASE_RPC_URL=
# TVL thresholds are denominated in the chain's native token
TVL_THRESHOLD=10
# Optional: ratio for keep/remove threshold (remove = TVL_THRESHOLD * TVL_KEEP_RATIO)
TVL_KEEP_RATIO=0.2
# Dynamic slippage defaults
MIN_DYNAMIC_SLIPPAGE_BPS=1
MAX_DYNAMIC_SLIPPAGE_BPS=200
UTILIZATION_COEFFICIENT_BPS=60
SENSITIVITY_COEFFICIENT_BPS=2500
SOFT_LADDER_UTILIZATION_CAP_BPS=3500
CUMULATIVE_DEGRADATION_COEFFICIENT_BPS=300
SATURATION_RAMP_START_SLIPPAGE_BPS=45
# Server settings
PORT=3000
HOST=127.0.0.1
# Broadcaster service settings
# 8 MiB cap per serialized snapshot payload; keeps HTTP chunks large enough for throughput
# without making retries expensive when one chunk fails.
BROADCASTER_SNAPSHOT_MAX_PAYLOAD_BYTES=8388608
BROADCASTER_HEARTBEAT_INTERVAL_SECS=5
BROADCASTER_TOKEN_MIN_QUALITY=0
BROADCASTER_SNAPSHOT_SESSION_TTL_SECS=300
BROADCASTER_REDIS_URL=redis://127.0.0.1:6379/0
BROADCASTER_REDIS_STREAM_KEY=dsolver:broadcaster:local:1:events
BROADCASTER_REDIS_BLOCK_MS=5000
BROADCASTER_REDIS_READ_COUNT=128
BROADCASTER_REDIS_APPEND_RETRY_WINDOW_MS=5000
BROADCASTER_REDIS_MAXLEN=5000
# Logging settings
RUST_LOG=info
# Request timeout (milliseconds)
# Request-level guard applied at handler; router adds +250ms headroom
REQUEST_TIMEOUT_MS=4500
# Startup timeout for the full broadcaster token snapshot
TOKEN_SNAPSHOT_TIMEOUT_MS=125000
# Timeout for single-token refresh fallback when cache misses occur
TOKEN_REFRESH_TIMEOUT_MS=1000
# VM pool feeds (default true)
ENABLE_VM_POOLS=true
# RFQ pool feeds (default false). RFQ credentials below are only needed when enabled.
ENABLE_RFQ_POOLS=false
# Stream supervision defaults
STREAM_STALE_SECS=120
STREAM_MISSING_BLOCK_BURST=3
STREAM_MISSING_BLOCK_WINDOW_SECS=60
STREAM_ERROR_BURST=3
STREAM_ERROR_WINDOW_SECS=60
RESYNC_GRACE_SECS=60
STREAM_RESTART_BACKOFF_MIN_MS=500
STREAM_RESTART_BACKOFF_MAX_MS=30000
STREAM_RESTART_BACKOFF_JITTER_PCT=0.2
# Optional allocator purge (jemalloc)
# Defaults to enabled when unset (e.g. AWS deployments); set to 0 to disable.
STREAM_MEM_PURGE=0
# Optional memory snapshots
# Defaults to enabled when unset (e.g. AWS deployments); set to false to disable.
STREAM_MEM_LOG=false
STREAM_MEM_LOG_MIN_NEW_PAIRS=1000
STREAM_MEM_LOG_MIN_INTERVAL_SECS=60
# Emit CloudWatch Embedded Metric Format (EMF) lines for snapshots (Bytes gauges)
STREAM_MEM_LOG_EMF=true
# Startup aborts when RFQ is effectively enabled and a required provider credential pair is missing.
BEBOP_USER=
BEBOP_KEY=
HASHFLOW_USER=
HASHFLOW_KEY=
LIQUORICE_USER=
LIQUORICE_KEY=
HASHFLOW_FILENAME_CSV=