diff --git a/.env.example b/.env.example index 7e351bb..c871b9f 100644 --- a/.env.example +++ b/.env.example @@ -1,29 +1,27 @@ -# LP TERMINAL — copy to `.env` in the REPO ROOT (next to package.json). -# Vite reads it via envDir/envPrefix (see vite.config.ts); the indexer reads -# `RPC` from the same file. Every key here is OPTIONAL — with no .env at all -# the app runs against the chain's public RPC and the public Kyber aggregator. +# LP TERMINAL — 复制到仓库根目录(与 package.json 同级)。 +# Vite 通过 envDir/envPrefix 读取(参见 vite.config.ts);索引器也从同一文件读取 RPC。 +# 此处所有键均为可选 —— 没有 .env 文件时,应用会使用链的公共 RPC 和公共 Kyber 聚合器。 -# Private JSON-RPC URL for Robinhood Chain (chainId 4663), e.g. a provider URL -# with its key path. SECRET: Vite BAKES this into the JS bundle, so set it only -# for personal/local builds. A build you serve publicly must leave RPC unset — -# it then reads through same-origin /rpc, or falls back to the public RPC. -# Unset -> https://rpc.mainnet.chain.robinhood.com (keyless, slower). +# Robinhood Chain(chainId 4663)的私有 JSON-RPC URL,例如带密钥路径的 provider URL。 +# 机密:Vite 会将其嵌入 JS 包,因此仅在个人/本地构建时设置。公开发布的构建必须留空 —— +# 留空时通过同源的 /rpc 读取,或回退到公共 RPC。 +# 未设置 -> https://rpc.mainnet.chain.robinhood.com(无需密钥,较慢)。 RPC= -# KyberSwap aggregator base. Absolute URL = browser calls Kyber directly. -# A path like /kyber = route through your own same-origin reverse proxy. +# KyberSwap 聚合器基础 URL。绝对 URL = 浏览器直接调用 Kyber。 +# 路径如 /kyber = 通过你自己的同源反向代理路由。 KYBERSWAP_AGGREGATOR_API_BASE_URL=https://aggregator-api.kyberswap.com KYBERSWAP_CHAIN=robinhood -# WHITELIST: the only address swap calldata is ever sent to. The app hard-fails -# a quote whose routerAddress differs from this. Change only if Kyber migrates. +# 白名单:swap calldata 永远只发送到该地址。应用的硬校验会拒绝 routerAddress 不同的报价。 +# 仅在 Kyber 迁移时修改。 KYBERSWAP_ROUTER_ADDRESS=0x6131B5fae19EA4f9D964eAc0408E4408b66337b5 -# Optional platform fee on Kyber swaps, charged on the output token and paid by -# the Kyber router. BOTH must be set to activate; leave blank for no fee. +# 可选的 Kyber swap 平台手续费,按输出代币收取,由 Kyber 路由器支付。 +# 两者必须同时设置才会激活;留空则无手续费。 # KYBERSWAP_FEE_BPS=10 # KYBERSWAP_FEE_RECEIVER=0x... -# Optional: only WalletConnect QR pairing needs this. Injected wallets -# (MetaMask / Rabby / OKX) work without it. Get one at cloud.walletconnect.com +# 可选:仅 WalletConnect QR 配对需要。注入式钱包(MetaMask / Rabby / OKX)无需此配置。 +# 前往 cloud.walletconnect.com 获取。 # VITE_WALLETCONNECT_PROJECT_ID=