-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
180 lines (145 loc) · 5.66 KB
/
.env.example
File metadata and controls
180 lines (145 loc) · 5.66 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# RPCs
<<<<<<< HEAD
RPC_ARBITRUM=
RPC_POLYGON=
# Deploy (Foundry)
PRIVATE_KEY=
TREASURY=0xYourExodusChainAddress
CHAIN=arbitrum # or polygon
# Keeper (Node)
RPC=
PRIV_KEY=
EXECUTOR=0xDeployedExecutorAddress
=======
RPC_ARBITRUM=https://arb1.arbitrum.io/rpc
RPC_POLYGON=https://polygon-rpc.com
# Deploy (Foundry)
PRIVATE_KEY=
TREASURY=0x37FbEBff59ED5C061dad9A9315B31e4DE67A3F32
CHAIN=arbitrum # or polygon
# ========================================
# WALLET CONFIGURATION
# ========================================
# Gas Fee Wallets (MetaMask - Private Keys Required)
# These wallets pay for transaction gas fees and must have private keys
GAS_WALLETS=pk1,pk2,pk3 # Comma-separated private keys for gas payments
PRIV_KEY= # Primary gas wallet private key (MetaMask)
# Gas Wallet Addresses (Optional - for documentation/monitoring)
# These are automatically derived from the private keys above
GAS_WALLET_ADDRESSES=0x...,0x...,0x... # Optional: Corresponding addresses for monitoring
PRIMARY_GAS_ADDRESS=0x... # Optional: Address derived from PRIV_KEY
# Profit Treasury Wallet (Exodus - Address Only, NO Private Key)
# This is the destination address where profits are sent
# NO private key needed - this is just a receiving address
PROFIT_TREASURY_ADDRESS=0x37FbEBff59ED5C061dad9A9315B31e4DE67A3F32 # Replace with your Exodus wallet address
TREASURY_WALLET_TYPE=exodus # For documentation purposes
# WALLET SECURITY NOTES:
# - Gas wallets (MetaMask): Need private keys for transaction signing
# - Treasury wallet (Exodus): Only needs address - profits are sent here
# - Never share private keys or commit them to version control
# - Use Azure Key Vault for production private key storage
# - Treasury address should be a secure, offline wallet (like Exodus)
# Smart Contract Configuration
EXECUTOR=0xDeployedExecutorAddress
# ========================================
# TRADING PARAMETERS
# ========================================
# Network RPC Configuration
RPC= # Set to RPC_ARBITRUM (primary) or RPC_POLYGON (alternative)
# Token Configuration
>>>>>>> fix/ci-oidc-on-origin
ASSET=0x... # e.g., USDC (chain-specific)
DECIMALS=6 # 6 for USDC, 18 for WETH, etc.
V3_IN=0x... # tokenIn for v3 leg
V3_OUT=0x... # tokenOut for v3 leg
<<<<<<< HEAD
QUOTER=0x61fFE014bA17989E743c5F6cB21bF9697530B21e # UniV3 QuoterV2 (Arbitrum/Polygon share address on many deployments; verify)
V2_ROUTER=0x... # Sushi (Arb) or QuickSwap (Polygon)
V3_FEE=500
MIN_EDGE_BPS=25
SIZES=5000,10000,20000,40000,80000
=======
# Trading Configuration
QUOTER=0x61fFE014bA17989E743c5F6cB21bF9697530B21e # UniV3 QuoterV2 (Arbitrum/Polygon)
V2_ROUTER=0x... # Network-specific (see DEX configs below)
V3_FEE=500
MIN_EDGE_BPS=25
SIZES=5000,10000,20000,40000,80000
# ========================================
# MULTI-DEX CONFIGURATION
# ========================================
# Uniswap V3 (Default Enabled)
ENABLE_UNISWAP_V3=true
# QUOTER already set above - same address on Arbitrum/Polygon
# Uniswap V2 (Default Enabled)
ENABLE_UNISWAP_V2=true
# V2_ROUTER set per network below
# ========================================
# ARBITRUM-SPECIFIC DEX ADDRESSES
# ========================================
# SushiSwap on Arbitrum
ENABLE_SUSHISWAP=true
SUSHI_ROUTER_ARBITRUM=0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506
# Camelot DEX (Arbitrum Native)
ENABLE_CAMELOT=true
CAMELOT_ROUTER_ARBITRUM=0xc873fEcbd354f5A56E00E710B90EF4201db2448d
# Balancer V2 (Arbitrum)
ENABLE_BALANCER=true
BALANCER_VAULT_ARBITRUM=0xBA12222222228d8Ba445958a75a0704d566BF2C8
# Curve Finance (Arbitrum)
ENABLE_CURVE=true
CURVE_ROUTER_ARBITRUM=0x7544Fe3d184b6B55D6B36c3FCA1157eE0Ba30287
# ========================================
# POLYGON-SPECIFIC DEX ADDRESSES
# ========================================
# QuickSwap (Polygon Native)
ENABLE_QUICKSWAP=true
QUICKSWAP_ROUTER_POLYGON=0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff
# SushiSwap on Polygon
SUSHI_ROUTER_POLYGON=0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506
# Balancer V2 (Polygon)
BALANCER_VAULT_POLYGON=0xBA12222222228d8Ba445958a75a0704d566BF2C8
# Curve Finance (Polygon)
CURVE_ROUTER_POLYGON=0x094d12e5b541784701FD8d65F11fc0598FBC6332
# DODO (Polygon)
ENABLE_DODO=true
DODO_PROXY_POLYGON=0xa222e6a71D1A1Dd5F279805fbe38d5329C1d0e70
# ========================================
# NETWORK-SPECIFIC TOKEN ADDRESSES
# ========================================
# ARBITRUM TOKENS
USDC_ARBITRUM=0xA0b86a33E6441b8bBDBB9F6a8fb3eAAF7A03E8a0
USDT_ARBITRUM=0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9
WETH_ARBITRUM=0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
ARB_ARBITRUM=0x912CE59144191C1204E64559FE8253a0e49E6548
# POLYGON TOKENS
USDC_POLYGON=0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
USDT_POLYGON=0xc2132D05D31c914a87C6611C10748AEb04B58e8F
WETH_POLYGON=0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619
WMATIC_POLYGON=0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
# ========================================
# ADVANCED DEX CONFIGURATION
# ========================================
# DEX Priority (lower = higher priority)
UNISWAP_V3_PRIORITY=1
UNISWAP_V2_PRIORITY=2
SUSHISWAP_PRIORITY=3
QUICKSWAP_PRIORITY=3
CAMELOT_PRIORITY=4
BALANCER_PRIORITY=5
CURVE_PRIORITY=6
DODO_PRIORITY=7
# Fee Tiers for V3-style DEXs
V3_FEES=100,500,3000,10000
CAMELOT_FEES=100,500,3000,10000
# Minimum Liquidity Thresholds (USD)
MIN_LIQUIDITY_UNISWAP=100000
MIN_LIQUIDITY_SUSHISWAP=50000
MIN_LIQUIDITY_QUICKSWAP=25000
MIN_LIQUIDITY_CAMELOT=10000
MIN_LIQUIDITY_CURVE=50000
# Slippage Protection (basis points)
MAX_SLIPPAGE_BPS=100 # 1%
DEX_SPECIFIC_SLIPPAGE_CURVE=50 # 0.5% for Curve (better for stables)
DEX_SPECIFIC_SLIPPAGE_BALANCER=75 # 0.75% for Balancer
>>>>>>> fix/ci-oidc-on-origin