File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ } ;
Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments