otomato-sdk 2.0.74 → 2.0.76
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.
|
@@ -635,7 +635,7 @@ export const TRIGGERS = {
|
|
|
635
635
|
"description": "The Pendle market address",
|
|
636
636
|
"mandatory": true,
|
|
637
637
|
"category": 0,
|
|
638
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"1\": [\n {\n \"value\": \"0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2\",\n \"label\": \"stETH\",\n \"expiry\": \"DEC 25, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ac9b8802-61d9-4c3f-a2de-2da35c87e24b.svg\"\n },\n {\n \"value\": \"0x34280882267ffa6383b363e278b027be083bbe3b\",\n \"label\": \"stETH\",\n \"expiry\": \"DEC 30, 2027\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/f7d6a626-a00e-4150-aadc-e937e34818ca.svg\"\n },\n {\n \"value\": \"0xe6d4986cd935529fc4505d48e926bcd36a58a0f0\",\n \"label\": \"apxETH\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/151c9217-2512-4d26-b9d0-755c49299b12.svg\"\n },\n {\n \"value\": \"0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce\",\n \"label\": \"sUSDe\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/56eb1ed3-d1f7-4685-a7b2-5a6e05cb234f.svg\"\n },\n {\n \"value\": \"0xb451a36c8b6b2eac77ad0737ba732818143a0e25\",\n \"label\": \"USDe\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/7299bcd0-6ba1-411e-8d54-f7e5b68aa154.svg\"\n },\n {\n \"value\": \"0x7e0209ab6fa3c7730603b68799bbe9327dab7e88\",\n \"label\": \"rsENA\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/37110810-606f-4d92-8ea8-5ede71d6abdc.svg\"\n },\n {\n \"value\": \"0x890b6afc834c2a2cc6cb9b6627272ab4ecfd8271\",\n \"label\": \"rsUSDe\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/1d444261-bdf7-483b-8e35-bdb725a702ce.svg\"\n },\n {\n \"value\": \"0x70b70ac0445c3ef04e314dfda6caafd825428221\",\n \"label\": \"LBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/773047f5-3963-4577-93f9-4333f225442c.svg\"\n },\n {\n \"value\": \"0x977ebf77581f94de969349549ab2108a681e8f4c\",\n \"label\": \"USDS Rewards\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/bdf98058-9191-44bf-b9a7-4a460457f756.svg\"\n },\n {\n \"value\": \"0xc64056237c8107ecb9860cbd4519644e9ba2aed4\",\n \"label\": \"sENA\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/34ccfdb6-4acf-4d13-8dc9-080b47dfb8fa.svg\"\n },\n {\n \"value\": \"0x21d85ff3bedff031ef466c7d5295240c8ab2a2b8\",\n \"label\": \"sUSDS\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/3226daff-03a2-4078-af4e-28a72ef5b252.svg\"\n },\n {\n \"value\": \"0x8098b48a1c4e4080b30a43a7ebc0c87b52f17222\",\n \"label\": \"pumpBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/df3270cd-7ee9-4119-8ad8-c81336fad690.svg\"\n },\n {\n \"value\": \"0x2c71ead7ac9ae53d05f8664e77031d4f9eba064b\",\n \"label\": \"eBTC (Corn)\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/35a6e08f-82da-49cf-8dc0-c120a4386b0f.svg\"\n },\n {\n \"value\": \"0xafdc922d0059147486cc1f0f32e3a2354b0d35cc\",\n \"label\": \"USD0++\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x07c5b1f5265591a8e0e541466654b07dd2d1a6fd\",\n \"label\": \"eEIGEN\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/33c90ae2-9675-4f9f-80e8-0554dc0dc5b5.svg\"\n },\n {\n \"value\": \"0xff81180a7f949ba1f940eae6aa3b3ceb890b1912\",\n \"label\": \"stkGHO\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/05cdb874-4679-4b6a-bedc-9de81e817e79.svg\"\n },\n {\n \"value\": \"0xfd482179ddee989c45eab19991852f80ff31457a\",\n \"label\": \"rsETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/be3e997d-8f3c-46ed-b978-2518668aaa2b.svg\"\n },\n {\n \"value\": \"0xf4cf59259d007a96c641b41621ab52c93b9691b1\",\n \"label\": \"eETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/58971e16-6cf3-4ac4-9f3a-df82267fc5c8.svg\"\n },\n {\n \"value\": \"0x98ffefd1a51d322c8def6d0ba183e71547216f7f\",\n \"label\": \"eBTC (Zerolend)\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/39b1b707-b537-4c87-811d-110047aa7b9f.svg\"\n },\n {\n \"value\": \"0xbe8549a20257917a0a9ef8911daf18190a8842a4\",\n \"label\": \"agETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d4f45c90-7317-4d07-ae67-1e8ec9caa9a7.svg\"\n },\n {\n \"value\": \"0xbba9baaa6b3107182147a12177e0f1ec46b8b072\",\n \"label\": \"uniETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/025623d4-1fc4-44db-b981-03d60d93d90a.svg\"\n },\n {\n \"value\": \"0x58612beb0e8a126735b19bb222cbc7fc2c162d2a\",\n \"label\": \"pufETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ad53c3bf-7a0c-481e-80cd-0eea4e0e9554.svg\"\n },\n {\n \"value\": \"0xb162b764044697cf03617c2efbcb1f42e31e4766\",\n \"label\": \"sUSDe\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/8fdd3402-5238-4e90-b4db-12e32ea28e67.svg\"\n },\n {\n \"value\": \"0xfd5cf95e8b886ace955057ca4dc69466e793fbbe\",\n \"label\": \"rswETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/221673b1-5839-4140-ad82-3f865dc05c4d.png\"\n },\n {\n \"value\": \"0x048680f64d6dff1748ba6d9a01f578433787e24b\",\n \"label\": \"USD0++\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x461cd9222e130d1dc0bd79dab4643952430937c1\",\n \"label\": \"pWBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/f59d005c-a34f-40e3-bdf7-bd84c2094765.svg\"\n },\n {\n \"value\": \"0x2bf616c236d1abd31ff105247a774e6e738b5f4e\",\n \"label\": \"scrvUSD\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/50bc1fdb-ca50-4c38-9a0c-1669e35896f1.svg\"\n },\n {\n \"value\": \"0x15e434c42ab4c9a62ed7db53baaf9d255ea51e0e\",\n \"label\": \"OETH\",\n \"expiry\": \"DEC 25, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/af71269f-d089-47f1-8106-532af44b49e0.svg\"\n },\n {\n \"value\": \"0x3fd13bad9fc47e001bf9088afd1a1b2fc24673d5\",\n \"label\": \"SolvBTC.BBN\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/abdb21c4-7fc2-44f7-bbbb-27416583ac66.svg\"\n },\n {\n \"value\": \"0x380c751bd0412f47ca560b6afeb566d88dc18630\",\n \"label\": \"uniBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/04bdd8ee-4a79-48c5-88a0-b2593ebf939d.svg\"\n },\n {\n \"value\": \"0xd3c29550d12a5234e6aeb5aea7c841134cd6ddd5\",\n \"label\": \"sUSDe\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ecaa79c6-7223-48e9-a3f0-30e10dbbfbfe.svg\"\n },\n {\n \"value\": \"0x22a72b0c504cbb7f8245208f84d8f035c311adec\",\n \"label\": \"USD0++\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x81f3a11db1de16f4f9ba8bf46b71d2b168c64899\",\n \"label\": \"USD0++\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x8539b41ca14148d1f7400d399723827a80579414\",\n \"label\": \"aUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/1d127217-c2d1-4e5c-9bf4-70ae1a208d28.svg\"\n },\n {\n \"value\": \"0x12f6139a5dc6d80990d30a4d45bb86449ff804d8\",\n \"label\": \"aUSDT\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a875dcab-6a6d-449a-b519-dce222d873c9.svg\"\n },\n {\n \"value\": \"0x925cd38a68993819eef0138a463308c840080f17\",\n \"label\": \"fUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/9049a93c-6645-4c84-b19f-9ebfa0cce6dd.svg\"\n },\n {\n \"value\": \"0x8e1c2be682b0d3d8f8ee32024455a34cc724cf08\",\n \"label\": \"fUSDT\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/6c349c1b-9671-489c-be2c-8750738da3aa.svg\"\n },\n {\n \"value\": \"0xab182e2a98234db8298565f0eb9327206b558c57\",\n \"label\": \"weETHk\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/9f9ec77b-efe0-4119-a4fc-a733ff5fd04a.svg\"\n },\n {\n \"value\": \"0x7509b6bdb9e6dbf6c4b054434dcb46c40000303b\",\n \"label\": \"weETHs\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/2244883b-428a-4f86-ad63-dcaa143b70d6.svg\"\n },\n {\n \"value\": \"0xa25f5ed89e6e7b3d23ebaf067a30ac3d550a19c1\",\n \"label\": \"eBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/685e07f1-e50d-4ff9-bac2-158611f718a6.svg\"\n },\n {\n \"value\": \"0x523f9441853467477b4dde653c554942f8e17162\",\n \"label\": \"eBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/685e07f1-e50d-4ff9-bac2-158611f718a6.svg\"\n },\n {\n \"value\": \"0xb9b7840ec34094ce1269c38ba7a6ac7407f9c4e3\",\n \"label\": \"USUALx\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ff146e2f-3e2d-4e71-9a9d-e1a866b75da2.svg\"\n },\n {\n \"value\": \"0x353d0b2efb5b3a7987fb06d30ad6160522d08426\",\n \"label\": \"wstUSR\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/7a8188bd-cae6-492d-b30d-cbd128493f00.svg\"\n },\n {\n \"value\": \"0x99b633a6a2e0d6414e7c7ecea1134c0a330a73fe\",\n \"label\": \"uniBTC (Corn)\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/7ce722a1-c74e-4226-a80d-1028861e4b62.svg\"\n },\n {\n \"value\": \"0xc118635bcde024c5b01c6be2b0569a2608a8032c\",\n \"label\": \"LBTC (Corn)\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/0b1f24c8-2a29-46bd-b400-5f7043e3c573.svg\"\n },\n {\n \"value\": \"0xe6b03f3182692db1ed7d3a91f6fadf3e4dff2b95\",\n \"label\": \"SolvBTC.BBN (Corn)\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/4b1032d7-94ba-4075-8233-85808d186ebd.svg\"\n },\n {\n \"value\": \"0x3dc05f96160bdf70cf23989a632c087ebc022f92\",\n \"label\": \"pumpBTC\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/df3270cd-7ee9-4119-8ad8-c81336fad690.svg\"\n },\n {\n \"value\": \"0xebf5c58b74a836f1e51d08e9c909c4a4530afd41\",\n \"label\": \"liquidBeraBTC\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/5506f24b-06b7-4f28-af95-11f5c8b0e085.svg\"\n },\n {\n \"value\": \"0x46e6b4a950eb1abba159517dea956afd01ea9497\",\n \"label\": \"liquidBeraETH\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/5ab37246-4c5b-4a95-a534-e60ec618010b.svg\"\n },\n {\n \"value\": \"0xad016c9565a4aeec6d4cfc8a01c648ecbea1a602\",\n \"label\": \"sUSDe (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/aa218d17-62e2-42a4-986b-4f6fcebf9aa4.svg\"\n },\n {\n \"value\": \"0xe6df8d8879595100e4b6b359e6d0712e107c7472\",\n \"label\": \"USDe (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/85be79d7-942c-4cc9-b364-5e1c891a242b.svg\"\n },\n {\n \"value\": \"0x7561c5ccfe41a26b33944b58c70d6a3cb63e881c\",\n \"label\": \"beraSTONE\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/378a54dc-779f-40f0-b859-03dbb3b425e8.svg\"\n },\n {\n \"value\": \"0x83916356556f51dcbcb226202c3efeefc88d5eaa\",\n \"label\": \"LBTC (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/39e54d77-2c8f-49f2-ba92-b40386a55673.svg\"\n },\n {\n \"value\": \"0x9471d9c5b57b59d42b739b00389a6d520c33a7a9\",\n \"label\": \"WBTC (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/0a043dbb-827c-4692-9c52-272745db30c3.svg\"\n },\n {\n \"value\": \"0x580e40c15261f7baf18ea50f562118ae99361096\",\n \"label\": \"syrupUSDC\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/3bebc608-b228-4b1a-81de-363ee24b999b.svg\"\n },\n {\n \"value\": \"0xc387ad871d94990e073f1bd0b759ffdb5e0313aa\",\n \"label\": \"SolvBTC.BERA\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/b9407b43-e7fe-4b27-a78d-0e1db14b8a4b.svg\"\n },\n {\n \"value\": \"0xd75fc2b1ca52e72163787d1c370650f952e75dd7\",\n \"label\": \"sUSDa\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ddcbbbc3-af3c-4b35-a2a6-ebd4e0189256.svg\"\n },\n {\n \"value\": \"0xbdb8f9729d3194f75fd1a3d9bc4ffe0dde3a404c\",\n \"label\": \"tETH\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d8db35e6-a493-4879-b0de-a9b3fb40924c.svg\"\n },\n {\n \"value\": \"0x4d7356369273c6373e6c5074fe540cb070acfe6b\",\n \"label\": \"asdCRV\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/2ad15ff1-e832-4786-9da3-fac560d1a34c.svg\"\n }\n ],\n \"56\": [\n {\n \"value\": \"0xeda1d0e1681d59dea451702963d6287b844cb94c\",\n \"label\": \"ankrBNB\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/c172da67-2428-48cb-8602-58bfc0276af0.svg\"\n },\n {\n \"value\": \"0x9daa2878a8739e66e08e7ad35316c5143c0ea7c7\",\n \"label\": \"SolvBTC.BBN\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/eab31d5d-401e-4720-a5b4-6b90b73611e0.svg\"\n },\n {\n \"value\": \"0x0921ccc98956b1599003fd9739d5e66bf319a161\",\n \"label\": \"vBNB\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/821bd337-240a-4c03-b4cb-07c7f0d59544.svg\"\n },\n {\n \"value\": \"0x1d9d27f0b89181cf1593ac2b36a37b444eb66bee\",\n \"label\": \"clisBNB\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/609a2f5a-d97e-4015-b1c9-f93893e94620.svg\"\n }\n ],\n \"5000\": [\n {\n \"value\": \"0x0b923f8039ae827e963fcc1b48ab5b903d01925b\",\n \"label\": \"cmETH\",\n \"expiry\": \"FEB 13, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/16ebbece-2e29-4e7b-acba-d3d23fa8dec0.svg\"\n }\n ],\n \"8453\": [\n {\n \"value\": null,\n \"label\": \"LBTC-29MAY2025\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": \"0x483f2e223c58a5ef19c4b32fbc6de57709749cb3\",\n \"label\": \"cbETH\",\n \"expiry\": \"DEC 25, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/cec7c095-6d6c-400b-9509-c2b68a1f54f3.svg\"\n },\n {\n \"value\": \"0x727cebacfb10ffd353fc221d06a862b437ec1735\",\n \"label\": \"LBTC\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/95280b7c-e3a4-43ce-8a73-e544e2600624.svg\"\n },\n {\n \"value\": \"0x3124d41708edbdc7995a55183e802e3d9d0d5ef1\",\n \"label\": \"mUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/dd3dd5af-a072-409a-af35-3ac803ede34a.svg\"\n },\n {\n \"value\": \"0xd94fd7bceb29159405ae1e06ce80e51ef1a484b0\",\n \"label\": \"mcbBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/c877240e-a45b-4e8c-b42e-a2b6d96ed332.svg\"\n },\n {\n \"value\": null,\n \"label\": \"wsupperOETHb-26JUN2025\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": \"0xecc2c994aa0c599a7f69a7cfb9106fe4dffb4341\",\n \"label\": \"wsuperOETHb\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ac4127a6-cda2-41ba-8db7-9cda2d2c2e94.svg\"\n },\n {\n \"value\": \"0x14936c9b8eb798ca6291c2d6ce5de2c6cb5f1f9c\",\n \"label\": \"sUSDz\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/296a6c38-c626-42f0-9cf1-456837aa29d4.svg\"\n },\n {\n \"value\": \"0x621d4d92e9bed484e6d2cb8a37d342c804a0908c\",\n \"label\": \"VIRTUAL/cbBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/706e880e-c1ee-4258-827e-5be4e935b0a8.svg\"\n },\n {\n \"value\": \"0xe15578523937ed7f08e8f7a1fa8a021e07025a08\",\n \"label\": \"USR\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ceb019d3-32ce-4dc5-875f-c930a0f2bde8.svg\"\n }\n ],\n \"42161\": [\n {\n \"value\": null,\n \"label\": \"wstETH-26JUN2025\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": null,\n \"label\": \"rETH-26JUN2025\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": \"0x08a152834de126d2ef83d612ff36e4523fd0017f\",\n \"label\": \"wstETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ae07850a-421b-4fe1-87ec-5ba8fa65da68.svg\"\n },\n {\n \"value\": \"0x14fbc760efaf36781cb0eb3cb255ad976117b9bd\",\n \"label\": \"rETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/dca97a36-3121-46db-a22f-154d68e4b466.svg\"\n },\n {\n \"value\": \"0xe9e114d1b119bbdeb7a35e1ce3c82db01622ada2\",\n \"label\": \"PENDLE-ETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/c1e597df-fb6b-4475-9d3f-7f8bcd08bbeb.svg\"\n },\n {\n \"value\": \"0x526c73e0ba9cedb44546da4506eaee0b39be8d76\",\n \"label\": \"gDAI\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d21b47c3-f316-430e-ba22-1bd07e63f0bb.svg\"\n },\n {\n \"value\": \"0x0bd6890b3bb15f16430546147734b254d0b03059\",\n \"label\": \"dUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/590ebc0d-ad8a-4574-92c7-364c557a2a13.svg\"\n },\n {\n \"value\": \"0x8cab5fd029ae2fbf28c53e965e4194c7260adf0c\",\n \"label\": \"dWBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/b0d49b1b-01ed-4c17-b07c-bd66159b94a2.svg\"\n },\n {\n \"value\": \"0x816f59ffa2239fd7106f94eabdc0a9547a892f2f\",\n \"label\": \"rsETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/aa206b8c-0a44-4ee3-aeb4-95e9087424d0.svg\"\n },\n {\n \"value\": \"0x3be83cc235455ae1b624cf6e326505769ad8f9ea\",\n \"label\": \"spSILO\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/79b08c9a-ac55-41b9-b767-96c95afb8269.svg\"\n },\n {\n \"value\": \"0xbf5e60ddf654085f80dae9dd33ec0e345773e1f8\",\n \"label\": \"eETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d5b1f12c-7cb3-4572-9bb7-68865c138cd6.svg\"\n },\n {\n \"value\": \"0x3e4e3291ed667fb4dee680d19e5702ef8275493d\",\n \"label\": \"uniETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/507bfb70-4c6b-4480-8ef8-b7cc250b82e2.svg\"\n },\n {\n \"value\": \"0xf1de71573ee482f13ae4dcf980e83bfaba8b233d\",\n \"label\": \"MUXLP\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/5a74829d-0611-46cc-9fa5-98fcc13870a8.svg\"\n },\n {\n \"value\": \"0x22e0f26320ace985e3cb2434095f18bfe114e28e\",\n \"label\": \"gUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/fc507e18-ddcd-48ce-8518-8f3610719a2b.svg\"\n },\n {\n \"value\": \"0x4505ec38982bb796b34d050ca8d765acff1abdee\",\n \"label\": \"aUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/db96e8da-a779-43df-b012-ceeb3d298c8d.svg\"\n },\n {\n \"value\": \"0x9ff912568eb011d719b5f4e940f8135633f4bcdc\",\n \"label\": \"mPENDLE\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/8592b56d-0004-4b30-9604-9f82bb32abac.png\"\n },\n {\n \"value\": \"0xd0fdb5ee558b3bcd9e5bc1344b28b2249de6559c\",\n \"label\": \"ePENDLE\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/e7a078b9-3bb4-4fdf-9319-124e0389b463.svg\"\n }\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }"
|
|
638
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"1\": [\n {\n \"value\": \"0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2\",\n \"label\": \"stETH\",\n \"expiry\": \"DEC 25, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ac9b8802-61d9-4c3f-a2de-2da35c87e24b.svg\"\n },\n {\n \"value\": \"0x34280882267ffa6383b363e278b027be083bbe3b\",\n \"label\": \"stETH\",\n \"expiry\": \"DEC 30, 2027\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/f7d6a626-a00e-4150-aadc-e937e34818ca.svg\"\n },\n {\n \"value\": \"0xe6d4986cd935529fc4505d48e926bcd36a58a0f0\",\n \"label\": \"apxETH\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/151c9217-2512-4d26-b9d0-755c49299b12.svg\"\n },\n {\n \"value\": \"0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce\",\n \"label\": \"sUSDe\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/56eb1ed3-d1f7-4685-a7b2-5a6e05cb234f.svg\"\n },\n {\n \"value\": \"0xb451a36c8b6b2eac77ad0737ba732818143a0e25\",\n \"label\": \"USDe\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/7299bcd0-6ba1-411e-8d54-f7e5b68aa154.svg\"\n },\n {\n \"value\": \"0x7e0209ab6fa3c7730603b68799bbe9327dab7e88\",\n \"label\": \"rsENA\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/37110810-606f-4d92-8ea8-5ede71d6abdc.svg\"\n },\n {\n \"value\": \"0x890b6afc834c2a2cc6cb9b6627272ab4ecfd8271\",\n \"label\": \"rsUSDe\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/1d444261-bdf7-483b-8e35-bdb725a702ce.svg\"\n },\n {\n \"value\": \"0x70b70ac0445c3ef04e314dfda6caafd825428221\",\n \"label\": \"LBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/773047f5-3963-4577-93f9-4333f225442c.svg\"\n },\n {\n \"value\": \"0x977ebf77581f94de969349549ab2108a681e8f4c\",\n \"label\": \"USDS Rewards\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/bdf98058-9191-44bf-b9a7-4a460457f756.svg\"\n },\n {\n \"value\": \"0xc64056237c8107ecb9860cbd4519644e9ba2aed4\",\n \"label\": \"sENA\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/34ccfdb6-4acf-4d13-8dc9-080b47dfb8fa.svg\"\n },\n {\n \"value\": \"0x21d85ff3bedff031ef466c7d5295240c8ab2a2b8\",\n \"label\": \"sUSDS\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/3226daff-03a2-4078-af4e-28a72ef5b252.svg\"\n },\n {\n \"value\": \"0x8098b48a1c4e4080b30a43a7ebc0c87b52f17222\",\n \"label\": \"pumpBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/df3270cd-7ee9-4119-8ad8-c81336fad690.svg\"\n },\n {\n \"value\": \"0x2c71ead7ac9ae53d05f8664e77031d4f9eba064b\",\n \"label\": \"eBTC (Corn)\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/35a6e08f-82da-49cf-8dc0-c120a4386b0f.svg\"\n },\n {\n \"value\": \"0xafdc922d0059147486cc1f0f32e3a2354b0d35cc\",\n \"label\": \"USD0++\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x07c5b1f5265591a8e0e541466654b07dd2d1a6fd\",\n \"label\": \"eEIGEN\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/33c90ae2-9675-4f9f-80e8-0554dc0dc5b5.svg\"\n },\n {\n \"value\": \"0xff81180a7f949ba1f940eae6aa3b3ceb890b1912\",\n \"label\": \"stkGHO\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/05cdb874-4679-4b6a-bedc-9de81e817e79.svg\"\n },\n {\n \"value\": \"0xfd482179ddee989c45eab19991852f80ff31457a\",\n \"label\": \"rsETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/be3e997d-8f3c-46ed-b978-2518668aaa2b.svg\"\n },\n {\n \"value\": \"0xf4cf59259d007a96c641b41621ab52c93b9691b1\",\n \"label\": \"eETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/58971e16-6cf3-4ac4-9f3a-df82267fc5c8.svg\"\n },\n {\n \"value\": \"0x98ffefd1a51d322c8def6d0ba183e71547216f7f\",\n \"label\": \"eBTC (Zerolend)\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/39b1b707-b537-4c87-811d-110047aa7b9f.svg\"\n },\n {\n \"value\": \"0xbe8549a20257917a0a9ef8911daf18190a8842a4\",\n \"label\": \"agETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d4f45c90-7317-4d07-ae67-1e8ec9caa9a7.svg\"\n },\n {\n \"value\": \"0xbba9baaa6b3107182147a12177e0f1ec46b8b072\",\n \"label\": \"uniETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/025623d4-1fc4-44db-b981-03d60d93d90a.svg\"\n },\n {\n \"value\": \"0x58612beb0e8a126735b19bb222cbc7fc2c162d2a\",\n \"label\": \"pufETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ad53c3bf-7a0c-481e-80cd-0eea4e0e9554.svg\"\n },\n {\n \"value\": \"0xb162b764044697cf03617c2efbcb1f42e31e4766\",\n \"label\": \"sUSDe\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/8fdd3402-5238-4e90-b4db-12e32ea28e67.svg\"\n },\n {\n \"value\": \"0xfd5cf95e8b886ace955057ca4dc69466e793fbbe\",\n \"label\": \"rswETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/221673b1-5839-4140-ad82-3f865dc05c4d.png\"\n },\n {\n \"value\": \"0x048680f64d6dff1748ba6d9a01f578433787e24b\",\n \"label\": \"USD0++\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x461cd9222e130d1dc0bd79dab4643952430937c1\",\n \"label\": \"pWBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/f59d005c-a34f-40e3-bdf7-bd84c2094765.svg\"\n },\n {\n \"value\": \"0x2bf616c236d1abd31ff105247a774e6e738b5f4e\",\n \"label\": \"scrvUSD\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/50bc1fdb-ca50-4c38-9a0c-1669e35896f1.svg\"\n },\n {\n \"value\": \"0x15e434c42ab4c9a62ed7db53baaf9d255ea51e0e\",\n \"label\": \"OETH\",\n \"expiry\": \"DEC 25, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/af71269f-d089-47f1-8106-532af44b49e0.svg\"\n },\n {\n \"value\": \"0x3fd13bad9fc47e001bf9088afd1a1b2fc24673d5\",\n \"label\": \"SolvBTC.BBN\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/abdb21c4-7fc2-44f7-bbbb-27416583ac66.svg\"\n },\n {\n \"value\": \"0x380c751bd0412f47ca560b6afeb566d88dc18630\",\n \"label\": \"uniBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/04bdd8ee-4a79-48c5-88a0-b2593ebf939d.svg\"\n },\n {\n \"value\": \"0xd3c29550d12a5234e6aeb5aea7c841134cd6ddd5\",\n \"label\": \"sUSDe\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ecaa79c6-7223-48e9-a3f0-30e10dbbfbfe.svg\"\n },\n {\n \"value\": \"0x22a72b0c504cbb7f8245208f84d8f035c311adec\",\n \"label\": \"USD0++\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x81f3a11db1de16f4f9ba8bf46b71d2b168c64899\",\n \"label\": \"USD0++\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a66178ef-2097-4b72-9d19-75fe6a4b8821.svg\"\n },\n {\n \"value\": \"0x8539b41ca14148d1f7400d399723827a80579414\",\n \"label\": \"aUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/1d127217-c2d1-4e5c-9bf4-70ae1a208d28.svg\"\n },\n {\n \"value\": \"0x12f6139a5dc6d80990d30a4d45bb86449ff804d8\",\n \"label\": \"aUSDT\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/a875dcab-6a6d-449a-b519-dce222d873c9.svg\"\n },\n {\n \"value\": \"0x925cd38a68993819eef0138a463308c840080f17\",\n \"label\": \"fUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/9049a93c-6645-4c84-b19f-9ebfa0cce6dd.svg\"\n },\n {\n \"value\": \"0x8e1c2be682b0d3d8f8ee32024455a34cc724cf08\",\n \"label\": \"fUSDT\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/6c349c1b-9671-489c-be2c-8750738da3aa.svg\"\n },\n {\n \"value\": \"0xab182e2a98234db8298565f0eb9327206b558c57\",\n \"label\": \"weETHk\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/9f9ec77b-efe0-4119-a4fc-a733ff5fd04a.svg\"\n },\n {\n \"value\": \"0x7509b6bdb9e6dbf6c4b054434dcb46c40000303b\",\n \"label\": \"weETHs\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/2244883b-428a-4f86-ad63-dcaa143b70d6.svg\"\n },\n {\n \"value\": \"0xa25f5ed89e6e7b3d23ebaf067a30ac3d550a19c1\",\n \"label\": \"eBTC\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/685e07f1-e50d-4ff9-bac2-158611f718a6.svg\"\n },\n {\n \"value\": \"0x523f9441853467477b4dde653c554942f8e17162\",\n \"label\": \"eBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/685e07f1-e50d-4ff9-bac2-158611f718a6.svg\"\n },\n {\n \"value\": \"0xb9b7840ec34094ce1269c38ba7a6ac7407f9c4e3\",\n \"label\": \"USUALx\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ff146e2f-3e2d-4e71-9a9d-e1a866b75da2.svg\"\n },\n {\n \"value\": \"0x353d0b2efb5b3a7987fb06d30ad6160522d08426\",\n \"label\": \"wstUSR\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/7a8188bd-cae6-492d-b30d-cbd128493f00.svg\"\n },\n {\n \"value\": \"0x99b633a6a2e0d6414e7c7ecea1134c0a330a73fe\",\n \"label\": \"uniBTC (Corn)\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/7ce722a1-c74e-4226-a80d-1028861e4b62.svg\"\n },\n {\n \"value\": \"0xc118635bcde024c5b01c6be2b0569a2608a8032c\",\n \"label\": \"LBTC (Corn)\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/0b1f24c8-2a29-46bd-b400-5f7043e3c573.svg\"\n },\n {\n \"value\": \"0xe6b03f3182692db1ed7d3a91f6fadf3e4dff2b95\",\n \"label\": \"SolvBTC.BBN (Corn)\",\n \"expiry\": \"FEB 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/4b1032d7-94ba-4075-8233-85808d186ebd.svg\"\n },\n {\n \"value\": \"0x3dc05f96160bdf70cf23989a632c087ebc022f92\",\n \"label\": \"pumpBTC\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/df3270cd-7ee9-4119-8ad8-c81336fad690.svg\"\n },\n {\n \"value\": \"0xebf5c58b74a836f1e51d08e9c909c4a4530afd41\",\n \"label\": \"liquidBeraBTC\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/5506f24b-06b7-4f28-af95-11f5c8b0e085.svg\"\n },\n {\n \"value\": \"0x46e6b4a950eb1abba159517dea956afd01ea9497\",\n \"label\": \"liquidBeraETH\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/5ab37246-4c5b-4a95-a534-e60ec618010b.svg\"\n },\n {\n \"value\": \"0xad016c9565a4aeec6d4cfc8a01c648ecbea1a602\",\n \"label\": \"sUSDe (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/aa218d17-62e2-42a4-986b-4f6fcebf9aa4.svg\"\n },\n {\n \"value\": \"0xe6df8d8879595100e4b6b359e6d0712e107c7472\",\n \"label\": \"USDe (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/85be79d7-942c-4cc9-b364-5e1c891a242b.svg\"\n },\n {\n \"value\": \"0x7561c5ccfe41a26b33944b58c70d6a3cb63e881c\",\n \"label\": \"beraSTONE\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/378a54dc-779f-40f0-b859-03dbb3b425e8.svg\"\n },\n {\n \"value\": \"0x83916356556f51dcbcb226202c3efeefc88d5eaa\",\n \"label\": \"LBTC (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/39e54d77-2c8f-49f2-ba92-b40386a55673.svg\"\n },\n {\n \"value\": \"0x9471d9c5b57b59d42b739b00389a6d520c33a7a9\",\n \"label\": \"WBTC (Bera Concrete)\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/0a043dbb-827c-4692-9c52-272745db30c3.svg\"\n },\n {\n \"value\": \"0x580e40c15261f7baf18ea50f562118ae99361096\",\n \"label\": \"syrupUSDC\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/3bebc608-b228-4b1a-81de-363ee24b999b.svg\"\n },\n {\n \"value\": \"0xc387ad871d94990e073f1bd0b759ffdb5e0313aa\",\n \"label\": \"SolvBTC.BERA\",\n \"expiry\": \"APR 10, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/b9407b43-e7fe-4b27-a78d-0e1db14b8a4b.svg\"\n },\n {\n \"value\": \"0xd75fc2b1ca52e72163787d1c370650f952e75dd7\",\n \"label\": \"sUSDa\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ddcbbbc3-af3c-4b35-a2a6-ebd4e0189256.svg\"\n },\n {\n \"value\": \"0xbdb8f9729d3194f75fd1a3d9bc4ffe0dde3a404c\",\n \"label\": \"tETH\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d8db35e6-a493-4879-b0de-a9b3fb40924c.svg\"\n },\n {\n \"value\": \"0x4d7356369273c6373e6c5074fe540cb070acfe6b\",\n \"label\": \"asdCRV\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/2ad15ff1-e832-4786-9da3-fac560d1a34c.svg\"\n }\n ],\n \"56\": [\n {\n \"value\": \"0xeda1d0e1681d59dea451702963d6287b844cb94c\",\n \"label\": \"ankrBNB\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/c172da67-2428-48cb-8602-58bfc0276af0.svg\"\n },\n {\n \"value\": \"0x9daa2878a8739e66e08e7ad35316c5143c0ea7c7\",\n \"label\": \"SolvBTC.BBN\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/eab31d5d-401e-4720-a5b4-6b90b73611e0.svg\"\n },\n {\n \"value\": \"0x0921ccc98956b1599003fd9739d5e66bf319a161\",\n \"label\": \"vBNB\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/821bd337-240a-4c03-b4cb-07c7f0d59544.svg\"\n },\n {\n \"value\": \"0x1d9d27f0b89181cf1593ac2b36a37b444eb66bee\",\n \"label\": \"clisBNB\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/609a2f5a-d97e-4015-b1c9-f93893e94620.svg\"\n }\n ],\n \"5000\": [\n {\n \"value\": \"0x0b923f8039ae827e963fcc1b48ab5b903d01925b\",\n \"label\": \"cmETH\",\n \"expiry\": \"FEB 13, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/16ebbece-2e29-4e7b-acba-d3d23fa8dec0.svg\"\n },\n {\n \"value\": \"0xec3fb79d229ef53c8b5cd64c171097ffc8a00dc5\",\n \"label\": \"cmETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/16ebbece-2e29-4e7b-acba-d3d23fa8dec0.svg\"\n }\n ],\n \"8453\": [\n {\n \"value\": null,\n \"label\": \"LBTC-29MAY2025\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": \"0x483f2e223c58a5ef19c4b32fbc6de57709749cb3\",\n \"label\": \"cbETH\",\n \"expiry\": \"DEC 25, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/cec7c095-6d6c-400b-9509-c2b68a1f54f3.svg\"\n },\n {\n \"value\": \"0x727cebacfb10ffd353fc221d06a862b437ec1735\",\n \"label\": \"LBTC\",\n \"expiry\": \"MAY 29, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/95280b7c-e3a4-43ce-8a73-e544e2600624.svg\"\n },\n {\n \"value\": \"0x3124d41708edbdc7995a55183e802e3d9d0d5ef1\",\n \"label\": \"mUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/dd3dd5af-a072-409a-af35-3ac803ede34a.svg\"\n },\n {\n \"value\": \"0xd94fd7bceb29159405ae1e06ce80e51ef1a484b0\",\n \"label\": \"mcbBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/c877240e-a45b-4e8c-b42e-a2b6d96ed332.svg\"\n },\n {\n \"value\": null,\n \"label\": \"wsupperOETHb-26JUN2025\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": \"0xecc2c994aa0c599a7f69a7cfb9106fe4dffb4341\",\n \"label\": \"wsuperOETHb\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ac4127a6-cda2-41ba-8db7-9cda2d2c2e94.svg\"\n },\n {\n \"value\": \"0x14936c9b8eb798ca6291c2d6ce5de2c6cb5f1f9c\",\n \"label\": \"sUSDz\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/296a6c38-c626-42f0-9cf1-456837aa29d4.svg\"\n },\n {\n \"value\": \"0x621d4d92e9bed484e6d2cb8a37d342c804a0908c\",\n \"label\": \"VIRTUAL/cbBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/706e880e-c1ee-4258-827e-5be4e935b0a8.svg\"\n },\n {\n \"value\": \"0xe15578523937ed7f08e8f7a1fa8a021e07025a08\",\n \"label\": \"USR\",\n \"expiry\": \"APR 24, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ceb019d3-32ce-4dc5-875f-c930a0f2bde8.svg\"\n }\n ],\n \"42161\": [\n {\n \"value\": null,\n \"label\": \"wstETH-26JUN2025\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": null,\n \"label\": \"rETH-26JUN2025\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/pendle-assets-staging/images/assets/unknown.svg\"\n },\n {\n \"value\": \"0x08a152834de126d2ef83d612ff36e4523fd0017f\",\n \"label\": \"wstETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/ae07850a-421b-4fe1-87ec-5ba8fa65da68.svg\"\n },\n {\n \"value\": \"0x14fbc760efaf36781cb0eb3cb255ad976117b9bd\",\n \"label\": \"rETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/dca97a36-3121-46db-a22f-154d68e4b466.svg\"\n },\n {\n \"value\": \"0xe9e114d1b119bbdeb7a35e1ce3c82db01622ada2\",\n \"label\": \"PENDLE-ETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/c1e597df-fb6b-4475-9d3f-7f8bcd08bbeb.svg\"\n },\n {\n \"value\": \"0x526c73e0ba9cedb44546da4506eaee0b39be8d76\",\n \"label\": \"gDAI\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d21b47c3-f316-430e-ba22-1bd07e63f0bb.svg\"\n },\n {\n \"value\": \"0x0bd6890b3bb15f16430546147734b254d0b03059\",\n \"label\": \"dUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/590ebc0d-ad8a-4574-92c7-364c557a2a13.svg\"\n },\n {\n \"value\": \"0x8cab5fd029ae2fbf28c53e965e4194c7260adf0c\",\n \"label\": \"dWBTC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/b0d49b1b-01ed-4c17-b07c-bd66159b94a2.svg\"\n },\n {\n \"value\": \"0x816f59ffa2239fd7106f94eabdc0a9547a892f2f\",\n \"label\": \"rsETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/aa206b8c-0a44-4ee3-aeb4-95e9087424d0.svg\"\n },\n {\n \"value\": \"0x3be83cc235455ae1b624cf6e326505769ad8f9ea\",\n \"label\": \"spSILO\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/79b08c9a-ac55-41b9-b767-96c95afb8269.svg\"\n },\n {\n \"value\": \"0xbf5e60ddf654085f80dae9dd33ec0e345773e1f8\",\n \"label\": \"eETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/d5b1f12c-7cb3-4572-9bb7-68865c138cd6.svg\"\n },\n {\n \"value\": \"0x3e4e3291ed667fb4dee680d19e5702ef8275493d\",\n \"label\": \"uniETH\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/507bfb70-4c6b-4480-8ef8-b7cc250b82e2.svg\"\n },\n {\n \"value\": \"0xf1de71573ee482f13ae4dcf980e83bfaba8b233d\",\n \"label\": \"MUXLP\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/5a74829d-0611-46cc-9fa5-98fcc13870a8.svg\"\n },\n {\n \"value\": \"0x22e0f26320ace985e3cb2434095f18bfe114e28e\",\n \"label\": \"gUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/fc507e18-ddcd-48ce-8518-8f3610719a2b.svg\"\n },\n {\n \"value\": \"0x4505ec38982bb796b34d050ca8d765acff1abdee\",\n \"label\": \"aUSDC\",\n \"expiry\": \"JUN 26, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/db96e8da-a779-43df-b012-ceeb3d298c8d.svg\"\n },\n {\n \"value\": \"0x9ff912568eb011d719b5f4e940f8135633f4bcdc\",\n \"label\": \"mPENDLE\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/8592b56d-0004-4b30-9604-9f82bb32abac.png\"\n },\n {\n \"value\": \"0xd0fdb5ee558b3bcd9e5bc1344b28b2249de6559c\",\n \"label\": \"ePENDLE\",\n \"expiry\": \"MAR 27, 2025\",\n \"image\": \"https://storage.googleapis.com/prod-pendle-bucket-a/images/uploads/e7a078b9-3bb4-4fdf-9319-124e0389b463.svg\"\n }\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }"
|
|
639
639
|
},
|
|
640
640
|
{
|
|
641
641
|
"key": "condition",
|
|
@@ -703,7 +703,7 @@ export const TRIGGERS = {
|
|
|
703
703
|
"type": "erc20",
|
|
704
704
|
"description": "The token you want to fetch the yield",
|
|
705
705
|
"mandatory": true,
|
|
706
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"
|
|
706
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
707
707
|
"category": 0
|
|
708
708
|
},
|
|
709
709
|
{
|
|
@@ -770,7 +770,7 @@ export const TRIGGERS = {
|
|
|
770
770
|
"type": "erc20",
|
|
771
771
|
"description": "The token you want to fetch the borrow rate for",
|
|
772
772
|
"mandatory": true,
|
|
773
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"
|
|
773
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
774
774
|
"category": 0
|
|
775
775
|
},
|
|
776
776
|
{
|
|
@@ -2657,7 +2657,8 @@ export const ACTIONS = {
|
|
|
2657
2657
|
"description": "Swap two assets using the best market rates accross multiple pools",
|
|
2658
2658
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/swap.png",
|
|
2659
2659
|
"chains": [
|
|
2660
|
-
34443
|
|
2660
|
+
34443,
|
|
2661
|
+
8453
|
|
2661
2662
|
],
|
|
2662
2663
|
"SWAP": {
|
|
2663
2664
|
"name": "Swap",
|
|
@@ -2767,7 +2768,7 @@ export const ACTIONS = {
|
|
|
2767
2768
|
},
|
|
2768
2769
|
{
|
|
2769
2770
|
"key": "amount",
|
|
2770
|
-
"value":
|
|
2771
|
+
"value": 100
|
|
2771
2772
|
},
|
|
2772
2773
|
{
|
|
2773
2774
|
"key": "slippage",
|
|
@@ -3015,7 +3016,7 @@ export const ACTIONS = {
|
|
|
3015
3016
|
"type": "erc20",
|
|
3016
3017
|
"description": "The token to deposit",
|
|
3017
3018
|
"mandatory": true,
|
|
3018
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"
|
|
3019
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3019
3020
|
"category": 0
|
|
3020
3021
|
},
|
|
3021
3022
|
{
|
|
@@ -3042,7 +3043,7 @@ export const ACTIONS = {
|
|
|
3042
3043
|
},
|
|
3043
3044
|
{
|
|
3044
3045
|
"key": "abiParams.amount",
|
|
3045
|
-
"value":
|
|
3046
|
+
"value": 100
|
|
3046
3047
|
},
|
|
3047
3048
|
{
|
|
3048
3049
|
"key": "tokenToDeposit",
|
|
@@ -3120,7 +3121,7 @@ export const ACTIONS = {
|
|
|
3120
3121
|
"type": "erc20",
|
|
3121
3122
|
"description": "The token to withdraw",
|
|
3122
3123
|
"mandatory": true,
|
|
3123
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"
|
|
3124
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3124
3125
|
"category": 0
|
|
3125
3126
|
},
|
|
3126
3127
|
{
|
|
@@ -3147,7 +3148,7 @@ export const ACTIONS = {
|
|
|
3147
3148
|
},
|
|
3148
3149
|
{
|
|
3149
3150
|
"key": "abiParams.amount",
|
|
3150
|
-
"value":
|
|
3151
|
+
"value": 100
|
|
3151
3152
|
},
|
|
3152
3153
|
{
|
|
3153
3154
|
"key": "tokenToWithdraw",
|
|
@@ -3215,7 +3216,7 @@ export const ACTIONS = {
|
|
|
3215
3216
|
"type": "erc20",
|
|
3216
3217
|
"description": "The token to borrow",
|
|
3217
3218
|
"mandatory": true,
|
|
3218
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"
|
|
3219
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3219
3220
|
"category": 0
|
|
3220
3221
|
},
|
|
3221
3222
|
{
|
|
@@ -3225,6 +3226,7 @@ export const ACTIONS = {
|
|
|
3225
3226
|
"mandatory": true,
|
|
3226
3227
|
"category": 0,
|
|
3227
3228
|
"erc20FormattedAmount": {
|
|
3229
|
+
"convertItsDecimal": false,
|
|
3228
3230
|
"contractAddress": "{{parameters.tokenToBorrow}}",
|
|
3229
3231
|
"chain": "{{parameters.chainId}}"
|
|
3230
3232
|
}
|
|
@@ -3241,7 +3243,7 @@ export const ACTIONS = {
|
|
|
3241
3243
|
},
|
|
3242
3244
|
{
|
|
3243
3245
|
"key": "abiParams.amount",
|
|
3244
|
-
"value":
|
|
3246
|
+
"value": 100
|
|
3245
3247
|
},
|
|
3246
3248
|
{
|
|
3247
3249
|
"key": "tokenToBorrow",
|
|
@@ -3287,7 +3289,7 @@ export const ACTIONS = {
|
|
|
3287
3289
|
"type": "erc20",
|
|
3288
3290
|
"description": "The token to repay",
|
|
3289
3291
|
"mandatory": true,
|
|
3290
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"
|
|
3292
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3291
3293
|
"category": 0
|
|
3292
3294
|
},
|
|
3293
3295
|
{
|
|
@@ -3322,7 +3324,7 @@ export const ACTIONS = {
|
|
|
3322
3324
|
},
|
|
3323
3325
|
{
|
|
3324
3326
|
"key": "abiParams.amount",
|
|
3325
|
-
"value":
|
|
3327
|
+
"value": 100
|
|
3326
3328
|
},
|
|
3327
3329
|
{
|
|
3328
3330
|
"key": "tokenToRepay",
|
|
@@ -3482,7 +3484,7 @@ export const ACTIONS = {
|
|
|
3482
3484
|
},
|
|
3483
3485
|
{
|
|
3484
3486
|
"key": "abiParams.amount",
|
|
3485
|
-
"value":
|
|
3487
|
+
"value": 100
|
|
3486
3488
|
},
|
|
3487
3489
|
{
|
|
3488
3490
|
"key": "abiParams.onBehalfOf",
|
|
@@ -3571,7 +3573,7 @@ export const ACTIONS = {
|
|
|
3571
3573
|
},
|
|
3572
3574
|
{
|
|
3573
3575
|
"key": "abiParams.amount",
|
|
3574
|
-
"value":
|
|
3576
|
+
"value": 10
|
|
3575
3577
|
},
|
|
3576
3578
|
{
|
|
3577
3579
|
"key": "abiParams.to",
|
|
@@ -3725,7 +3727,7 @@ export const ACTIONS = {
|
|
|
3725
3727
|
},
|
|
3726
3728
|
{
|
|
3727
3729
|
"key": "abiParams.amount",
|
|
3728
|
-
"value":
|
|
3730
|
+
"value": 100
|
|
3729
3731
|
},
|
|
3730
3732
|
{
|
|
3731
3733
|
"key": "tokenToDeposit",
|
|
@@ -3782,7 +3784,7 @@ export const ACTIONS = {
|
|
|
3782
3784
|
},
|
|
3783
3785
|
{
|
|
3784
3786
|
"key": "abiParams.amount",
|
|
3785
|
-
"value":
|
|
3787
|
+
"value": 100
|
|
3786
3788
|
},
|
|
3787
3789
|
{
|
|
3788
3790
|
"key": "tokenToWithdraw",
|
|
@@ -3877,7 +3879,7 @@ export const ACTIONS = {
|
|
|
3877
3879
|
},
|
|
3878
3880
|
{
|
|
3879
3881
|
"key": "abiParams.amount",
|
|
3880
|
-
"value":
|
|
3882
|
+
"value": 100
|
|
3881
3883
|
},
|
|
3882
3884
|
{
|
|
3883
3885
|
"key": "tokenToBorrow",
|
|
@@ -3958,7 +3960,7 @@ export const ACTIONS = {
|
|
|
3958
3960
|
},
|
|
3959
3961
|
{
|
|
3960
3962
|
"key": "abiParams.amount",
|
|
3961
|
-
"value":
|
|
3963
|
+
"value": 100
|
|
3962
3964
|
},
|
|
3963
3965
|
{
|
|
3964
3966
|
"key": "tokenToRepay",
|
|
@@ -4083,7 +4085,7 @@ export const ACTIONS = {
|
|
|
4083
4085
|
},
|
|
4084
4086
|
{
|
|
4085
4087
|
"key": "abiParams.amount",
|
|
4086
|
-
"value":
|
|
4088
|
+
"value": 100
|
|
4087
4089
|
},
|
|
4088
4090
|
{
|
|
4089
4091
|
"key": "abiParams.asset",
|
|
@@ -4179,7 +4181,7 @@ export const ACTIONS = {
|
|
|
4179
4181
|
},
|
|
4180
4182
|
{
|
|
4181
4183
|
"key": "abiParams.amount",
|
|
4182
|
-
"value":
|
|
4184
|
+
"value": 100
|
|
4183
4185
|
},
|
|
4184
4186
|
{
|
|
4185
4187
|
"key": "abiParams.asset",
|
|
@@ -4309,7 +4311,7 @@ export const ACTIONS = {
|
|
|
4309
4311
|
},
|
|
4310
4312
|
{
|
|
4311
4313
|
"key": "abiParams.amount",
|
|
4312
|
-
"value":
|
|
4314
|
+
"value": 100
|
|
4313
4315
|
},
|
|
4314
4316
|
{
|
|
4315
4317
|
"key": "abiParams.onBehalfOf",
|
|
@@ -4398,7 +4400,7 @@ export const ACTIONS = {
|
|
|
4398
4400
|
},
|
|
4399
4401
|
{
|
|
4400
4402
|
"key": "abiParams.amount",
|
|
4401
|
-
"value":
|
|
4403
|
+
"value": 10
|
|
4402
4404
|
},
|
|
4403
4405
|
{
|
|
4404
4406
|
"key": "abiParams.to",
|
|
@@ -4570,7 +4572,7 @@ export const ACTIONS = {
|
|
|
4570
4572
|
},
|
|
4571
4573
|
{
|
|
4572
4574
|
"key": "amount",
|
|
4573
|
-
"value":
|
|
4575
|
+
"value": 100
|
|
4574
4576
|
},
|
|
4575
4577
|
{
|
|
4576
4578
|
"key": "slippage",
|
|
@@ -35,28 +35,32 @@ const createETHFearAndGreedBuy = async () => {
|
|
|
35
35
|
const edge = new Edge({ source: trigger, target: odosAction });
|
|
36
36
|
return new Workflow('Buy ETH when the market sentiment is extremely fearful', [trigger, odosAction], [edge]);
|
|
37
37
|
};
|
|
38
|
+
const createDCAFearAndGreed = async () => {
|
|
39
|
+
// created with examples/UseCases/FearAndGreedDCA
|
|
40
|
+
return Workflow.fromJSON({ "id": null, "name": "Fear and Greed Workflow", "state": "inactive", "dateCreated": null, "dateModified": null, "executionId": null, "nodes": [{ "id": null, "ref": "1", "blockId": 18, "type": "trigger", "state": "inactive", "parameters": { "period": 86400000, "timeout": null, "limit": null }, "frontendHelpers": {}, "position": { "x": 400, "y": 120 } }, { "id": null, "ref": "2", "blockId": 100015, "type": "action", "state": "inactive", "parameters": {}, "frontendHelpers": {}, "position": { "x": 400, "y": 240 } }, { "id": null, "ref": "3", "blockId": 100016, "type": "action", "state": "inactive", "parameters": { "logic": "or", "groups": [{ "logic": "and", "checks": [{ "value1": "{{external.functions.btcFearAndGreed()}}", "condition": "gt", "value2": "80" }] }] }, "frontendHelpers": {}, "position": { "x": 150, "y": 360 } }, { "id": null, "ref": "4", "blockId": 100013, "type": "action", "state": "inactive", "parameters": { "chainId": 8453, "tokenIn": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf", "tokenOut": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "amount": 0.0001, "slippage": 0.1 }, "frontendHelpers": { "output": { "amountIn": { "formatAmount": false, "erc20Token": { "contractAddress": "{{output.tokenIn}}", "chainId": "{{parameters.chainId}}" } }, "amountOut": { "formatAmount": false, "erc20Token": { "contractAddress": "{{output.tokenOut}}", "chainId": "{{parameters.chainId}}" } } } }, "position": { "x": 150, "y": 480 } }, { "id": null, "ref": "5", "blockId": 100016, "type": "action", "state": "inactive", "parameters": { "logic": "or", "groups": [{ "logic": "and", "checks": [{ "value1": "{{external.functions.btcFearAndGreed()}}", "condition": "lt", "value2": "20" }] }] }, "frontendHelpers": {}, "position": { "x": 650, "y": 360 } }, { "id": null, "ref": "6", "blockId": 100013, "type": "action", "state": "inactive", "parameters": { "chainId": 8453, "tokenIn": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "tokenOut": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf", "amount": 10, "slippage": 0.3 }, "frontendHelpers": { "output": { "amountIn": { "formatAmount": false, "erc20Token": { "contractAddress": "{{output.tokenIn}}", "chainId": "{{parameters.chainId}}" } }, "amountOut": { "formatAmount": false, "erc20Token": { "contractAddress": "{{output.tokenOut}}", "chainId": "{{parameters.chainId}}" } } } }, "position": { "x": 650, "y": 480 } }], "edges": [{ "id": null, "source": "1", "target": "2" }, { "id": null, "source": "2", "target": "3" }, { "id": null, "source": "3", "target": "4", "label": "true", "value": "true" }, { "id": null, "source": "2", "target": "5" }, { "id": null, "source": "5", "target": "6", "label": "true", "value": "true" }], "notes": [] });
|
|
41
|
+
};
|
|
38
42
|
const createETHFearAndGreedCapitalEfficientBuy = async () => {
|
|
39
43
|
const trigger = new Trigger(TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX);
|
|
40
44
|
trigger.setCondition('lt');
|
|
41
45
|
trigger.setComparisonValue(45);
|
|
42
46
|
trigger.setPosition(400, 120);
|
|
43
|
-
const chain = CHAINS.
|
|
47
|
+
const chain = CHAINS.BASE;
|
|
44
48
|
const tokenIn = 'USDC';
|
|
45
49
|
const tokenOut = 'WETH';
|
|
46
|
-
const ionicWithdraw = new Action(ACTIONS.LENDING.
|
|
50
|
+
const ionicWithdraw = new Action(ACTIONS.LENDING.AAVE.WITHDRAW);
|
|
47
51
|
ionicWithdraw.setChainId(chain);
|
|
48
|
-
ionicWithdraw.setParams('
|
|
49
|
-
ionicWithdraw.setParams('amount',
|
|
52
|
+
ionicWithdraw.setParams('asset', getTokenFromSymbol(chain, tokenIn).contractAddress);
|
|
53
|
+
ionicWithdraw.setParams('amount', 10);
|
|
50
54
|
ionicWithdraw.setPosition(400, 240);
|
|
51
|
-
const odosAction = new Action(ACTIONS.SWAP.
|
|
55
|
+
const odosAction = new Action(ACTIONS.CORE.SWAP.SWAP);
|
|
52
56
|
odosAction.setChainId(chain);
|
|
53
57
|
odosAction.setParams("tokenIn", getTokenFromSymbol(chain, tokenIn).contractAddress);
|
|
54
58
|
odosAction.setParams("tokenOut", getTokenFromSymbol(chain, tokenOut).contractAddress);
|
|
55
59
|
odosAction.setParams("amount", ionicWithdraw.getParameterVariableName('amount'));
|
|
56
60
|
odosAction.setPosition(400, 360);
|
|
57
|
-
const ionicDeposit = new Action(ACTIONS.LENDING.
|
|
61
|
+
const ionicDeposit = new Action(ACTIONS.LENDING.AAVE.SUPPLY);
|
|
58
62
|
ionicDeposit.setChainId(chain);
|
|
59
|
-
ionicDeposit.setParams('
|
|
63
|
+
ionicDeposit.setParams('asset', getTokenFromSymbol(chain, tokenOut).contractAddress);
|
|
60
64
|
ionicDeposit.setParams('amount', odosAction.getOutputVariableName('amountOut'));
|
|
61
65
|
ionicDeposit.setPosition(400, 480);
|
|
62
66
|
const edge1 = new Edge({ source: trigger, target: ionicWithdraw });
|
|
@@ -86,8 +90,8 @@ const createSUsdeYieldBuy = async () => {
|
|
|
86
90
|
};
|
|
87
91
|
const createSusdeYieldNotification = async () => {
|
|
88
92
|
const trigger = new Trigger(TRIGGERS.YIELD.ETHENA.SUSDE_YIELD);
|
|
89
|
-
trigger.setCondition('
|
|
90
|
-
trigger.setComparisonValue(0);
|
|
93
|
+
trigger.setCondition('lte');
|
|
94
|
+
trigger.setComparisonValue(0.001);
|
|
91
95
|
trigger.setPosition(400, 120);
|
|
92
96
|
const notificationAction = new Action(ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL);
|
|
93
97
|
notificationAction.setParams("body", "The sUSDE is now negative. You're losing money by holding it.");
|
|
@@ -96,38 +100,6 @@ const createSusdeYieldNotification = async () => {
|
|
|
96
100
|
const edge = new Edge({ source: trigger, target: notificationAction });
|
|
97
101
|
return new Workflow('sUSDE yield notification', [trigger, notificationAction], [edge]);
|
|
98
102
|
};
|
|
99
|
-
const ionicDepositIfYieldIsHigh = async () => {
|
|
100
|
-
const trigger = new Trigger(TRIGGERS.LENDING.IONIC.LENDING_RATE);
|
|
101
|
-
const tokenIn = (await getTokenFromSymbol(CHAINS.MODE, 'USDT')).contractAddress;
|
|
102
|
-
trigger.setCondition('gte');
|
|
103
|
-
trigger.setComparisonValue(10);
|
|
104
|
-
trigger.setChainId(CHAINS.MODE);
|
|
105
|
-
trigger.setParams('token', tokenIn);
|
|
106
|
-
trigger.setPosition(400, 120);
|
|
107
|
-
const ionicDeposit = new Action(ACTIONS.LENDING.IONIC.DEPOSIT);
|
|
108
|
-
ionicDeposit.setChainId(CHAINS.MODE);
|
|
109
|
-
ionicDeposit.setParams('tokenToDeposit', tokenIn);
|
|
110
|
-
ionicDeposit.setParams('amount', await convertToTokenUnits(1, CHAINS.MODE, tokenIn));
|
|
111
|
-
ionicDeposit.setPosition(400, 240);
|
|
112
|
-
const edge = new Edge({ source: trigger, target: ionicDeposit });
|
|
113
|
-
return new Workflow('Deposit USDT on Ionic if yield > 10% APY', [trigger, ionicDeposit], [edge]);
|
|
114
|
-
};
|
|
115
|
-
const ionicWithdrawIfYieldIsLow = async () => {
|
|
116
|
-
const trigger = new Trigger(TRIGGERS.LENDING.IONIC.LENDING_RATE);
|
|
117
|
-
const tokenIn = (await getTokenFromSymbol(CHAINS.MODE, 'USDC')).contractAddress;
|
|
118
|
-
trigger.setCondition('lte');
|
|
119
|
-
trigger.setComparisonValue(4);
|
|
120
|
-
trigger.setChainId(CHAINS.MODE);
|
|
121
|
-
trigger.setParams('token', tokenIn);
|
|
122
|
-
trigger.setPosition(400, 120);
|
|
123
|
-
const ionicWithdraw = new Action(ACTIONS.LENDING.IONIC.WITHDRAW);
|
|
124
|
-
ionicWithdraw.setChainId(CHAINS.MODE);
|
|
125
|
-
ionicWithdraw.setParams('tokenToWithdraw', tokenIn);
|
|
126
|
-
ionicWithdraw.setParams('amount', await convertToTokenUnits(1, CHAINS.MODE, tokenIn));
|
|
127
|
-
ionicWithdraw.setPosition(400, 240);
|
|
128
|
-
const edge = new Edge({ source: trigger, target: ionicWithdraw });
|
|
129
|
-
return new Workflow('Withdraw USDC from Ionic if yield < 4% APY', [trigger, ionicWithdraw], [edge]);
|
|
130
|
-
};
|
|
131
103
|
const copyTradeVitalikOdos = async () => {
|
|
132
104
|
const trigger = new Trigger(TRIGGERS.DEXES.ODOS.SWAP);
|
|
133
105
|
trigger.setChainId(CHAINS.MODE);
|
|
@@ -189,6 +161,7 @@ const dailyYieldEmail = async () => {
|
|
|
189
161
|
• IONIC: {{external.functions.ionicLendingRate(34443,0x4200000000000000000000000000000000000006)}}%
|
|
190
162
|
• Ironclad: {{external.functions.ironcladLendingRate(34443,0x4200000000000000000000000000000000000006)}}%
|
|
191
163
|
|
|
164
|
+
The gas price on Ethereum is {{external.functions.mainnetGasPrice(,)}}
|
|
192
165
|
|
|
193
166
|
See you tomorrow!`);
|
|
194
167
|
notificationAction.setParams("subject", "Daily yield updates");
|
|
@@ -210,7 +183,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
210
183
|
},
|
|
211
184
|
{
|
|
212
185
|
'name': 'Daily yield updates',
|
|
213
|
-
'description': 'Receive an email every day with a recap from all the money market yields for ETH and USDC.',
|
|
186
|
+
'description': 'Receive an email every day with a recap from all the money market yields for ETH and USDC & the current gas price.',
|
|
214
187
|
'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
|
|
215
188
|
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
|
|
216
189
|
'image': [
|
|
@@ -219,6 +192,17 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
219
192
|
],
|
|
220
193
|
createWorkflow: dailyYieldEmail
|
|
221
194
|
},
|
|
195
|
+
{
|
|
196
|
+
'name': 'Daily Fear & Greed-Based cbBTC Trading',
|
|
197
|
+
'description': 'Automatically trade cbBTC daily based on the Fear & Greed Index—buy when low, sell when high.',
|
|
198
|
+
'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS],
|
|
199
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dcaFearAndGreed.png',
|
|
200
|
+
'image': [
|
|
201
|
+
TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
|
|
202
|
+
ACTIONS.CORE.SWAP.SWAP.image
|
|
203
|
+
],
|
|
204
|
+
createWorkflow: createDCAFearAndGreed
|
|
205
|
+
},
|
|
222
206
|
{
|
|
223
207
|
'name': 'Buy ETH when the market sentiment is extremely fearful - capital efficient',
|
|
224
208
|
'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 45. The idle funds are generating yield on Ionic.',
|
|
@@ -226,9 +210,9 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
226
210
|
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/fearAndGreed2.png',
|
|
227
211
|
'image': [
|
|
228
212
|
TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
|
|
229
|
-
ACTIONS.LENDING.
|
|
230
|
-
ACTIONS.SWAP.
|
|
231
|
-
ACTIONS.LENDING.
|
|
213
|
+
ACTIONS.LENDING.AAVE.WITHDRAW.image,
|
|
214
|
+
ACTIONS.CORE.SWAP.SWAP.image,
|
|
215
|
+
ACTIONS.LENDING.AAVE.SUPPLY.image
|
|
232
216
|
],
|
|
233
217
|
createWorkflow: createETHFearAndGreedCapitalEfficientBuy
|
|
234
218
|
},
|
|
@@ -255,28 +239,6 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
255
239
|
],
|
|
256
240
|
createWorkflow: createSusdeYieldNotification
|
|
257
241
|
},
|
|
258
|
-
{
|
|
259
|
-
'name': 'Deposit USDT on Ionic if yield > 10% APY',
|
|
260
|
-
'description': 'Deposit USDT on Ionic if the yield gets above 10%',
|
|
261
|
-
'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.YIELD],
|
|
262
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/ionic_10.jpg',
|
|
263
|
-
'image': [
|
|
264
|
-
TRIGGERS.LENDING.IONIC.LENDING_RATE.image,
|
|
265
|
-
ACTIONS.LENDING.IONIC.DEPOSIT.image,
|
|
266
|
-
],
|
|
267
|
-
createWorkflow: ionicDepositIfYieldIsHigh
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
'name': 'Withdraw USDC from Ionic if yield < 4% APY',
|
|
271
|
-
'description': 'Withdraw USDC from Ionic if the yield gets below 4%',
|
|
272
|
-
'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.YIELD],
|
|
273
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/yield_4.png',
|
|
274
|
-
'image': [
|
|
275
|
-
TRIGGERS.LENDING.IONIC.LENDING_RATE.image,
|
|
276
|
-
ACTIONS.LENDING.IONIC.WITHDRAW.image,
|
|
277
|
-
],
|
|
278
|
-
createWorkflow: ionicWithdrawIfYieldIsLow
|
|
279
|
-
},
|
|
280
242
|
{
|
|
281
243
|
'name': 'MODE transfer notification',
|
|
282
244
|
'description': 'Receive notifications when a top $MODE holder (0x74B8....C6B4) transfers $MODE',
|
|
@@ -288,7 +250,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
288
250
|
],
|
|
289
251
|
createWorkflow: createModeTransferNotificationWorkflow
|
|
290
252
|
},
|
|
291
|
-
{
|
|
253
|
+
/*{
|
|
292
254
|
'name': 'Buy ETH when the market sentiment is extremely fearful',
|
|
293
255
|
'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 30',
|
|
294
256
|
'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS],
|
|
@@ -298,7 +260,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
298
260
|
ACTIONS.SWAP.ODOS.SWAP.image
|
|
299
261
|
],
|
|
300
262
|
createWorkflow: createETHFearAndGreedBuy
|
|
301
|
-
}
|
|
263
|
+
},*/
|
|
302
264
|
/*{
|
|
303
265
|
'name': 'Copy-trade the trades done on Odos by vitalik.eth',
|
|
304
266
|
'description': 'Buy 100$ of each token that vitalik.eth buys using Odos',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.76";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|