ColettoG commited on
Commit
25baca9
·
1 Parent(s): 2ecfafe

add: more available tokens

Browse files
Files changed (1) hide show
  1. src/agents/swap/config.py +83 -6
src/agents/swap/config.py CHANGED
@@ -13,18 +13,63 @@ class SwapConfig:
13
  "avalanche": {
14
  "AVAX",
15
  "WAVAX",
 
16
  "USDC",
17
  "USDT",
18
- "DAI",
19
  "BTC.B",
 
 
20
  },
21
  "ethereum": {
22
  "ETH",
23
  "WETH",
24
  "USDC",
25
  "USDT",
26
- "DAI",
27
  "WBTC",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  },
29
  }
30
 
@@ -34,6 +79,17 @@ class SwapConfig:
34
  "avalanche": "avalanche",
35
  "ethereum": "ethereum",
36
  "eth": "ethereum",
 
 
 
 
 
 
 
 
 
 
 
37
  }
38
 
39
  _TOKEN_ALIASES: Dict[str, str] = {
@@ -47,14 +103,35 @@ class SwapConfig:
47
  "wbtc": "WBTC",
48
  "eth": "ETH",
49
  "weth": "WETH",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
 
52
  # Optional allow list of directional routes (canonical network names).
53
  _SUPPORTED_ROUTES: Set[Tuple[str, str]] = {
54
- ("avalanche", "ethereum"),
55
- ("ethereum", "avalanche"),
56
- ("avalanche", "avalanche"),
57
- ("ethereum", "ethereum"),
58
  }
59
 
60
  # ---------- Public helpers ----------
 
13
  "avalanche": {
14
  "AVAX",
15
  "WAVAX",
16
+ "UNI",
17
  "USDC",
18
  "USDT",
19
+ "AAVE",
20
  "BTC.B",
21
+ "JOE",
22
+ "MIM",
23
  },
24
  "ethereum": {
25
  "ETH",
26
  "WETH",
27
  "USDC",
28
  "USDT",
 
29
  "WBTC",
30
+ "AAVE",
31
+ "UNI",
32
+ "LINK",
33
+ "LDO",
34
+ "USDE",
35
+ "DAI",
36
+ },
37
+ "binance-smart-chain": {
38
+ "USDT",
39
+ "USDC",
40
+ "CAKE",
41
+ "ADA",
42
+ "DOGE",
43
+ "XRP",
44
+ "DOT",
45
+ "TUSD",
46
+ },
47
+ "polygon": {
48
+ "USDT",
49
+ "USDC",
50
+ "WETH",
51
+ "DAI",
52
+ "QUICK",
53
+ "AAVE",
54
+ "SAND",
55
+ },
56
+ "arbitrum": {
57
+ "ARB",
58
+ "USDT",
59
+ "USDC",
60
+ "ETH",
61
+ "GMX",
62
+ },
63
+ "base": {
64
+ "USDC",
65
+ "ETH",
66
+ "CBBTC",
67
+ "AERO",
68
+ },
69
+ "optimism": {
70
+ "USDC",
71
+ "USDT",
72
+ "OP",
73
  },
74
  }
75
 
 
79
  "avalanche": "avalanche",
80
  "ethereum": "ethereum",
81
  "eth": "ethereum",
82
+ "ethereum mainnet": "ethereum",
83
+ "binance smart chain": "binance-smart-chain",
84
+ "binance-smart-chain": "binance-smart-chain",
85
+ "bsc": "binance-smart-chain",
86
+ "bnb": "binance-smart-chain",
87
+ "polygon": "polygon",
88
+ "matic": "polygon",
89
+ "arbitrum": "arbitrum",
90
+ "arbitrum one": "arbitrum",
91
+ "base": "base",
92
+ "optimism": "optimism",
93
  }
94
 
95
  _TOKEN_ALIASES: Dict[str, str] = {
 
103
  "wbtc": "WBTC",
104
  "eth": "ETH",
105
  "weth": "WETH",
106
+ "uni": "UNI",
107
+ "aave": "AAVE",
108
+ "joe": "JOE",
109
+ "mim": "MIM",
110
+ "link": "LINK",
111
+ "chainlink": "LINK",
112
+ "ldo": "LDO",
113
+ "usde": "USDE",
114
+ "cake": "CAKE",
115
+ "ada": "ADA",
116
+ "doge": "DOGE",
117
+ "xrp": "XRP",
118
+ "dot": "DOT",
119
+ "tusd": "TUSD",
120
+ "quick": "QUICK",
121
+ "sand": "SAND",
122
+ "arb": "ARB",
123
+ "gmx": "GMX",
124
+ "cbbtc": "CBBTC",
125
+ "cb-btc": "CBBTC",
126
+ "aero": "AERO",
127
+ "op": "OP",
128
  }
129
 
130
  # Optional allow list of directional routes (canonical network names).
131
  _SUPPORTED_ROUTES: Set[Tuple[str, str]] = {
132
+ (src, dst)
133
+ for src in _NETWORK_TOKENS.keys()
134
+ for dst in _NETWORK_TOKENS.keys()
 
135
  }
136
 
137
  # ---------- Public helpers ----------