Skip to content

Commit

Permalink
Merge pull request #31 from curvefi/factory-api
Browse files Browse the repository at this point in the history
Factory-API
  • Loading branch information
Macket authored Mar 22, 2022
2 parents 26364fa + 8ffe048 commit a560012
Show file tree
Hide file tree
Showing 14 changed files with 936 additions and 337 deletions.
85 changes: 46 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -791,47 +791,54 @@ import curve from "@curvefi/api";

const factoryPools = curve.getFactoryPoolList();
// [
// 'ibEUR+sEUR-f', 'ibKRW+sKRW-f', 'ibEUR+sEUR-2-f',
// 'crvCRVsCRV-f', 'jGBP+TGBP-f', '2CRV-f',
// 'crvCRV-f', 'ibbtc/sbtcCRV-f', 'OUSD3CRV-f',
// 'aUSDC+aDAI-f', 'FEI3CRV3CRV-f', 'GrapeFUSD3CRV-f',
// 'SifuETH3CRV-f', 'RC_INV3CRV-f', 'RC_xRULER3CRV-f',
// 'RC_xCOVER3CRV-f', 'nUSD3CRV-f', 'cvxcrv-f',
// 'USDM3CRV-f', 'mEUR-f', 'waUSD3CRV-f',
// 'waBTC/sbtcCRV-f', 'DOLA3POOL3CRV-f', 'ibJPY+sJPY-f',
// 'ibAUD+sAUD-f', 'ibGBP+sGBP-f', 'ibCHF+sCHF-f',
// 'OPEN MATIC-f', 'EURN/EURT-f', 'sdCRV-f',
// 'BTCpx/sbtcCRV-f', 'PWRD3CRV3CRV-f', 'sansUSDT-f',
// 'alETH+ETH-f', '17PctCypt3CRV-f', '17PctCypt3CRV-2-f',
// 'tbtc2/sbtcCRV-f', 'kusd3pool3CRV-f', 'tusd3pool3CRV-f',
// 'PWRD3CRV-f', 'fUSD3CRV-f', 'TPD3CRV-f',
// 'DEI3CRV-f', 'MIM-UST-f', 'ETH/vETH2-f',
// 'QBITWELLS3CRV-f', 'QWell13CRV-f', 'bveCVX-CVX-f',
// 'UST_whv23CRV-f', 'DSU+3Crv3CRV-f', 'DSU3CRV-f',
// 'aETHb-f', 'D3-f', 'aMATICb-f',
// 'pax-usdp3CRV-f', 'ibbtc/sbtcCRV-2-f', 'fxEUR_CRV-f',
// 'ORK/sbtcCRV-f', 'agEUR/sEUR-f', 'ibZAR+ZARP-f',
// '3DYDX3CRV-f', '3EURpool-f', 'tWETH+WETH-f',
// 'XSTUSD3CRV-f', 'XIM3CRV3CRV-f', 'XIM3CRV-f',
// 'RAMP rUSD3CRV-f', 'bhome3CRV-f', 'JPYC+ibJPY-f',
// 'UST-FRAX-f', 'FEIPCV-1-f', 'bentcvx-f',
// 'USX3CRV3CRV-f', 'ag+ib-EUR-f', 'tFRAX+FRAX-f',
// 'ELONXSWAP3CRV-f', 'BEAN3CRV-f', 'USDV3CRV-f',
// 'PARUSDC3CRV-f', 'baoUSD-3CRV-f', 'sUSD3CRV-f',
// 'AETHV13CRV-f',
// ];
// 'factory-v2-0', 'factory-v2-1', 'factory-v2-2', 'factory-v2-3',
// 'factory-v2-4', 'factory-v2-5', 'factory-v2-6', 'factory-v2-7',
// 'factory-v2-8', 'factory-v2-9', 'factory-v2-10', 'factory-v2-11',
// 'factory-v2-12', 'factory-v2-13', 'factory-v2-14', 'factory-v2-15',
// 'factory-v2-16', 'factory-v2-17', 'factory-v2-18', 'factory-v2-19',
// 'factory-v2-20', 'factory-v2-21', 'factory-v2-22', 'factory-v2-23',
// 'factory-v2-24', 'factory-v2-25', 'factory-v2-26', 'factory-v2-27',
// 'factory-v2-28', 'factory-v2-29', 'factory-v2-30', 'factory-v2-31',
// 'factory-v2-32', 'factory-v2-33', 'factory-v2-34', 'factory-v2-35',
// 'factory-v2-36', 'factory-v2-37', 'factory-v2-38', 'factory-v2-39',
// 'factory-v2-40', 'factory-v2-41', 'factory-v2-42', 'factory-v2-43',
// 'factory-v2-44', 'factory-v2-45', 'factory-v2-46', 'factory-v2-47',
// 'factory-v2-48', 'factory-v2-49', 'factory-v2-50', 'factory-v2-51',
// 'factory-v2-52', 'factory-v2-53', 'factory-v2-54', 'factory-v2-55',
// 'factory-v2-56', 'factory-v2-57', 'factory-v2-58', 'factory-v2-59',
// 'factory-v2-60', 'factory-v2-61', 'factory-v2-62', 'factory-v2-63',
// 'factory-v2-64', 'factory-v2-65', 'factory-v2-66', 'factory-v2-67',
// 'factory-v2-68', 'factory-v2-69', 'factory-v2-70', 'factory-v2-71',
// 'factory-v2-72', 'factory-v2-73', 'factory-v2-74', 'factory-v2-75',
// 'factory-v2-76', 'factory-v2-77', 'factory-v2-78', 'factory-v2-79',
// 'factory-v2-80', 'factory-v2-81', 'factory-v2-82', 'factory-v2-83',
// 'factory-v2-84', 'factory-v2-85', 'factory-v2-86', 'factory-v2-87',
// 'factory-v2-88', 'factory-v2-89', 'factory-v2-90', 'factory-v2-91',
// 'factory-v2-92', 'factory-v2-93', 'factory-v2-94', 'factory-v2-95',
// 'factory-v2-96', 'factory-v2-97', 'factory-v2-98', 'factory-v2-99',
// ]

