From 5bbfcef8178c24a1c5800008ffa004b0bd574219 Mon Sep 17 00:00:00 2001 From: JJJJ Date: Fri, 12 Apr 2024 02:49:11 -0400 Subject: [PATCH] Feat: Add Avalon Finance (#9818) * Feat: Add Avalon Finance * Feat: Update chain name * Feat: Update chain name * Feat: Update addresses to PoolAddressesProviderRegistry * Feat: Update market name * Feat: Combine the markets tvl and borrowed * Feat: Combine the markets tvl and borrowed * Feat: display the main market data, cannot display the innovation market data * revert change * code refactor --------- Co-authored-by: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> --- projects/avalon-finance/index.js | 14 ++++++++++++++ projects/helper/tokenMapping.js | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 projects/avalon-finance/index.js diff --git a/projects/avalon-finance/index.js b/projects/avalon-finance/index.js new file mode 100644 index 000000000000..ebeb87ca3c2b --- /dev/null +++ b/projects/avalon-finance/index.js @@ -0,0 +1,14 @@ + +const { aaveExports } = require('../helper/aave') +const methodologies = require('../helper/methodologies') +const { mergeExports } = require('../helper/utils') + +const mainMarket = { + merlin: aaveExports('', '0x6aB5d5E96aC59f66baB57450275cc16961219796', undefined, ['0x5F314b36412765f3E1016632fD1Ad528929536CA'], { v3: true }), +} +const innovativeMarket = { + merlin: aaveExports('', '0x91b212e9FaF20117Eae59d6289CB38749DDFc070', undefined, ['0x883cb2E2d9c5D4D9aF5b0d37fc39Fa2284405682'], { v3: true }), +} + +module.exports = mergeExports(mainMarket, innovativeMarket) +module.exports.methodology = methodologies.lendingMarket \ No newline at end of file diff --git a/projects/helper/tokenMapping.js b/projects/helper/tokenMapping.js index 4a905186800f..97a7ae161ab2 100644 --- a/projects/helper/tokenMapping.js +++ b/projects/helper/tokenMapping.js @@ -59,6 +59,13 @@ const fixBalancesTokens = { '0x380f73bad5e7396b260f737291ae5a8100baabcd': { coingeckoId: "ethereum", decimals: 18, }, '0x4b773e1ae1baa4894e51cc1d1faf485c91b1012f': { coingeckoId: "tether", decimals: 6, }, }, + merlin: { + '0x4dcb91cc19aadfe5a6672781eb09abad00c19e4c': { coingeckoId: "sats-ordinals", decimals: 18, }, + '0x69181a1f082ea83a152621e4fa527c936abfa501': { coingeckoId: "rats", decimals: 18, }, + '0x0726523eba12edad467c55a962842ef358865559': { coingeckoId: "ordinals", decimals: 18, }, + '0x967aec3276b63c5e2262da9641db9dbebb07dc0d': { coingeckoId: "tether", decimals: 6, }, + '0x6b4ecada640f1b30dbdb68f77821a03a5f282ebe': { coingeckoId: "usd-coin", decimals: 6, }, + } } ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })