Skip to content

Commit 503956d

Browse files
authored
Add FOOM.Cash (DefiLlama#16792)
1 parent 05c2b05 commit 503956d

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

projects/foom-cash/config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const tokens = {
2+
ethereum: {
3+
FOOM: '0xd0D56273290D339aaF1417D9bfa1bb8cFe8A0933'
4+
},
5+
base: {
6+
FOOM: '0x02300ac24838570012027e0a90d3feccef3c51d2'
7+
},
8+
};
9+
10+
module.exports = {
11+
ethereum: [
12+
{
13+
tokens: [tokens.ethereum.FOOM],
14+
holders: [
15+
"0x239AF915abcD0a5DCB8566e863088423831951f8",
16+
],
17+
},
18+
],
19+
base: [
20+
{
21+
tokens: [tokens.base.FOOM],
22+
holders: [
23+
"0xdb203504ba1fea79164AF3CeFFBA88C59Ee8aAfD",
24+
],
25+
},
26+
],
27+
};

projects/foom-cash/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { sumTokensExport } = require('../helper/unwrapLPs.js')
2+
3+
const config = require('./config.js')
4+
5+
Object.keys(config).forEach(chain => {
6+
const tokensAndOwners = config[chain]
7+
.map(({ tokens, holders }) =>
8+
holders.flatMap(o => tokens.map(t => [t, o]))
9+
)
10+
.flat()
11+
12+
module.exports[chain] = {
13+
tvl: () => ({}),
14+
staking: sumTokensExport({ tokensAndOwners }),
15+
}
16+
})

0 commit comments

Comments
 (0)