@curvefi/api 2.69.16 → 2.69.18

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.
@@ -9,7 +9,7 @@ export const COINS_ETHEREUM = lowerCaseValues({
9
9
  susde: "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
10
10
  usds: "0xdc035d45d973e3ec169d2276ddab16f1e407384f",
11
11
  susds: "0xa3931d71877c0e7a3148cb7eb4463524fec27fbd",
12
- reusd: "0x5086bf358635B81D8C47C66d1C8b9E567Db70c72",
12
+ reusd: "0x57aB1E0003F623289CD798B1824Be09a793e4Bec",
13
13
  sreusd: "0x557AB1e003951A73c12D16F0fEA8490E39C33C35",
14
14
  dola: "0x865377367054516e17014CcdED1e7d814EDC9ce4",
15
15
  sdola: "0xb45ad160634c528Cc3D2926d9807104FA3157305",
@@ -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] = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.69.16",
3
+ "version": "2.69.18",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",