Skip to content

Commit

Permalink
Add Capyfi protocol (#11332)
Browse files Browse the repository at this point in the history
* add capyfi protocol

* code refactor

---------

Co-authored-by: g1nt0ki <[email protected]>
  • Loading branch information
NicolasMenendez and g1nt0ki authored Aug 16, 2024
1 parent 619cc3f commit 4ecc050
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/capyfi/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { compoundExports2, methodology } = require('../helper/compound')

module.exports = {
methodology,
lac: compoundExports2({ comptroller: '0x123Abe3A273FDBCeC7fc0EBedc05AaeF4eE63060', cether: '0x465ebfceb3953e2922b686f2b4006173664d16ce' })
}
6 changes: 6 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] || {}) })
Expand Down

0 comments on commit 4ecc050

Please sign in to comment.