const cryptoFactoryPools = curve.getCryptoFactoryPoolList()
// [
// 'FXSETH-fV2', 'FXSETH-2-fV2',
// 'FXSETH-3-fV2', 'FXSETH-4-fV2',
// 'BADGERWBTC-fV2', 'INVDOLA-fV2',
// 'RAIFRAX-fV2', 'RAIETH-fV2',
// 'YFIETH-fV2', 'palStkAAVE-fV2',
// 'DYDXETH-fV2', 'SDTETH-fV2',
// 'CADCUSDC-fV2', 'RAIAGEUR-fV2',
// 'rp-eth-fV2', 'PARUSDC-fV2',
// 'DUCKETH-fV2', 'BTRFLYETH-fV2',
// ];
// 'factory-crypto-0', 'factory-crypto-1',
// 'factory-crypto-2', 'factory-crypto-3',
// 'factory-crypto-4', 'factory-crypto-5',
// 'factory-crypto-6', 'factory-crypto-7',
// 'factory-crypto-8', 'factory-crypto-9',
// 'factory-crypto-10', 'factory-crypto-11',
// 'factory-crypto-12', 'factory-crypto-13',
// 'factory-crypto-14', 'factory-crypto-15',
// 'factory-crypto-16', 'factory-crypto-17',
// 'factory-crypto-18', 'factory-crypto-19',
// 'factory-crypto-20', 'factory-crypto-21',
// 'factory-crypto-22', 'factory-crypto-23',
// 'factory-crypto-24', 'factory-crypto-25',
// 'factory-crypto-26', 'factory-crypto-27',
// 'factory-crypto-28', 'factory-crypto-29',
// 'factory-crypto-30', 'factory-crypto-31',
// 'factory-crypto-32', 'factory-crypto-33',
// 'factory-crypto-34', 'factory-crypto-35',
// 'factory-crypto-36', 'factory-crypto-37'
// ]
})()
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/api",
"version": "1.20.2",
"version": "1.21.0",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"scripts": {
Expand Down
Loading

0 comments on commit a560012

Please sign in to comment.