@curvefi/api 2.38.0 → 2.39.0

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.
package/README.md CHANGED
@@ -26,6 +26,7 @@ import curve from "@curvefi/api";
26
26
  await curve.factory.fetchPools();
27
27
  await curve.crvUSDFactory.fetchPools();
28
28
  await curve.cryptoFactory.fetchPools();
29
+ await curve.tricryptoFactory.fetchPools();
29
30
  })()
30
31
  ```
31
32
  **Note 1.** ```chainId``` parameter is optional, but you must specify it in the case you use Metamask on localhost network, because Metamask has that [bug](https://hardhat.org/metamask-issue.html)
@@ -188,6 +189,7 @@ import curve from "@curvefi/api";
188
189
  await curve.factory.fetchPools();
189
190
  await curve.crvUSDFactory.fetchPools();
190
191
  await curve.cryptoFactory.fetchPools();
192
+ await curve.tricryptoFactory.fetchPools();
191
193
 
192
194
  curve.getMainPoolList();
193
195
  // [
@@ -264,6 +266,9 @@ import curve from "@curvefi/api";
264
266
  // 'factory-crypto-60', 'factory-crypto-61', 'factory-crypto-62'
265
267
  // ]
266
268
 
269
+ curve.tricryptoFactory.getPoolList();
270
+ // ['factory-tricrypto-0', 'factory-tricrypto-1']
271
+
267
272
  curve.getPoolList();
268
273
  // [
269
274
  // 'compound', 'usdt', 'y', 'busd',
@@ -305,6 +310,7 @@ import curve from "@curvefi/api";
305
310
  await curve.factory.fetchPools();
306
311
  await curve.crvUSDFactory.fetchPools();
307
312
  await curve.cryptoFactory.fetchPools();
313
+ await curve.tricryptoFactory.fetchPools();
308
314
 
309
315
  const pool = curve.getPool('factory-v2-11');
310
316
 
@@ -1011,6 +1017,7 @@ import curve from "@curvefi/api";
1011
1017
  await curve.factory.fetchPools();
1012
1018
  await curve.crvUSDFactory.fetchPools();
1013
1019
  await curve.cryptoFactory.fetchPools();
1020
+ await curve.tricryptoFactory.fetchPools();
1014
1021
 
1015
1022
  await curve.getBalances(['DAI', 'CRV']);
1016
1023
  // [ '9900.0', '100049.744832225238317557' ]
@@ -1369,12 +1376,15 @@ import curve from "@curvefi/api";
1369
1376
  // Fetch pools from api (if false arg is not passed)
1370
1377
  await curve.factory.fetchPools();
1371
1378
  await curve.cryptoFactory.fetchPools();
1379
+ await curve.tricryptoFactory.fetchPools();
1372
1380
 
1373
1381
  // Fetch very new pools (that haven't been added to api yet) from blockchain
1374
1382
  await curve.factory.fetchNewPools();
1375
1383
  // [ 'factory-v2-285' ]
1376
1384
  await curve.cryptoFactory.fetchNewPools();
1377
1385
  // [ 'factory-crypto-232' ]
1386
+ await curve.tricryptoFactory.fetchNewPools();
1387
+ // [ 'factory-tricrypto-2' ]
1378
1388
  })()
1379
1389
  ```
1380
1390