From a676734f0f71ad852ac7eac08d03a95fc4c2e86a Mon Sep 17 00:00:00 2001 From: Nicolas Menendez Date: Fri, 16 Aug 2024 21:19:31 +0200 Subject: [PATCH] Add Capyfi protocol (#11332) * add capyfi protocol * code refactor --------- Co-authored-by: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> --- projects/capyfi/index.js | 6 ++++++ projects/helper/tokenMapping.js | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 projects/capyfi/index.js diff --git a/projects/capyfi/index.js b/projects/capyfi/index.js new file mode 100644 index 000000000000..8dfbc1567c3e --- /dev/null +++ b/projects/capyfi/index.js @@ -0,0 +1,6 @@ +const { compoundExports2, methodology } = require('../helper/compound') + +module.exports = { + methodology, + lac: compoundExports2({ comptroller: '0x123Abe3A273FDBCeC7fc0EBedc05AaeF4eE63060', cether: '0x465ebfceb3953e2922b686f2b4006173664d16ce' }) +} diff --git a/projects/helper/tokenMapping.js b/projects/helper/tokenMapping.js index e059bcd93145..d3fbf64100a1 100644 --- a/projects/helper/tokenMapping.js +++ b/projects/helper/tokenMapping.js @@ -46,6 +46,12 @@ const fixBalancesTokens = { cronos_zkevm: { '0xc1bf55ee54e16229d9b369a5502bfe5fc9f20b6d': { coingeckoId: 'crypto-com-chain', decimals: 18 }, }, + lac: { + [ADDRESSES.null]: { coingeckoId: "la-coin", decimals: 18 }, + '0x2911a1AB18546cb501628Be8625C7503a2A7DB54': { coingeckoId: "la-coin", decimals: 18 }, + '0x42c8c9c0f0a98720dacdaeac0c319cb272b00d7e': { coingeckoId: "ethereum", decimals: 18 }, + '0xf54b8cb8eeee3823a55dddf5540ceaddf9724626': { coingeckoId: "wrapped-bitcoin", decimals: 8 }, + } } ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })