Skip to content

Commit

Permalink
aave v3: track zksync era
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Sep 24, 2024
1 parent 8c66ac3 commit 14ff594
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions projects/aave/v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function v3(chain) {
params = ['0xFBedc64AeE24921cb43004312B9eF367a4162b57', undefined, ['0xa99F4E69acF23C6838DE90dD1B5c02EA928A53ee']]
else if (chain === 'bsc')
params = ['0x117684358D990E42Eb1649E7e8C4691951dc1E71', undefined, ['0x41585C50524fb8c3899B43D7D797d9486AAc94DB']]
else if (chain === 'era')
params = ['0x0753E3637ddC6efc40759D9c347251046644F25F', undefined, ['0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D']]
const section = borrowed => aaveChainTvl(chain, ...params, borrowed, true);
return {
tvl: section(false),
Expand All @@ -28,13 +30,14 @@ function v3(chain) {
module.exports = mergeExports({
methodology: methodologies.lendingMarket,
avax: v3("avax"),
...["optimism", "fantom", "harmony", "arbitrum", "polygon", "ethereum", "metis", "base", "xdai", "scroll", "bsc"].reduce((t, c) => ({ ...t, [c]: v3(c) }), {}),
hallmarks: [
[1659630089, "Start OP Rewards"],
[1650471689, "Start AVAX Rewards"]
],
...["optimism", "fantom", "harmony", "arbitrum", "polygon", "ethereum", "metis", "base", "xdai", "scroll", "bsc", "era"].reduce((t, c) => ({ ...t, [c]: v3(c) }), {}),
}, {
// Lido pool
ethereum: aaveExports(undefined, "0x770ef9f4fe897e59daCc474EF11238303F9552b6", undefined, ["0xa3206d66cF94AA1e93B21a9D8d409d6375309F4A"], { v3: true, }),
});

module.exports.hallmarks = [
[1659630089, "Start OP Rewards"],
[1650471689, "Start AVAX Rewards"]
]
// node test.js projects/aave/index.js

0 comments on commit 14ff594

Please sign in to comment.