@curvefi/api 2.69.16 → 2.69.17
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.
|
@@ -43,6 +43,7 @@ export const COINS_ETHEREUM = lowerCaseValues({
|
|
|
43
43
|
ust: "0xa47c8bf37f92abed4a126bda807a7b7498661acd", // UST
|
|
44
44
|
usdn: "0x674C6Ad92Fd080e4004b2312b45f796a192D27a0", // USDN
|
|
45
45
|
dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F", // DAI
|
|
46
|
+
sdai: "0x83F20F44975D03b1b09e64809B757c47f942BEeA", // sDAI
|
|
46
47
|
usdc: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
|
|
47
48
|
syrupusdc: "0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b", // syrupUSDC
|
|
48
49
|
usdt: "0xdAC17F958D2ee523a2206206994597C13D831ec7", // USDT
|
|
@@ -185,6 +185,37 @@ export function routeGraphWorker() {
|
|
|
185
185
|
tvl: Infinity,
|
|
186
186
|
}];
|
|
187
187
|
}
|
|
188
|
+
// sDAI <-> DAI (Ethereum only)
|
|
189
|
+
if (chainId === 1) {
|
|
190
|
+
routerGraph[constants.COINS.dai] = {};
|
|
191
|
+
routerGraph[constants.COINS.dai][constants.COINS.sdai] = [{
|
|
192
|
+
poolId: "sDAI wrapper",
|
|
193
|
+
swapAddress: constants.COINS.sdai,
|
|
194
|
+
inputCoinAddress: constants.COINS.dai,
|
|
195
|
+
outputCoinAddress: constants.COINS.sdai,
|
|
196
|
+
swapParams: [0, 1, 9, 0, 0],
|
|
197
|
+
poolAddress: constants.ZERO_ADDRESS,
|
|
198
|
+
basePool: constants.ZERO_ADDRESS,
|
|
199
|
+
baseToken: constants.ZERO_ADDRESS,
|
|
200
|
+
secondBasePool: constants.ZERO_ADDRESS,
|
|
201
|
+
secondBaseToken: constants.ZERO_ADDRESS,
|
|
202
|
+
tvl: Infinity,
|
|
203
|
+
}];
|
|
204
|
+
routerGraph[constants.COINS.sdai] = {};
|
|
205
|
+
routerGraph[constants.COINS.sdai][constants.COINS.dai] = [{
|
|
206
|
+
poolId: "sDAI wrapper",
|
|
207
|
+
swapAddress: constants.COINS.sdai,
|
|
208
|
+
inputCoinAddress: constants.COINS.sdai,
|
|
209
|
+
outputCoinAddress: constants.COINS.dai,
|
|
210
|
+
swapParams: [1, 0, 9, 0, 0],
|
|
211
|
+
poolAddress: constants.ZERO_ADDRESS,
|
|
212
|
+
basePool: constants.ZERO_ADDRESS,
|
|
213
|
+
baseToken: constants.ZERO_ADDRESS,
|
|
214
|
+
secondBasePool: constants.ZERO_ADDRESS,
|
|
215
|
+
secondBaseToken: constants.ZERO_ADDRESS,
|
|
216
|
+
tvl: Infinity,
|
|
217
|
+
}];
|
|
218
|
+
}
|
|
188
219
|
// sreUSD <-> reUSD (Ethereum only)
|
|
189
220
|
if (chainId === 1) {
|
|
190
221
|
routerGraph[constants.COINS.reusd] = {};
|