@curvefi/api 2.69.13 → 2.69.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,6 +44,7 @@ export const COINS_ETHEREUM = lowerCaseValues({
|
|
|
44
44
|
usdn: "0x674C6Ad92Fd080e4004b2312b45f796a192D27a0", // USDN
|
|
45
45
|
dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F", // DAI
|
|
46
46
|
usdc: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
|
|
47
|
+
syrupusdc: "0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b", // syrupUSDC
|
|
47
48
|
usdt: "0xdAC17F958D2ee523a2206206994597C13D831ec7", // USDT
|
|
48
49
|
susd: "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51", // sUSD
|
|
49
50
|
tusd: "0x0000000000085d4780B73119b644AE5ecd22b376", // TUSD
|
|
@@ -90,6 +91,8 @@ export const COINS_ETHEREUM = lowerCaseValues({
|
|
|
90
91
|
spell: "0x090185f2135308bad17527004364ebcc2d37e5f6", // SPELL
|
|
91
92
|
t: "0xCdF7028ceAB81fA0C6971208e83fa7872994beE5", // T
|
|
92
93
|
xaut: "0x68749665ff8d2d112fa859aa293f07a622782f38", // XAUt
|
|
94
|
+
zchf: "0xB58E61C3098d85632Df34EecfB899A1Ed80921cB", // ZCHF
|
|
95
|
+
svzchf: "0xE5F130253fF137f9917C0107659A4c5262abf6b0", // svZCHF
|
|
93
96
|
});
|
|
94
97
|
export const cTokensEthereum = [
|
|
95
98
|
'0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643', // cDAI
|
|
@@ -247,6 +247,68 @@ export function routeGraphWorker() {
|
|
|
247
247
|
tvl: Infinity,
|
|
248
248
|
}];
|
|
249
249
|
}
|
|
250
|
+
// svZCHF <-> ZCHF (Ethereum only)
|
|
251
|
+
if (chainId === 1) {
|
|
252
|
+
routerGraph[constants.COINS.zchf] = {};
|
|
253
|
+
routerGraph[constants.COINS.zchf][constants.COINS.svzchf] = [{
|
|
254
|
+
poolId: "svZCHF wrapper",
|
|
255
|
+
swapAddress: constants.COINS.svzchf,
|
|
256
|
+
inputCoinAddress: constants.COINS.zchf,
|
|
257
|
+
outputCoinAddress: constants.COINS.svzchf,
|
|
258
|
+
swapParams: [0, 1, 9, 0, 0],
|
|
259
|
+
poolAddress: constants.ZERO_ADDRESS,
|
|
260
|
+
basePool: constants.ZERO_ADDRESS,
|
|
261
|
+
baseToken: constants.ZERO_ADDRESS,
|
|
262
|
+
secondBasePool: constants.ZERO_ADDRESS,
|
|
263
|
+
secondBaseToken: constants.ZERO_ADDRESS,
|
|
264
|
+
tvl: Infinity,
|
|
265
|
+
}];
|
|
266
|
+
routerGraph[constants.COINS.svzchf] = {};
|
|
267
|
+
routerGraph[constants.COINS.svzchf][constants.COINS.zchf] = [{
|
|
268
|
+
poolId: "svZCHF wrapper",
|
|
269
|
+
swapAddress: constants.COINS.svzchf,
|
|
270
|
+
inputCoinAddress: constants.COINS.svzchf,
|
|
271
|
+
outputCoinAddress: constants.COINS.zchf,
|
|
272
|
+
swapParams: [1, 0, 9, 0, 0],
|
|
273
|
+
poolAddress: constants.ZERO_ADDRESS,
|
|
274
|
+
basePool: constants.ZERO_ADDRESS,
|
|
275
|
+
baseToken: constants.ZERO_ADDRESS,
|
|
276
|
+
secondBasePool: constants.ZERO_ADDRESS,
|
|
277
|
+
secondBaseToken: constants.ZERO_ADDRESS,
|
|
278
|
+
tvl: Infinity,
|
|
279
|
+
}];
|
|
280
|
+
}
|
|
281
|
+
// syrupUSDC <-> USDC (Ethereum only)
|
|
282
|
+
if (chainId === 1) {
|
|
283
|
+
routerGraph[constants.COINS.usdc] = {};
|
|
284
|
+
routerGraph[constants.COINS.usdc][constants.COINS.syrupusdc] = [{
|
|
285
|
+
poolId: "syrupUSDC wrapper",
|
|
286
|
+
swapAddress: constants.COINS.syrupusdc,
|
|
287
|
+
inputCoinAddress: constants.COINS.usdc,
|
|
288
|
+
outputCoinAddress: constants.COINS.syrupusdc,
|
|
289
|
+
swapParams: [0, 1, 9, 0, 0],
|
|
290
|
+
poolAddress: constants.ZERO_ADDRESS,
|
|
291
|
+
basePool: constants.ZERO_ADDRESS,
|
|
292
|
+
baseToken: constants.ZERO_ADDRESS,
|
|
293
|
+
secondBasePool: constants.ZERO_ADDRESS,
|
|
294
|
+
secondBaseToken: constants.ZERO_ADDRESS,
|
|
295
|
+
tvl: Infinity,
|
|
296
|
+
}];
|
|
297
|
+
routerGraph[constants.COINS.syrupusdc] = {};
|
|
298
|
+
routerGraph[constants.COINS.syrupusdc][constants.COINS.usdc] = [{
|
|
299
|
+
poolId: "syrupUSDC wrapper",
|
|
300
|
+
swapAddress: constants.COINS.syrupusdc,
|
|
301
|
+
inputCoinAddress: constants.COINS.syrupusdc,
|
|
302
|
+
outputCoinAddress: constants.COINS.usdc,
|
|
303
|
+
swapParams: [1, 0, 9, 0, 0],
|
|
304
|
+
poolAddress: constants.ZERO_ADDRESS,
|
|
305
|
+
basePool: constants.ZERO_ADDRESS,
|
|
306
|
+
baseToken: constants.ZERO_ADDRESS,
|
|
307
|
+
secondBasePool: constants.ZERO_ADDRESS,
|
|
308
|
+
secondBaseToken: constants.ZERO_ADDRESS,
|
|
309
|
+
tvl: Infinity,
|
|
310
|
+
}];
|
|
311
|
+
}
|
|
250
312
|
// USDe -> sUSDe (Ethereum only)
|
|
251
313
|
if (chainId === 1) {
|
|
252
314
|
routerGraph[constants.COINS.usde] = {};
|