diff --git a/.env.example b/.env.example index 86967e8..f3e3e9b 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ NET_ID=1 -HTTP_RPC_URL=https://mainnet.infura.io +HTTP_RPC_URL=https://api.securerpc.com/v1 # ORACLE_RPC_URL should always point to the mainnet -ORACLE_RPC_URL=https://mainnet.infura.io +ORACLE_RPC_URL=https://api.securerpc.com/v1 REDIS_URL=redis://127.0.0.1:6379 # DNS settings @@ -11,8 +11,8 @@ APP_PORT=8000 # without 0x prefix PRIVATE_KEY= -# 0.05 means 0.05% -REGULAR_TORNADO_WITHDRAW_FEE=0.05 +# 0.1 means 0.1%, we recommend 0.1 for sidechains and 0.4 for mainnet +REGULAR_TORNADO_WITHDRAW_FEE=0.1 REWARD_ACCOUNT=0x... CONFIRMATIONS=4 diff --git a/src/config.ts b/src/config.ts index 6a0ea65..a7d4c9a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -12,8 +12,8 @@ export const rpcUrl = process.env.HTTP_RPC_URL; export const CONFIRMATIONS = Number(process.env.CONFIRMATIONS ?? 4); export const MAX_GAS_PRICE = Number(process.env.MAX_GAS_PRICE ?? 1000); export const BASE_FEE_RESERVE_PERCENTAGE = Number(process.env.BASE_FEE_RESERVE_PERCENTAGE ?? 25); -export const mainnetRpcUrl = process.env.MAINNET_RPC_URL || process.env.ORACLE_RPC_URL || 'https://mainnet.infura.io/'; -export const oracleRpcUrl = process.env.ORACLE_RPC_URL || 'https://mainnet.infura.io/'; +export const mainnetRpcUrl = process.env.MAINNET_RPC_URL || process.env.ORACLE_RPC_URL || 'https://api.securerpc.com/v1'; +export const oracleRpcUrl = process.env.ORACLE_RPC_URL || 'https://api.securerpc.com/v1'; export const offchainOracleAddress = '0x07D91f5fb9Bf7798734C3f606dB065549F6893bb'; export const multiCallAddress = '0xda3c19c6fe954576707fa24695efb830d9cca1ca'; export const privateKey = process.env.PRIVATE_KEY;