@curvefi/api 2.68.11 → 2.68.12

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,6 +9,8 @@ export const COINS_ETHEREUM = lowerCaseValues({
9
9
  susde: "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
10
10
  usds: "0xdc035d45d973e3ec169d2276ddab16f1e407384f",
11
11
  susds: "0xa3931d71877c0e7a3148cb7eb4463524fec27fbd",
12
+ reusd: "0x5086bf358635B81D8C47C66d1C8b9E567Db70c72",
13
+ sreusd: "0x557AB1e003951A73c12D16F0fEA8490E39C33C35",
12
14
  ycdai: "0x99d1Fa417f94dcD62BfE781a1213c092a47041Bc", // pax/yDAI
13
15
  ycusdc: "0x9777d7E2b60bB01759D0E2f8be2095df444cb07E", // pax/yUSDC
14
16
  ycusdt: "0x1bE5d71F2dA660BFdee8012dDc58D024448A0A59", // pax/yUSDT
@@ -187,6 +187,37 @@ export function routeGraphWorker() {
187
187
  tvl: Infinity,
188
188
  }];
189
189
  }
190
+ // sreUSD <-> reUSD (Ethereum only)
191
+ if (chainId === 1) {
192
+ routerGraph[constants.COINS.reusd] = {};
193
+ routerGraph[constants.COINS.reusd][constants.COINS.sreusd] = [{
194
+ poolId: "sreUSD wrapper",
195
+ swapAddress: constants.COINS.sreusd,
196
+ inputCoinAddress: constants.COINS.reusd,
197
+ outputCoinAddress: constants.COINS.sreusd,
198
+ swapParams: [0, 1, 9, 0, 0],
199
+ poolAddress: constants.ZERO_ADDRESS,
200
+ basePool: constants.ZERO_ADDRESS,
201
+ baseToken: constants.ZERO_ADDRESS,
202
+ secondBasePool: constants.ZERO_ADDRESS,
203
+ secondBaseToken: constants.ZERO_ADDRESS,
204
+ tvl: Infinity,
205
+ }];
206
+ routerGraph[constants.COINS.sreusd] = {};
207
+ routerGraph[constants.COINS.sreusd][constants.COINS.reusd] = [{
208
+ poolId: "sreUSD wrapper",
209
+ swapAddress: constants.COINS.sreusd,
210
+ inputCoinAddress: constants.COINS.sreusd,
211
+ outputCoinAddress: constants.COINS.reusd,
212
+ swapParams: [1, 0, 9, 0, 0],
213
+ poolAddress: constants.ZERO_ADDRESS,
214
+ basePool: constants.ZERO_ADDRESS,
215
+ baseToken: constants.ZERO_ADDRESS,
216
+ secondBasePool: constants.ZERO_ADDRESS,
217
+ secondBaseToken: constants.ZERO_ADDRESS,
218
+ tvl: Infinity,
219
+ }];
220
+ }
190
221
  // USDe -> sUSDe (Ethereum only)
191
222
  if (chainId === 1) {
192
223
  routerGraph[constants.COINS.usde] = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.68.11",
3
+ "version": "2.68.12",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",