Skip to content

Commit

Permalink
Feat: Add Avalon Finance (DefiLlama#9818)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
jsmjsm and g1nt0ki authored Apr 12, 2024
1 parent 6641c98 commit 5bbfcef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions projects/avalon-finance/index.js
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] || {}) })
Expand Down

0 comments on commit 5bbfcef

Please sign in to comment.