Skip to content

Commit 5bbfcef

Browse files
jsmjsmg1nt0ki
andauthored
Feat: Add Avalon Finance (DefiLlama#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 <[email protected]>
1 parent 6641c98 commit 5bbfcef

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

projects/avalon-finance/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
const { aaveExports } = require('../helper/aave')
3+
const methodologies = require('../helper/methodologies')
4+
const { mergeExports } = require('../helper/utils')
5+
6+
const mainMarket = {
7+
merlin: aaveExports('', '0x6aB5d5E96aC59f66baB57450275cc16961219796', undefined, ['0x5F314b36412765f3E1016632fD1Ad528929536CA'], { v3: true }),
8+
}
9+
const innovativeMarket = {
10+
merlin: aaveExports('', '0x91b212e9FaF20117Eae59d6289CB38749DDFc070', undefined, ['0x883cb2E2d9c5D4D9aF5b0d37fc39Fa2284405682'], { v3: true }),
11+
}
12+
13+
module.exports = mergeExports(mainMarket, innovativeMarket)
14+
module.exports.methodology = methodologies.lendingMarket

projects/helper/tokenMapping.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ const fixBalancesTokens = {
5959
'0x380f73bad5e7396b260f737291ae5a8100baabcd': { coingeckoId: "ethereum", decimals: 18, },
6060
'0x4b773e1ae1baa4894e51cc1d1faf485c91b1012f': { coingeckoId: "tether", decimals: 6, },
6161
},
62+
merlin: {
63+
'0x4dcb91cc19aadfe5a6672781eb09abad00c19e4c': { coingeckoId: "sats-ordinals", decimals: 18, },
64+
'0x69181a1f082ea83a152621e4fa527c936abfa501': { coingeckoId: "rats", decimals: 18, },
65+
'0x0726523eba12edad467c55a962842ef358865559': { coingeckoId: "ordinals", decimals: 18, },
66+
'0x967aec3276b63c5e2262da9641db9dbebb07dc0d': { coingeckoId: "tether", decimals: 6, },
67+
'0x6b4ecada640f1b30dbdb68f77821a03a5f282ebe': { coingeckoId: "usd-coin", decimals: 6, },
68+
}
6269
}
6370

6471
ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })

0 commit comments

Comments
 (0)