File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ const GOA_TOKEN_CONTRACT = '0x8c6Bd546fB8B53fE371654a0E54D7a5bD484b319';
5
5
const REWARD_POOL_CONTRACT = '0xAD9CE8580a1Cd887038405275cB02443E8fb88aC' ;
6
6
7
7
const config = {
8
- arbitrum : { }
9
- }
8
+ sonic : 146 ,
9
+ arbitrum : 42161 ,
10
+ } ;
10
11
11
12
module . exports = {
12
13
doublecounted : true ,
@@ -18,8 +19,9 @@ module.exports = {
18
19
Object . keys ( config ) . forEach ( chain => {
19
20
module . exports [ chain ] = {
20
21
tvl : async ( api ) => {
21
- const multistrategies = await getConfig ( 'goat-protocol' , `https://api.goat.fi/multistrategies` ) ;
22
- const calls = multistrategies . filter ( multistrategy => multistrategy . chain === api . chain ) . map ( multistrategy => multistrategy . address ) ;
22
+ const res = await getConfig ( 'goat-protocol' , `https://api.goat.fi/vaults` ) ;
23
+ const multistrategies = Object . values ( res . data [ config [ chain ] ] ) ;
24
+ const calls = multistrategies . map ( multistrategy => multistrategy . address ) ;
23
25
return api . erc4626Sum ( { calls, isOG4626 : true , } )
24
26
}
25
27
}
You can’t perform that action at this time.
0 commit comments